18
18
19
19
import 'package:flutter/material.dart' ;
20
20
import 'package:flutter_gen/gen_l10n/app_localizations.dart' ;
21
+ import 'package:font_awesome_flutter/font_awesome_flutter.dart' ;
21
22
import 'package:provider/provider.dart' ;
22
23
import 'package:wger/helpers/misc.dart' ;
23
24
import 'package:wger/providers/auth.dart' ;
24
25
25
26
class AboutPage extends StatefulWidget {
26
27
static String routeName = '/AboutPage' ;
28
+
27
29
const AboutPage ({Key ? key}) : super (key: key);
28
30
29
31
@override
@@ -124,7 +126,7 @@ class _AboutPageState extends State<AboutPage> {
124
126
),
125
127
const SizedBox (height: 10 ),
126
128
ListTile (
127
- leading: const Icon (Icons .chat ),
129
+ leading: const Icon (FontAwesomeIcons .discord ),
128
130
title: Text (AppLocalizations .of (context).aboutContactUsTitle),
129
131
subtitle: Column (
130
132
crossAxisAlignment: CrossAxisAlignment .start,
@@ -140,6 +142,23 @@ class _AboutPageState extends State<AboutPage> {
140
142
onTap: () async => launchURL ('https://discord.gg/rPWFv6W' , context),
141
143
),
142
144
const SizedBox (height: 10 ),
145
+ ListTile (
146
+ leading: const Icon (FontAwesomeIcons .mastodon),
147
+ title: Text (AppLocalizations .of (context).aboutMastodonTitle),
148
+ subtitle: Column (
149
+ crossAxisAlignment: CrossAxisAlignment .start,
150
+ children: [
151
+ Text (AppLocalizations .of (context).aboutMastodonText),
152
+ const Text (
153
+ 'https://fosstodon.org/@wger' ,
154
+ style: TextStyle (color: Colors .blue),
155
+ ),
156
+ ],
157
+ ),
158
+ contentPadding: EdgeInsets .zero,
159
+ onTap: () async => launchURL ('https://fosstodon.org/@wger' , context),
160
+ ),
161
+ const SizedBox (height: 10 ),
143
162
ListTile (
144
163
leading: const Icon (Icons .translate),
145
164
title: Text (AppLocalizations .of (context).aboutTranslationTitle),
0 commit comments