feat: add go to review entry

This commit is contained in:
Rongjian Zhang 2019-03-10 13:13:40 +08:00
parent d8548614e7
commit f4dd41e3ff
3 changed files with 20 additions and 0 deletions

View File

@ -33,6 +33,10 @@
</array>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>itms</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:launch_review/launch_review.dart';
import '../scaffolds/simple.dart';
import '../providers/settings.dart';
import '../widgets/table_view.dart';
@ -53,6 +54,20 @@ class _SettingsScreenState extends State<SettingsScreen> {
),
],
),
TableView(
title: 'REVIEW',
items: [
TableViewItem(
text: 'Review',
onTap: () {
LaunchReview.launch(
androidAppId: 'io.github.pd4d10.gittouch',
iOSAppId: '1452042346',
);
},
)
],
),
TableView(
title: 'SOURCE CODE',
items: [

View File

@ -30,6 +30,7 @@ dependencies:
github_trending: ^0.1.0
github_contributions: ^0.1.1
flutter_svg: ^0.12.0
launch_review: ^2.0.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.