CommonConfigurationDropDown constructor
const
CommonConfigurationDropDown({
- Key? key,
- required Widget child,
- Widget itemSelectedWidgetIcon = const SizedBox(width: 20, height: 20, child: Icon(Icons.check, size: 16, color: Colors.blue)),
- Widget itemUnSelectedWidgetIcon = const SizedBox(width: 20, height: 20, child: SizedBox()),
- double dropdownHeight = 160,
- double textFieldHeight = 42,
- TextOverflow? overflow,
- int? maxLines,
- String editorPlaceholder = "Select Item",
- TextStyle? textEditControllerStyle,
- BoxDecoration itemDecoration = const BoxDecoration(color: Colors.blue),
- TextStyle? dropdownTextStyle = const TextStyle(color: Colors.black),
- EdgeInsets listViewItemMargin = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
Implementation
const CommonConfigurationDropDown({
Key? key,
required this.child,
this.itemSelectedWidgetIcon = const SizedBox(
width: 20,
height: 20,
child: Icon(Icons.check, size: 16, color: Colors.blue),
),
this.itemUnSelectedWidgetIcon =
const SizedBox(width: 20, height: 20, child: SizedBox()),
this.dropdownHeight = 160,
this.textFieldHeight = 42,
this.overflow,
this.maxLines,
this.editorPlaceholder = "Select Item",
this.textEditControllerStyle,
this.itemDecoration = const BoxDecoration(color: Colors.blue),
this.dropdownTextStyle = const TextStyle(color: Colors.black),
this.listViewItemMargin =
const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
}) : super(key: key, child: child);