Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

ScaffoldMessenger class not found #350

Closed
YWD opened this issue Oct 17, 2020 · 8 comments
Closed

ScaffoldMessenger class not found #350

YWD opened this issue Oct 17, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@YWD
Copy link

YWD commented Oct 17, 2020

where is ScaffoldMessenger!!!

@YWD YWD added the bug Something isn't working label Oct 17, 2020
@ayaankhan98
Copy link
Contributor

ayaankhan98 commented Oct 17, 2020

@YWD Scaffold Messenger is introduced here, please fetch the latest changes from flutter/flutter master.
hope this clears your concern

@Alabhya268
Copy link
Contributor

Alabhya268 commented Oct 17, 2020

@YWD please upgrade flutter to master branch as ScaffoldMessanger is newly add

@ayaankhan98
Copy link
Contributor

ayaankhan98 commented Oct 17, 2020

@Alabhya268 i do have upgraded version of master branch, i was just telling @YWD about it, as he had created a issue for this.

@Alabhya268
Copy link
Contributor

@YWD i do have upgraded version of master branch, i was just telling @YWD about it, as he had created a issue for this.

@ayaankhan98 sorry it's my fault.i misunderstood the comment

@YWD
Copy link
Author

YWD commented Oct 17, 2020

I'm using the latest master channel!

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.23.0-19.0.pre.92, on Mac OS X 10.15.4 19E287
darwin-x64, locale en-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1)
[✓] VS Code (version 1.41.1)
[✓] Connected device (2 available)

! Doctor found issues in 1 category.

@YWD
Copy link
Author

YWD commented Oct 17, 2020

Oh, It's Android Studio's problem, I have two flutter environment on my computer, and I use stable channel for one project, master channel for gallery. but the 'flutter SDK path' set for gallery project didn't work. I check master channel's scaffold.dart and find there did have 'ScaffoldMessenger'.
Thanks @ayaankhan98 @Alabhya268

@YWD YWD closed this as completed Oct 17, 2020
OCNYang pushed a commit to OCNYang/flutter_widgets that referenced this issue Nov 23, 2020
@r100-stack
Copy link

I solved this problem by changing the Flutter channel to master. (#350 (comment))

Hence, run the following in the command line

flutter channel master
flutter upgrade

@umershaekoor
Copy link

umershaekoor commented Apr 18, 2021

You might need to restart your IDE to remove the squiggly lines, after you've done the steps in in roshan's comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants