From 2fa6c141376788048fdc8ea25a8917d50d29b0c4 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Sat, 4 Jan 2020 13:30:38 +0800 Subject: [PATCH] chore: remove credits screen --- lib/main.dart | 2 -- lib/screens/about.dart | 1 - lib/screens/credits.dart | 67 ---------------------------------------- 3 files changed, 70 deletions(-) delete mode 100644 lib/screens/credits.dart diff --git a/lib/main.dart b/lib/main.dart index 637c38d..e025b77 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -5,7 +5,6 @@ import 'package:git_touch/models/auth.dart'; import 'package:git_touch/models/theme.dart'; import 'package:git_touch/screens/about.dart'; import 'package:git_touch/screens/commits.dart'; -import 'package:git_touch/screens/credits.dart'; import 'package:git_touch/screens/gitlab_blob.dart'; import 'package:git_touch/screens/gitlab_issue.dart'; import 'package:git_touch/screens/gitlab_project.dart'; @@ -244,7 +243,6 @@ void main() async { gitlabIssueRouter, loginRouter, settingsRouter, - creditsRouter, userRouter, repositoryRouter, issuesRouter, diff --git a/lib/screens/about.dart b/lib/screens/about.dart index 86617b7..62d4763 100644 --- a/lib/screens/about.dart +++ b/lib/screens/about.dart @@ -48,7 +48,6 @@ class _AboutScreenState extends State { TableViewItem(text: Text('Source Code'), url: '/pd4d10/git-touch'), TableViewItem( text: Text('Feedback'), url: '/pd4d10/git-touch/issues/new'), - TableViewItem(text: Text('Credits'), url: '/help/credits'), TableViewItem( text: Text('Rate This App'), onTap: () { diff --git a/lib/screens/credits.dart b/lib/screens/credits.dart deleted file mode 100644 index cf3a1a2..0000000 --- a/lib/screens/credits.dart +++ /dev/null @@ -1,67 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:git_touch/scaffolds/single.dart'; -import 'package:git_touch/utils/utils.dart'; -import 'package:git_touch/widgets/table_view.dart'; -import 'package:tuple/tuple.dart'; - -final creditsRouter = - RouterScreen('/help/credits', (context, parameters) => CreditsScreen()); - -class CreditsScreen extends StatelessWidget { - static const projects = [ - Tuple2('flutter', 'flutter/flutter'), - Tuple2('flutter_vector_icons', 'pd4d10/flutter-vector-icons'), - Tuple2('flutter_highlight', 'pd4d10/highlight'), - Tuple2('primer', 'pd4d10/primer-flutter'), - Tuple2('nanoid', 'pd4d10/nanoid-dart'), - Tuple2('github_contributions', 'pd4d10/github-contributions'), - Tuple2('seti', 'pd4d10/seti-flutter'), - Tuple2('http', 'dart-lang/http'), - Tuple2('intl', 'dart-lang/intl'), - Tuple2('url_launcher', 'flutter/plugins'), - Tuple2('uni_links', 'avioli/uni_links'), - Tuple2('flutter_markdown', 'flutter/flutter_markdown'), - Tuple2('shared_preferences', 'flutter/plugins'), - Tuple2('share', 'flutter/plugins'), - Tuple2('flutter_svg', 'dnfield/flutter_svg'), - Tuple2('launch_review', 'purus/launch_review'), - Tuple2('timeago', 'andresaraujo/timeago.dart'), - Tuple2('provider', 'rrousselGit/provider'), - Tuple2('filesize', 'synw/filesize'), - Tuple2('tuple', 'dart-lang/tuple'), - Tuple2('uri', 'google/uri.dart'), - ]; - - static const fonts = [ - 'Fira Code', - 'Inconsolata', - 'PT Mono', - 'Source Code Pro', - 'Ubuntu Mono' - ]; - - @override - Widget build(BuildContext context) { - return SingleScaffold( - title: Text('Credits'), - body: Column( - children: [ - CommonStyle.verticalGap, - TableView( - headerText: 'packages', - items: projects.map((t) { - return TableViewItem(text: Text(t.item1), url: t.item2); - }), - ), - CommonStyle.verticalGap, - TableView( - headerText: 'fonts', - items: fonts.map((font) { - return TableViewItem(text: Text(font), url: '/google/fonts'); - }), - ), - ], - ), - ); - } -}