Skip to content

Commit 0985d2a

Browse files
committed
fix suggestion
1 parent 20e9072 commit 0985d2a

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

app/lib/presentation/resources/locale/generated/intl/messages_en.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class MessageLookup extends MessageLookupByLibrary {
4747
"errorPasswordsDoNotMatch": MessageLookupByLibrary.simpleMessage(
4848
"Passwords do not match.",
4949
),
50+
"hintTermsAndConditions": MessageLookupByLibrary.simpleMessage(
51+
"This should open the terms and conditions URL.",
52+
),
5053
"labelAgreeToTerms": MessageLookupByLibrary.simpleMessage(
5154
"I agree to the Terms and Conditions",
5255
),

app/lib/presentation/resources/locale/generated/l10n.dart

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/lib/presentation/resources/locale/intl_en.arb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
"titleSignUpSubtitle": "Create an account using your email and password.",
2424
"errorEmailInvalid": "Please enter a valid email address.",
2525
"errorPasswordWeak": "Password is too weak.",
26-
"loginErrorInvalidCredentials": "Invalid email or password."
26+
"loginErrorInvalidCredentials": "Invalid email or password.",
27+
"hintTermsAndConditions": "This should open the terms and conditions URL."
2728
}

app/lib/presentation/ui/pages/auth/login/login_form.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ class _LoginFormState extends State<LoginForm> {
103103
IconButton(
104104
onPressed: () {
105105
ScaffoldMessenger.of(context).showSnackBar(
106-
const SnackBar(
107-
content: Text(
108-
"This should open the terms and conditions URL."),
106+
SnackBar(
107+
content: Text(S.of(context).hintTermsAndConditions),
109108
),
110109
);
111110
},

app/lib/presentation/ui/pages/auth/sign_up/sign_up_form.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ class _SignUpFormState extends State<SignUpForm> {
118118
IconButton(
119119
onPressed: () {
120120
ScaffoldMessenger.of(context).showSnackBar(
121-
const SnackBar(
122-
content: Text(
123-
"This should open the terms and conditions URL."),
121+
SnackBar(
122+
content: Text(S.of(context).hintTermsAndConditions),
124123
),
125124
);
126125
},

0 commit comments

Comments
 (0)