Flutter Toast incompatibility
al-mohad opened this issue · 2 comments
Launching lib/main.dart on SM A125F in debug mode...
: Error: Member not found: 'Overlay.maybeOf'.
var _overlay = Overlay.maybeOf(context!);
^^^^^^^
: Error: The getter 'mounted' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../sdk/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'mounted'.
if (context?.mounted != true) {
^^^^^^^
FAILURE: Build failed with an exception.
-
Where:
Script '/home/almohad/Developer/flutter/sdk/packages/flutter_tools/gradle/flutter.gradle' line: 1159 -
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/home/almohad/Developer/flutter/sdk/bin/flutter'' finished with non-zero exit value 1
- 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 22s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Hello @al-mohadm, this has been updated in the latest version