CountrySelectorWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CountrySelectorWidget
Constructors
-
CountrySelectorWidget({Key? key, required Function onBuilded, bool withDialCode = false, String? refCountryCode, PreferredSizeWidget? customAppBar, double bottomAppBarHeight = 75, EdgeInsetsGeometry continueBtnPadding = const EdgeInsets.symmetric(vertical: 13.5), SelectedLocale selectedLocale = SelectedLocale.en, bool showSelectedWidget = true, Duration aniDuration = const Duration(seconds: 1), required ValueChanged<
Country> onSelectedCountry, String? appBarText, String? searchText, String? selectedCountryText, String? withoutMatchText, String? continueBtnText, TextStyle textFieldTextStyle = const TextStyle(color: Colors.black87), TextStyle? appBarTextStyle = const TextStyle(fontWeight: FontWeight.bold, color: Colors.black), TextStyle? searchTextStyle, TextStyle? selectedCountryTextStyle = const TextStyle(fontWeight: FontWeight.bold), TextStyle? withoutMatchTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.bold), TextStyle? continueBtnTextStyle = const TextStyle(color: Colors.black, letterSpacing: 1.185), Color focusedBorderColor = Colors.black12, Color selectedCardColor = Colors.amber, Color continueBtnBgColor = Colors.amber, Color continueBtnOverlayColor = Colors.white, BorderRadius textFieldborderRadius = const BorderRadius.all(Radius.circular(18.5)), BorderRadius continueBtnRadius = const BorderRadius.all(Radius.circular(22.5))}) -
const
Properties
- aniDuration → Duration
-
final
- appBarText → String?
-
final
- appBarTextStyle → TextStyle?
-
final
- bottomAppBarHeight → double
-
final
- continueBtnBgColor → Color
-
final
- continueBtnOverlayColor → Color
-
final
- continueBtnPadding → EdgeInsetsGeometry
-
final
- continueBtnRadius → BorderRadius
-
final
- continueBtnText → String?
-
final
- continueBtnTextStyle → TextStyle?
-
final
- customAppBar → PreferredSizeWidget?
-
final
- focusedBorderColor → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onBuilded → Function
-
final
-
onSelectedCountry
→ ValueChanged<
Country> -
final
- refCountryCode → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchText → String?
-
final
- searchTextStyle → TextStyle?
-
final
- selectedCardColor → Color
-
final
- selectedCountryText → String?
-
final
- selectedCountryTextStyle → TextStyle?
-
final
- selectedLocale → SelectedLocale
-
final
- showSelectedWidget → bool
-
final
- textFieldborderRadius → BorderRadius
-
final
- textFieldTextStyle → TextStyle
-
final
- withDialCode → bool
-
final
- withoutMatchText → String?
-
final
- withoutMatchTextStyle → TextStyle?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → CountrySelectorWidgetState -
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}) → 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