fix some minor issues
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run

This commit is contained in:
otsmr 2025-12-20 02:51:24 +01:00
parent 2db1775d1f
commit 9fe55ab62d
2 changed files with 29 additions and 34 deletions

View file

@ -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);
}

View file

@ -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})',
),
),
),
],
),
),