FieldStylePicker constructor
FieldStylePicker({
- BottomModalSheetStyle? bottomModalSheetStyle,
- PickerListTileStyle? listTileStyle,
- InputDecoration? decoration,
- Widget? prefixIcon,
- double containerHeight = 50.0,
- EdgeInsets containerPadding = const EdgeInsets.symmetric(horizontal: 13, vertical: 13),
- BorderRadius containerBorderRadius = const BorderRadius.all(Radius.circular(12)),
- NyColor? containerColor,
- TextStyle? selectedValueTextStyle,
- TextStyle? fieldNameTextStyle,
- TextStyle? placeholderTextStyle,
- String? placeholderPrefix,
- IconData dropdownIcon = Icons.arrow_drop_down,
- NyColor? dropdownIconColor,
- double bottomSheetHeightFactor = 0.5,
- BorderRadius bottomSheetBorderRadius = const BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20)),
- EdgeInsets bottomSheetPadding = const EdgeInsets.symmetric(vertical: 20, horizontal: 20),
- NyColor? bottomSheetDividerColor,
- @Deprecated(_pickerLayoutDeprecation) double placeholderGap = 10.0,
- @Deprecated(_pickerLayoutDeprecation) double widthBreakpoint = 200.0,
- @Deprecated(_pickerLayoutDeprecation) MainAxisAlignment? placeholderAlignment,
- Alignment? selectedValueAlignment = Alignment.centerLeft,
- @Deprecated(_pickerLayoutDeprecation) EdgeInsets? selectedValuePadding = const EdgeInsets.only(top: 10),
- double? headerSpacing = 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,
});