CountryPhoneCodePicker class

Inheritance

Constructors

CountryPhoneCodePicker({required CountryController countryController, double height = 45, double width = 80, double flagHeight = 30, double flagWidth = 30, Color backgroundColor = Colors.transparent, double borderRadius = 15, double flagBorderRadius = 5, Color borderColor = Colors.transparent, double borderWidth = 0, EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 5, vertical: 5), TextStyle countryNameTextStyle = const TextStyle(fontSize: 14, color: Colors.black), TextStyle countryPhoneCodeTextStyle = const TextStyle(color: Colors.black, fontSize: 14), bool showFlag = true, bool showName = false, bool showPhoneCode = false, Icon actionIcon = const Icon(Icons.arrow_drop_down_rounded), Color searchSheetBackground = const Color(0xfffafafa), Icon searchBarLeadingIcon = const Icon(Icons.arrow_back_outlined, color: Colors.black), String? searchBarHintText, TextStyle searchBarHintStyle = const TextStyle(), String? searchBarLabelText, TextStyle searchBarLabelStyle = const TextStyle(), String? searchBarHelperText, TextStyle searchBarHelperStyle = const TextStyle(), String? searchBarPrefixText, TextStyle searchBarPrefixStyle = const TextStyle(), Icon searchBarPrefixIcon = const Icon(Icons.search, color: Colors.black), EdgeInsetsGeometry searchBarContentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 5), InputBorder border = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder errorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder disabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedErrorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), Color searchBarCursorColor = Colors.black, double searchBarCursorHeight = 20, double searchBarCursorWidth = 2, TextStyle style = const TextStyle(), String searchBarInitialValue = '', TextInputType keyboardType = TextInputType.text, bool showCursor = true})
CountryPhoneCodePicker.withDefaultSelectedCountry({required CountryController countryController, required Country defaultCountryCode, double height = 45, double width = 80, double flagHeight = 30, double flagWidth = 30, Color backgroundColor = Colors.transparent, double borderRadius = 15, double flagBorderRadius = 5, Color borderColor = Colors.transparent, double borderWidth = 0, EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 5, vertical: 5), TextStyle countryNameTextStyle = const TextStyle(fontSize: 14, color: Colors.black), TextStyle countryPhoneCodeTextStyle = const TextStyle(color: Colors.black, fontSize: 14), bool showFlag = true, bool showName = false, bool showPhoneCode = false, Icon actionIcon = const Icon(Icons.arrow_drop_down_rounded), Color searchSheetBackground = const Color(0xfffafafa), Icon searchBarLeadingIcon = const Icon(Icons.arrow_back_outlined, color: Colors.black), String? searchBarHintText, TextStyle searchBarHintStyle = const TextStyle(), String? searchBarLabelText, TextStyle searchBarLabelStyle = const TextStyle(), String? searchBarHelperText, TextStyle searchBarHelperStyle = const TextStyle(), String? searchBarPrefixText, TextStyle searchBarPrefixStyle = const TextStyle(), Icon searchBarPrefixIcon = const Icon(Icons.search, color: Colors.black), EdgeInsetsGeometry searchBarContentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 5), InputBorder border = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder errorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder disabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedErrorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), Color searchBarCursorColor = Colors.black, double searchBarCursorHeight = 20, double searchBarCursorWidth = 2, TextStyle style = const TextStyle(), String searchBarInitialValue = '', TextInputType keyboardType = TextInputType.text, bool showCursor = true})

Properties

actionIcon Icon
final
backgroundColor Color
final
border InputBorder
getter/setter pair
borderColor Color
final
borderRadius double
final
borderWidth double
final
contentPadding EdgeInsetsGeometry
final
countryController CountryController
getter/setter pair
countryNameTextStyle TextStyle
final
countryPhoneCodeTextStyle TextStyle
final
defaultCountryCode Country
getter/setter pair
disabledBorder InputBorder
getter/setter pair
enabledBorder InputBorder
getter/setter pair
errorBorder InputBorder
getter/setter pair
flagBorderRadius double
final
flagHeight double
final
flagWidth double
final
focusedBorder InputBorder
getter/setter pair
focusedErrorBorder InputBorder
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBarContentPadding EdgeInsetsGeometry
getter/setter pair
searchBarCursorColor Color
getter/setter pair
searchBarCursorHeight double
getter/setter pair
searchBarCursorWidth double
getter/setter pair
searchBarHelperStyle TextStyle
getter/setter pair
searchBarHelperText String?
getter/setter pair
searchBarHintStyle TextStyle
getter/setter pair
searchBarHintText String?
getter/setter pair
searchBarInitialValue String
getter/setter pair
searchBarLabelStyle TextStyle
getter/setter pair
searchBarLabelText String?
getter/setter pair
searchBarLeadingIcon Icon
getter/setter pair
searchBarPrefixIcon Icon
getter/setter pair
searchBarPrefixStyle TextStyle
getter/setter pair
searchBarPrefixText String?
getter/setter pair
searchSheetBackground Color
getter/setter pair
showCursor bool
getter/setter pair
showFlag bool
final
showName bool
final
showPhoneCode bool
final
style TextStyle
getter/setter pair
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CountryPhoneCodePicker>
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