What does the following error mean- No Scaffold widget found?
157
The error says that you have no Scaffold widget in your code. Put a Scaffold widget in your code and the error will be gone.
Your code (probably) will be like this:
body: //code
Instead of this, it should be like this:
return Scaffold( body: //code )
Author by
Dendimuhmd
Updated on January 04, 2023Comments
-
Dendimuhmd over 1 year
-
Yash Kadiya about 2 yearstry wrapping your widget with Scaffold.
-
phuzi about 2 yearsTry adding the error as text to the question. Please show us your (relevant) code and what you have tried in an effort to resolve the error.
-