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); final mediaService = MediaFileService(media);
await mediaService.setUploadState(UploadState.uploaded); await mediaService.setUploadState(UploadState.uploading);
// In all other cases just try the upload again... // In all other cases just try the upload again...
await startBackgroundMediaUpload(mediaService); await startBackgroundMediaUpload(mediaService);
} }

View file

@ -316,40 +316,35 @@ class _PlanCardState extends State<PlanCard> {
}, },
label: const Text('Manage subscription'), label: const Text('Manage subscription'),
), ),
Row( if (widget.onPurchase != null && monthlyProduct != null)
mainAxisAlignment: MainAxisAlignment.center, Padding(
children: [ padding: const EdgeInsets.only(right: 10),
if (widget.onPurchase != null && monthlyProduct != null) child: OutlinedButton.icon(
Padding( onPressed: () => onButtonPressed(monthlyProduct),
padding: const EdgeInsets.only(right: 10), label: (widget.plan == SubscriptionPlan.Free ||
child: OutlinedButton.icon( widget.plan == SubscriptionPlan.Plus)
onPressed: () => onButtonPressed(monthlyProduct), ? Text(context.lang.redeemUserInviteCodeTitle)
label: (widget.plan == SubscriptionPlan.Free || : Text(
widget.plan == SubscriptionPlan.Plus) context.lang.upgradeToPaidPlanButton(
? Text(context.lang.redeemUserInviteCodeTitle) widget.plan.name,
: Text( ' (${context.lang.monthly})',
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 && 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})',
),
),
),
], ],
), ),
), ),