Closed athJ closed 2 years ago
Same here
Returning to back_button_interceptor: 5.0.2
worked for me
@athJ Version 6.0.0 is for Flutter 3.0, as you can see here: https://pub.dev/packages/back_button_interceptor/changelog
To use Flutter 2, please use version back_button_interceptor: 5.0.2
.
Steps to Reproduce
Actual results: A null exception during build
Launching lib/main.dart on Android SDK built for x86 64 in debug mode... The app could not be configured for release signing. In app purchases will not be testable. See
example/README.md` for more info and instructions. : Error: Property 'handlePopRoute' cannot be accessed on 'WidgetsBinding?' because it is potentially null.Try accessing using ?. instead. WidgetsBinding.instance.handlePopRoute; ^^^^^^^^^^^^^^ : Error: Property 'handlePushRoute' cannot be accessed on 'WidgetsBinding?' because it is potentially null.
FAILURE: Build failed with an exception.
Where: Script '/Users/atharvajagtap/Documents/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org/
BUILD FAILED in 1m 42s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)`
Flutter doctor -v