Skip to content

Commit

Permalink
Fix #365
Browse files Browse the repository at this point in the history
  • Loading branch information
Clon1998 committed Apr 30, 2024
1 parent 5b174f5 commit 9e4e11b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Mobileraker - Changelog

## [2.6.18] - 2024-04-30

Hotfixing broken overview page

## [2.6.17] - 2024-04-29

### Enhancements
Expand Down
42 changes: 19 additions & 23 deletions lib/ui/screens/overview/components/printer_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}
Expand Down Expand Up @@ -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(),
),
),
],
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9e4e11b

Please sign in to comment.