mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 06:28:41 +00:00
fix some minor issues
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
This commit is contained in:
parent
2db1775d1f
commit
9fe55ab62d
2 changed files with 29 additions and 34 deletions
|
|
@ -128,7 +128,7 @@ Future<void> handleUploadStatusUpdate(TaskStatusUpdate update) async {
|
|||
);
|
||||
final mediaService = MediaFileService(media);
|
||||
|
||||
await mediaService.setUploadState(UploadState.uploaded);
|
||||
await mediaService.setUploadState(UploadState.uploading);
|
||||
// In all other cases just try the upload again...
|
||||
await startBackgroundMediaUpload(mediaService);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -316,40 +316,35 @@ class _PlanCardState extends State<PlanCard> {
|
|||
},
|
||||
label: const Text('Manage subscription'),
|
||||
),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
if (widget.onPurchase != null && monthlyProduct != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 10),
|
||||
child: OutlinedButton.icon(
|
||||
onPressed: () => onButtonPressed(monthlyProduct),
|
||||
label: (widget.plan == SubscriptionPlan.Free ||
|
||||
widget.plan == SubscriptionPlan.Plus)
|
||||
? Text(context.lang.redeemUserInviteCodeTitle)
|
||||
: Text(
|
||||
context.lang.upgradeToPaidPlanButton(
|
||||
widget.plan.name,
|
||||
' (${context.lang.monthly})',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (widget.onPurchase != null && yearlyProduct != null)
|
||||
FilledButton.icon(
|
||||
onPressed: () => onButtonPressed(yearlyProduct),
|
||||
label: (widget.plan == SubscriptionPlan.Free ||
|
||||
widget.plan == SubscriptionPlan.Plus)
|
||||
? Text(context.lang.redeemUserInviteCodeTitle)
|
||||
: Text(
|
||||
context.lang.upgradeToPaidPlanButton(
|
||||
widget.plan.name,
|
||||
' (${context.lang.yearly})',
|
||||
),
|
||||
if (widget.onPurchase != null && monthlyProduct != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 10),
|
||||
child: OutlinedButton.icon(
|
||||
onPressed: () => onButtonPressed(monthlyProduct),
|
||||
label: (widget.plan == SubscriptionPlan.Free ||
|
||||
widget.plan == SubscriptionPlan.Plus)
|
||||
? Text(context.lang.redeemUserInviteCodeTitle)
|
||||
: Text(
|
||||
context.lang.upgradeToPaidPlanButton(
|
||||
widget.plan.name,
|
||||
' (${context.lang.monthly})',
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (widget.onPurchase != null && yearlyProduct != null)
|
||||
FilledButton.icon(
|
||||
onPressed: () => onButtonPressed(yearlyProduct),
|
||||
label: (widget.plan == SubscriptionPlan.Free ||
|
||||
widget.plan == SubscriptionPlan.Plus)
|
||||
? Text(context.lang.redeemUserInviteCodeTitle)
|
||||
: Text(
|
||||
context.lang.upgradeToPaidPlanButton(
|
||||
widget.plan.name,
|
||||
' (${context.lang.yearly})',
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue