This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.dart
73 lines (70 loc) · 2.23 KB
/
about.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
const String version = '0.8.0+9';
class AboutScreen extends StatelessWidget {
const AboutScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('About'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(height: 50),
Text('Muffed', style: Theme.of(context).textTheme.titleLarge),
SizedBox(height: 8),
Image.asset('assets/icon.png', width: 180, height: 180),
Text(version),
SizedBox(height: 24),
ListTile(
title: Text('GitHub'),
subtitle: Text('github.com/freshfieldreds/muffed'),
leading: Icon(Icons.code),
onTap: () {
launchUrl(
Uri.parse('https://github.com/freshfieldreds/muffed'),
);
},
),
ListTile(
title: Text('Lemmy Community'),
subtitle: Text('sh.itjust.works/c/muffed'),
leading: Icon(Icons.group),
onTap: () {
launchUrl(Uri.parse('https://sh.itjust.works/c/muffed'));
},
),
ListTile(
title: Text('Email'),
subtitle: Text('freshfieldreds@gmail.com'),
leading: Icon(Icons.email),
onTap: () {
launchUrl(Uri.parse('mailto:freshfieldreds@gmail.com'));
},
),
ListTile(
title: Text('Licences'),
leading: Icon(Icons.library_books),
onTap: () {
showLicensePage(
context: context,
applicationName: 'Muffed',
applicationVersion: version,
applicationIcon: Image.asset(
'assets/icon.png',
width: 196,
height: 196,
),
);
},
),
],
),
),
);
}
}