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), TextStyle textStyle = const TextStyle(color: Color(0xffc5c5c5), fontSize: 10.0), TextAlign textAlign = TextAlign.center})
-
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
-
The highlight color on click.
final
- itemHeight → double
-
菜单项的高度
final
- itemWidth → double
-
菜单的宽度
final
- lineColor → Color
-
The color of the separator line.
final
- maxColumn → int
-
Maximum number of columns for grid-type menu.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textAlign → TextAlign
-
Text alignment, only effective in List Menu.
final
- textStyle → TextStyle
-
Uniformly setting the TextStyle for MenuItem will be overridden by MenuItem;
if MenuItem does not set it, then this Style will be used.
final
- 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