@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import ' ../../../extensions/quill_configurations_ext.dart ' ;
import ' ../../../l10n/extensions/localizations.dart ' ;
import ' ../../../models/config/toolbar/buttons/indent _configurations.dart ' ;
import ' ../../../models/config/toolbar/simple_toolbar _configurations.dart ' ;
import ' ../../../models/themes/quill_icon_theme.dart ' ;
import ' ../../quill/quill_controller.dart ' ;
import ' ../base_toolbar.dart '
@ -35,33 +35,33 @@ class QuillToolbarIndentButtonState extends State<QuillToolbarIndentButton> {
}
double get iconSize {
final baseFontSize = baseButtonExtraOptions . globalIconSize ;
final baseFontSize = baseButtonExtraOptions ? . globalIconSize ;
final iconSize = options . iconSize ;
return iconSize ? ? baseFontSize ;
return iconSize ? ? baseFontSize ? ? kDefaultIconSize ;
}
double get iconButtonFactor {
final baseIconFactor = baseButtonExtraOptions . globalIconButtonFactor ;
final baseIconFactor = baseButtonExtraOptions ? . globalIconButtonFactor ;
final iconButtonFactor = options . iconButtonFactor ;
return iconButtonFactor ? ? baseIconFactor ;
return iconButtonFactor ? ? baseIconFactor ? ? kIconButtonFactor ;
}
VoidCallback ? get afterButtonPressed {
return options . afterButtonPressed ? ?
baseButtonExtraOptions . afterButtonPressed ;
baseButtonExtraOptions ? . afterButtonPressed ;
}
QuillIconTheme ? get iconTheme {
return options . iconTheme ? ? baseButtonExtraOptions . iconTheme ;
return options . iconTheme ? ? baseButtonExtraOptions ? . iconTheme ;
}
QuillToolbarBaseButtonOptions get baseButtonExtraOptions {
return context . re quireQ uillToolbarBaseButtonOptions;
QuillToolbarBaseButtonOptions ? get baseButtonExtraOptions {
return context . quillToolbarBaseButtonOptions ;
}
IconData get iconData {
return options . iconData ? ?
baseButtonExtraOptions . iconData ? ?
baseButtonExtraOptions ? . iconData ? ?
( widget . isIncrease
? Icons . format_indent_increase
: Icons . format_indent_decrease ) ;
@ -69,7 +69,7 @@ class QuillToolbarIndentButtonState extends State<QuillToolbarIndentButton> {
String get tooltip {
return options . tooltip ? ?
baseButtonExtraOptions . tooltip ? ?
baseButtonExtraOptions ? . tooltip ? ?
( widget . isIncrease
? context . loc . increaseIndent
: context . loc . decreaseIndent ) ;
@ -82,7 +82,7 @@ class QuillToolbarIndentButtonState extends State<QuillToolbarIndentButton> {
@ override
Widget build ( BuildContext context ) {
final childBuilder =
options . childBuilder ? ? baseButtonExtraOptions . childBuilder ;
options . childBuilder ? ? baseButtonExtraOptions ? . childBuilder ;
if ( childBuilder ! = null ) {
return childBuilder (