1- import 'package:flutter/material.dart' show PopupMenuEntry;
21import 'package:flutter/widgets.dart'
3- show
4- Color,
5- EdgeInsets,
6- EdgeInsetsGeometry,
7- IconData,
8- TextOverflow,
9- TextStyle,
10- ValueChanged,
11- VoidCallback;
2+ show IconData, TextStyle, ValueChanged, VoidCallback;
123
134import '../../../../widgets/toolbar/base_toolbar.dart' ;
145import '../../../documents/attribute.dart' ;
@@ -38,31 +29,14 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions
3829 this .iconButtonFactor,
3930 this .textStyle,
4031 super .iconData,
41- this .fillColor,
42- this .hoverElevation = 1 ,
43- this .highlightElevation = 1 ,
44- this .onSelected,
4532 this .attributes,
46- this .padding,
47- this .style,
48- this .width,
49- this .labelOverflow = TextOverflow .visible,
50- this .itemHeight,
51- this .itemPadding,
52- this .defaultItemColor,
53- this .renderItemTextStyle = false ,
5433 });
5534
5635 /// By default we will the toolbar axis from [QuillSimpleToolbarConfigurations]
5736 final double ? iconSize;
5837 final double ? iconButtonFactor;
5938 final TextStyle ? textStyle;
6039
61- final Color ? fillColor;
62- final double hoverElevation;
63- final double highlightElevation;
64- final ValueChanged <String >? onSelected;
65-
6640 /// Header attributes, defaults to:
6741 /// ```dart
6842 /// [
@@ -76,59 +50,26 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions
7650 /// ]
7751 /// ```
7852 final List <Attribute <int >>? attributes;
79- final EdgeInsetsGeometry ? padding;
80- final TextStyle ? style;
81- final double ? width;
82- final TextOverflow labelOverflow;
83- final double ? itemHeight;
84- final EdgeInsets ? itemPadding;
85- final Color ? defaultItemColor;
86- final bool renderItemTextStyle;
8753
8854 QuillToolbarSelectHeaderStyleDropdownButtonOptions copyWith ({
89- Color ? fillColor,
90- double ? hoverElevation,
91- double ? highlightElevation,
92- List <PopupMenuEntry <String >>? items,
9355 ValueChanged <String >? onSelected,
9456 List <Attribute <int >>? attributes,
95- EdgeInsetsGeometry ? padding,
9657 TextStyle ? style,
97- double ? width,
98- TextOverflow ? labelOverflow,
99- bool ? renderFontFamilies,
100- bool ? overrideTooltipByFontFamily,
101- double ? itemHeight,
102- EdgeInsets ? itemPadding,
103- Color ? defaultItemColor,
10458 double ? iconSize,
10559 double ? iconButtonFactor,
10660 IconData ? iconData,
10761 VoidCallback ? afterButtonPressed,
10862 String ? tooltip,
10963 QuillIconTheme ? iconTheme,
110- bool ? renderItemTextStyle,
11164 }) {
11265 return QuillToolbarSelectHeaderStyleDropdownButtonOptions (
11366 attributes: attributes ?? this .attributes,
11467 iconData: iconData ?? this .iconData,
11568 afterButtonPressed: afterButtonPressed ?? this .afterButtonPressed,
11669 tooltip: tooltip ?? this .tooltip,
11770 iconTheme: iconTheme ?? this .iconTheme,
118- onSelected: onSelected ?? this .onSelected,
119- padding: padding ?? this .padding,
120- style: style ?? this .style,
121- width: width ?? this .width,
122- labelOverflow: labelOverflow ?? this .labelOverflow,
123- itemHeight: itemHeight ?? this .itemHeight,
124- itemPadding: itemPadding ?? this .itemPadding,
125- defaultItemColor: defaultItemColor ?? this .defaultItemColor,
12671 iconSize: iconSize ?? this .iconSize,
12772 iconButtonFactor: iconButtonFactor ?? this .iconButtonFactor,
128- fillColor: fillColor ?? this .fillColor,
129- hoverElevation: hoverElevation ?? this .hoverElevation,
130- highlightElevation: highlightElevation ?? this .highlightElevation,
131- renderItemTextStyle: renderItemTextStyle ?? this .renderItemTextStyle,
13273 );
13374 }
13475}
0 commit comments