Skip to content

Commit 6196bd2

Browse files
darrenaustinmauricioluz
authored andcommitted
Added ignore deprecation comments to styleFrom button APIs (cont) (flutter#5983)
1 parent 3ba4627 commit 6196bd2

File tree

6 files changed

+26
-2
lines changed

6 files changed

+26
-2
lines changed

packages/camera/camera_android/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.8+1
2+
3+
* Ignores deprecation warnings for upcoming styleFrom button API changes.
4+
15
## 0.9.8
26

37
* Switches to internal method channel implementation.

packages/camera/camera_android/example/lib/main.dart

+8
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,15 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
374374

375375
Widget _exposureModeControlRowWidget() {
376376
final ButtonStyle styleAuto = TextButton.styleFrom(
377+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
378+
// ignore: deprecated_member_use
377379
primary: controller?.value.exposureMode == ExposureMode.auto
378380
? Colors.orange
379381
: Colors.blue,
380382
);
381383
final ButtonStyle styleLocked = TextButton.styleFrom(
384+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
385+
// ignore: deprecated_member_use
382386
primary: controller?.value.exposureMode == ExposureMode.locked
383387
? Colors.orange
384388
: Colors.blue,
@@ -460,11 +464,15 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
460464

461465
Widget _focusModeControlRowWidget() {
462466
final ButtonStyle styleAuto = TextButton.styleFrom(
467+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
468+
// ignore: deprecated_member_use
463469
primary: controller?.value.focusMode == FocusMode.auto
464470
? Colors.orange
465471
: Colors.blue,
466472
);
467473
final ButtonStyle styleLocked = TextButton.styleFrom(
474+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
475+
// ignore: deprecated_member_use
468476
primary: controller?.value.focusMode == FocusMode.locked
469477
? Colors.orange
470478
: Colors.blue,

packages/camera/camera_android/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_android
22
description: Android implementation of the camera plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.9.8
5+
version: 0.9.8+1
66

77
environment:
88
sdk: ">=2.14.0 <3.0.0"

packages/camera/camera_avfoundation/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.8+1
2+
3+
* Ignores deprecation warnings for upcoming styleFrom button API changes.
4+
15
## 0.9.8
26

37
* Switches to internal method channel implementation.

packages/camera/camera_avfoundation/example/lib/main.dart

+8
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,15 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
374374

375375
Widget _exposureModeControlRowWidget() {
376376
final ButtonStyle styleAuto = TextButton.styleFrom(
377+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
378+
// ignore: deprecated_member_use
377379
primary: controller?.value.exposureMode == ExposureMode.auto
378380
? Colors.orange
379381
: Colors.blue,
380382
);
381383
final ButtonStyle styleLocked = TextButton.styleFrom(
384+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
385+
// ignore: deprecated_member_use
382386
primary: controller?.value.exposureMode == ExposureMode.locked
383387
? Colors.orange
384388
: Colors.blue,
@@ -460,11 +464,15 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
460464

461465
Widget _focusModeControlRowWidget() {
462466
final ButtonStyle styleAuto = TextButton.styleFrom(
467+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
468+
// ignore: deprecated_member_use
463469
primary: controller?.value.focusMode == FocusMode.auto
464470
? Colors.orange
465471
: Colors.blue,
466472
);
467473
final ButtonStyle styleLocked = TextButton.styleFrom(
474+
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
475+
// ignore: deprecated_member_use
468476
primary: controller?.value.focusMode == FocusMode.locked
469477
? Colors.orange
470478
: Colors.blue,

packages/camera/camera_avfoundation/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_avfoundation
22
description: iOS implementation of the camera plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera_avfoundation
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.9.8
5+
version: 0.9.8+1
66

77
environment:
88
sdk: ">=2.14.0 <3.0.0"

0 commit comments

Comments
 (0)