Commit cc600fc0 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Add a gallery feedback link (#5511)

parent 2796d745
...@@ -111,7 +111,7 @@ class GalleryDrawer extends StatelessWidget { ...@@ -111,7 +111,7 @@ class GalleryDrawer extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final ThemeData themeData = Theme.of(context); final ThemeData themeData = Theme.of(context);
final TextStyle aboutTextStyle = themeData.textTheme.body2; final TextStyle aboutTextStyle = themeData.textTheme.body2;
final TextStyle aboutLinkStyle = themeData.textTheme.body2.copyWith(color: themeData.accentColor); final TextStyle linkStyle = themeData.textTheme.body2.copyWith(color: themeData.accentColor);
return new Drawer( return new Drawer(
child: new Block( child: new Block(
...@@ -176,6 +176,20 @@ class GalleryDrawer extends StatelessWidget { ...@@ -176,6 +176,20 @@ class GalleryDrawer extends StatelessWidget {
] ]
) )
), ),
new DrawerItem(
icon: new Icon(Icons.report),
child: new RichText(
text: new TextSpan(
children: <TextSpan>[
new LinkTextSpan(
text: "File an issue",
style: linkStyle,
url: 'https://github.com/flutter/flutter/issues/new'
)
]
)
)
),
new AboutDrawerItem( new AboutDrawerItem(
icon: new FlutterLogo(), icon: new FlutterLogo(),
applicationVersion: '2016 Q3 Preview', applicationVersion: '2016 Q3 Preview',
...@@ -196,7 +210,7 @@ class GalleryDrawer extends StatelessWidget { ...@@ -196,7 +210,7 @@ class GalleryDrawer extends StatelessWidget {
"animations, layouts, and more. Learn more about Flutter at " "animations, layouts, and more. Learn more about Flutter at "
), ),
new LinkTextSpan( new LinkTextSpan(
style: aboutLinkStyle, style: linkStyle,
url: 'https://flutter.io' url: 'https://flutter.io'
), ),
new TextSpan( new TextSpan(
...@@ -204,7 +218,7 @@ class GalleryDrawer extends StatelessWidget { ...@@ -204,7 +218,7 @@ class GalleryDrawer extends StatelessWidget {
text: ".\n\nTo see the source code for this app, please visit the " text: ".\n\nTo see the source code for this app, please visit the "
), ),
new LinkTextSpan( new LinkTextSpan(
style: aboutLinkStyle, style: linkStyle,
url: 'https://goo.gl/iv1p4G', url: 'https://goo.gl/iv1p4G',
text: 'flutter github repo' text: 'flutter github repo'
), ),
......
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