diff --git a/CHANGELOG.md b/CHANGELOG.md index 45cc1fc0..66f035b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.6.0] +* Support Multi Row Toolbar. + ## [1.5.0] * Remove file_picker dependency. diff --git a/example/lib/pages/home_page.dart b/example/lib/pages/home_page.dart index 585e0ad2..0dc94999 100644 --- a/example/lib/pages/home_page.dart +++ b/example/lib/pages/home_page.dart @@ -141,10 +141,7 @@ class _HomePageState extends State { embedBuilder: defaultEmbedBuilderWeb); } var toolbar = QuillToolbar.basic( - controller: _controller!, - multiRowsDisplay: false, - onImagePickCallback: _onImagePickCallback, - ); + controller: _controller!, onImagePickCallback: _onImagePickCallback); if (kIsWeb) { toolbar = QuillToolbar.basic( controller: _controller!, diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index ddc31d42..d76ef913 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -307,12 +307,11 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { spacing: 4, children: children, ); - } else { - return Container( - constraints: BoxConstraints.tightFor(height: preferredSize.height), - color: color ?? Theme.of(context).canvasColor, - child: ArrowIndicatedButtonList(buttons: children), - ); } + return Container( + constraints: BoxConstraints.tightFor(height: preferredSize.height), + color: color ?? Theme.of(context).canvasColor, + child: ArrowIndicatedButtonList(buttons: children), + ); } } diff --git a/pubspec.yaml b/pubspec.yaml index a55996e0..081ef7a4 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: 1.5.0 +version: 1.6.0 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill