@@ -146,8 +146,6 @@ class _FanTile extends StatelessWidget {
146
146
147
147
@override
148
148
Widget build (BuildContext context) {
149
- var col = Theme .of (context).primaryColorLight;
150
-
151
149
double icoSize = 30 ;
152
150
var w = speed > 0
153
151
? SpinningFan (size: icoSize)
@@ -158,7 +156,6 @@ class _FanTile extends StatelessWidget {
158
156
159
157
return CardWithButton (
160
158
width: width,
161
- backgroundColor: col,
162
159
child: Row (
163
160
mainAxisAlignment: MainAxisAlignment .spaceBetween,
164
161
children: [
@@ -241,38 +238,24 @@ class ExtruderControlCard extends ViewModelWidget<ControlTabViewModel> {
241
238
children: [
242
239
Container (
243
240
margin: const EdgeInsets .all (5 ),
244
- child: TextButton .icon (
241
+ child: ElevatedButton .icon (
245
242
onPressed:
246
243
model.canUsePrinter ? model.onDeRetractBtn : null ,
247
244
icon: Icon (FlutterIcons .plus_ant),
248
245
label:
249
246
Text ('pages.overview.control.extrude_card.extrude' )
250
247
.tr (),
251
- style: TextButton .styleFrom (
252
- backgroundColor:
253
- Theme .of (context).colorScheme.secondary,
254
- shape: RoundedRectangleBorder (
255
- borderRadius:
256
- BorderRadius .all (Radius .circular (5.0 ))),
257
- primary: textBtnColor),
258
248
),
259
249
),
260
250
Container (
261
251
margin: const EdgeInsets .all (5 ),
262
- child: TextButton .icon (
252
+ child: ElevatedButton .icon (
263
253
onPressed:
264
254
model.canUsePrinter ? model.onRetractBtn : null ,
265
255
icon: Icon (FlutterIcons .minus_ant),
266
256
label:
267
257
Text ('pages.overview.control.extrude_card.retract' )
268
258
.tr (),
269
- style: TextButton .styleFrom (
270
- backgroundColor:
271
- Theme .of (context).colorScheme.secondary,
272
- shape: RoundedRectangleBorder (
273
- borderRadius:
274
- BorderRadius .all (Radius .circular (5.0 ))),
275
- primary: textBtnColor),
276
259
),
277
260
),
278
261
],
@@ -330,9 +313,12 @@ class GcodeMacroCard extends ViewModelWidget<ControlTabViewModel> {
330
313
),
331
314
Padding (
332
315
padding: const EdgeInsets .fromLTRB (15 , 0 , 15 , 15 ),
333
- child: Wrap (
334
- spacing: 5.0 ,
335
- children: _generateGCodeChips (context, model),
316
+ child: ChipTheme (
317
+ data: ChipThemeData (labelStyle: TextStyle (color: Colors .white),deleteIconColor: Colors .white),
318
+ child: Wrap (
319
+ spacing: 5.0 ,
320
+ children: _generateGCodeChips (context, model),
321
+ ),
336
322
),
337
323
),
338
324
],
@@ -453,11 +439,8 @@ class _PinTile extends StatelessWidget {
453
439
454
440
@override
455
441
Widget build (BuildContext context) {
456
- var col = Theme .of (context).primaryColorLight;
457
-
458
442
return CardWithButton (
459
443
width: width,
460
- backgroundColor: col,
461
444
child: Column (
462
445
crossAxisAlignment: CrossAxisAlignment .start,
463
446
children: [
@@ -496,27 +479,17 @@ class MultipliersCard extends ViewModelWidget<ControlTabViewModel> {
496
479
child: Row (
497
480
mainAxisAlignment: MainAxisAlignment .spaceEvenly,
498
481
children: < Widget > [
499
- TextButton (
482
+ ElevatedButton (
500
483
onPressed:
501
484
model.canUsePrinter ? model.onEditSpeedMultiplier : null ,
502
485
child: Text (
503
486
'${tr ('pages.overview.general.print_card.speed' )}: ${model .speedMultiplier }%' ),
504
- style: TextButton .styleFrom (
505
- backgroundColor: Theme .of (context).colorScheme.secondary,
506
- shape: RoundedRectangleBorder (
507
- borderRadius: BorderRadius .all (Radius .circular (5.0 ))),
508
- primary: textBtnColor),
509
487
),
510
- TextButton (
488
+ ElevatedButton (
511
489
onPressed:
512
490
model.canUsePrinter ? model.onEditFlowMultiplier : null ,
513
491
child: Text (
514
492
'${tr ('pages.overview.control.multipl_card.flow' )}: ${model .flowMultiplier }%' ),
515
- style: TextButton .styleFrom (
516
- backgroundColor: Theme .of (context).colorScheme.secondary,
517
- shape: RoundedRectangleBorder (
518
- borderRadius: BorderRadius .all (Radius .circular (5.0 ))),
519
- primary: textBtnColor),
520
493
),
521
494
],
522
495
),
0 commit comments