File tree 4 files changed +18
-4
lines changed
video_player/video_player/test
4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.8.2
2
+
3
+ * Silenced warnings that may occur during build when using a very
4
+ recent version of Flutter relating to null safety.
5
+
1
6
## 0.8.1+3
2
7
3
8
* Do not change camera orientation when iOS device is flat.
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
98
98
99
99
@override
100
100
void dispose () {
101
- WidgetsBinding .instance? .removeObserver (this );
101
+ _ambiguate ( WidgetsBinding .instance) ? .removeObserver (this );
102
102
_flashModeControlRowAnimationController.dispose ();
103
103
_exposureModeControlRowAnimationController.dispose ();
104
104
super .dispose ();
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: A Flutter plugin for getting information about and controlling the
4
4
and streaming image buffers to dart.
5
5
repository : https://github.com/flutter/plugins/tree/master/packages/camera/camera
6
6
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
7
- version : 0.8.1+3
7
+ version : 0.8.2
8
8
9
9
environment :
10
10
sdk : " >=2.12.0 <3.0.0"
Original file line number Diff line number Diff line change @@ -856,7 +856,16 @@ class FakeEventsChannel {
856
856
}
857
857
858
858
void _sendMessage (ByteData data) {
859
- ServicesBinding .instance! .defaultBinaryMessenger.handlePlatformMessage (
860
- eventsMethodChannel.name, data, (ByteData ? data) {});
859
+ _ambiguate (ServicesBinding .instance)!
860
+ .defaultBinaryMessenger
861
+ .handlePlatformMessage (
862
+ eventsMethodChannel.name, data, (ByteData ? data) {});
861
863
}
862
864
}
865
+
866
+ /// This allows a value of type T or T? to be treated as a value of type T?.
867
+ ///
868
+ /// We use this so that APIs that have become non-nullable can still be used
869
+ /// with `!` and `?` on the stable branch.
870
+ // TODO(ianh): Remove this once we roll stable in late 2021.
871
+ T ? _ambiguate <T >(T ? value) => value;
You can’t perform that action at this time.
0 commit comments