1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-25 23:34:01 +01:00
git-touch-android-ios-app/lib/screens/credits.dart

74 lines
2.4 KiB
Dart
Raw Normal View History

2019-09-26 14:34:51 +02:00
import 'package:flutter/material.dart';
import 'package:git_touch/scaffolds/single.dart';
import 'package:git_touch/screens/repository.dart';
2019-09-26 14:41:25 +02:00
import 'package:git_touch/utils/utils.dart';
2019-09-26 14:34:51 +02:00
import 'package:git_touch/widgets/table_view.dart';
import 'package:tuple/tuple.dart';
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'),
2019-09-30 14:49:22 +02:00
Tuple2('uri', 'google/uri.dart'),
2019-09-26 14:34:51 +02:00
];
2019-09-26 14:41:25 +02:00
static const fonts = [
'Fira Code',
'Inconsolata',
'PT Mono',
'Source Code Pro',
'Ubuntu Mono'
];
2019-09-26 14:34:51 +02:00
@override
Widget build(BuildContext context) {
return SingleScaffold(
title: Text('Credits'),
2019-09-26 14:41:25 +02:00
body: Column(
children: <Widget>[
2019-10-02 10:09:54 +02:00
CommonStyle.verticalGap,
2019-09-26 14:41:25 +02:00
TableView(
headerText: 'packages',
items: projects.map((t) {
return TableViewItem(
2019-11-02 16:56:10 +01:00
text: Text(t.item1),
screenBuilder: (_) {
final repo = parseRepositoryFullName(t.item2);
return RepositoryScreen(repo.item1, repo.item2);
});
2019-09-26 14:41:25 +02:00
}),
),
2019-10-02 10:09:54 +02:00
CommonStyle.verticalGap,
2019-09-26 14:41:25 +02:00
TableView(
headerText: 'fonts',
items: fonts.map((font) {
return TableViewItem(
text: Text(font),
2019-11-02 16:56:10 +01:00
screenBuilder: (_) => RepositoryScreen('google', 'fonts'),
2019-09-26 14:41:25 +02:00
);
}),
),
],
2019-09-26 14:34:51 +02:00
),
);
}
}