DropDownItemStyle class
Drop-down menu item style
Constructors
- DropDownItemStyle.new({double? width, double height = 50, TextStyle textStyle = const TextStyle(fontSize: 14, color: Colors.black), TextStyle activeTextStyle = const TextStyle(fontSize: 14, color: Colors.black), TextStyle highlightTextStyle = const TextStyle(fontSize: 14, color: Colors.black), Widget? icon, Widget? activeIcon, Widget? highlightIcon, double iconSize = 20, double activeIconSize = 20, double highlightIconSize = 20, Color iconColor = Colors.black, Color activeIconColor = Colors.black, Color highlightIconColor = Colors.black, Color backgroundColor = Colors.transparent, Color activeBackgroundColor = Colors.transparent, Color highlightBackgroundColor = Colors.transparent, BorderSide borderSide = BorderSide.none, BorderSide activeBorderSide = BorderSide.none, BorderSide highlightBorderSide = BorderSide.none, BorderRadius borderRadius = BorderRadius.zero, BorderRadius activeBorderRadius = BorderRadius.zero, BorderRadius highlightBorderRadius = BorderRadius.zero, Decoration? decoration, Decoration? activeDecoration, Decoration? highlightDecoration, EdgeInsetsGeometry? margin, EdgeInsetsGeometry padding = EdgeInsets.zero, AlignmentGeometry alignment = Alignment.center, TextAlign? textAlign, bool textExpand = false, IconPosition iconPosition = IconPosition.right, double gap = 0, double elevation = 0, CustomPainter? painter, CustomPainter? activePainter})
-
const
Properties
- activeBackgroundColor → Color
-
The background color of the DropDownItem when it is selected
final
- activeBorderRadius → BorderRadius
-
The corner radius of the DropDownItem when it is selected
final
- activeBorderSide → BorderSide
-
The border of the DropDownItem when it is selected
final
- activeDecoration → Decoration?
-
The decorator of the DropDownItem when DropDownItem is selected
final
- activeIcon → Widget?
-
The icon when DropDownItem is selected
final
- activeIconColor → Color
-
The color of the icon when DropDownItem is selected
final
- activeIconSize → double
-
The icon size when DropDownItem is selected
final
- activePainter → CustomPainter?
-
The painter of the DropDownItem when it is selected
final
- activeTextStyle → TextStyle
-
Text style when DropDownItem is selected
final
- alignment → AlignmentGeometry
-
Alignment of the DropDownItem
final
- backgroundColor → Color
-
The background color of the DropDownItem
final
- borderRadius → BorderRadius
-
The corner radius of the DropDownItem
final
- borderSide → BorderSide
-
The border of the DropDownItem
final
- decoration → Decoration?
-
Decorator for the DropDownItem
final
- elevation → double
-
The elevation of the DropDownItem
final
- gap → double
-
Gap between the icon and the text in the DropDownItem
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the DropDownItem
final
- highlightBackgroundColor → Color
-
The background color of the DropDownItem after it was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- highlightBorderRadius → BorderRadius
-
The corner radius of the DropDownItem after it was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- highlightBorderSide → BorderSide
-
The border of the DropDownItem after it was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- highlightDecoration → Decoration?
-
The decorator of the DropDownItem after it was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- highlightIcon → Widget?
-
The icon after DropDownItem was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- highlightIconColor → Color
-
The color of the icon after DropDownItem was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- highlightIconSize → double
-
The icon size after DropDownItem was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- highlightTextStyle → TextStyle
-
Text style after DropDownItem was selected and one of the DropDownItem in dropdown-menu content must be selected
final
- icon → Widget?
-
The icon of the DropDownItem
final
- iconColor → Color
-
The icon color of the DropDownItem
final
- iconPosition → IconPosition
-
Position of the icon in the DropDownItem
final
- iconSize → double
-
The icon size of the DropDownItem
final
- margin → EdgeInsetsGeometry?
-
Margins of the DropDownItem
final
- padding → EdgeInsetsGeometry
-
Padding of the child items of the DropDownItem
final
- painter → CustomPainter?
-
The painter of the DropDownItem
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textAlign → TextAlign?
-
Text alignment of the DropDownItem
final
- textExpand → bool
-
Whether the text fills the parent component
final
- textStyle → TextStyle
-
Text style of the DropDownItem
final
- width → double?
-
The width of the DropDownItem
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited