chore: make terms and conditions links work (#4141)

This commit is contained in:
ggurdin 2025-09-25 13:06:30 -04:00 committed by GitHub
parent d43f5970fc
commit 5d346787c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -1,7 +1,10 @@
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pages/login/login.dart';
import 'package:fluffychat/pangea/common/widgets/pangea_logo_svg.dart';
@ -79,6 +82,10 @@ class LoginOptionsView extends StatelessWidget {
decoration: TextDecoration.underline,
color: theme.colorScheme.primary,
),
recognizer: TapGestureRecognizer()
..onTap = () {
launchUrlString(AppConfig.termsOfServiceUrl);
},
),
TextSpan(
text:

View file

@ -1,9 +1,12 @@
// Flutter imports:
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pangea/common/widgets/pangea_logo_svg.dart';
import 'package:fluffychat/pangea/login/widgets/p_sso_button.dart';
@ -91,6 +94,10 @@ class SignupPageView extends StatelessWidget {
decoration: TextDecoration.underline,
color: theme.colorScheme.primary,
),
recognizer: TapGestureRecognizer()
..onTap = () {
launchUrlString(AppConfig.termsOfServiceUrl);
},
),
TextSpan(
text: L10n.of(context)