Add title message for privacy button
(cherry picked from commit 070b3b1d4adb8ee9dfa0e237ac187304e085a11f)
This commit is contained in:
@@ -13,14 +13,27 @@ class PrivacyLinkWidget extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return RichText(
|
||||
text: TextSpan(
|
||||
text: AppLocalizations.of(context).privacyPolicy,
|
||||
style: const TextStyle(
|
||||
color: AppColor.loginTextFieldFocusedBorder,
|
||||
fontSize: 14),
|
||||
recognizer: TapGestureRecognizer()..onTap = () => AppUtils.launchLink(privacyUrlString)
|
||||
)
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context).byContinuingYouAreAgreeingToOur,
|
||||
style: const TextStyle(
|
||||
color: AppColor.colorTextBody,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
RichText(
|
||||
text: TextSpan(
|
||||
text: AppLocalizations.of(context).privacyPolicy,
|
||||
style: const TextStyle(
|
||||
color: AppColor.loginTextFieldFocusedBorder,
|
||||
fontSize: 14),
|
||||
recognizer: TapGestureRecognizer()..onTap = () => AppUtils.launchLink(privacyUrlString)
|
||||
)
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3539,5 +3539,11 @@
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"byContinuingYouAreAgreeingToOur": "By continuing, you're agreeing to our",
|
||||
"@byContinuingYouAreAgreeingToOur": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
}
|
||||
}
|
||||
@@ -3674,4 +3674,11 @@ class AppLocalizations {
|
||||
name: 'me',
|
||||
);
|
||||
}
|
||||
|
||||
String get byContinuingYouAreAgreeingToOur {
|
||||
return Intl.message(
|
||||
'By continuing, you\'re agreeing to our',
|
||||
name: 'byContinuingYouAreAgreeingToOur',
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user