diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index a60181008d..3c536df8c3 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -18,8 +18,7 @@ abstract class AppConfig { static const Color primaryColor = Color(0xFF3614A6); static const Color primaryColorLight = Color(0xFFFEEA77); static const Color secondaryColor = Color(0xFFFAAB22); - static String _privacyUrl = - 'https://github.com/krille-chan/fluffychat/blob/main/PRIVACY.md'; + static String _privacyUrl = 'https://tawkie.fr/legal/'; static String get privacyUrl => _privacyUrl; static const String enablePushTutorial = 'https://github.com/krille-chan/fluffychat/wiki/Push-Notifications-without-Google-Services'; @@ -31,8 +30,7 @@ abstract class AppConfig { static const String appOpenUrlScheme = 'im.fluffychat'; static String _webBaseUrl = 'https://fluffychat.im/web'; static String get webBaseUrl => _webBaseUrl; - static const String sourceCodeUrl = - 'https://github.com/krille-chan/fluffychat'; + static const String sourceCodeUrl = 'https://github.com/Tawkie/tawkie-app'; static const String supportUrl = 'https://github.com/krille-chan/fluffychat/issues'; static final Uri newIssueUrl = Uri( @@ -66,6 +64,7 @@ abstract class AppConfig { static const String emojiFontName = 'Noto Emoji'; static const String emojiFontUrl = 'https://github.com/googlefonts/noto-emoji/'; + static const String aboutUrl = 'https://tawkie.fr/faq/'; static const double borderRadius = 16.0; static const double columnWidth = 360.0; static final Uri homeserverList = Uri( diff --git a/lib/utils/platform_infos.dart b/lib/utils/platform_infos.dart index 4ab35e3e99..a7da7bbe43 100644 --- a/lib/utils/platform_infos.dart +++ b/lib/utils/platform_infos.dart @@ -53,22 +53,27 @@ abstract class PlatformInfos { label: Text(L10n.of(context)!.sourceCode), ), TextButton.icon( - onPressed: () => launchUrlString(AppConfig.emojiFontUrl), - icon: const Icon(Icons.emoji_emotions_outlined), - label: const Text(AppConfig.emojiFontName), - ), - Builder( - builder: (innerContext) { - return TextButton.icon( - onPressed: () { - context.go('/logs'); - Navigator.of(innerContext).pop(); - }, - icon: const Icon(Icons.list_outlined), - label: const Text('Logs'), - ); - }, + onPressed: () => launchUrlString(AppConfig.aboutUrl), + icon: const Icon(Icons.group), + label: Text(L10n.of(context)!.about), ), + // TextButton.icon( + // onPressed: () => launchUrlString(AppConfig.emojiFontUrl), + // icon: const Icon(Icons.emoji_emotions_outlined), + // label: const Text(AppConfig.emojiFontName), + // ), + // Builder( + // builder: (innerContext) { + // return TextButton.icon( + // onPressed: () { + // context.go('/logs'); + // Navigator.of(innerContext).pop(); + // }, + // icon: const Icon(Icons.list_outlined), + // label: const Text('Logs'), + // ); + // }, + // ), ], applicationIcon: Image.asset( 'assets/logo.png',