You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performing hot restart...
Syncing files to device sdk gphone x86...
Restarted application in 4.201ms.
======== Exception caught by widgets library =======================================================
The following assertion was thrown building MyApp:
No MediaQuery widget ancestor found.
Scaffold widgets require a MediaQuery widget ancestor.
The specific widget that could not find a MediaQuery ancestor was: Scaffold
dirty
state: ScaffoldState#912c9(lifecycle state: initialized, tickers: tracking 2 tickers)
The ownership chain for the affected widget is: "Scaffold ← MyApp ← [root]"
No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of(). This can happen because you have not added a WidgetsApp, CupertinoApp, or MaterialApp widget (those widgets introduce a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
The relevant error-causing widget was:
MyApp file:///C:/Users/corre/Desktop/Projetos/frete_correios/lib/main.dart:6:10
When the exception was thrown, this was the stack:
#0 debugCheckHasMediaQuery. (package:flutter/src/widgets/debug.dart:219:7) #1 debugCheckHasMediaQuery (package:flutter/src/widgets/debug.dart:234:4) #2 MediaQuery.of (package:flutter/src/widgets/media_query.dart:820:12) #3 ScaffoldState.didChangeDependencies (package:flutter/src/material/scaffold.dart:2820:50) #4 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4725:11)
...
======== Exception caught by widgets library =======================================================
The following assertion was thrown building MyApp:
No MediaQuery widget ancestor found.
Scaffold widgets require a MediaQuery widget ancestor.
The specific widget that could not find a MediaQuery ancestor was: Scaffold
dirty
state: ScaffoldState#585e0(lifecycle state: initialized, tickers: tracking 2 tickers)
The ownership chain for the affected widget is: "Scaffold ← MyApp ← [root]"
No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of(). This can happen because you have not added a WidgetsApp, CupertinoApp, or MaterialApp widget (those widgets introduce a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
The relevant error-causing widget was:
MyApp file:///C:/Users/corre/Desktop/Projetos/frete_correios/lib/main.dart:6:10
When the exception was thrown, this was the stack:
#0 debugCheckHasMediaQuery. (package:flutter/src/widgets/debug.dart:219:7) #1 debugCheckHasMediaQuery (package:flutter/src/widgets/debug.dart:234:4) #2 MediaQuery.of (package:flutter/src/widgets/media_query.dart:820:12) #3 ScaffoldState.didChangeDependencies (package:flutter/src/material/scaffold.dart:2820:50) #4 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4725:11)
...
The text was updated successfully, but these errors were encountered:
---------------------------------------------------------Classe Calculadora------------------------------------------------------------
----------------------------------------------------------------Método Main-------------------------------------------------------------
------------------------------------------------------------------------Run-----------------------------------------------------------------
The text was updated successfully, but these errors were encountered: