Unverified Commit db8d6357 authored by xster's avatar xster Committed by GitHub

make overflow dots on iOS horizontal in gallery (#20702)

parent e1534b8e
...@@ -372,7 +372,11 @@ class _DemoBottomAppBar extends StatelessWidget { ...@@ -372,7 +372,11 @@ class _DemoBottomAppBar extends StatelessWidget {
}, },
), ),
new IconButton( new IconButton(
icon: const Icon(Icons.more_vert), icon: new Icon(
Theme.of(context).platform == TargetPlatform.iOS
? Icons.more_horiz
: Icons.more_vert,
),
onPressed: () { onPressed: () {
Scaffold.of(context).showSnackBar( Scaffold.of(context).showSnackBar(
const SnackBar(content: Text('This is a dummy menu action.')), const SnackBar(content: Text('This is a dummy menu action.')),
......
...@@ -227,7 +227,11 @@ class _ListDemoState extends State<ListDemo> { ...@@ -227,7 +227,11 @@ class _ListDemoState extends State<ListDemo> {
}, },
), ),
new IconButton( new IconButton(
icon: const Icon(Icons.more_vert), icon: new Icon(
Theme.of(context).platform == TargetPlatform.iOS
? Icons.more_horiz
: Icons.more_vert,
),
tooltip: 'Show menu', tooltip: 'Show menu',
onPressed: _bottomSheet == null ? _showConfigurationSheet : null, onPressed: _bottomSheet == null ? _showConfigurationSheet : null,
), ),
......
...@@ -168,7 +168,11 @@ class _ListDemoState extends State<ReorderableListDemo> { ...@@ -168,7 +168,11 @@ class _ListDemoState extends State<ReorderableListDemo> {
}, },
), ),
new IconButton( new IconButton(
icon: const Icon(Icons.more_vert), icon: new Icon(
Theme.of(context).platform == TargetPlatform.iOS
? Icons.more_horiz
: Icons.more_vert,
),
tooltip: 'Show menu', tooltip: 'Show menu',
onPressed: _bottomSheet == null ? _showConfigurationSheet : null, onPressed: _bottomSheet == null ? _showConfigurationSheet : null,
), ),
......
...@@ -52,7 +52,11 @@ class _SearchDemoState extends State<SearchDemo> { ...@@ -52,7 +52,11 @@ class _SearchDemoState extends State<SearchDemo> {
), ),
new IconButton( new IconButton(
tooltip: 'More (not implemented)', tooltip: 'More (not implemented)',
icon: const Icon(Icons.more_vert), icon: new Icon(
Theme.of(context).platform == TargetPlatform.iOS
? Icons.more_horiz
: Icons.more_vert,
),
onPressed: () {}, onPressed: () {},
), ),
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment