hcbpassos / double_back_to_close_app

A Flutter package that allows Android users to press the back-button twice to close the app.
BSD 2-Clause "Simplified" License
59 stars 17 forks source link

Widget not working with flutter beta 1.24.0 #13

Closed cedteg closed 3 years ago

cedteg commented 3 years ago

Hey,

I get this issue with flutter beta

double_back_to_close_app.dart:91:30: Error: No named parameter with the name 'nullOk'. if (Scaffold.of(context, nullOk: true) == null) {

ch3ckmat3 commented 3 years ago

Came here to post this error

ch3ckmat3 commented 3 years ago

Shall we paste the raw code in our App or shall we wait for the fix?

ghost commented 3 years ago

Thanks for letting me know.

This problem is caused by breaking changes on the flutter framework due to null safety support.

If I were to tight up sdk constraints in pubspec.yaml and fix the problem mentioned, the new release wouldn't be backward compatible, so I'll work around this by publishing a pre-release soon :)

surveshoeb commented 3 years ago

Thanks for letting me know.

This problem is caused by breaking changes on the flutter framework due to null safety support.

If I were to tight up sdk constraints in pubspec.yaml and fix the problem mentioned, the new release wouldn't be backward compatible, so I'll work around this by publishing a pre-release soon :)

Will be waiting for your release.

hcbpassos commented 3 years ago

Prerelease 1.3.0-nullsafety.1 is available on pub :)