Flutter-v3 icon indicating copy to clipboard operation
Flutter-v3 copied to clipboard

Flutter Toast incompatibility

Open al-mohad opened this issue 2 years ago • 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)

al-mohad avatar Feb 13 '23 20:02 al-mohad

@al-mohad please where you able to fix this?

toykam avatar Feb 15 '23 22:02 toykam

Hello @al-mohadm, this has been updated in the latest version

FredDominant avatar Jun 26 '23 12:06 FredDominant