From 9e4e11b67e765d51dde161f10a05f6afb8b2f0bc Mon Sep 17 00:00:00 2001 From: Patrick Schmidt Date: Tue, 30 Apr 2024 06:24:34 +0200 Subject: [PATCH] Fix #365 --- docs/changelog.md | 4 ++ .../overview/components/printer_card.dart | 42 +++++++++---------- pubspec.yaml | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 5863a30c..e6710602 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,9 @@ # Mobileraker - Changelog +## [2.6.18] - 2024-04-30 + +Hotfixing broken overview page + ## [2.6.17] - 2024-04-29 ### Enhancements diff --git a/lib/ui/screens/overview/components/printer_card.dart b/lib/ui/screens/overview/components/printer_card.dart index f1bebeb9..4f7beda3 100644 --- a/lib/ui/screens/overview/components/printer_card.dart +++ b/lib/ui/screens/overview/components/printer_card.dart @@ -136,32 +136,22 @@ class _PrintProgressBar extends ConsumerWidget { var numberFormat = NumberFormat.percentPattern(context.locale.toStringWithSeparator()); if (circular) { - return Positioned.fill( - child: Align( - alignment: Alignment.bottomCenter, - child: CircularPercentIndicator( - radius: 20, - lineWidth: 3, - percent: progress, - center: AutoSizeText( - numberFormat.format(progress), - maxLines: 1, - minFontSize: 8, - maxFontSize: 11, - ), - progressColor: Theme.of(context).colorScheme.secondary, - ), + return CircularPercentIndicator( + radius: 20, + lineWidth: 3, + percent: progress, + center: AutoSizeText( + numberFormat.format(progress), + maxLines: 1, + minFontSize: 8, + maxFontSize: 11, ), + progressColor: Theme.of(context).colorScheme.secondary, ); } - return Positioned.fill( - child: Align( - alignment: Alignment.bottomCenter, - child: LinearProgressIndicator( - value: progress, - ), - ), + return LinearProgressIndicator( + value: progress, ); } } @@ -203,7 +193,13 @@ class _Cam extends ConsumerWidget { ), ), ), - if (printState == PrintState.printing) const _PrintProgressBar(), + if (printState == PrintState.printing) + const Positioned.fill( + child: Align( + alignment: Alignment.bottomCenter, + child: _PrintProgressBar(), + ), + ), ], ), ), diff --git a/pubspec.yaml b/pubspec.yaml index f8449ceb..4942b5fe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.6.17+440 +version: 2.6.18+440 environment: sdk: '>=3.2.3 <4.0.0'