FieldStylePicker constructor

FieldStylePicker({
  1. BottomModalSheetStyle? bottomModalSheetStyle,
  2. PickerListTileStyle? listTileStyle,
  3. InputDecoration? decoration,
  4. Widget? prefixIcon,
  5. double containerHeight = 50.0,
  6. EdgeInsets containerPadding = const EdgeInsets.symmetric(horizontal: 13, vertical: 13),
  7. BorderRadius containerBorderRadius = const BorderRadius.all(Radius.circular(12)),
  8. NyColor? containerColor,
  9. TextStyle? selectedValueTextStyle,
  10. TextStyle? fieldNameTextStyle,
  11. TextStyle? placeholderTextStyle,
  12. String? placeholderPrefix,
  13. IconData dropdownIcon = Icons.arrow_drop_down,
  14. NyColor? dropdownIconColor,
  15. double bottomSheetHeightFactor = 0.5,
  16. BorderRadius bottomSheetBorderRadius = const BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20)),
  17. EdgeInsets bottomSheetPadding = const EdgeInsets.symmetric(vertical: 20, horizontal: 20),
  18. NyColor? bottomSheetDividerColor,
  19. @Deprecated(_pickerLayoutDeprecation) double placeholderGap = 10.0,
  20. @Deprecated(_pickerLayoutDeprecation) double widthBreakpoint = 200.0,
  21. @Deprecated(_pickerLayoutDeprecation) MainAxisAlignment? placeholderAlignment,
  22. Alignment? selectedValueAlignment = Alignment.centerLeft,
  23. @Deprecated(_pickerLayoutDeprecation) EdgeInsets? selectedValuePadding = const EdgeInsets.only(top: 10),
  24. double? headerSpacing = 5.0,
  25. double? footerSpacing = 5.0,
})

Implementation

FieldStylePicker({
  this.bottomModalSheetStyle,
  this.listTileStyle,
  this.decoration,
  this.prefixIcon,
  this.containerHeight = 50.0,
  this.containerPadding = const EdgeInsets.symmetric(
    horizontal: 13,
    vertical: 13,
  ),
  this.containerBorderRadius = const BorderRadius.all(Radius.circular(12)),
  this.containerColor,
  this.selectedValueTextStyle,
  this.fieldNameTextStyle,
  this.placeholderTextStyle,
  this.placeholderPrefix,
  this.dropdownIcon = Icons.arrow_drop_down,
  this.dropdownIconColor,
  this.bottomSheetHeightFactor = 0.5,
  this.bottomSheetBorderRadius = const BorderRadius.only(
    topLeft: Radius.circular(20),
    topRight: Radius.circular(20),
  ),
  this.bottomSheetPadding = const EdgeInsets.symmetric(
    vertical: 20,
    horizontal: 20,
  ),
  this.bottomSheetDividerColor,
  @Deprecated(_pickerLayoutDeprecation) this.placeholderGap = 10.0,
  @Deprecated(_pickerLayoutDeprecation) this.widthBreakpoint = 200.0,
  @Deprecated(_pickerLayoutDeprecation) this.placeholderAlignment,
  this.selectedValueAlignment = Alignment.centerLeft,
  @Deprecated(_pickerLayoutDeprecation)
  this.selectedValuePadding = const EdgeInsets.only(top: 10),
  super.headerSpacing,
  super.footerSpacing,
});