File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
video_player/video_player/test Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1+ ## 0.8.1+4
2+
3+ * Silenced warnings that may occur during build when using a very
4+ recent version of Flutter relating to null safety.
5+
16## 0.8.1+3
27
38* 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>
9898
9999 @override
100100 void dispose () {
101- WidgetsBinding .instance? .removeObserver (this );
101+ _ambiguate ( WidgetsBinding .instance) ? .removeObserver (this );
102102 _flashModeControlRowAnimationController.dispose ();
103103 _exposureModeControlRowAnimationController.dispose ();
104104 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
44 and streaming image buffers to dart.
55repository : https://github.com/flutter/plugins/tree/master/packages/camera/camera
66issue_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.1+4
88
99environment :
1010 sdk : " >=2.12.0 <3.0.0"
Original file line number Diff line number Diff line change @@ -856,7 +856,16 @@ class FakeEventsChannel {
856856 }
857857
858858 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) {});
861863 }
862864}
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