CommonConfigurationDropDown constructor

const CommonConfigurationDropDown({
  1. Key? key,
  2. required Widget child,
  3. Widget itemSelectedWidgetIcon = const SizedBox(width: 20, height: 20, child: Icon(Icons.check, size: 16, color: Colors.blue)),
  4. Widget itemUnSelectedWidgetIcon = const SizedBox(width: 20, height: 20, child: SizedBox()),
  5. double dropdownHeight = 160,
  6. double textFieldHeight = 42,
  7. TextOverflow? overflow,
  8. int? maxLines,
  9. String editorPlaceholder = "Select Item",
  10. TextStyle? textEditControllerStyle,
  11. BoxDecoration itemDecoration = const BoxDecoration(color: Colors.blue),
  12. TextStyle? dropdownTextStyle = const TextStyle(color: Colors.black),
  13. 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);