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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return RichText(
|
return Column(
|
||||||
text: TextSpan(
|
mainAxisSize: MainAxisSize.min,
|
||||||
text: AppLocalizations.of(context).privacyPolicy,
|
children: [
|
||||||
style: const TextStyle(
|
Text(
|
||||||
color: AppColor.loginTextFieldFocusedBorder,
|
AppLocalizations.of(context).byContinuingYouAreAgreeingToOur,
|
||||||
fontSize: 14),
|
style: const TextStyle(
|
||||||
recognizer: TapGestureRecognizer()..onTap = () => AppUtils.launchLink(privacyUrlString)
|
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",
|
"type": "text",
|
||||||
"placeholders_order": [],
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"byContinuingYouAreAgreeingToOur": "By continuing, you're agreeing to our",
|
||||||
|
"@byContinuingYouAreAgreeingToOur": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3674,4 +3674,11 @@ class AppLocalizations {
|
|||||||
name: 'me',
|
name: 'me',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get byContinuingYouAreAgreeingToOur {
|
||||||
|
return Intl.message(
|
||||||
|
'By continuing, you\'re agreeing to our',
|
||||||
|
name: 'byContinuingYouAreAgreeingToOur',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user