DropDownItemStyle constructor
const
DropDownItemStyle({
- 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,
Implementation
const DropDownItemStyle({
this.width,
this.height = 50,
this.textStyle = const TextStyle(fontSize: 14, color: Colors.black),
this.activeTextStyle = const TextStyle(fontSize: 14, color: Colors.black),
this.highlightTextStyle =
const TextStyle(fontSize: 14, color: Colors.black),
this.icon,
this.activeIcon,
this.highlightIcon,
this.iconSize = 20,
this.activeIconSize = 20,
this.highlightIconSize = 20,
this.iconColor = Colors.black,
this.activeIconColor = Colors.black,
this.highlightIconColor = Colors.black,
this.backgroundColor = Colors.transparent,
this.activeBackgroundColor = Colors.transparent,
this.highlightBackgroundColor = Colors.transparent,
this.borderSide = BorderSide.none,
this.activeBorderSide = BorderSide.none,
this.highlightBorderSide = BorderSide.none,
this.borderRadius = BorderRadius.zero,
this.activeBorderRadius = BorderRadius.zero,
this.highlightBorderRadius = BorderRadius.zero,
this.decoration,
this.activeDecoration,
this.highlightDecoration,
this.margin,
this.padding = EdgeInsets.zero,
this.alignment = Alignment.center,
this.textAlign,
this.textExpand = false,
this.iconPosition = IconPosition.right,
this.gap = 0,
this.elevation = 0,
this.painter,
this.activePainter,
});