CityPickerWidget class
省市区选择器
从服务器获取数据
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CityPickerWidget
Constructors
-
CityPickerWidget({double? height, double? titleHeight, double? corner, double? paddingLeft, Widget? titleWidget, String? selectText, Widget? closeWidget, double? tabHeight, bool? showTabIndicator, Color? tabIndicatorColor, double? tabIndicatorHeight, double? labelTextSize, Color? selectedLabelColor, Color? unselectedLabelColor, double? itemHeadHeight, Color? itemHeadBackgroundColor, Color? itemHeadLineColor, double? itemHeadLineHeight, TextStyle? itemHeadTextStyle, double? itemHeight, double? indexBarWidth, double? indexBarItemHeight, Color? indexBarBackgroundColor, TextStyle? indexBarTextStyle, Widget? itemSelectedIconWidget, TextStyle? itemSelectedTextStyle, TextStyle? itemUnSelectedTextStyle, List<
AddressNode> ? initialAddress, required CityPickerListener? cityPickerListener})
Properties
- cityPickerListener → CityPickerListener?
-
监听事件
final
- closeWidget → Widget?
-
关闭图标组件
final
- corner → double?
-
顶部圆角
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
组件高度
final
- indexBarBackgroundColor → Color?
-
索引组件背景颜色
final
- indexBarItemHeight → double?
-
索引组件 item 高度
final
- indexBarTextStyle → TextStyle?
-
索引组件文字样式
final
- indexBarWidth → double?
-
索引组件宽度
final
-
initialAddress
→ List<
AddressNode> ? -
初始值
final
- itemHeadBackgroundColor → Color?
-
item 头部背景颜色
final
- itemHeadHeight → double?
-
item 头部高度
final
- itemHeadLineColor → Color?
-
item 头部分割线颜色
final
- itemHeadLineHeight → double?
-
item 头部分割线高度
final
- itemHeadTextStyle → TextStyle?
-
item 头部文字样式
final
- itemHeight → double?
-
item 高度
final
- itemSelectedIconWidget → Widget?
-
选中城市的图标组件
final
- itemSelectedTextStyle → TextStyle?
-
选中城市文字样式
final
- itemUnSelectedTextStyle → TextStyle?
-
未选中城市文字样式
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelTextSize → double?
-
label 文字大小
final
- paddingLeft → double?
-
左边间距
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedLabelColor → Color?
-
选中 label 颜色
final
- selectText → String?
-
选择文字
final
- showTabIndicator → bool?
-
是否显示 indicator
final
- tabHeight → double?
-
tab 高度
final
- tabIndicatorColor → Color?
-
indicator 颜色
final
- tabIndicatorHeight → double?
-
indicator 高度
final
- titleHeight → double?
-
标题高度
final
- titleWidget → Widget?
-
标题样式
final
- unselectedLabelColor → Color?
-
未选中 label 颜色
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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