From 50ead56e0edc3a3f5e5a13539b5df6768e0b6cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20Tiselice?= Date: Wed, 31 Aug 2016 15:46:39 -0700 Subject: [PATCH] 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. --- examples/flutter_gallery/lib/gallery/drawer.dart | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/examples/flutter_gallery/lib/gallery/drawer.dart b/examples/flutter_gallery/lib/gallery/drawer.dart index 2883744af0..cfe88b4460 100644 --- a/examples/flutter_gallery/lib/gallery/drawer.dart +++ b/examples/flutter_gallery/lib/gallery/drawer.dart @@ -162,17 +162,10 @@ class GalleryDrawer extends StatelessWidget { final Widget fileAnIssueItem = new DrawerItem( icon: new Icon(Icons.report), - child: new RichText( - text: new TextSpan( - children: [ - new LinkTextSpan( - text: "File an issue", - style: linkStyle, - url: 'https://github.com/flutter/flutter/issues/new' - ) - ] - ) - ) + onPressed: () { + UrlLauncher.launch('https://github.com/flutter/flutter/issues/new'); + }, + child: new Text('File an issue') ); final Widget aboutItem = new AboutDrawerItem(