From 3025bf8d06e75eb2e0fb5b6f0f4ae399aff4ee6d Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 19 Dec 2023 16:27:53 +0300 Subject: [PATCH 1/5] Export missing --- lib/flutter_quill.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/flutter_quill.dart b/lib/flutter_quill.dart index 5186a444..acfb7f7e 100644 --- a/lib/flutter_quill.dart +++ b/lib/flutter_quill.dart @@ -33,6 +33,7 @@ export 'src/widgets/raw_editor/raw_editor.dart'; export 'src/widgets/raw_editor/raw_editor_state.dart'; export 'src/widgets/style_widgets/style_widgets.dart'; export 'src/widgets/toolbar/base_toolbar.dart'; +export 'src/widgets/toolbar/buttons/alignment/select_alignment_button.dart'; export 'src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart'; export 'src/widgets/toolbar/simple_toolbar.dart'; export 'src/widgets/utils/provider.dart'; From 782ed3701e05f628ca540514dbfdc932e4128ad4 Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 19 Dec 2023 16:33:31 +0300 Subject: [PATCH 2/5] comment the globalIconSize in the example --- example/lib/presentation/quill/my_quill_toolbar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/presentation/quill/my_quill_toolbar.dart b/example/lib/presentation/quill/my_quill_toolbar.dart index 2cb73009..4a07cee0 100644 --- a/example/lib/presentation/quill/my_quill_toolbar.dart +++ b/example/lib/presentation/quill/my_quill_toolbar.dart @@ -205,7 +205,7 @@ class MyQuillToolbar extends StatelessWidget { base: QuillToolbarBaseButtonOptions( // Request editor focus when any button is pressed afterButtonPressed: focusNode.requestFocus, - globalIconSize: 18, + // globalIconSize: 18, ), selectHeaderStyleDropdownButton: const QuillToolbarSelectHeaderStyleDropdownButtonOptions( From a70daa7bf94f1840872dcb8f7f5f32b527860ec5 Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 19 Dec 2023 16:53:42 +0300 Subject: [PATCH 3/5] Prepare to release 9.0.4 --- CHANGELOG.md | 1 + example/lib/presentation/quill/my_quill_toolbar.dart | 4 ++++ flutter_quill_extensions/CHANGELOG.md | 4 ++++ flutter_quill_extensions/pubspec.yaml | 2 +- flutter_quill_test/CHANGELOG.md | 4 ++++ flutter_quill_test/pubspec.yaml | 2 +- pubspec.yaml | 2 +- quill_html_converter/CHANGELOG.md | 4 ++++ quill_html_converter/pubspec.yaml | 2 +- version.dart | 2 +- 10 files changed, 22 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a837911b..2c013026 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## 9.0.4 * Feature: [#1611](https://github.com/singerdmx/flutter-quill/issues/1611) +* Export missing widgets ## 9.0.3 * Flutter Quill Extensions: diff --git a/example/lib/presentation/quill/my_quill_toolbar.dart b/example/lib/presentation/quill/my_quill_toolbar.dart index 4a07cee0..8efaa206 100644 --- a/example/lib/presentation/quill/my_quill_toolbar.dart +++ b/example/lib/presentation/quill/my_quill_toolbar.dart @@ -205,6 +205,10 @@ class MyQuillToolbar extends StatelessWidget { base: QuillToolbarBaseButtonOptions( // Request editor focus when any button is pressed afterButtonPressed: focusNode.requestFocus, + iconTheme: const QuillIconTheme( + iconSelectedFillColor: Colors.red, + iconUnselectedFillColor: Colors.yellow, + ), // globalIconSize: 18, ), selectHeaderStyleDropdownButton: diff --git a/flutter_quill_extensions/CHANGELOG.md b/flutter_quill_extensions/CHANGELOG.md index aaf21ad1..2c013026 100644 --- a/flutter_quill_extensions/CHANGELOG.md +++ b/flutter_quill_extensions/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 9.0.4 +* Feature: [#1611](https://github.com/singerdmx/flutter-quill/issues/1611) +* Export missing widgets + ## 9.0.3 * Flutter Quill Extensions: * Fix file image support for web image emebed builder diff --git a/flutter_quill_extensions/pubspec.yaml b/flutter_quill_extensions/pubspec.yaml index 619b5c15..eb68dbb0 100644 --- a/flutter_quill_extensions/pubspec.yaml +++ b/flutter_quill_extensions/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill_extensions description: Embed extensions for flutter_quill including image, video, formula and etc. -version: 9.0.3 +version: 9.0.4 homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/ repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/flutter_quill_test/CHANGELOG.md b/flutter_quill_test/CHANGELOG.md index aaf21ad1..2c013026 100644 --- a/flutter_quill_test/CHANGELOG.md +++ b/flutter_quill_test/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 9.0.4 +* Feature: [#1611](https://github.com/singerdmx/flutter-quill/issues/1611) +* Export missing widgets + ## 9.0.3 * Flutter Quill Extensions: * Fix file image support for web image emebed builder diff --git a/flutter_quill_test/pubspec.yaml b/flutter_quill_test/pubspec.yaml index 7a4d44b1..fe64d2b6 100644 --- a/flutter_quill_test/pubspec.yaml +++ b/flutter_quill_test/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill_test description: Test utilities for flutter_quill which includes methods to simplify interacting with the editor in test cases. -version: 9.0.3 +version: 9.0.4 homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/ repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/pubspec.yaml b/pubspec.yaml index 212afdad..821d8293 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter. -version: 9.0.3 +version: 9.0.4 homepage: https://1o24bbs.com/c/bulletjournal/108/ repository: https://github.com/singerdmx/flutter-quill/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/quill_html_converter/CHANGELOG.md b/quill_html_converter/CHANGELOG.md index aaf21ad1..2c013026 100644 --- a/quill_html_converter/CHANGELOG.md +++ b/quill_html_converter/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 9.0.4 +* Feature: [#1611](https://github.com/singerdmx/flutter-quill/issues/1611) +* Export missing widgets + ## 9.0.3 * Flutter Quill Extensions: * Fix file image support for web image emebed builder diff --git a/quill_html_converter/pubspec.yaml b/quill_html_converter/pubspec.yaml index 0be7ee97..9221a2d1 100644 --- a/quill_html_converter/pubspec.yaml +++ b/quill_html_converter/pubspec.yaml @@ -1,6 +1,6 @@ name: quill_html_converter description: A extension for flutter_quill package to add support for dealing with conversion to/from html -version: 9.0.3 +version: 9.0.4 homepage: https://github.com/singerdmx/flutter-quill/tree/master/quill_html_converter/ repository: https://github.com/singerdmx/flutter-quill/tree/master/quill_html_converter/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/version.dart b/version.dart index 988f8680..c5301916 100644 --- a/version.dart +++ b/version.dart @@ -1 +1 @@ -const version = '9.0.3'; +const version = '9.0.4'; From fe96d082014c3c0bde4ed021df0419732574bcbb Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 19 Dec 2023 17:15:52 +0300 Subject: [PATCH 4/5] Update QuillToolbarIconButton --- lib/src/models/themes/quill_icon_theme.dart | 19 ++++++++++--------- .../toolbar/buttons/quill_icon_button.dart | 6 ++++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/lib/src/models/themes/quill_icon_theme.dart b/lib/src/models/themes/quill_icon_theme.dart index 65669668..8901e462 100644 --- a/lib/src/models/themes/quill_icon_theme.dart +++ b/lib/src/models/themes/quill_icon_theme.dart @@ -2,15 +2,16 @@ import 'package:flutter/material.dart'; @immutable class QuillIconTheme { - const QuillIconTheme( - {this.iconSelectedColor, - this.iconUnselectedColor, - this.iconSelectedFillColor, - this.iconUnselectedFillColor, - this.disabledIconColor, - this.disabledIconFillColor, - this.borderRadius, - this.padding}); + const QuillIconTheme({ + this.iconSelectedColor, + this.iconUnselectedColor, + this.iconSelectedFillColor, + this.iconUnselectedFillColor, + this.disabledIconColor, + this.disabledIconFillColor, + this.borderRadius, + this.padding, + }); ///The color to use for selected icons in the toolbar final Color? iconSelectedColor; diff --git a/lib/src/widgets/toolbar/buttons/quill_icon_button.dart b/lib/src/widgets/toolbar/buttons/quill_icon_button.dart index 22c2fa99..3024133b 100644 --- a/lib/src/widgets/toolbar/buttons/quill_icon_button.dart +++ b/lib/src/widgets/toolbar/buttons/quill_icon_button.dart @@ -9,6 +9,8 @@ class QuillToolbarIconButton extends StatelessWidget { this.tooltip, this.padding, super.key, + this.iconFilledStyle, + this.iconStyle, }); final VoidCallback? onPressed; @@ -19,6 +21,8 @@ class QuillToolbarIconButton extends StatelessWidget { final EdgeInsets? padding; final bool isFilled; + final ButtonStyle? iconStyle; + final ButtonStyle? iconFilledStyle; @override Widget build(BuildContext context) { if (isFilled) { @@ -26,6 +30,7 @@ class QuillToolbarIconButton extends StatelessWidget { padding: padding, onPressed: onPressed, icon: icon, + style: iconStyle, ); } return IconButton( @@ -35,6 +40,7 @@ class QuillToolbarIconButton extends StatelessWidget { afterPressed?.call(); }, icon: icon, + style: iconFilledStyle, ); } } From d23b80707f8bb55bdd231867bba4951453a9ace5 Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 19 Dec 2023 17:19:20 +0300 Subject: [PATCH 5/5] Update Example quill toolbar --- example/lib/presentation/quill/my_quill_toolbar.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example/lib/presentation/quill/my_quill_toolbar.dart b/example/lib/presentation/quill/my_quill_toolbar.dart index 8efaa206..f85dbe0b 100644 --- a/example/lib/presentation/quill/my_quill_toolbar.dart +++ b/example/lib/presentation/quill/my_quill_toolbar.dart @@ -201,14 +201,11 @@ class MyQuillToolbar extends StatelessWidget { configurations: QuillSimpleToolbarConfigurations( controller: controller, showAlignmentButtons: true, + headerStyleType: HeaderStyleType.dropdown, buttonOptions: QuillSimpleToolbarButtonOptions( base: QuillToolbarBaseButtonOptions( // Request editor focus when any button is pressed afterButtonPressed: focusNode.requestFocus, - iconTheme: const QuillIconTheme( - iconSelectedFillColor: Colors.red, - iconUnselectedFillColor: Colors.yellow, - ), // globalIconSize: 18, ), selectHeaderStyleDropdownButton: