FlagSelector class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlagSelector
Constructors
-
FlagSelector({Key? key, FlagSelectorOptionType flagSelectorOptionType = FlagSelectorOptionType.modalBottomSheet, String flagSelectorLanguageCode = 'en', List<
Country> flagSelectorCountries = defaultCountries, String? flagSelectorInitialCountry, ValueChanged<Country> ? onFlagSelectorCountryChanged, EdgeInsetsGeometry? flagSelectorPadding, BoxDecoration? flagSelectorDecoration, double flagSelectorGap = 8.0, double? flagSelectorWidth, double? flagSelectorHeight, Color? flagSelectorBackgroundColor, Clip? flagSelectorClipBehavior, BoxConstraints? flagSelectorConstraints, Decoration? flagSelectorForegroundDecoration, Matrix4? flagSelectorTransform, AlignmentGeometry? flagSelectorTransformAlignment, EdgeInsetsGeometry? flagSelectorMargin, double flagSelectorFlagWidth = 30, double flagSelectorFlagHeight = 20, Widget flagSelectorFlagBuilder(BuildContext, Country)?, TextStyle? flagSelectorTextStyle, String flagSelectorCountryNameBuilder(Country)?, Widget? flagSelectorDropdownIcon, double flagSelectorIconSize = 24, Color? flagSelectorIconColor, ModalPickerBuilder? flagSelectorModalBuilder, CountryPickerStyle? flagSelectorPickerStyle, bool flagSelectorShowModalTitle = true, String? flagSelectorModalTitle = 'Select Country', TextStyle? flagSelectorModalTitleStyle, EdgeInsetsGeometry? flagSelectorModalTitlePadding, double flagSelectorModalHeightFactor = 0.7, CountryItemBuilder? flagSelectorCountryItemBuilder, EdgeInsetsGeometry? flagSelectorCountryItemPadding, double? flagSelectorCountryItemHeight, Color? flagSelectorCountryItemColor, Color? flagSelectorSelectedCountryItemColor, SearchInputBuilder? flagSelectorSearchBuilder, InputDecoration? flagSelectorSearchDecoration, TextStyle? flagSelectorSearchTextStyle, String? flagSelectorSearchHintText = 'Search countries...', EdgeInsetsGeometry? flagSelectorSearchPadding, bool flagSelectorShowSearch = true, Color? flagSelectorSearchContainerColor, BorderRadius? flagSelectorSearchContainerBorderRadius, BoxBorder? flagSelectorSearchContainerBorder, List<BoxShadow> ? flagSelectorSearchContainerShadow, EdgeInsetsGeometry? flagSelectorSearchContainerMargin, EdgeInsetsGeometry? flagSelectorSearchContainerPadding, EdgeInsetsGeometry? flagSelectorSearchInputPadding, double? flagSelectorSearchContainerWidth, double? flagSelectorSearchContainerHeight, BoxConstraints? flagSelectorSearchContainerConstraints, bool? flagSearchEnabled}) -
const
Properties
- flagSearchEnabled → bool?
-
final
- flagSelectorBackgroundColor → Color?
-
final
- flagSelectorClipBehavior → Clip?
-
final
- flagSelectorConstraints → BoxConstraints?
-
final
-
flagSelectorCountries
→ List<
Country> -
final
- flagSelectorCountryItemBuilder → CountryItemBuilder?
-
Country list item properties
final
- flagSelectorCountryItemColor → Color?
-
final
- flagSelectorCountryItemHeight → double?
-
final
- flagSelectorCountryItemPadding → EdgeInsetsGeometry?
-
final
- flagSelectorCountryNameBuilder → String Function(Country)?
-
final
- flagSelectorDecoration → BoxDecoration?
-
final
- flagSelectorDropdownIcon → Widget?
-
Dropdown icon properties
final
- flagSelectorFlagBuilder → Widget Function(BuildContext, Country)?
-
final
- flagSelectorFlagHeight → double
-
final
- flagSelectorFlagWidth → double
-
Flag display properties
final
- flagSelectorForegroundDecoration → Decoration?
-
final
- flagSelectorGap → double
-
final
- flagSelectorHeight → double?
-
final
- flagSelectorIconColor → Color?
-
final
- flagSelectorIconSize → double
-
final
- flagSelectorInitialCountry → String?
-
final
- flagSelectorLanguageCode → String
-
Core functionality properties
final
- flagSelectorMargin → EdgeInsetsGeometry?
-
final
- flagSelectorModalBuilder → ModalPickerBuilder?
-
Modal customization
final
- flagSelectorModalHeightFactor → double
-
final
- flagSelectorModalTitle → String?
-
final
- flagSelectorModalTitlePadding → EdgeInsetsGeometry?
-
final
- flagSelectorModalTitleStyle → TextStyle?
-
final
- flagSelectorOptionType → FlagSelectorOptionType
-
final
- flagSelectorPadding → EdgeInsetsGeometry?
-
Main container styling
final
- flagSelectorPickerStyle → CountryPickerStyle?
-
final
- flagSelectorSearchBuilder → SearchInputBuilder?
-
Search input customization
final
- flagSelectorSearchContainerBorder → BoxBorder?
-
final
- flagSelectorSearchContainerBorderRadius → BorderRadius?
-
final
- flagSelectorSearchContainerColor → Color?
-
Search container styling
final
- flagSelectorSearchContainerConstraints → BoxConstraints?
-
final
- flagSelectorSearchContainerHeight → double?
-
final
- flagSelectorSearchContainerMargin → EdgeInsetsGeometry?
-
final
- flagSelectorSearchContainerPadding → EdgeInsetsGeometry?
-
final
-
flagSelectorSearchContainerShadow
→ List<
BoxShadow> ? -
final
- flagSelectorSearchContainerWidth → double?
-
final
- flagSelectorSearchDecoration → InputDecoration?
-
final
- flagSelectorSearchHintText → String?
-
final
- flagSelectorSearchInputPadding → EdgeInsetsGeometry?
-
final
- flagSelectorSearchPadding → EdgeInsetsGeometry?
-
final
- flagSelectorSearchTextStyle → TextStyle?
-
final
- flagSelectorSelectedCountryItemColor → Color?
-
final
- flagSelectorShowModalTitle → bool
-
Modal header properties
final
- flagSelectorShowSearch → bool
-
final
- flagSelectorTextStyle → TextStyle?
-
Text display properties
final
- flagSelectorTransform → Matrix4?
-
final
- flagSelectorTransformAlignment → AlignmentGeometry?
-
final
- flagSelectorWidth → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onFlagSelectorCountryChanged
→ ValueChanged<
Country> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FlagSelector> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited