Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature update link about privacy #16

Merged
merged 3 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading