mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
AppDrawer: Add a 'Feedback' option
This just sends an email
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:journal/state_container.dart';
|
||||
import 'package:share/share.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class AppDrawer extends StatelessWidget {
|
||||
@override
|
||||
@ -12,7 +13,7 @@ class AppDrawer extends StatelessWidget {
|
||||
setupGitButton = ListTile(
|
||||
title: Text('Setup Git Host'),
|
||||
trailing: Icon(
|
||||
Icons.priority_high,
|
||||
Icons.info,
|
||||
color: Colors.red,
|
||||
),
|
||||
onTap: () {
|
||||
@ -50,6 +51,19 @@ class AppDrawer extends StatelessWidget {
|
||||
Share.share('Checkout GitJournal https://gitjournal.io/');
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
title: Text('Feedback'),
|
||||
onTap: () {
|
||||
var emailAddress = 'gitjournal.io@gmail.com';
|
||||
var subject = 'GitJournal Feedback';
|
||||
var body =
|
||||
"Hey!\n\nHere are some ways to improve GitJournal - \n";
|
||||
var url = 'mailto:$emailAddress?subject=$subject&body=$body';
|
||||
launch(url);
|
||||
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
title: Text('Settings'),
|
||||
onTap: () {
|
||||
|
@ -475,7 +475,7 @@ packages:
|
||||
name: url_launcher
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "4.2.0+3"
|
||||
version: "5.0.1"
|
||||
utf:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -12,7 +12,7 @@ dependencies:
|
||||
firebase_analytics: ^1.1.0
|
||||
flutter_crashlytics: ^0.2.0
|
||||
shared_preferences: ^0.4.3
|
||||
url_launcher: ^4.0.3
|
||||
url_launcher: ^5.0.1
|
||||
dots_indicator: ^0.0.3
|
||||
package_info: ^0.3.2+1
|
||||
http: ^0.12.0+1
|
||||
|
Reference in New Issue
Block a user