From 61eae95994475870e1c53ae03050bdc63868a8fe Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Thu, 9 Nov 2023 02:47:23 +0000 Subject: [PATCH] ref: dart format . --- lib/src/models/config/toolbar/buttons/base.dart | 3 ++- lib/src/widgets/toolbar/buttons/clear_format.dart | 3 ++- lib/src/widgets/toolbar/buttons/history.dart | 4 ++-- lib/src/widgets/toolbar/buttons/indent.dart | 4 +--- lib/src/widgets/toolbar/buttons/search/search.dart | 3 ++- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/src/models/config/toolbar/buttons/base.dart b/lib/src/models/config/toolbar/buttons/base.dart index b8f47d26..2eadbff8 100644 --- a/lib/src/models/config/toolbar/buttons/base.dart +++ b/lib/src/models/config/toolbar/buttons/base.dart @@ -5,7 +5,8 @@ import 'package:flutter/widgets.dart' show BuildContext, IconData, Widget; import '../../../../../flutter_quill.dart' show QuillController, QuillProvider; import '../../../themes/quill_icon_theme.dart' show QuillIconTheme; -import '../../quill_configurations.dart' show kDefaultIconSize, kIconButtonFactor; +import '../../quill_configurations.dart' + show kDefaultIconSize, kIconButtonFactor; @immutable class QuillToolbarBaseButtonExtraOptions extends Equatable { diff --git a/lib/src/widgets/toolbar/buttons/clear_format.dart b/lib/src/widgets/toolbar/buttons/clear_format.dart index 4d9ac51c..9e1b27c7 100644 --- a/lib/src/widgets/toolbar/buttons/clear_format.dart +++ b/lib/src/widgets/toolbar/buttons/clear_format.dart @@ -28,7 +28,8 @@ class QuillToolbarClearFormatButton extends StatelessWidget { } double _iconButtonFactor(BuildContext context) { - final baseIconFactor = baseButtonExtraOptions(context).globalIconButtonFactor; + final baseIconFactor = + baseButtonExtraOptions(context).globalIconButtonFactor; final iconButtonFactor = options.iconButtonFactor; return iconButtonFactor ?? baseIconFactor; } diff --git a/lib/src/widgets/toolbar/buttons/history.dart b/lib/src/widgets/toolbar/buttons/history.dart index 089e0769..e0c3f7cf 100644 --- a/lib/src/widgets/toolbar/buttons/history.dart +++ b/lib/src/widgets/toolbar/buttons/history.dart @@ -59,8 +59,8 @@ class QuillToolbarHistoryButtonState extends State { (options.isUndo ? Icons.undo_outlined : Icons.redo_outlined); final childBuilder = options.childBuilder ?? baseButtonConfigurations.childBuilder; - final iconSize = options.iconSize ?? - baseButtonConfigurations.globalIconSize; + final iconSize = + options.iconSize ?? baseButtonConfigurations.globalIconSize; final iconButtonFactor = options.iconButtonFactor ?? baseButtonConfigurations.globalIconButtonFactor; final iconTheme = options.iconTheme ?? baseButtonConfigurations.iconTheme; diff --git a/lib/src/widgets/toolbar/buttons/indent.dart b/lib/src/widgets/toolbar/buttons/indent.dart index 6c5561c5..9f3de303 100644 --- a/lib/src/widgets/toolbar/buttons/indent.dart +++ b/lib/src/widgets/toolbar/buttons/indent.dart @@ -6,9 +6,7 @@ import '../../../translations/toolbar.i18n.dart'; import '../../../utils/extensions/build_context.dart'; import '../../controller.dart'; import '../base_toolbar.dart' - show - QuillToolbarBaseButtonOptions, - QuillToolbarIconButton; + show QuillToolbarBaseButtonOptions, QuillToolbarIconButton; class QuillToolbarIndentButton extends StatefulWidget { const QuillToolbarIndentButton({ diff --git a/lib/src/widgets/toolbar/buttons/search/search.dart b/lib/src/widgets/toolbar/buttons/search/search.dart index 7e2e2886..2bfaeb38 100644 --- a/lib/src/widgets/toolbar/buttons/search/search.dart +++ b/lib/src/widgets/toolbar/buttons/search/search.dart @@ -28,7 +28,8 @@ class QuillToolbarSearchButton extends StatelessWidget { } double _iconButtonFactor(BuildContext context) { - final baseIconFactor = baseButtonExtraOptions(context).globalIconButtonFactor; + final baseIconFactor = + baseButtonExtraOptions(context).globalIconButtonFactor; final iconButtonFactor = options.iconButtonFactor; return iconButtonFactor ?? baseIconFactor; }