Commit 50ead56e authored by Dragoș Tiselice's avatar Dragoș Tiselice Committed by GitHub

Made all drawer items actionable. (#5688)

One of the drawer items was dsiabled but still clickable which
led to inconsistent icon coloring. THis commit makes this item
actionable. Fixes #5683.
parent b4fb23ad
...@@ -162,17 +162,10 @@ class GalleryDrawer extends StatelessWidget { ...@@ -162,17 +162,10 @@ class GalleryDrawer extends StatelessWidget {
final Widget fileAnIssueItem = new DrawerItem( final Widget fileAnIssueItem = new DrawerItem(
icon: new Icon(Icons.report), icon: new Icon(Icons.report),
child: new RichText( onPressed: () {
text: new TextSpan( UrlLauncher.launch('https://github.com/flutter/flutter/issues/new');
children: <TextSpan>[ },
new LinkTextSpan( child: new Text('File an issue')
text: "File an issue",
style: linkStyle,
url: 'https://github.com/flutter/flutter/issues/new'
)
]
)
)
); );
final Widget aboutItem = new AboutDrawerItem( final Widget aboutItem = new AboutDrawerItem(
......
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