chore: make terms and conditions links work (#4141)
This commit is contained in:
parent
d43f5970fc
commit
5d346787c4
2 changed files with 14 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue