UIDropdownThemeData.config constructor

const UIDropdownThemeData.config({
  1. double? height = 48,
  2. double? iconSize = 16,
  3. Color? overlayBackgroundColor = Colors.white,
  4. Color? iconColor = Colors.black,
  5. Color? buttonBackgroundColor = Colors.black12,
  6. Color? shadowColor = Colors.black12,
  7. TextStyle? textStyle = const TextStyle(fontSize: 12),
  8. TextStyle? hintStyle = const TextStyle(fontSize: 12),
  9. BorderRadius? buttonBorderRadius = const BorderRadius.all(Radius.circular(100)),
  10. BorderRadius? overlayBorderRadius = const BorderRadius.all(Radius.circular(20)),
  11. Border? border = const Border.fromBorderSide(BorderSide(color: Colors.black26, width: 1)),
  12. EdgeInsets? itemPadding = const EdgeInsets.symmetric(horizontal: 12),
  13. EdgeInsets? iconPadding = const EdgeInsets.only(left: 8),
  14. 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),
});