AppAutoDropdown constructor

const AppAutoDropdown({
  1. Key? key,
  2. ScrollController? parentScrollController,
  3. required void onSelected(
    1. DropItem
    ),
  4. required List<DropItem> items,
  5. AutoDropStyle dropdownStyle = const AutoDropStyle(),
  6. AutoDropButtonStyle dropdownButtonStyle = const AutoDropButtonStyle(),
  7. Widget? icon,
  8. bool hideIcon = false,
  9. bool enabled = true,
  10. required String hintText,
  11. bool isHighLightColor = true,
  12. Color? bgColorDropDown,
  13. bool visiblePrefix = false,
  14. bool isShowBgItem = false,
  15. String assetFile = '',
  16. Widget assetWidget = const Offstage(),
  17. Color? colorItem,
  18. String? initialValue,
  19. String label = '',
  20. TextDropStyle labelDropStyle = const TextDropStyle(),
  21. TextDropStyle textDropStyle = const TextDropStyle(),
  22. TextDropStyle hintTextDropStyle = const TextDropStyle(),
  23. TextDropStyle itemStyle = const TextDropStyle(),
  24. 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,
});