MenuConfig class
菜单配置
Constructors
- MenuConfig({MenuType type = MenuType.grid, double itemWidth = 72.0, double itemHeight = 65.0, double arrowHeight = 10.0, int maxColumn = 4, Color backgroundColor = const Color(0xff232323), Color highlightColor = const Color(0xff353535), Color lineColor = const Color(0x55000000)})
-
const
- MenuConfig.forList({double itemWidth = 120.0, double itemHeight = 40.0, double arrowHeight = 10.0, Color backgroundColor = Colors.white, Color highlightColor = const Color(0xff353535), Color lineColor = const Color(0x55000000)})
-
factory
Properties
- arrowHeight → double
-
箭头的高度
final
- backgroundColor → Color
-
背景色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightColor → Color
-
点击的高亮色
final
- itemHeight → double
-
菜单项的高度
final
- itemWidth → double
-
菜单的宽度
final
- lineColor → Color
-
分隔线的颜色
final
- maxColumn → int
-
格子类型菜单最大列数
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → MenuType
-
菜单类型
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited