AppAutoDropdown constructor
const
AppAutoDropdown({
- Key? key,
- ScrollController? parentScrollController,
- required void onSelected(),
- required List<
DropItem> items, - AutoDropStyle dropdownStyle = const AutoDropStyle(),
- AutoDropButtonStyle dropdownButtonStyle = const AutoDropButtonStyle(),
- Widget? icon,
- bool hideIcon = false,
- bool enabled = true,
- required String hintText,
- bool isHighLightColor = true,
- Color? bgColorDropDown,
- bool visiblePrefix = false,
- bool isShowBgItem = false,
- String assetFile = '',
- Widget assetWidget = const Offstage(),
- Color? colorItem,
- String? initialValue,
- String label = '',
- TextDropStyle labelDropStyle = const TextDropStyle(),
- TextDropStyle textDropStyle = const TextDropStyle(),
- TextDropStyle hintTextDropStyle = const TextDropStyle(),
- TextDropStyle itemStyle = const TextDropStyle(),
- Color? bgColorItem,
Implementation
const AppAutoDropdown({
super.key,
this.parentScrollController,
required this.onSelected,
required this.items,
this.dropdownStyle = const AutoDropStyle(),
this.dropdownButtonStyle = const AutoDropButtonStyle(),
this.icon,
this.hideIcon = false,
this.enabled = true,
required this.hintText,
this.isHighLightColor = true,
this.bgColorDropDown,
this.visiblePrefix = false,
this.isShowBgItem = false,
this.assetFile = '',
this.assetWidget = const Offstage(),
this.colorItem,
this.initialValue,
this.label = '',
this.labelDropStyle = const TextDropStyle(),
this.textDropStyle = const TextDropStyle(),
this.hintTextDropStyle = const TextDropStyle(),
this.itemStyle = const TextDropStyle(),
this.bgColorItem,
});