DropDownGridView constructor
const
DropDownGridView({
- Key? key,
- required DropDownController controller,
- required List<
DropDownItem> items, - required int crossAxisCount,
- DropDownGridDataController? dataController,
- int? headerIndex,
- double mainAxisSpacing = 10,
- double crossAxisSpacing = 10,
- DropDownBoxStyle boxStyle = const DropDownBoxStyle(),
- DropDownItemStyle itemStyle = const DropDownItemStyle(activeBackgroundColor: Color(0xFFF5F5F5), activeIconColor: Colors.blue, activeTextStyle: TextStyle(color: Colors.blue)),
- IndexedWidgetBuilder? itemBuilder,
- OnDropDownItemTap? onDropDownItemTap,
- OnDropDownItemChanged? onDropDownItemChanged,
- int? maxMultiChoiceSize,
- OnDropDownItemLimitExceeded? onDropDownItemLimitExceeded,
- Widget? btnWidget,
- Widget? resetWidget,
- Widget? confirmWidget,
- DropDownButtonStyle buttonStyle = const DropDownButtonStyle(),
- OnDropDownItemsReset? onDropDownItemsReset,
- OnDropDownItemsConfirm? onDropDownItemsConfirm,
- OnDropDownHeaderUpdate? onDropDownHeaderUpdate,
- ScrollPhysics? physics,
- 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,
});