@@ -58,8 +58,7 @@ class SettingsSwitchWidget extends StatefulWidget {
58
58
final void Function ()? onChanged; // Callback
59
59
60
60
const SettingsSwitchWidget (
61
- {Key ? key, required this .label, required this .prefKey, this .enabled = true , this .onChanged})
62
- : super (key: key);
61
+ {super .key, required this .label, required this .prefKey, this .enabled = true , this .onChanged});
63
62
64
63
@override
65
64
SettingsSwitchWidgetState createState () => SettingsSwitchWidgetState ();
@@ -108,8 +107,7 @@ class SettingsPrivacySwitchWidget extends StatefulWidget {
108
107
final void Function ()? onChanged; // Callback
109
108
110
109
const SettingsPrivacySwitchWidget (
111
- {Key ? key, required this .label, required this .prefKey, this .onChanged})
112
- : super (key: key);
110
+ {super .key, required this .label, required this .prefKey, this .onChanged});
113
111
114
112
@override
115
113
SettingsPrivacySwitchWidgetState createState () => SettingsPrivacySwitchWidgetState ();
@@ -182,14 +180,13 @@ class SettingsSliderWidget extends StatefulWidget {
182
180
final void Function (double )? onChangeEnd;
183
181
184
182
const SettingsSliderWidget (
185
- {Key ? key,
183
+ {super . key,
186
184
required this .label,
187
185
required this .prefKey,
188
186
required this .minValue,
189
187
required this .maxValue,
190
188
required this .stepSize,
191
- this .onChangeEnd})
192
- : super (key: key);
189
+ this .onChangeEnd});
193
190
194
191
@override
195
192
SettingsSliderWidgetState createState () => SettingsSliderWidgetState ();
@@ -244,12 +241,11 @@ class SettingsButtonPromptWidget extends StatelessWidget {
244
241
final void Function () handler;
245
242
246
243
const SettingsButtonPromptWidget (
247
- {Key ? key,
244
+ {super . key,
248
245
required this .label,
249
246
required this .alertText,
250
247
required this .buttonTitle,
251
- required this .handler})
252
- : super (key: key);
248
+ required this .handler});
253
249
254
250
Future <void > _showPromptDialog (BuildContext context) async {
255
251
String ? r = await showAlertDialog (
@@ -286,8 +282,7 @@ class SettingsServerSelectionWidget extends StatefulWidget {
286
282
final List <List <String >> items;
287
283
final String prefKey;
288
284
289
- const SettingsServerSelectionWidget ({Key ? key, required this .items, required this .prefKey})
290
- : super (key: key);
285
+ const SettingsServerSelectionWidget ({super .key, required this .items, required this .prefKey});
291
286
292
287
@override
293
288
SettingsServerSelectionWidgetState createState () => SettingsServerSelectionWidgetState ();
@@ -370,8 +365,7 @@ class SettingsLabelValueWidget extends StatelessWidget {
370
365
final String value;
371
366
final dynamic onTapRoute;
372
367
373
- const SettingsLabelValueWidget (this .label, this .value, {this .onTapRoute, Key ? key})
374
- : super (key: key);
368
+ const SettingsLabelValueWidget (this .label, this .value, {this .onTapRoute, super .key});
375
369
376
370
@override
377
371
Widget build (BuildContext context) {
@@ -409,7 +403,7 @@ class SettingsLabelValueWidget extends StatelessWidget {
409
403
class SettingsFullTextLabelWidget extends StatelessWidget {
410
404
final String label;
411
405
412
- const SettingsFullTextLabelWidget (this .label, {Key ? key}) : super ( key: key );
406
+ const SettingsFullTextLabelWidget (this .label, {super . key} );
413
407
414
408
@override
415
409
Widget build (BuildContext context) {
@@ -424,7 +418,7 @@ class SettingsFullTextLabelWidget extends StatelessWidget {
424
418
class SettingsAsyncFullTextLabelWidget extends StatelessWidget {
425
419
final Future <String > future;
426
420
427
- const SettingsAsyncFullTextLabelWidget (this .future, {Key ? key}) : super ( key: key );
421
+ const SettingsAsyncFullTextLabelWidget (this .future, {super . key} );
428
422
429
423
@override
430
424
Widget build (BuildContext context) {
@@ -446,8 +440,7 @@ class SettingsAsyncLabelValueWidget extends StatelessWidget {
446
440
final Future <String > future;
447
441
final Widget ? onTapRoute;
448
442
449
- const SettingsAsyncLabelValueWidget (this .label, this .future, {this .onTapRoute, Key ? key})
450
- : super (key: key);
443
+ const SettingsAsyncLabelValueWidget (this .label, this .future, {this .onTapRoute, super .key});
451
444
452
445
@override
453
446
Widget build (BuildContext context) {
@@ -466,7 +459,7 @@ class SettingsAsyncLabelValueWidget extends StatelessWidget {
466
459
class SettingsVoiceSelectionWidget extends StatefulWidget {
467
460
final String label;
468
461
469
- const SettingsVoiceSelectionWidget ({Key ? key, required this .label}) : super (key : key );
462
+ const SettingsVoiceSelectionWidget ({super . key, required this .label});
470
463
471
464
@override
472
465
SettingsVoiceSelectionWidgetState createState () => SettingsVoiceSelectionWidgetState ();
@@ -503,7 +496,7 @@ class SettingsVoiceSelectionWidgetState extends State<SettingsVoiceSelectionWidg
503
496
class SettingsASRSelectionWidget extends StatefulWidget {
504
497
final String label;
505
498
506
- const SettingsASRSelectionWidget ({Key ? key, required this .label}) : super (key : key );
499
+ const SettingsASRSelectionWidget ({super . key, required this .label});
507
500
508
501
@override
509
502
SettingsASRSelectionWidgetState createState () => SettingsASRSelectionWidgetState ();
@@ -640,7 +633,7 @@ List<Widget> _settings(BuildContext context, void Function() refreshCallback) {
640
633
641
634
/// The main settings route
642
635
class SettingsRoute extends StatefulWidget {
643
- const SettingsRoute ({Key ? key}) : super ( key: key );
636
+ const SettingsRoute ({super . key} );
644
637
645
638
@override
646
639
State <StatefulWidget > createState () => SettingsRouteState ();
0 commit comments