DropdownInput constructor

const DropdownInput({
  1. Key? key,
  2. Widget? title,
  3. EdgeInsetsGeometry? childrenPadding = const EdgeInsets.all(10),
  4. EdgeInsetsGeometry? childrenMargin = const EdgeInsets.all(10),
  5. BoxDecoration? childrenBoxDecoration,
  6. double maxHeight = 100.0,
  7. double itemHeight = 50.0,
  8. required OnSelected onItemSelected,
  9. double inputWidth = 150,
  10. String hintText = "Search",
  11. TextAlign? textAlign,
  12. ValueChanged<String>? onChanged,
  13. InputDecoration? inputDecoration,
  14. required TextEditingController textController,
  15. required List<Map<String, dynamic>> optionsList,
  16. required WidgetBuilder itemWidget,
})

Implementation

const DropdownInput(
    {super.key,
    this.title,
    this.childrenPadding = const EdgeInsets.all(10),
    this.childrenMargin = const EdgeInsets.all(10),
    this.childrenBoxDecoration,
    this.maxHeight = 100.0,
    this.itemHeight = 50.0,
    required this.onItemSelected,
    this.inputWidth = 150,
    this.hintText = "Search",
    this.textAlign,
    this.onChanged,
    this.inputDecoration,
    required this.textController,
    required this.optionsList,
    required this.itemWidget});