ItemWidget class
城市列表组件
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ItemWidget
Constructors
-
ItemWidget({Key? key, double? height, int? index, List<
SectionCity> ? list, String? title, String? selectText, Color? backgroundColor, double? paddingLeft, 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, ItemClickListener? itemClickListener}) -
const
Properties
- backgroundColor → Color?
-
背景颜色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- index → int?
-
当前列表的索引
final
- indexBarBackgroundColor → Color?
-
索引组件背景颜色
final
- indexBarItemHeight → double?
-
索引组件 item 高度
final
- indexBarTextStyle → TextStyle?
-
索引组件文字样式
final
- indexBarWidth → double?
-
索引组件宽度
final
- itemClickListener → ItemClickListener?
-
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
-
list
→ List<
SectionCity> ? -
数据
final
- paddingLeft → double?
-
左边间距
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectText → String?
-
选择文字
final
- title → String?
-
选中 tab
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