【flutter】错误:No MaterialLocalizations found.
场景是替换了一下闪屏图之后就报了这个错误,清除包啥的都不行,先记录一下
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 cou
共有 0 条评论