FieldStylePicker class

FieldStylePicker is used to define the style for a picker field.

Style configuration for picker fields that display selection options in a modal.

Extends FieldStyle with picker-specific styling options including bottom modal sheet appearance and behavior. Used for fields that present a list of options for user selection.

Inheritance

Constructors

FieldStylePicker({BottomModalSheetStyle? bottomModalSheetStyle, PickerListTileStyle? listTileStyle, double containerHeight = 50.0, EdgeInsets containerPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 4), BorderRadius containerBorderRadius = const BorderRadius.all(Radius.circular(8)), 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, double placeholderGap = 10.0, double widthBreakpoint = 200.0, MainAxisAlignment? placeholderAlignment, Alignment? selectedValueAlignment = Alignment.centerLeft, EdgeInsets? selectedValuePadding = const EdgeInsets.only(top: 10), double? headerSpacing = 5.0, double? footerSpacing = 5.0})

Properties

bottomModalSheetStyle ↔ BottomModalSheetStyle?
getter/setter pair
bottomSheetBorderRadius → BorderRadius
Border radius for the bottom sheet
final
bottomSheetDividerColor → NyColor?
Divider color in the bottom sheet list (light/dark)
final
bottomSheetHeightFactor → double
Height factor for the bottom sheet (fraction of screen height)
final
bottomSheetPadding → EdgeInsets
Padding inside the bottom sheet
final
containerBorderRadius → BorderRadius
Border radius of the picker container
final
containerColor → NyColor?
Background color of the picker container (light/dark)
final
containerHeight → double
Height of the picker container
final
containerPadding → EdgeInsets
Padding inside the picker container
final
Icon displayed in the dropdown
final
Color of the dropdown icon (light/dark)
final
fieldNameTextStyle → TextStyle?
Text style for the field name label
final
footerSpacing ↔ double?
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
headerSpacing ↔ double?
getter/setter pairinherited
listTileStyle → PickerListTileStyle?
Style for individual list tiles in the picker bottom sheet.
final
placeholderAlignment → MainAxisAlignment?
Alignment of the placeholder/selected-value row
final
placeholderGap → double
Gap between placeholder text and dropdown icon
final
placeholderPrefix → String?
Prefix text for the placeholder (default "Select")
final
placeholderTextStyle → TextStyle?
Text style for the placeholder text
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedValueAlignment → Alignment?
Alignment of the selected value text within the picker container.
final
selectedValuePadding → EdgeInsets?
Padding around the selected value text.
final
selectedValueTextStyle → TextStyle?
Text style for the selected value display
final
widthBreakpoint → double
Width breakpoint for switching between compact and full layout
final

Methods

copyWith({BottomModalSheetStyle? bottomModalSheetStyle, PickerListTileStyle? listTileStyle, double? containerHeight, EdgeInsets? containerPadding, BorderRadius? containerBorderRadius, NyColor? containerColor, TextStyle? selectedValueTextStyle, TextStyle? fieldNameTextStyle, TextStyle? placeholderTextStyle, String? placeholderPrefix, IconData? dropdownIcon, NyColor? dropdownIconColor, double? bottomSheetHeightFactor, BorderRadius? bottomSheetBorderRadius, EdgeInsets? bottomSheetPadding, NyColor? bottomSheetDividerColor, double? placeholderGap, double? widthBreakpoint, MainAxisAlignment? placeholderAlignment, Alignment? selectedValueAlignment, EdgeInsets? selectedValuePadding, double? headerSpacing, double? footerSpacing}) → FieldStylePicker
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited