CustomSelector constructor
const
CustomSelector({
- Key? key,
- required Future future,
- Widget? leading,
- required ValueSetter onSelect,
- required String label,
- bool showUpperLabel = true,
- bool showValueOnSide = true,
- double fontSize = 16,
- double valueFontSize = 14,
- double headerFontSize = 18,
- double listItemFontSize = 16,
- required String itemDisplayProperty(
- dynamic
- String itemImageProperty(
- dynamic
- Color? labelColor,
- bool imageHasTint = false,
- Color? headerStartColor,
- Color? headerEndColor,
- Color? primaryColor,
- Color? headerTitleColor,
- Color? backgroundColor,
- Color? bottomsheetBackground,
- Color? borderColor,
- double? borderRadius,
- Color? dividerColor,
- Widget? header,
- VoidCallback? onAdd,
- double marginBottom = SizeConfig.sidePadding,
- dynamic defaultItem,
Implementation
const CustomSelector({
super.key,
required this.future,
this.leading,
required this.onSelect,
required this.label,
this.showUpperLabel = true,
this.showValueOnSide = true,
this.fontSize = 16,
this.valueFontSize = 14,
this.headerFontSize = 18,
this.listItemFontSize = 16,
required this.itemDisplayProperty,
this.itemImageProperty,
this.labelColor, // Now nullable
this.imageHasTint = false,
this.headerStartColor, // Now nullable
this.headerEndColor, // Now nullable
this.primaryColor, // Now nullable
this.headerTitleColor, // Now nullable
this.backgroundColor, // Now nullable
this.bottomsheetBackground, // Now nullable
this.borderColor, // Now nullable
this.borderRadius,
this.dividerColor, // Now nullable
this.header,
this.onAdd,
this.marginBottom = SizeConfig.sidePadding,
this.defaultItem,
});