DropDownGridView constructor

const DropDownGridView({
  1. Key? key,
  2. required DropDownController controller,
  3. required List<DropDownItem> items,
  4. required int crossAxisCount,
  5. DropDownGridDataController? dataController,
  6. int? headerIndex,
  7. double mainAxisSpacing = 10,
  8. double crossAxisSpacing = 10,
  9. DropDownBoxStyle boxStyle = const DropDownBoxStyle(),
  10. DropDownItemStyle itemStyle = const DropDownItemStyle(activeBackgroundColor: Color(0xFFF5F5F5), activeIconColor: Colors.blue, activeTextStyle: TextStyle(color: Colors.blue)),
  11. IndexedWidgetBuilder? itemBuilder,
  12. OnDropDownItemTap? onDropDownItemTap,
  13. OnDropDownItemChanged? onDropDownItemChanged,
  14. int? maxMultiChoiceSize,
  15. OnDropDownItemLimitExceeded? onDropDownItemLimitExceeded,
  16. Widget? btnWidget,
  17. Widget? resetWidget,
  18. Widget? confirmWidget,
  19. DropDownButtonStyle buttonStyle = const DropDownButtonStyle(),
  20. OnDropDownItemsReset? onDropDownItemsReset,
  21. OnDropDownItemsConfirm? onDropDownItemsConfirm,
  22. OnDropDownHeaderUpdate? onDropDownHeaderUpdate,
  23. ScrollPhysics? physics,
  24. bool? shrinkWrap,
})

Implementation

const DropDownGridView({
  super.key,
  required this.controller,
  required this.items,
  required this.crossAxisCount,
  this.dataController,
  this.headerIndex,
  this.mainAxisSpacing = 10,
  this.crossAxisSpacing = 10,
  this.boxStyle = const DropDownBoxStyle(),
  this.itemStyle = const DropDownItemStyle(
    activeBackgroundColor: Color(0xFFF5F5F5),
    activeIconColor: Colors.blue,
    activeTextStyle: TextStyle(color: Colors.blue),
  ),
  this.itemBuilder,
  this.onDropDownItemTap,
  this.onDropDownItemChanged,
  this.maxMultiChoiceSize,
  this.onDropDownItemLimitExceeded,
  this.btnWidget,
  this.resetWidget,
  this.confirmWidget,
  this.buttonStyle = const DropDownButtonStyle(),
  this.onDropDownItemsReset,
  this.onDropDownItemsConfirm,
  this.onDropDownHeaderUpdate,
  this.physics,
  this.shrinkWrap,
});