Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release_hot_fix' into independent
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Oct 26, 2022
2 parents f54bc18 + dd6d7e4 commit 669a1bd
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 26 deletions.
12 changes: 7 additions & 5 deletions lib/theme/text_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ const TextStyle brandStyleMedium = TextStyle(
fontFamily: 'Montserrat',
fontSize: 24,
);
const TextStyle brandStyleLarge = TextStyle(
fontWeight: FontWeight.bold,
fontFamily: 'Montserrat',
fontSize: 28,
);

const TextStyle h1 = TextStyle(
fontSize: 48,
height: 48 / 28,
Expand Down Expand Up @@ -87,6 +83,8 @@ class EnteTextTheme {
final TextStyle miniBold;
final TextStyle tiny;
final TextStyle tinyBold;
final TextStyle brandSmall;
final TextStyle brandMedium;

const EnteTextTheme({
required this.h1,
Expand All @@ -105,6 +103,8 @@ class EnteTextTheme {
required this.miniBold,
required this.tiny,
required this.tinyBold,
required this.brandSmall,
required this.brandMedium,
});
}

Expand All @@ -129,5 +129,7 @@ EnteTextTheme _buildEnteTextStyle(Color color) {
miniBold: mini.copyWith(color: color, fontWeight: _boldWeight),
tiny: tiny.copyWith(color: color),
tinyBold: tiny.copyWith(color: color, fontWeight: _boldWeight),
brandSmall: brandStyleSmall.copyWith(color: color),
brandMedium: brandStyleMedium.copyWith(color: color),
);
}
32 changes: 18 additions & 14 deletions lib/ui/collections/section_title.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,22 @@ class SectionTitle extends StatelessWidget {
}
}

RichText onEnteSection = RichText(
text: const TextSpan(
children: [
TextSpan(
text: "On ",
style: TextStyle(
fontWeight: FontWeight.w600,
fontFamily: 'Inter',
fontSize: 21,
RichText getOnEnteSection(BuildContext context) {
final EnteTextTheme textTheme = getEnteTextTheme(context);
return RichText(
text: TextSpan(
children: [
TextSpan(
text: "On ",
style: TextStyle(
fontWeight: FontWeight.w600,
fontFamily: 'Inter',
fontSize: 21,
color: textTheme.brandSmall.color,
),
),
),
TextSpan(text: "ente", style: brandStyleSmall),
],
),
);
TextSpan(text: "ente", style: textTheme.brandSmall),
],
),
);
}
2 changes: 1 addition & 1 deletion lib/ui/collections_gallery_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
SectionTitle(titleWithBrand: onEnteSection),
SectionTitle(titleWithBrand: getOnEnteSection(context)),
_sortMenu(),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/payment/skip_subscription_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SkipSubscriptionWidget extends StatelessWidget {
BillingService.instance
.verifySubscription(freeProductID, "", paymentProvider: "ente");
},
child: const Text("Continue on free plan"),
child: const Text("Continue on free trial"),
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/payment/subscription_common_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ValidityWidget extends StatelessWidget {
);
var message = "Renews on $endDate";
if (currentSubscription.productID == freeProductID) {
message = "Free plan valid till $endDate";
message = "Free trial valid till $endDate";
} else if (currentSubscription.attributes?.isCancelled ?? false) {
message = "Your subscription will be cancelled on $endDate";
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/payment/subscription_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
planWidgets.add(
SubscriptionPlanWidget(
storage: _freePlan.storage,
price: "free",
price: "Free trial",
period: "",
isActive: true,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/payment/subscription_plan_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SubscriptionPlanWidget extends StatelessWidget {

String _displayPrice() {
final result = price + (period.isNotEmpty ? " / " + period : "");
return result.isNotEmpty ? result : "Trial plan";
return price.isNotEmpty ? result : "Free trial";
}

@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ packages:
name: flutter_inappwebview
url: "https://pub.dartlang.org"
source: hosted
version: "5.4.3+7"
version: "5.7.1"
flutter_keyboard_visibility:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: ente photos application
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 0.6.51+381
version: 0.6.52+382

environment:
sdk: '>=2.17.0 <3.0.0'
Expand Down

0 comments on commit 669a1bd

Please sign in to comment.