UIDropdownMenuThemeData.config constructor

const UIDropdownMenuThemeData.config({
  1. Color? backgroundColor = Colors.white,
  2. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8)),
  3. BoxShadow? boxShadow = const BoxShadow(color: Colors.black12, blurRadius: 15),
  4. EdgeInsets? actionPadding = const EdgeInsets.only(left: 12, right: 24, top: 12, bottom: 12),
  5. double? actionSpacing = 8,
  6. double? iconSize = 20,
  7. 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),
});