🌐 Localized gift subscription
This commit is contained in:
@@ -1087,5 +1087,10 @@
|
|||||||
"installUpdate": "Install update",
|
"installUpdate": "Install update",
|
||||||
"openReleasePage": "Open release page",
|
"openReleasePage": "Open release page",
|
||||||
"postCompose": "Compose Post",
|
"postCompose": "Compose Post",
|
||||||
"postPublish": "Publish Post"
|
"postPublish": "Publish Post",
|
||||||
|
"purchaseGift": "Purchase Gift",
|
||||||
|
"selectRecipient": "Select Recipient",
|
||||||
|
"changeRecipient": "Change Recipient",
|
||||||
|
"addMessage": "Add Message",
|
||||||
|
"skipRecipient": "Skip Recipient"
|
||||||
}
|
}
|
||||||
|
@@ -91,7 +91,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SheetScaffold(
|
return SheetScaffold(
|
||||||
titleText: 'Purchase Gift',
|
titleText: 'purchaseGift'.tr(),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -102,7 +102,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
|
|||||||
children: [
|
children: [
|
||||||
// Recipient Selection Section
|
// Recipient Selection Section
|
||||||
Text(
|
Text(
|
||||||
'Select Recipient',
|
'selectRecipient'.tr(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
@@ -214,8 +214,8 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
|
|||||||
icon: const Icon(Icons.person_search),
|
icon: const Icon(Icons.person_search),
|
||||||
label: Text(
|
label: Text(
|
||||||
selectedRecipient != null
|
selectedRecipient != null
|
||||||
? 'Change Recipient'
|
? 'changeRecipient'.tr()
|
||||||
: 'Select Recipient',
|
: 'selectRecipient'.tr(),
|
||||||
),
|
),
|
||||||
style: OutlinedButton.styleFrom(
|
style: OutlinedButton.styleFrom(
|
||||||
minimumSize: const Size(double.infinity, 48),
|
minimumSize: const Size(double.infinity, 48),
|
||||||
@@ -226,7 +226,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
|
|||||||
|
|
||||||
// Message Section
|
// Message Section
|
||||||
Text(
|
Text(
|
||||||
'Add Message',
|
'addMessage'.tr(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
@@ -278,7 +278,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
|
|||||||
? null
|
? null
|
||||||
: messageController.text.trim(),
|
: messageController.text.trim(),
|
||||||
}),
|
}),
|
||||||
child: Text('Skip Recipient'),
|
child: Text('skipRecipient'.tr()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Gap(8),
|
const Gap(8),
|
||||||
@@ -292,7 +292,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
|
|||||||
? null
|
? null
|
||||||
: messageController.text.trim(),
|
: messageController.text.trim(),
|
||||||
}),
|
}),
|
||||||
child: Text('Purchase Gift'),
|
child: Text('purchaseGift'.tr()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user