mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
AppDrawer: Follow the Theme
This also looks way prettier as the icons are the same color as the text.
This commit is contained in:
@ -9,10 +9,12 @@ class AppDrawer extends StatelessWidget {
|
|||||||
Widget setupGitButton = Container();
|
Widget setupGitButton = Container();
|
||||||
var appState = StateContainer.of(context).appState;
|
var appState = StateContainer.of(context).appState;
|
||||||
|
|
||||||
|
var textStyle = Theme.of(context).textTheme.body2;
|
||||||
|
|
||||||
if (!appState.remoteGitRepoConfigured) {
|
if (!appState.remoteGitRepoConfigured) {
|
||||||
setupGitButton = ListTile(
|
setupGitButton = ListTile(
|
||||||
leading: Icon(Icons.sync),
|
leading: Icon(Icons.sync, color: textStyle.color),
|
||||||
title: Text('Setup Git Host'),
|
title: Text('Setup Git Host', style: textStyle),
|
||||||
trailing: Icon(
|
trailing: Icon(
|
||||||
Icons.info,
|
Icons.info,
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
@ -46,16 +48,16 @@ class AppDrawer extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
setupGitButton,
|
setupGitButton,
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: Icon(Icons.share),
|
leading: Icon(Icons.share, color: textStyle.color),
|
||||||
title: Text('Share App'),
|
title: Text('Share App', style: textStyle),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Share.share('Checkout GitJournal https://gitjournal.io/');
|
Share.share('Checkout GitJournal https://gitjournal.io/');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: Icon(Icons.feedback),
|
leading: Icon(Icons.feedback, color: textStyle.color),
|
||||||
title: Text('Feedback'),
|
title: Text('Feedback', style: textStyle),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
var emailAddress = 'gitjournal.io@gmail.com';
|
var emailAddress = 'gitjournal.io@gmail.com';
|
||||||
var subject = 'GitJournal Feedback';
|
var subject = 'GitJournal Feedback';
|
||||||
@ -68,8 +70,8 @@ class AppDrawer extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: Icon(Icons.settings),
|
leading: Icon(Icons.settings, color: textStyle.color),
|
||||||
title: Text('Settings'),
|
title: Text('Settings', style: textStyle),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Navigator.pushNamed(context, "/settings");
|
Navigator.pushNamed(context, "/settings");
|
||||||
|
Reference in New Issue
Block a user