Extracted string

This commit is contained in:
Neeraj Gupta 2023-06-27 13:46:44 +05:30
parent 0420e50515
commit 4e4777ce8b
4 changed files with 28 additions and 18 deletions

View file

@ -562,6 +562,8 @@ class MessageLookup extends MessageLookupByLibrary {
"enteCanEncryptAndPreserveFilesOnlyIfYouGrant":
MessageLookupByLibrary.simpleMessage(
"ente can encrypt and preserve files only if you grant access to them"),
"entePhotosPerm": MessageLookupByLibrary.simpleMessage(
"ente <i>needs permission to</i> preserve your photos"),
"enteSubscriptionPitch": MessageLookupByLibrary.simpleMessage(
"ente preserves your memories, so they\'re always available to you, even if you lose your device."),
"enteSubscriptionShareWithFamily": MessageLookupByLibrary.simpleMessage(

View file

@ -300,6 +300,16 @@ class S {
);
}
/// `ente <i>needs permission to</i> preserve your photos`
String get entePhotosPerm {
return Intl.message(
'ente <i>needs permission to</i> preserve your photos',
name: 'entePhotosPerm',
desc: '',
args: [],
);
}
/// `Ok`
String get ok {
return Intl.message(

View file

@ -24,6 +24,7 @@
"sendEmail": "Send email",
"deleteRequestSLAText": "Your request will be processed within 72 hours.",
"deleteEmailRequest": "Please send an email to <warning>account-deletion@ente.io</warning> from your registered email address.",
"entePhotosPerm": "ente <i>needs permission to</i> preserve your photos",
"ok": "Ok",
"createAccount": "Create account",
"createNewAccount": "Create new account",

View file

@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
import 'package:photo_manager/photo_manager.dart';
import "package:photos/generated/l10n.dart";
import 'package:photos/services/sync_service.dart';
import "package:styled_text/styled_text.dart";
class GrantPermissionsWidget extends StatelessWidget {
const GrantPermissionsWidget({Key? key}) : super(key: key);
@ -49,24 +50,20 @@ class GrantPermissionsWidget extends StatelessWidget {
const SizedBox(height: 36),
Padding(
padding: const EdgeInsets.fromLTRB(40, 0, 40, 0),
child: RichText(
text: TextSpan(
style: Theme.of(context)
.textTheme
.headlineSmall!
.copyWith(fontWeight: FontWeight.w700),
children: [
const TextSpan(text: 'ente '),
TextSpan(
text: "needs permission to ",
style: Theme.of(context)
.textTheme
.headlineSmall!
.copyWith(fontWeight: FontWeight.w400),
),
const TextSpan(text: 'preserve your photos'),
],
),
child: StyledText(
text: S.of(context).entePhotosPerm,
style: Theme.of(context)
.textTheme
.headlineSmall!
.copyWith(fontWeight: FontWeight.w700),
tags: {
'i': StyledTextTag(
style: Theme.of(context)
.textTheme
.headlineSmall!
.copyWith(fontWeight: FontWeight.w400),
),
},
),
),
],