场景是替换了一下闪屏图之后就报了这个错误,清除包啥的都不行,先记录一下
No MaterialLocalizations found.
AppBar widgets require MaterialLocalizations to be provided by a Localizations widget ancestor.
The material library uses Localizations to generate messages, labels, and abbreviations.
To introduce a MaterialLocalizations, either use a MaterialApp at the root of your application to include them automatically, or add a Localization widget with a MaterialLocalizations delegate.
The specific widget that could not find a MaterialLocalizations ancestor was: AppBar
dirty
dependencies: [_LocalizationsScope-[GlobalKey#e4a30]]
state: _AppBarState#057f9
The ancestors of this widget were:
: SliverAppBar
dependencies: [MediaQuery, _EffectiveTickerMode]
state: _SliverAppBarState#14e04
: NestedScrollView
state: NestedScrollViewState#7a507
: Scaffold
dependencies: [_LocalizationsScope-[