chore: Follow up donation button
This commit is contained in:
parent
136ddd7681
commit
dfc97aa3d7
2 changed files with 5 additions and 2 deletions
|
|
@ -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<String> defaultReactions = {'👍', '❤️', '😂', '😮', '😢'};
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue