Skip to content

Commit

Permalink
Merge pull request #16 from Tawkie/feature-update-link-about-privacy
Browse files Browse the repository at this point in the history
Feature update link about privacy
  • Loading branch information
ignyx authored Feb 9, 2024
2 parents f30284a + e01e749 commit 6df3a88
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
7 changes: 3 additions & 4 deletions lib/config/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
35 changes: 20 additions & 15 deletions lib/utils/platform_infos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6df3a88

Please sign in to comment.