Skip to content

Commit 2e598ee

Browse files
committed
Merge branch 'dev'
2 parents 3f84efa + be63803 commit 2e598ee

16 files changed

+142
-122
lines changed

lib/data/dto/machine/printer.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class PrinterBuilder {
6161

6262
Printer build() {
6363
if (toolhead == null ||
64-
heaterBed == null ||
6564
printFan == null ||
6665
gCodeMove == null ||
6766
motionReport == null ||
@@ -74,7 +73,7 @@ class PrinterBuilder {
7473
var printer = Printer(
7574
toolhead: toolhead!,
7675
extruders: extruders,
77-
heaterBed: heaterBed!,
76+
heaterBed: heaterBed,
7877
printFan: printFan!,
7978
gCodeMove: gCodeMove!,
8079
motionReport: motionReport!,
@@ -100,7 +99,7 @@ class Printer with _$Printer {
10099
const factory Printer({
101100
required Toolhead toolhead,
102101
required List<Extruder> extruders,
103-
required HeaterBed heaterBed,
102+
required HeaterBed? heaterBed,
104103
required PrintFan printFan,
105104
required GCodeMove gCodeMove,
106105
required MotionReport motionReport,

lib/service/moonraker/klippy_service.dart

-5
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ KlippyService klipperServiceSelected(
3535
@riverpod
3636
Stream<KlipperInstance> klipperSelected(
3737
KlipperSelectedRef ref) async* {
38-
ref.listenSelf((previous, next) {
39-
40-
logger.wtf('-- B: $previous -> $next');
41-
});
4238
try {
4339
var machine = await ref.watchWhereNotNull(selectedMachineProvider);
4440
StreamController<KlipperInstance> sc = StreamController<KlipperInstance>();
@@ -79,7 +75,6 @@ class KlippyService {
7975

8076
ref.listen(jrpcClientStateProvider(ownerUUID), (previous, next) {
8177
var data = next as AsyncValue<ClientState>;
82-
logger.wtf('-- Is Refreshing $data');
8378
switch (data.valueOrFullNull) {
8479
case ClientState.connected:
8580
_onJrpcConnected();

lib/service/moonraker/printer_service.dart

+6-1
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,13 @@ class PrinterService {
212212
_printerStreamCtler.addError(MobilerakerException(
213213
'Could not fetch printer...',
214214
parentException: e,
215-
parentStack: s));
215+
parentStack: s), s);
216+
} on Exception catch (e,s) {
217+
logger.e('Unexpected exception thrown during refresh $ownerUUID...', e, s);
218+
_showExceptionSnackbar(e, s);
219+
_printerStreamCtler.addError(e,s);
216220
}
221+
217222
}
218223

219224
resumePrint() {

lib/ui/components/connection/connection_state_view.dart

-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class WebSocketState extends HookConsumerWidget {
9595
data: (ClientState clientState) {
9696
switch (clientState) {
9797
case ClientState.connected:
98-
logger.w('--NIW: $clientType connectaed');
9998
return KlippyState(
10099
onConnected: onConnected,
101100
);
@@ -199,7 +198,6 @@ class KlippyState extends ConsumerWidget {
199198
}
200199

201200
var watch = ref.watch(klipperSelectedProvider);
202-
logger.wtf('--GOt ${watch.valueOrNull?.klippyState}, isReloading ${watch.isReloading},isRefreshing ${watch.isRefreshing}, isLoading ${watch.isLoading},');
203201
return AsyncValueWidget<KlipperInstance>(
204202
value: watch,
205203
data: (data) {

lib/ui/components/dialog/edit_form/num_edit_form_dialog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class _FormEditDialog extends HookConsumerWidget {
103103
.switchToOtherVariant
104104
: null,
105105
color: isValid.value
106-
? themeData.textTheme.caption?.color
106+
? themeData.textTheme.bodySmall?.color
107107
: themeData.disabledColor,
108108
iconSize: 18,
109109
icon: AnimatedSwitcher(

lib/ui/components/dialog/exclude_object/exclude_object_dialog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class ExcludeObjectPainter extends CustomPainter {
292292
void drawNoDataText(Canvas canvas, double maxX, double maxY) {
293293
TextSpan span = TextSpan(
294294
text: 'dialogs.exclude_object.no_visualization'.tr(),
295-
style: Theme.of(context).textTheme.headline4,
295+
style: Theme.of(context).textTheme.headlineMedium,
296296
);
297297
TextPainter tp = TextPainter(
298298
text: span,

lib/ui/components/drawer/nav_drawer_view.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class _NavHeader extends ConsumerWidget {
206206
machine.httpUrl),
207207
maxLines: 1,
208208
overflow: TextOverflow.ellipsis,
209-
style: themeData.textTheme.subtitle2
209+
style: themeData.textTheme.titleSmall
210210
?.copyWith(color: onBackground),
211211
),
212212
],

lib/ui/components/power_api_panel.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class _PowerDeviceCard extends ConsumerWidget {
8282
crossAxisAlignment: CrossAxisAlignment.start,
8383
children: [
8484
Text(beautifyName(powerDevice.name),
85-
style: Theme.of(context).textTheme.caption),
85+
style: Theme.of(context).textTheme.bodySmall),
8686
Text(powerDevice.status.name.capitalize,
8787
style: Theme.of(context).textTheme.headlineSmall),
8888
],

lib/ui/screens/console/console_page.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class _ConsoleBody extends HookConsumerWidget {
8080
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 3),
8181
child: Text(
8282
'GCode Console',
83-
style: theme.textTheme.subtitle1
83+
style: theme.textTheme.titleMedium
8484
?.copyWith(color: theme.colorScheme.onPrimary),
8585
),
8686
),
@@ -238,7 +238,7 @@ class _Console extends ConsumerWidget {
238238
textStyle = theme.textTheme.bodyText1!;
239239
break;
240240
case ListTileStyle.list:
241-
textStyle = theme.textTheme.subtitle1!;
241+
textStyle = theme.textTheme.titleMedium!;
242242
break;
243243
}
244244

lib/ui/screens/dashboard/tabs/control_tab.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class _FanCard extends StatelessWidget {
268268
children: [
269269
Text(
270270
name,
271-
style: Theme.of(context).textTheme.caption,
271+
style: Theme.of(context).textTheme.bodySmall,
272272
maxLines: 1,
273273
overflow: TextOverflow.ellipsis,
274274
),
@@ -693,7 +693,7 @@ class _PinTile extends ConsumerWidget {
693693
children: [
694694
Text(
695695
beautifiedName,
696-
style: textTheme.caption,
696+
style: textTheme.bodySmall,
697697
maxLines: 1,
698698
overflow: TextOverflow.ellipsis,
699699
),
@@ -722,7 +722,7 @@ class _PinTile extends ConsumerWidget {
722722
children: [
723723
Text(
724724
beautifiedName,
725-
style: textTheme.caption,
725+
style: textTheme.bodySmall,
726726
maxLines: 1,
727727
overflow: TextOverflow.ellipsis,
728728
),
@@ -859,7 +859,7 @@ class _Led extends ConsumerWidget {
859859
children: [
860860
Text(
861861
beautifiedName,
862-
style: textTheme.caption,
862+
style: textTheme.bodySmall,
863863
maxLines: 1,
864864
overflow: TextOverflow.ellipsis,
865865
),

0 commit comments

Comments
 (0)