From 2c5e02a86278bf24ab7053ee73b35d8162df1383 Mon Sep 17 00:00:00 2001 From: Aleksei <130981115+MacDeveloper1@users.noreply.github.com> Date: Tue, 19 Dec 2023 12:25:41 +0100 Subject: [PATCH] Restore old call of `QuillToolbarIconButton` --- lib/src/widgets/toolbar/buttons/clear_format_button.dart | 1 - lib/src/widgets/toolbar/buttons/custom_button_button.dart | 1 - lib/src/widgets/toolbar/buttons/history_button.dart | 1 - lib/src/widgets/toolbar/buttons/indent_button.dart | 1 - lib/src/widgets/toolbar/buttons/link_style2_button.dart | 1 - lib/src/widgets/toolbar/buttons/link_style_button.dart | 1 - lib/src/widgets/toolbar/buttons/search/search_button.dart | 1 - 7 files changed, 7 deletions(-) diff --git a/lib/src/widgets/toolbar/buttons/clear_format_button.dart b/lib/src/widgets/toolbar/buttons/clear_format_button.dart index 88e9a459..0864b310 100644 --- a/lib/src/widgets/toolbar/buttons/clear_format_button.dart +++ b/lib/src/widgets/toolbar/buttons/clear_format_button.dart @@ -111,7 +111,6 @@ class QuillToolbarClearFormatButton extends StatelessWidget { return QuillToolbarIconButton( tooltip: tooltip, icon: Icon(iconData, size: iconSize * iconButtonFactor, color: iconColor), - isFilled: false, onPressed: _sharedOnPressed, afterPressed: afterButtonPressed, ); diff --git a/lib/src/widgets/toolbar/buttons/custom_button_button.dart b/lib/src/widgets/toolbar/buttons/custom_button_button.dart index f77b4a1e..2eca16e3 100644 --- a/lib/src/widgets/toolbar/buttons/custom_button_button.dart +++ b/lib/src/widgets/toolbar/buttons/custom_button_button.dart @@ -81,7 +81,6 @@ class QuillToolbarCustomButton extends StatelessWidget { return QuillToolbarIconButton( icon: options.icon ?? const SizedBox.shrink(), - isFilled: false, tooltip: tooltip, onPressed: () => _onPressed(context), afterPressed: afterButtonPressed, diff --git a/lib/src/widgets/toolbar/buttons/history_button.dart b/lib/src/widgets/toolbar/buttons/history_button.dart index 1c778f11..0c2fe5a9 100644 --- a/lib/src/widgets/toolbar/buttons/history_button.dart +++ b/lib/src/widgets/toolbar/buttons/history_button.dart @@ -105,7 +105,6 @@ class QuillToolbarHistoryButtonState extends State { ? iconTheme?.iconUnselectedColor ?? theme.iconTheme.color : iconTheme?.disabledIconColor ?? theme.disabledColor, ), - isFilled: false, onPressed: _updateHistory, afterPressed: afterButtonPressed, ); diff --git a/lib/src/widgets/toolbar/buttons/indent_button.dart b/lib/src/widgets/toolbar/buttons/indent_button.dart index 654b3d47..35b46a76 100644 --- a/lib/src/widgets/toolbar/buttons/indent_button.dart +++ b/lib/src/widgets/toolbar/buttons/indent_button.dart @@ -110,7 +110,6 @@ class QuillToolbarIndentButtonState extends State { return QuillToolbarIconButton( tooltip: tooltip, icon: Icon(iconData, size: iconSize * iconButtonFactor, color: iconColor), - isFilled: false, onPressed: _sharedOnPressed, afterPressed: afterButtonPressed, ); diff --git a/lib/src/widgets/toolbar/buttons/link_style2_button.dart b/lib/src/widgets/toolbar/buttons/link_style2_button.dart index 8fec6c3a..431d1af7 100644 --- a/lib/src/widgets/toolbar/buttons/link_style2_button.dart +++ b/lib/src/widgets/toolbar/buttons/link_style2_button.dart @@ -155,7 +155,6 @@ class _QuillToolbarLinkStyleButton2State ? (iconTheme?.iconSelectedColor ?? theme.primaryIconTheme.color) : (iconTheme?.iconUnselectedColor ?? theme.iconTheme.color), ), - isFilled: isToggled, onPressed: _openLinkDialog, afterPressed: afterButtonPressed, ); diff --git a/lib/src/widgets/toolbar/buttons/link_style_button.dart b/lib/src/widgets/toolbar/buttons/link_style_button.dart index 2fa6047a..7cf35af2 100644 --- a/lib/src/widgets/toolbar/buttons/link_style_button.dart +++ b/lib/src/widgets/toolbar/buttons/link_style_button.dart @@ -147,7 +147,6 @@ class QuillToolbarLinkStyleButtonState ? (iconTheme?.iconSelectedColor ?? theme.primaryIconTheme.color) : (iconTheme?.iconUnselectedColor ?? theme.iconTheme.color), ), - isFilled: isToggled, onPressed: () => _openLinkDialog(context), afterPressed: afterButtonPressed, ); diff --git a/lib/src/widgets/toolbar/buttons/search/search_button.dart b/lib/src/widgets/toolbar/buttons/search/search_button.dart index 572d4885..25b7bbc1 100644 --- a/lib/src/widgets/toolbar/buttons/search/search_button.dart +++ b/lib/src/widgets/toolbar/buttons/search/search_button.dart @@ -118,7 +118,6 @@ class QuillToolbarSearchButton extends StatelessWidget { size: iconSize * iconButtonFactor, color: iconColor, ), - isFilled: false, onPressed: () => _sharedOnPressed(context), afterPressed: afterButtonPressed, );