UIDropdownThemeData.config constructor
const
UIDropdownThemeData.config({
- double? height = 48,
- double? iconSize = 16,
- Color? overlayBackgroundColor = Colors.white,
- Color? iconColor = Colors.black,
- Color? buttonBackgroundColor = Colors.black12,
- Color? shadowColor = Colors.black12,
- TextStyle? textStyle = const TextStyle(fontSize: 12),
- TextStyle? hintStyle = const TextStyle(fontSize: 12),
- BorderRadius? buttonBorderRadius = const BorderRadius.all(Radius.circular(100)),
- BorderRadius? overlayBorderRadius = const BorderRadius.all(Radius.circular(20)),
- Border? border = const Border.fromBorderSide(BorderSide(color: Colors.black26, width: 1)),
- EdgeInsets? itemPadding = const EdgeInsets.symmetric(horizontal: 12),
- EdgeInsets? iconPadding = const EdgeInsets.only(left: 8),
- EdgeInsets? buttonPadding = const EdgeInsets.symmetric(horizontal: 12),
Implementation
const UIDropdownThemeData.config({
this.height = 48,
this.iconSize = 16,
this.overlayBackgroundColor = Colors.white,
this.iconColor = Colors.black,
this.buttonBackgroundColor = Colors.black12,
this.shadowColor = Colors.black12,
this.textStyle = const TextStyle(fontSize: 12),
this.hintStyle = const TextStyle(fontSize: 12),
this.buttonBorderRadius = const BorderRadius.all(Radius.circular(100)),
this.overlayBorderRadius = const BorderRadius.all(Radius.circular(20)),
this.border = const Border.fromBorderSide(
BorderSide(
color: Colors.black26,
width: 1,
),
),
this.itemPadding = const EdgeInsets.symmetric(horizontal: 12),
this.iconPadding = const EdgeInsets.only(left: 8),
this.buttonPadding = const EdgeInsets.symmetric(horizontal: 12),
});