Unverified Commit 3156c288 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Improve semantics for Drawer-Demo (#19911)

parent 82415e64
......@@ -201,29 +201,34 @@ class _DrawerDemoState extends State<DrawerDemo> with TickerProviderStateMixin {
onTap: () {
_scaffoldKey.currentState.openDrawer();
},
child: new Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new Container(
width: 100.0,
height: 100.0,
decoration: const BoxDecoration(
shape: BoxShape.circle,
image: const DecorationImage(
image: const AssetImage(
_kAsset0,
package: _kGalleryAssetsPackage,
child: new Semantics(
button: true,
label: 'Open drawer',
excludeSemantics: true,
child: new Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new Container(
width: 100.0,
height: 100.0,
decoration: const BoxDecoration(
shape: BoxShape.circle,
image: const DecorationImage(
image: const AssetImage(
_kAsset0,
package: _kGalleryAssetsPackage,
),
),
),
),
),
new Padding(
padding: const EdgeInsets.only(top: 8.0),
child: new Text('Tap here to open the drawer',
style: Theme.of(context).textTheme.subhead,
new Padding(
padding: const EdgeInsets.only(top: 8.0),
child: new Text('Tap here to open the drawer',
style: Theme.of(context).textTheme.subhead,
),
),
),
],
],
),
),
),
),
......
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