CCMenuPage class

Inheritance

Constructors

CCMenuPage({@required List<String> menuList, @required IndexedWidgetBuilder itemBuilder, Widget headerWidget, Widget bottomWidget, int selectIndex = 0, ValueChanged<int> onTap, dynamic onRefresh, Widget refreshEmptyWidget, Header refreshHeaderWidget, Key key})
CCMenuPage.builder({Key key, @required IndexedWidgetBuilder tabBuilder, @required int itemCount, @required IndexedWidgetBuilder itemBuilder, Widget headerWidget, Widget bottomWidget, int selectIndex = 0, ValueChanged<int> onTap, dynamic onRefresh, Widget refreshEmptyWidget, Header refreshHeaderWidget})
CCMenuPage.custom({Key key, @required List<String> menuList, @required IndexedWidgetBuilder itemBuilder, Widget headerWidget, Widget bottomWidget, int selectIndex = 0, ValueChanged<int> onTap, dynamic onRefresh, TextStyle labelStyle, TextStyle unselectedLabelStyle, Color unselectedLabelColor, Color labelColor, Color indicatorColor, TabBarIndicatorSize indicatorSize, double indicatorWeight, EdgeInsetsGeometry indicatorPadding, bool isScrollable, double tabHeight, Widget refreshEmptyWidget, Header refreshHeaderWidget})

Properties

bottomWidget Widget
底部
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
headerWidget Widget
头部
final
indicatorColor Color
选中下划线的颜色
final
indicatorPadding EdgeInsetsGeometry
final
indicatorSize TabBarIndicatorSize
选中下划线的长度
final
indicatorWeight double
选中下划线的高度
final
isScrollable bool
是否滚动 默认true
final
itemBuilder IndexedWidgetBuilder
滚动页面列表样式
final
itemCount int
菜单个数
final
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
labelColor Color
设置选中字体颜色
final
labelStyle TextStyle
设置选中时的字体选中样式
final
默认源数据数组
final
onRefresh → dynamic
下拉刷新事件
final
onTap ValueChanged<int>
点击顶部菜单回调
final
refreshEmptyWidget Widget
空数据样式
final
refreshHeaderWidget Header
下拉刷新header样式
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectIndex int
默认选中
final
tabBuilder IndexedWidgetBuilder
顶部菜单样式
final
tabHeight double
菜单栏高度
final
unselectedLabelColor Color
设置未选中字体颜色
final
unselectedLabelStyle TextStyle
设置未选中字体样式
final

Methods

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