Added menu dividers
This commit is contained in:
@@ -111,7 +111,7 @@ class MenuDemoState extends State<MenuDemo> {
|
||||
primary: new Text('An item with a sectioned menu'),
|
||||
right: new PopupMenuButton<String>(
|
||||
onSelected: showMenuSelection,
|
||||
items: <PopupMenuItem>[
|
||||
items: <PopupMenuEntry<String>>[
|
||||
new PopupMenuItem(
|
||||
value: 'Preview',
|
||||
child: new ListItem(
|
||||
@@ -128,12 +128,12 @@ class MenuDemoState extends State<MenuDemo> {
|
||||
),
|
||||
new PopupMenuItem(
|
||||
value: 'Get Link',
|
||||
hasDivider: true,
|
||||
child: new ListItem(
|
||||
left: new Icon(icon: 'content/link'),
|
||||
primary: new Text('Get Link')
|
||||
)
|
||||
),
|
||||
new PopupMenuDivider(),
|
||||
new PopupMenuItem(
|
||||
value: 'Remove',
|
||||
child: new ListItem(
|
||||
|
||||
@@ -56,7 +56,7 @@ class GalleryDrawer extends StatelessComponent {
|
||||
]
|
||||
)
|
||||
),
|
||||
new DrawerDivider(),
|
||||
new Divider(),
|
||||
new DrawerItem(
|
||||
icon: 'action/hourglass_empty',
|
||||
selected: timeDilation != 1.0,
|
||||
|
||||
@@ -169,7 +169,7 @@ class StockHomeState extends State<StockHome> {
|
||||
},
|
||||
child: new Text('Dump App to Console')
|
||||
),
|
||||
new DrawerDivider(),
|
||||
new Divider(),
|
||||
new DrawerItem(
|
||||
icon: 'action/thumb_up',
|
||||
onPressed: () => _handleStockModeChange(StockMode.optimistic),
|
||||
@@ -190,7 +190,7 @@ class StockHomeState extends State<StockHome> {
|
||||
]
|
||||
)
|
||||
),
|
||||
new DrawerDivider(),
|
||||
new Divider(),
|
||||
new DrawerItem(
|
||||
icon: 'action/settings',
|
||||
onPressed: _handleShowSettings,
|
||||
|
||||
@@ -128,20 +128,20 @@ class CardCollectionState extends State<CardCollection> {
|
||||
buildDrawerCheckbox("Fixed size cards", _fixedSizeCards, _toggleFixedSizeCards),
|
||||
buildDrawerCheckbox("Let the sun shine", _sunshine, _toggleSunshine),
|
||||
buildDrawerCheckbox("Vary font sizes", _varyFontSizes, _toggleVaryFontSizes, enabled: !_editable),
|
||||
new DrawerDivider(),
|
||||
new Divider(),
|
||||
buildDrawerColorRadioItem("Deep Purple", Colors.deepPurple, _primaryColor, _selectColor),
|
||||
buildDrawerColorRadioItem("Green", Colors.green, _primaryColor, _selectColor),
|
||||
buildDrawerColorRadioItem("Amber", Colors.amber, _primaryColor, _selectColor),
|
||||
buildDrawerColorRadioItem("Teal", Colors.teal, _primaryColor, _selectColor),
|
||||
new DrawerDivider(),
|
||||
new Divider(),
|
||||
buildDrawerDirectionRadioItem("Dismiss horizontally", DismissDirection.horizontal, _dismissDirection, _changeDismissDirection, icon: 'action/code'),
|
||||
buildDrawerDirectionRadioItem("Dismiss left", DismissDirection.left, _dismissDirection, _changeDismissDirection, icon: 'navigation/arrow_back'),
|
||||
buildDrawerDirectionRadioItem("Dismiss right", DismissDirection.right, _dismissDirection, _changeDismissDirection, icon: 'navigation/arrow_forward'),
|
||||
new DrawerDivider(),
|
||||
new Divider(),
|
||||
buildFontRadioItem("Left-align text", new TextStyle(textAlign: TextAlign.left), _textStyle, _changeTextStyle, icon: 'editor/format_align_left', enabled: !_editable),
|
||||
buildFontRadioItem("Center-align text", new TextStyle(textAlign: TextAlign.center), _textStyle, _changeTextStyle, icon: 'editor/format_align_center', enabled: !_editable),
|
||||
buildFontRadioItem("Right-align text", new TextStyle(textAlign: TextAlign.right), _textStyle, _changeTextStyle, icon: 'editor/format_align_right', enabled: !_editable),
|
||||
new DrawerDivider(),
|
||||
new Divider(),
|
||||
new DrawerItem(
|
||||
icon: 'device/dvr',
|
||||
onPressed: () { debugDumpApp(); debugDumpRenderTree(); },
|
||||
|
||||
Reference in New Issue
Block a user