From fc9d3d3757a2a10e0434d69a9ce4bc63feb21051 Mon Sep 17 00:00:00 2001 From: X Code Date: Fri, 29 Jul 2022 08:21:51 -0700 Subject: [PATCH] Enable search when text is not empty --- CHANGELOG.md | 3 +++ lib/src/widgets/toolbar/search_button.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ac690be..52add93f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [5.3.1] +* Enable search when text is not empty. + # [5.3.0] * Added search function. diff --git a/lib/src/widgets/toolbar/search_button.dart b/lib/src/widgets/toolbar/search_button.dart index 22d99c27..ea738900 100644 --- a/lib/src/widgets/toolbar/search_button.dart +++ b/lib/src/widgets/toolbar/search_button.dart @@ -149,7 +149,7 @@ class _SearchDialogState extends State<_SearchDialog> { style: widget.dialogTheme?.labelTextStyle, ), ), - if (_offsets == null) + if (_offsets == null && _text.isNotEmpty) TextButton( onPressed: () { setState(() { diff --git a/pubspec.yaml b/pubspec.yaml index a0a80f38..64d3b81a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 5.3.0 +version: 5.3.1 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill