冉霸霸: ======== Exception caught by widgets library ======================================================= The following assertion was thrown building GovernmentMonitorPage(dirty, state: GovernmentMonitorState#750b1): No MediaQuery widget ancestor found. GovernmentMonitorPage widgets require a MediaQuery widget ancestor. The specific widget that could not find a MediaQuery ancestor was: GovernmentMonitorPage dirty state: GovernmentMonitorState#750b1 The ownership chain for the affected widget is: "GovernmentMonitorPage ← [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: GovernmentMonitorPage 还在吗哥这个不好用
tsReact 创建项目
flutter 使用高德地图