ref: dart format .

pull/1517/head
Adil Hanney 1 year ago committed by X Code
parent 5eb122712b
commit 61eae95994
  1. 3
      lib/src/models/config/toolbar/buttons/base.dart
  2. 3
      lib/src/widgets/toolbar/buttons/clear_format.dart
  3. 4
      lib/src/widgets/toolbar/buttons/history.dart
  4. 4
      lib/src/widgets/toolbar/buttons/indent.dart
  5. 3
      lib/src/widgets/toolbar/buttons/search/search.dart

@ -5,7 +5,8 @@ import 'package:flutter/widgets.dart' show BuildContext, IconData, Widget;
import '../../../../../flutter_quill.dart' show QuillController, QuillProvider; import '../../../../../flutter_quill.dart' show QuillController, QuillProvider;
import '../../../themes/quill_icon_theme.dart' show QuillIconTheme; import '../../../themes/quill_icon_theme.dart' show QuillIconTheme;
import '../../quill_configurations.dart' show kDefaultIconSize, kIconButtonFactor; import '../../quill_configurations.dart'
show kDefaultIconSize, kIconButtonFactor;
@immutable @immutable
class QuillToolbarBaseButtonExtraOptions extends Equatable { class QuillToolbarBaseButtonExtraOptions extends Equatable {

@ -28,7 +28,8 @@ class QuillToolbarClearFormatButton extends StatelessWidget {
} }
double _iconButtonFactor(BuildContext context) { double _iconButtonFactor(BuildContext context) {
final baseIconFactor = baseButtonExtraOptions(context).globalIconButtonFactor; final baseIconFactor =
baseButtonExtraOptions(context).globalIconButtonFactor;
final iconButtonFactor = options.iconButtonFactor; final iconButtonFactor = options.iconButtonFactor;
return iconButtonFactor ?? baseIconFactor; return iconButtonFactor ?? baseIconFactor;
} }

@ -59,8 +59,8 @@ class QuillToolbarHistoryButtonState extends State<QuillToolbarHistoryButton> {
(options.isUndo ? Icons.undo_outlined : Icons.redo_outlined); (options.isUndo ? Icons.undo_outlined : Icons.redo_outlined);
final childBuilder = final childBuilder =
options.childBuilder ?? baseButtonConfigurations.childBuilder; options.childBuilder ?? baseButtonConfigurations.childBuilder;
final iconSize = options.iconSize ?? final iconSize =
baseButtonConfigurations.globalIconSize; options.iconSize ?? baseButtonConfigurations.globalIconSize;
final iconButtonFactor = options.iconButtonFactor ?? final iconButtonFactor = options.iconButtonFactor ??
baseButtonConfigurations.globalIconButtonFactor; baseButtonConfigurations.globalIconButtonFactor;
final iconTheme = options.iconTheme ?? baseButtonConfigurations.iconTheme; final iconTheme = options.iconTheme ?? baseButtonConfigurations.iconTheme;

@ -6,9 +6,7 @@ import '../../../translations/toolbar.i18n.dart';
import '../../../utils/extensions/build_context.dart'; import '../../../utils/extensions/build_context.dart';
import '../../controller.dart'; import '../../controller.dart';
import '../base_toolbar.dart' import '../base_toolbar.dart'
show show QuillToolbarBaseButtonOptions, QuillToolbarIconButton;
QuillToolbarBaseButtonOptions,
QuillToolbarIconButton;
class QuillToolbarIndentButton extends StatefulWidget { class QuillToolbarIndentButton extends StatefulWidget {
const QuillToolbarIndentButton({ const QuillToolbarIndentButton({

@ -28,7 +28,8 @@ class QuillToolbarSearchButton extends StatelessWidget {
} }
double _iconButtonFactor(BuildContext context) { double _iconButtonFactor(BuildContext context) {
final baseIconFactor = baseButtonExtraOptions(context).globalIconButtonFactor; final baseIconFactor =
baseButtonExtraOptions(context).globalIconButtonFactor;
final iconButtonFactor = options.iconButtonFactor; final iconButtonFactor = options.iconButtonFactor;
return iconButtonFactor ?? baseIconFactor; return iconButtonFactor ?? baseIconFactor;
} }

Loading…
Cancel
Save