@@ -365,16 +365,12 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
365
365
366
366
Widget _exposureModeControlRowWidget () {
367
367
final ButtonStyle styleAuto = TextButton .styleFrom (
368
- // TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
369
- // ignore: deprecated_member_use
370
- primary: controller? .value.exposureMode == ExposureMode .auto
368
+ foregroundColor: controller? .value.exposureMode == ExposureMode .auto
371
369
? Colors .orange
372
370
: Colors .blue,
373
371
);
374
372
final ButtonStyle styleLocked = TextButton .styleFrom (
375
- // TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
376
- // ignore: deprecated_member_use
377
- primary: controller? .value.exposureMode == ExposureMode .locked
373
+ foregroundColor: controller? .value.exposureMode == ExposureMode .locked
378
374
? Colors .orange
379
375
: Colors .blue,
380
376
);
@@ -452,16 +448,12 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
452
448
453
449
Widget _focusModeControlRowWidget () {
454
450
final ButtonStyle styleAuto = TextButton .styleFrom (
455
- // TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
456
- // ignore: deprecated_member_use
457
- primary: controller? .value.focusMode == FocusMode .auto
451
+ foregroundColor: controller? .value.focusMode == FocusMode .auto
458
452
? Colors .orange
459
453
: Colors .blue,
460
454
);
461
455
final ButtonStyle styleLocked = TextButton .styleFrom (
462
- // TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
463
- // ignore: deprecated_member_use
464
- primary: controller? .value.focusMode == FocusMode .locked
456
+ foregroundColor: controller? .value.focusMode == FocusMode .locked
465
457
? Colors .orange
466
458
: Colors .blue,
467
459
);
0 commit comments