ArisCountrySelector class

main widget @author Aris Hu created at 2020-12-14

Inheritance

Constructors

ArisCountrySelector({Key key, @required String listPageTitle, @required String listPageCancelButtonText, @required dynamic onSelected(ArisCountryParams), bool titleCentered, String listPageSearchHint = '', bool alignLeft = true, TextStyle textStyle, TextOverflow textOverflow = TextOverflow.clip, EdgeInsetsGeometry padding = const EdgeInsets.all(0.0), String initialSelection, List<String> favorite = const [], Locale locale, bool showCountryAndCode = true, bool showCountryOnly = false, bool enableBackToTop = true, TextStyle floatingButtonStyle = const TextStyle(color: Colors.white, fontSize: 28.0), @required AppBarTheme listPageAppBarTheme, @required TextTheme listPageTextTheme, @required TextTheme listPageIndexBarTheme, Color listBodyBackground = Colors.white})

Properties

alignLeft bool
文本是否左对齐
final
enableBackToTop bool
whether or not show to top button
final
favorite List<String>
热门国家和地区
final
floatingButtonStyle TextStyle
color of floating action button
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
initialSelection String
初始值, 可以是国家代码,国家名称或国家手机区号, 'CN' or '中国' or '+86'
final
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
listBodyBackground Color
theme of list page body
final
listPageAppBarTheme AppBarTheme
appbar theme of list page
final
listPageCancelButtonText String
the text of cancel page in list page
final
listPageIndexBarTheme TextTheme
index bar theme
final
listPageSearchHint String
the hint text of search
final
listPageTextTheme TextTheme
text theme of list page
final
listPageTitle String
the title of the list page
final
locale Locale
选中的地区
final
onSelected → dynamic Function(ArisCountryParams)
callback when user back from list page
final
padding EdgeInsetsGeometry
the padding of button
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
showCountryAndCode bool
是否同时显示国家与地区代码
final
showCountryOnly bool
是否只显示国家
final
textOverflow TextOverflow
the text style when text overflows
final
textStyle TextStyle
the button text style
final
titleCentered bool
use center title
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ArisCountrySelectorState
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtualinherited