Minor changes (#228)

This commit is contained in:
Vishnu Mohandas 2023-09-05 06:39:34 +05:30 committed by GitHub
commit 4b633d1a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 35 deletions

View file

@ -70,7 +70,7 @@
"incorrectPasswordTitle": "Incorrect password",
"welcomeBack": "Welcome back!",
"madeWithLoveAtPrefix": "made with ❤️ at ",
"supportDevs": "Subscribe to <bold-green>ente</bold-green> to support this project.",
"supportDevs": "Subscribe to <bold-green>ente</bold-green> to support this project",
"supportDiscount": "Use coupon code \"AUTH\" to get 10% off first year",
"changeEmail": "Change email",
"changePassword": "Change password",

View file

@ -39,37 +39,36 @@ class SupportDevWidget extends StatelessWidget {
GestureDetector buildWidget(AppLocalizations l10n, BuildContext context) {
return GestureDetector(
onTap: () {
launchUrl(Uri.parse("https://ente.io"));
},
child: Padding(
padding:
const EdgeInsets.symmetric(vertical: 12.0, horizontal: 6),
child: Column(
children: [
StyledText(
text: l10n.supportDevs,
style: getEnteTextTheme(context).large,
tags: {
'bold-green': StyledTextTag(
style: TextStyle(
fontWeight: FontWeight.bold,
color: getEnteColorScheme(context).primaryGreen,
),
),
},
),
const Padding(padding: EdgeInsets.all(6)),
Text(
l10n.supportDiscount,
textAlign: TextAlign.center,
style: const TextStyle(
color: Colors.grey,
),
)
],
onTap: () {
launchUrl(Uri.parse("https://ente.io"));
},
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 12.0, horizontal: 6),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
StyledText(
text: l10n.supportDevs,
style: getEnteTextTheme(context).large,
tags: {
'bold-green': StyledTextTag(
style: TextStyle(
fontWeight: FontWeight.bold,
color: getEnteColorScheme(context).primaryGreen,
),
),
},
),
const Padding(padding: EdgeInsets.all(6)),
Text(
l10n.supportDiscount,
style: const TextStyle(
color: Colors.grey,
),
);
),
],
),
),
);
}
}

View file

@ -25,7 +25,6 @@ import 'package:ente_auth/utils/navigation_util.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
class SettingsPage extends StatelessWidget {
final ValueNotifier<String?> emailNotifier;
@ -81,12 +80,12 @@ class SettingsPage extends StatelessWidget {
} else {
contents.addAll([
NotificationWidget(
startIcon: Icons.account_box_outlined,
startIcon: Icons.account_circle_sharp,
actionIcon: Icons.arrow_forward,
text: context.l10n.signInToBackup,
type: NotificationType.notice,
onTap: () async {
ButtonResult? result = await showChoiceActionSheet(
ButtonResult? result = await showChoiceActionSheet(
context,
title: context.l10n.warning,
body: context.l10n.sigInBackupReminder,

View file

@ -224,7 +224,7 @@ ProgressDialog createProgressDialog(
);
dialog.style(
message: message,
messageTextStyle: Theme.of(context).textTheme.bodySmall,
messageTextStyle: Theme.of(context).textTheme.labelMedium,
backgroundColor: Theme.of(context).dialogTheme.backgroundColor,
progressWidget: const EnteLoadingWidget(),
borderRadius: 10,