From 41b2483f90eb815431f9bbccf62f4e8354b6ebf7 Mon Sep 17 00:00:00 2001 From: Ellet Date: Sat, 16 Dec 2023 23:47:19 +0300 Subject: [PATCH] Remove unused properties in the new select header dropdown button --- ..._style_dropdown_button_configurations.dart | 61 +------------------ 1 file changed, 1 insertion(+), 60 deletions(-) diff --git a/lib/src/models/config/toolbar/buttons/select_header_style_dropdown_button_configurations.dart b/lib/src/models/config/toolbar/buttons/select_header_style_dropdown_button_configurations.dart index 8cc6659e..8aafcc78 100644 --- a/lib/src/models/config/toolbar/buttons/select_header_style_dropdown_button_configurations.dart +++ b/lib/src/models/config/toolbar/buttons/select_header_style_dropdown_button_configurations.dart @@ -1,14 +1,5 @@ -import 'package:flutter/material.dart' show PopupMenuEntry; import 'package:flutter/widgets.dart' - show - Color, - EdgeInsets, - EdgeInsetsGeometry, - IconData, - TextOverflow, - TextStyle, - ValueChanged, - VoidCallback; + show IconData, TextStyle, ValueChanged, VoidCallback; import '../../../../widgets/toolbar/base_toolbar.dart'; import '../../../documents/attribute.dart'; @@ -38,19 +29,7 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions this.iconButtonFactor, this.textStyle, super.iconData, - this.fillColor, - this.hoverElevation = 1, - this.highlightElevation = 1, - this.onSelected, this.attributes, - this.padding, - this.style, - this.width, - this.labelOverflow = TextOverflow.visible, - this.itemHeight, - this.itemPadding, - this.defaultItemColor, - this.renderItemTextStyle = false, }); /// By default we will the toolbar axis from [QuillSimpleToolbarConfigurations] @@ -58,11 +37,6 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions final double? iconButtonFactor; final TextStyle? textStyle; - final Color? fillColor; - final double hoverElevation; - final double highlightElevation; - final ValueChanged? onSelected; - /// Header attributes, defaults to: /// ```dart /// [ @@ -76,38 +50,17 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions /// ] /// ``` final List>? attributes; - final EdgeInsetsGeometry? padding; - final TextStyle? style; - final double? width; - final TextOverflow labelOverflow; - final double? itemHeight; - final EdgeInsets? itemPadding; - final Color? defaultItemColor; - final bool renderItemTextStyle; QuillToolbarSelectHeaderStyleDropdownButtonOptions copyWith({ - Color? fillColor, - double? hoverElevation, - double? highlightElevation, - List>? items, ValueChanged? onSelected, List>? attributes, - EdgeInsetsGeometry? padding, TextStyle? style, - double? width, - TextOverflow? labelOverflow, - bool? renderFontFamilies, - bool? overrideTooltipByFontFamily, - double? itemHeight, - EdgeInsets? itemPadding, - Color? defaultItemColor, double? iconSize, double? iconButtonFactor, IconData? iconData, VoidCallback? afterButtonPressed, String? tooltip, QuillIconTheme? iconTheme, - bool? renderItemTextStyle, }) { return QuillToolbarSelectHeaderStyleDropdownButtonOptions( attributes: attributes ?? this.attributes, @@ -115,20 +68,8 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions afterButtonPressed: afterButtonPressed ?? this.afterButtonPressed, tooltip: tooltip ?? this.tooltip, iconTheme: iconTheme ?? this.iconTheme, - onSelected: onSelected ?? this.onSelected, - padding: padding ?? this.padding, - style: style ?? this.style, - width: width ?? this.width, - labelOverflow: labelOverflow ?? this.labelOverflow, - itemHeight: itemHeight ?? this.itemHeight, - itemPadding: itemPadding ?? this.itemPadding, - defaultItemColor: defaultItemColor ?? this.defaultItemColor, iconSize: iconSize ?? this.iconSize, iconButtonFactor: iconButtonFactor ?? this.iconButtonFactor, - fillColor: fillColor ?? this.fillColor, - hoverElevation: hoverElevation ?? this.hoverElevation, - highlightElevation: highlightElevation ?? this.highlightElevation, - renderItemTextStyle: renderItemTextStyle ?? this.renderItemTextStyle, ); } }