apply options.iconTheme for header buttons, fix header button text color (#1657)

pull/1682/head
Michael Allen 1 year ago committed by GitHub
parent 7bd542beb8
commit d23fe603b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_buttons.dart

@ -157,14 +157,7 @@ class QuillToolbarSelectHeaderStyleButtonsState
), ),
child: QuillToolbarIconButton( child: QuillToolbarIconButton(
tooltip: tooltip, tooltip: tooltip,
iconTheme: iconTheme?.copyWith( iconTheme: iconTheme,
iconButtonSelectedData: const IconButtonData(
visualDensity: VisualDensity.compact,
),
iconButtonUnselectedData: const IconButtonData(
visualDensity: VisualDensity.compact,
),
),
isSelected: isSelected, isSelected: isSelected,
onPressed: () => _sharedOnPressed(attribute), onPressed: () => _sharedOnPressed(attribute),
icon: Text( icon: Text(
@ -173,11 +166,9 @@ class QuillToolbarSelectHeaderStyleButtonsState
'attrbuite', 'attrbuite',
)), )),
style: style.copyWith( style: style.copyWith(
// color: isSelected color: isSelected
// ? (iconTheme?.iconSelectedFillColor ?? ? iconTheme?.iconButtonSelectedData?.color
// theme.primaryIconTheme.color) : iconTheme?.iconButtonUnselectedData?.color,
// : (iconTheme?.iconUnselectedFillColor ??
// theme.iconTheme.color),
), ),
), ),
), ),

Loading…
Cancel
Save