Skip to content

Commit 9e4e11b

Browse files
committed
Fix #365
1 parent 5b174f5 commit 9e4e11b

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

docs/changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Mobileraker - Changelog
22

3+
## [2.6.18] - 2024-04-30
4+
5+
Hotfixing broken overview page
6+
37
## [2.6.17] - 2024-04-29
48

59
### Enhancements

lib/ui/screens/overview/components/printer_card.dart

+19-23
Original file line numberDiff line numberDiff line change
@@ -136,32 +136,22 @@ class _PrintProgressBar extends ConsumerWidget {
136136
var numberFormat = NumberFormat.percentPattern(context.locale.toStringWithSeparator());
137137

138138
if (circular) {
139-
return Positioned.fill(
140-
child: Align(
141-
alignment: Alignment.bottomCenter,
142-
child: CircularPercentIndicator(
143-
radius: 20,
144-
lineWidth: 3,
145-
percent: progress,
146-
center: AutoSizeText(
147-
numberFormat.format(progress),
148-
maxLines: 1,
149-
minFontSize: 8,
150-
maxFontSize: 11,
151-
),
152-
progressColor: Theme.of(context).colorScheme.secondary,
153-
),
139+
return CircularPercentIndicator(
140+
radius: 20,
141+
lineWidth: 3,
142+
percent: progress,
143+
center: AutoSizeText(
144+
numberFormat.format(progress),
145+
maxLines: 1,
146+
minFontSize: 8,
147+
maxFontSize: 11,
154148
),
149+
progressColor: Theme.of(context).colorScheme.secondary,
155150
);
156151
}
157152

158-
return Positioned.fill(
159-
child: Align(
160-
alignment: Alignment.bottomCenter,
161-
child: LinearProgressIndicator(
162-
value: progress,
163-
),
164-
),
153+
return LinearProgressIndicator(
154+
value: progress,
165155
);
166156
}
167157
}
@@ -203,7 +193,13 @@ class _Cam extends ConsumerWidget {
203193
),
204194
),
205195
),
206-
if (printState == PrintState.printing) const _PrintProgressBar(),
196+
if (printState == PrintState.printing)
197+
const Positioned.fill(
198+
child: Align(
199+
alignment: Alignment.bottomCenter,
200+
child: _PrintProgressBar(),
201+
),
202+
),
207203
],
208204
),
209205
),

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 2.6.17+440
18+
version: 2.6.18+440
1919

2020
environment:
2121
sdk: '>=3.2.3 <4.0.0'

0 commit comments

Comments
 (0)