From a87c0e70637f398dde2d230b6e090df970e21841 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 11 Jan 2024 11:16:49 +0100 Subject: [PATCH] Add link to buymeacoffee for donations --- lib/l10n/app_en.arb | 2 ++ lib/widgets/core/about.dart | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 6be749ec..7271a8c4 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -483,6 +483,8 @@ "@aboutTranslationText": { "description": "Text for translation section in the about dialog" }, + "aboutDonateTitle": "Donate", + "aboutDonateText": "Buy us a coffee to help the project, pay for server costs, and keep us fueled", "calendar": "Calendar", "@calendar": {}, "goToToday": "Go to today", diff --git a/lib/widgets/core/about.dart b/lib/widgets/core/about.dart index 76019116..b5979f18 100644 --- a/lib/widgets/core/about.dart +++ b/lib/widgets/core/about.dart @@ -59,6 +59,7 @@ class AboutEntry extends StatelessWidget { class AboutPage extends StatefulWidget { static String routeName = '/AboutPage'; + const AboutPage({super.key}); @override @@ -158,6 +159,13 @@ class _AboutPageState extends State { url: 'https://hosted.weblate.org/engage/wger', icon: const Icon(Icons.translate), ), + const SizedBox(height: 10), + AboutEntry( + title: AppLocalizations.of(context).aboutDonateTitle, + content: AppLocalizations.of(context).aboutDonateText, + url: 'https://www.buymeacoffee.com/wger', + icon: const Icon(FontAwesomeIcons.moneyBill1), + ), ListTile( leading: const Icon(Icons.article), title: const Text('View Licenses'),