|
|
|
@ -89,8 +89,7 @@ class QuillToolbarSelectHeaderStyleButtonsState |
|
|
|
|
return options.axis ?? |
|
|
|
|
context.quillSimpleToolbarConfigurations?.axis ?? |
|
|
|
|
context.quillToolbarConfigurations?.axis ?? |
|
|
|
|
(throw ArgumentError( |
|
|
|
|
'There is no default value for the Axis of the toolbar')); |
|
|
|
|
Axis.horizontal; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void _sharedOnPressed(Attribute attribute) { |
|
|
|
@ -130,15 +129,7 @@ class QuillToolbarSelectHeaderStyleButtonsState |
|
|
|
|
final children = _attrbuites.map((attribute) { |
|
|
|
|
if (childBuilder != null) { |
|
|
|
|
return childBuilder( |
|
|
|
|
QuillToolbarSelectHeaderStyleButtonsOptions( |
|
|
|
|
afterButtonPressed: afterButtonPressed, |
|
|
|
|
attributes: _attrbuites, |
|
|
|
|
axis: axis, |
|
|
|
|
iconSize: iconSize, |
|
|
|
|
iconButtonFactor: iconButtonFactor, |
|
|
|
|
iconTheme: iconTheme, |
|
|
|
|
tooltip: tooltip, |
|
|
|
|
), |
|
|
|
|
options, |
|
|
|
|
QuillToolbarSelectHeaderStyleButtonsExtraOptions( |
|
|
|
|
controller: controller, |
|
|
|
|
context: context, |
|
|
|
@ -146,15 +137,10 @@ class QuillToolbarSelectHeaderStyleButtonsState |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
// final theme = Theme.of(context); |
|
|
|
|
|
|
|
|
|
final isSelected = _selectedAttribute == attribute; |
|
|
|
|
return Padding( |
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: !kIsWeb ? 1.0 : 5.0), |
|
|
|
|
child: ConstrainedBox( |
|
|
|
|
constraints: BoxConstraints.tightFor( |
|
|
|
|
width: iconSize * iconButtonFactor, |
|
|
|
|
height: iconSize * iconButtonFactor, |
|
|
|
|
), |
|
|
|
|
child: QuillToolbarIconButton( |
|
|
|
|
tooltip: tooltip, |
|
|
|
|
iconTheme: iconTheme, |
|
|
|
@ -172,7 +158,6 @@ class QuillToolbarSelectHeaderStyleButtonsState |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}).toList(); |
|
|
|
|
|
|
|
|
|