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

This commit is contained in:
xster
2018-08-16 13:12:41 -07:00
committed by GitHub
parent e1534b8ecb
commit db8d63575e
4 changed files with 20 additions and 4 deletions

View File

@@ -372,7 +372,11 @@ class _DemoBottomAppBar extends StatelessWidget {
},
),
new IconButton(
icon: const Icon(Icons.more_vert),
icon: new Icon(
Theme.of(context).platform == TargetPlatform.iOS
? Icons.more_horiz
: Icons.more_vert,
),
onPressed: () {
Scaffold.of(context).showSnackBar(
const SnackBar(content: Text('This is a dummy menu action.')),

View File

@@ -227,7 +227,11 @@ class _ListDemoState extends State<ListDemo> {
},
),
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',
onPressed: _bottomSheet == null ? _showConfigurationSheet : null,
),

View File

@@ -168,7 +168,11 @@ class _ListDemoState extends State<ReorderableListDemo> {
},
),
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',
onPressed: _bottomSheet == null ? _showConfigurationSheet : null,
),

View File

@@ -52,7 +52,11 @@ class _SearchDemoState extends State<SearchDemo> {
),
new IconButton(
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: () {},
),
],