diff --git a/lib/ui/add_book_screen/widgets/book_text_field.dart b/lib/ui/add_book_screen/widgets/book_text_field.dart index 12f66579..3a5accee 100644 --- a/lib/ui/add_book_screen/widgets/book_text_field.dart +++ b/lib/ui/add_book_screen/widgets/book_text_field.dart @@ -49,6 +49,10 @@ class _BookTextFieldState extends State { void initState() { super.initState(); + if (widget.controller.text.isNotEmpty) { + showClearButton = true; + } + widget.controller.addListener(() { setState(() { if (widget.controller.text.isNotEmpty) {