CitiesSelector class

Inheritance

Constructors

CitiesSelector({String? locationCode, required List<Point> cities, List<HotCity>? hotCities, Color tagBarActiveColor = Colors.yellow, Color tagBarFontActiveColor = Colors.red, Color tagBarBgColor = Colors.cyanAccent, Color tagBarFontColor = Colors.white, double tagBarFontSize = 14.0, EdgeInsetsGeometry tagBarTextPadding = const EdgeInsets.symmetric(horizontal: 4.0), bool showTopIndex = true, double topIndexFontSize = 16, double topIndexHeight = 40, Color topIndexFontColor = Colors.green, Color topIndexBgColor = Colors.blueGrey, double itemFontSize = 12.0, Color? itemFontColor = Colors.black, Color? itemSelectFontColor = Colors.red, required ValueSetter<Result> onSelected})

Properties

cities List<Point>
final
hashCode int
The hash code for this object.
no setterinherited
hotCities List<HotCity>?
final
itemFontColor Color?
final
itemFontSize double
城市列表每一个Item的字体大小
final
itemSelectFontColor Color?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locationCode String?
final
onSelected ValueSetter<Result>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTopIndex bool
是否显示顶部的tag提示标签
final
tagBarActiveColor Color
final
tagBarBgColor Color
定义右侧bar的激活与普通状态的颜色
final
tagBarFontActiveColor Color
final
tagBarFontColor Color
定义右侧bar的字体的激活与普通状态的颜色
final
tagBarFontSize double
右侧Bar字体的大小
final
tagBarTextPadding EdgeInsetsGeometry
右侧Bar文字的Padding
final
topIndexBgColor Color
final
topIndexFontColor Color
每一个类别的城市顶部的标题的样式
final
topIndexFontSize double
每一个类别的城市顶部的标题的字体大小
final
topIndexHeight double
每一个类别的城市顶部的标题的高度
final

Methods

buildCityItem(BuildContext context, Point city) Widget
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _CitiesSelectorState
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