UIDropdownMenuThemeData.config constructor
const
UIDropdownMenuThemeData.config({
- Color? backgroundColor = Colors.white,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8)),
- BoxShadow? boxShadow = const BoxShadow(color: Colors.black12, blurRadius: 15),
- EdgeInsets? actionPadding = const EdgeInsets.only(left: 12, right: 24, top: 12, bottom: 12),
- double? actionSpacing = 8,
- double? iconSize = 20,
- TextStyle? textStyle = const TextStyle(fontSize: 12),
Implementation
const UIDropdownMenuThemeData.config({
this.backgroundColor = Colors.white,
this.borderRadius = const BorderRadius.all(Radius.circular(8)),
this.boxShadow = const BoxShadow(
color: Colors.black12,
blurRadius: 15,
),
this.actionPadding = const EdgeInsets.only(
left: 12,
right: 24,
top: 12,
bottom: 12,
),
this.actionSpacing = 8,
this.iconSize = 20,
this.textStyle = const TextStyle(fontSize: 12),
});