diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index 4eb8aea34..1e0b31ad1 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -36,6 +36,7 @@ abstract class AppConfig { 'https://github.com/krille-chan/fluffychat/issues'; static const String changelogUrl = 'https://github.com/krille-chan/fluffychat/blob/main/CHANGELOG.md'; + static const String donationUrl = 'https://ko-fi.com/krille'; static const Set defaultReactions = {'👍', '❤️', '😂', '😮', '😢'}; diff --git a/lib/pages/chat_list/client_chooser_button.dart b/lib/pages/chat_list/client_chooser_button.dart index dd01bf053..9161226f9 100644 --- a/lib/pages/chat_list/client_chooser_button.dart +++ b/lib/pages/chat_list/client_chooser_button.dart @@ -2,7 +2,9 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:matrix/matrix.dart'; +import 'package:url_launcher/url_launcher_string.dart'; +import 'package:fluffychat/config/app_config.dart'; import 'package:fluffychat/config/themes.dart'; import 'package:fluffychat/l10n/l10n.dart'; import 'package:fluffychat/widgets/adaptive_dialogs/show_ok_cancel_alert_dialog.dart'; @@ -67,7 +69,7 @@ class ClientChooserButton extends StatelessWidget { ], ), ), - if (Matrix.of(context).backgroundPush?.firebaseEnabled == false) + if (Matrix.of(context).backgroundPush?.firebaseEnabled != true) PopupMenuItem( value: SettingsAction.support, child: Row( @@ -219,7 +221,7 @@ class ClientChooserButton extends StatelessWidget { FluffyShare.shareInviteLink(context); break; case SettingsAction.support: - // TODO: Implement me + launchUrlString(AppConfig.donationUrl); break; case SettingsAction.settings: context.go('/rooms/settings');