Skip to content

Commit

Permalink
Merge pull request #15 from alexmercerind/flutter-3.0
Browse files Browse the repository at this point in the history
Flutter 3.0.0 compatibility
  • Loading branch information
alexmercerind authored May 25, 2022
2 parents 88192ff + 5f08742 commit af2374d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _NativeViewState extends State<NativeView>
@override
void initState() {
super.initState();
WidgetsBinding.instance!.addPostFrameCallback(
_ambiguate(WidgetsBinding.instance)!.addPostFrameCallback(
(_) {
widget.controller.createNativeView();
},
Expand Down Expand Up @@ -171,3 +171,5 @@ extension GlobalKeyExtension on GlobalKey {
}
}
}

T? _ambiguate<T>(T? value) => value;

0 comments on commit af2374d

Please sign in to comment.