DropDownListView constructor
const
DropDownListView({
- Key? key,
- required DropDownController controller,
- required List<
DropDownItem> items, - DropDownListDataController? dataController,
- int? headerIndex,
- DropDownBoxStyle boxStyle = const DropDownBoxStyle(),
- DropDownItemStyle itemStyle = const DropDownItemStyle(activeBackgroundColor: Color(0xFFF5F5F5), activeIcon: Icon(Icons.check, size: 20, color: Colors.blue), activeTextStyle: TextStyle(color: Colors.blue), padding: EdgeInsets.symmetric(horizontal: 16), textExpand: true, alignment: Alignment.centerLeft),
- 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,
- bool dataCopy = true,
Implementation
const DropDownListView({
super.key,
required this.controller,
required this.items,
this.dataController,
this.headerIndex,
this.boxStyle = const DropDownBoxStyle(),
this.itemStyle = const DropDownItemStyle(
activeBackgroundColor: Color(0xFFF5F5F5),
activeIcon: Icon(Icons.check, size: 20, color: Colors.blue),
activeTextStyle: TextStyle(color: Colors.blue),
padding: EdgeInsets.symmetric(horizontal: 16),
textExpand: true,
alignment: Alignment.centerLeft,
),
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,
this.dataCopy = true,
});