|
|
|
@ -50,17 +50,10 @@ class QuillToolbarFontFamilyButtonOptions extends QuillToolbarBaseButtonOptions< |
|
|
|
|
this.itemPadding, |
|
|
|
|
this.defaultItemColor = Colors.red, |
|
|
|
|
this.renderFontFamilies = true, |
|
|
|
|
this.highlightElevation = 1, |
|
|
|
|
this.hoverElevation = 1, |
|
|
|
|
this.fillColor, |
|
|
|
|
this.iconSize, |
|
|
|
|
this.iconButtonFactor, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
final Color? fillColor; |
|
|
|
|
final double hoverElevation; |
|
|
|
|
final double highlightElevation; |
|
|
|
|
|
|
|
|
|
/// By default it will be [fontFamilyValues] from [QuillSimpleToolbarConfigurations] |
|
|
|
|
/// You can override this if you want |
|
|
|
|
final Map<String, String>? rawItemsMap; |
|
|
|
@ -83,9 +76,6 @@ class QuillToolbarFontFamilyButtonOptions extends QuillToolbarBaseButtonOptions< |
|
|
|
|
final double? iconButtonFactor; |
|
|
|
|
|
|
|
|
|
QuillToolbarFontFamilyButtonOptions copyWith({ |
|
|
|
|
Color? fillColor, |
|
|
|
|
double? hoverElevation, |
|
|
|
|
double? highlightElevation, |
|
|
|
|
List<PopupMenuEntry<String>>? items, |
|
|
|
|
Map<String, String>? rawItemsMap, |
|
|
|
|
ValueChanged<String>? onSelected, |
|
|
|
@ -131,9 +121,6 @@ class QuillToolbarFontFamilyButtonOptions extends QuillToolbarBaseButtonOptions< |
|
|
|
|
defaultItemColor: defaultItemColor ?? this.defaultItemColor, |
|
|
|
|
iconSize: iconSize ?? this.iconSize, |
|
|
|
|
iconButtonFactor: iconButtonFactor ?? this.iconButtonFactor, |
|
|
|
|
fillColor: fillColor ?? this.fillColor, |
|
|
|
|
hoverElevation: hoverElevation ?? this.hoverElevation, |
|
|
|
|
highlightElevation: highlightElevation ?? this.highlightElevation, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|