diff --git a/flutter_quill_extensions/lib/embeds/image/toolbar/image_button.dart b/flutter_quill_extensions/lib/embeds/image/toolbar/image_button.dart index 4c4b8655..4422dd0b 100644 --- a/flutter_quill_extensions/lib/embeds/image/toolbar/image_button.dart +++ b/flutter_quill_extensions/lib/embeds/image/toolbar/image_button.dart @@ -81,7 +81,6 @@ class QuillToolbarImageButton extends StatelessWidget { iconSize: iconSize, iconButtonFactor: iconButtonFactor, dialogTheme: options.dialogTheme, - fillColor: options.fillColor, iconTheme: options.iconTheme, linkRegExp: options.linkRegExp, tooltip: options.tooltip, diff --git a/flutter_quill_extensions/lib/embeds/others/camera_button/camera_button.dart b/flutter_quill_extensions/lib/embeds/others/camera_button/camera_button.dart index 2f23254b..e8e4418b 100644 --- a/flutter_quill_extensions/lib/embeds/others/camera_button/camera_button.dart +++ b/flutter_quill_extensions/lib/embeds/others/camera_button/camera_button.dart @@ -87,7 +87,6 @@ class QuillToolbarCameraButton extends StatelessWidget { QuillToolbarCameraButtonOptions( afterButtonPressed: _afterButtonPressed(context), iconData: options.iconData, - fillColor: options.fillColor, iconSize: options.iconSize, iconButtonFactor: iconButtonFactor, iconTheme: options.iconTheme, diff --git a/flutter_quill_extensions/lib/models/config/camera/camera_configurations.dart b/flutter_quill_extensions/lib/models/config/camera/camera_configurations.dart index 938fd702..bda1ea14 100644 --- a/flutter_quill_extensions/lib/models/config/camera/camera_configurations.dart +++ b/flutter_quill_extensions/lib/models/config/camera/camera_configurations.dart @@ -1,4 +1,3 @@ -import 'package:flutter/widgets.dart' show Color; import 'package:flutter_quill/flutter_quill.dart'; import '../../../embeds/others/camera_button/camera_types.dart'; @@ -18,7 +17,6 @@ class QuillToolbarCameraButtonOptions extends QuillToolbarBaseButtonOptions< this.cameraConfigurations = const QuillToolbarCameraConfigurations(), super.iconSize, super.iconButtonFactor, - this.fillColor, super.iconData, super.afterButtonPressed, super.tooltip, @@ -26,7 +24,5 @@ class QuillToolbarCameraButtonOptions extends QuillToolbarBaseButtonOptions< super.childBuilder, }); - final Color? fillColor; - final QuillToolbarCameraConfigurations cameraConfigurations; } diff --git a/flutter_quill_extensions/lib/models/config/formula/formula_configurations.dart b/flutter_quill_extensions/lib/models/config/formula/formula_configurations.dart index c8f87902..cbe79c18 100644 --- a/flutter_quill_extensions/lib/models/config/formula/formula_configurations.dart +++ b/flutter_quill_extensions/lib/models/config/formula/formula_configurations.dart @@ -1,4 +1,3 @@ -import 'package:flutter/widgets.dart' show Color; import 'package:flutter_quill/flutter_quill.dart'; class QuillToolbarFormulaButtonExtraOptions @@ -18,10 +17,7 @@ class QuillToolbarFormulaButtonOptions extends QuillToolbarBaseButtonOptions< super.iconTheme, super.afterButtonPressed, super.childBuilder, - this.fillColor, super.iconSize, super.iconButtonFactor, }); - - final Color? fillColor; } diff --git a/flutter_quill_extensions/lib/models/config/image/toolbar/image_configurations.dart b/flutter_quill_extensions/lib/models/config/image/toolbar/image_configurations.dart index 799285e1..fcdcd04d 100644 --- a/flutter_quill_extensions/lib/models/config/image/toolbar/image_configurations.dart +++ b/flutter_quill_extensions/lib/models/config/image/toolbar/image_configurations.dart @@ -1,4 +1,3 @@ -import 'package:flutter/widgets.dart' show Color; import 'package:flutter_quill/flutter_quill.dart'; import 'package:meta/meta.dart' show immutable; @@ -26,14 +25,11 @@ class QuillToolbarImageButtonOptions extends QuillToolbarBaseButtonOptions< super.afterButtonPressed, super.childBuilder, super.iconTheme, - this.fillColor, this.dialogTheme, this.linkRegExp, this.imageButtonConfigurations = const QuillToolbarImageConfigurations(), }); - final Color? fillColor; - final QuillDialogTheme? dialogTheme; /// [imageLinkRegExp] is a regular expression to identify image links. diff --git a/flutter_quill_extensions/lib/models/config/media/media_button_configurations.dart b/flutter_quill_extensions/lib/models/config/media/media_button_configurations.dart index 9cefeaac..c25bf08a 100644 --- a/flutter_quill_extensions/lib/models/config/media/media_button_configurations.dart +++ b/flutter_quill_extensions/lib/models/config/media/media_button_configurations.dart @@ -24,7 +24,6 @@ class QuillToolbarMediaButtonOptions extends QuillToolbarBaseButtonOptions< this.childrenSpacing = 16.0, this.autovalidateMode = AutovalidateMode.disabled, super.iconSize, - this.fillColor, this.dialogTheme, this.labelText, this.hintText, @@ -40,7 +39,6 @@ class QuillToolbarMediaButtonOptions extends QuillToolbarBaseButtonOptions< super.childBuilder, }); - final Color? fillColor; final QuillMediaType type; final QuillDialogTheme? dialogTheme; final MediaFilePicker? mediaFilePicker; diff --git a/flutter_quill_extensions/lib/models/config/video/toolbar/video_configurations.dart b/flutter_quill_extensions/lib/models/config/video/toolbar/video_configurations.dart index b68b7729..c32305e5 100644 --- a/flutter_quill_extensions/lib/models/config/video/toolbar/video_configurations.dart +++ b/flutter_quill_extensions/lib/models/config/video/toolbar/video_configurations.dart @@ -1,4 +1,3 @@ -import 'package:flutter/widgets.dart' show Color; import 'package:flutter_quill/flutter_quill.dart'; import '../../../../embeds/video/video.dart'; @@ -17,7 +16,6 @@ class QuillToolbarVideoButtonOptions extends QuillToolbarBaseButtonOptions< const QuillToolbarVideoButtonOptions({ this.linkRegExp, this.dialogTheme, - this.fillColor, super.iconSize, super.iconButtonFactor, super.iconData, @@ -31,6 +29,4 @@ class QuillToolbarVideoButtonOptions extends QuillToolbarBaseButtonOptions< final RegExp? linkRegExp; final QuillDialogTheme? dialogTheme; final QuillToolbarVideoConfigurations videoConfigurations; - - final Color? fillColor; } diff --git a/lib/src/models/config/toolbar/buttons/font_size_configurations.dart b/lib/src/models/config/toolbar/buttons/font_size_configurations.dart index e926e184..e351387c 100644 --- a/lib/src/models/config/toolbar/buttons/font_size_configurations.dart +++ b/lib/src/models/config/toolbar/buttons/font_size_configurations.dart @@ -75,7 +75,6 @@ class QuillToolbarFontSizeButtonOptions extends QuillToolbarBaseButtonOptions< QuillToolbarFontSizeButtonOptions copyWith({ double? iconSize, double? iconButtonFactor, - Color? fillColor, double? hoverElevation, double? highlightElevation, List>? items, diff --git a/lib/src/models/config/toolbar/buttons/search_configurations.dart b/lib/src/models/config/toolbar/buttons/search_configurations.dart index 8851fe5f..e110c3ea 100644 --- a/lib/src/models/config/toolbar/buttons/search_configurations.dart +++ b/lib/src/models/config/toolbar/buttons/search_configurations.dart @@ -23,7 +23,6 @@ class QuillToolbarSearchButtonOptions extends QuillToolbarBaseButtonOptions< super.iconSize, super.iconButtonFactor, this.dialogBarrierColor, - this.fillColor, this.customOnPressedCallback, }); @@ -32,8 +31,6 @@ class QuillToolbarSearchButtonOptions extends QuillToolbarBaseButtonOptions< /// By default will be [dialogBarrierColor] from [QuillSharedConfigurations] final Color? dialogBarrierColor; - final Color? fillColor; - /// By default we will show simple search dialog ui /// you can pass value to this callback to change this final QuillToolbarSearchButtonOnPressedCallback? customOnPressedCallback; diff --git a/lib/src/models/config/toolbar/buttons/toggle_check_list_configurations.dart b/lib/src/models/config/toolbar/buttons/toggle_check_list_configurations.dart index de30d3b8..c73275c6 100644 --- a/lib/src/models/config/toolbar/buttons/toggle_check_list_configurations.dart +++ b/lib/src/models/config/toolbar/buttons/toggle_check_list_configurations.dart @@ -1,5 +1,4 @@ import 'package:flutter/foundation.dart' show immutable; -import 'package:flutter/widgets.dart' show Color; import '../../../documents/attribute.dart'; import '../../quill_configurations.dart'; @@ -23,7 +22,6 @@ class QuillToolbarToggleCheckListButtonOptions const QuillToolbarToggleCheckListButtonOptions({ super.iconSize, super.iconButtonFactor, - this.fillColor, this.attribute = Attribute.unchecked, this.isShouldRequestKeyboard = false, super.iconTheme, @@ -33,8 +31,6 @@ class QuillToolbarToggleCheckListButtonOptions super.childBuilder, }); - final Color? fillColor; - final Attribute attribute; /// Should we request the keyboard when you press the toggle check list button diff --git a/lib/src/models/config/toolbar/buttons/toggle_style_configurations.dart b/lib/src/models/config/toolbar/buttons/toggle_style_configurations.dart index 5caa1447..e1c2ac78 100644 --- a/lib/src/models/config/toolbar/buttons/toggle_style_configurations.dart +++ b/lib/src/models/config/toolbar/buttons/toggle_style_configurations.dart @@ -1,6 +1,5 @@ // ignore_for_file: public_member_api_docs, sort_constructors_first import 'package:flutter/foundation.dart' show immutable; -import 'package:flutter/widgets.dart' show Color; import '../base_button_configurations.dart'; @@ -26,12 +25,9 @@ class QuillToolbarToggleStyleButtonOptions super.iconData, super.iconSize, super.iconButtonFactor, - this.fillColor, super.tooltip, super.afterButtonPressed, super.iconTheme, super.childBuilder, }); - - final Color? fillColor; } diff --git a/lib/src/models/themes/quill_icon_theme.dart b/lib/src/models/themes/quill_icon_theme.dart index 68983d66..9dedee8b 100644 --- a/lib/src/models/themes/quill_icon_theme.dart +++ b/lib/src/models/themes/quill_icon_theme.dart @@ -4,17 +4,10 @@ import 'package:flutter/material.dart'; @immutable class QuillIconTheme { const QuillIconTheme({ - this.iconButtonSelectedStyle, - this.iconButtonUnselectedStyle, this.iconButtonSelectedData, this.iconButtonUnselectedData, }); - @Deprecated('Please use iconButtonUnselectedData instead') - final ButtonStyle? iconButtonUnselectedStyle; - @Deprecated('Please use iconButtonSelectedData instead') - final ButtonStyle? iconButtonSelectedStyle; - final IconButtonData? iconButtonUnselectedData; final IconButtonData? iconButtonSelectedData; diff --git a/lib/src/widgets/toolbar/buttons/toggle_check_list_button.dart b/lib/src/widgets/toolbar/buttons/toggle_check_list_button.dart index 46bcf7e1..83679798 100644 --- a/lib/src/widgets/toolbar/buttons/toggle_check_list_button.dart +++ b/lib/src/widgets/toolbar/buttons/toggle_check_list_button.dart @@ -146,7 +146,6 @@ class QuillToolbarToggleCheckListButtonState context, Attribute.unchecked, iconData, - options.fillColor, _isToggled, _toggleAttribute, afterButtonPressed, diff --git a/lib/src/widgets/toolbar/buttons/toggle_style_button.dart b/lib/src/widgets/toolbar/buttons/toggle_style_button.dart index f93e79a1..6447bffd 100644 --- a/lib/src/widgets/toolbar/buttons/toggle_style_button.dart +++ b/lib/src/widgets/toolbar/buttons/toggle_style_button.dart @@ -13,7 +13,6 @@ typedef ToggleStyleButtonBuilder = Widget Function( BuildContext context, Attribute attribute, IconData icon, - Color? fillColor, bool? isToggled, VoidCallback? onPressed, VoidCallback? afterPressed, [ @@ -172,7 +171,6 @@ class QuillToolbarToggleStyleButtonState context, widget.attribute, iconData, - options.fillColor, _isToggled, _toggleAttribute, afterButtonPressed, @@ -231,7 +229,6 @@ Widget defaultToggleStyleButtonBuilder( BuildContext context, Attribute attribute, IconData icon, - Color? fillColor, bool? isToggled, VoidCallback? onPressed, VoidCallback? afterPressed, [