Skip to content

Commit afba3a8

Browse files
committed
Add link to mastodon in the about us widgets
1 parent bcbfa8e commit afba3a8

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ If you're not sure if something is a bug or not, feel free to file a bug anyway.
8686

8787
* **Discord:** <https://discord.gg/rPWFv6W>
8888
* **Issue tracker:** <https://github.com/wger-project/flutter/issues>
89-
* **Twitter:** <https://twitter.com/wger_project>
89+
* **Mastodon:** <https://fosstodon.org/@wger>
9090

9191
## License
9292

lib/l10n/app_en.arb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,14 @@
463463
"@aboutContactUsText": {
464464
"description": "Text for contact us section in the about dialog"
465465
},
466+
"aboutMastodonTitle": "Mastodon",
467+
"@aboutMastodonTitle": {
468+
"description": "Title for mastodon section in the about dialog"
469+
},
470+
"aboutMastodonText": "Follow us on mastodon for updates and news about the project",
471+
"@aboutMastodonText": {
472+
"description": "Text for the mastodon section in the about dialog"
473+
},
466474
"aboutTranslationTitle": "Translation",
467475
"@aboutTranslationTitle": {
468476
"description": "Title for translation section in the about dialog"

lib/widgets/core/about.dart

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818

1919
import 'package:flutter/material.dart';
2020
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
21+
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
2122
import 'package:provider/provider.dart';
2223
import 'package:wger/helpers/misc.dart';
2324
import 'package:wger/providers/auth.dart';
2425

2526
class AboutPage extends StatefulWidget {
2627
static String routeName = '/AboutPage';
28+
2729
const AboutPage({Key? key}) : super(key: key);
2830

2931
@override
@@ -124,7 +126,7 @@ class _AboutPageState extends State<AboutPage> {
124126
),
125127
const SizedBox(height: 10),
126128
ListTile(
127-
leading: const Icon(Icons.chat),
129+
leading: const Icon(FontAwesomeIcons.discord),
128130
title: Text(AppLocalizations.of(context).aboutContactUsTitle),
129131
subtitle: Column(
130132
crossAxisAlignment: CrossAxisAlignment.start,
@@ -140,6 +142,23 @@ class _AboutPageState extends State<AboutPage> {
140142
onTap: () async => launchURL('https://discord.gg/rPWFv6W', context),
141143
),
142144
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),
143162
ListTile(
144163
leading: const Icon(Icons.translate),
145164
title: Text(AppLocalizations.of(context).aboutTranslationTitle),

0 commit comments

Comments
 (0)