报错解决

1、Scaffold widgets require a MediaQuery widget ancestor.
Scaffold不能作为根视图出现在布局中,通常Scaffold的父类是MaterialApp。
2、Typically, the MediaQuery widget is introduced by the MaterialApp or WidgetsApp widget at the top of your application widget tree。

你可能感兴趣的:(报错解决)