flutter记录问题:No MaterialLocalizations found - MyApp widgets require MaterialLocalizations to be provi
背景:只是写了一个按钮,想弹一个dialog,然后报了如下错误:在警告中可以看到这句话:TointroduceaMaterialLocalizations,eitheruseaMaterialAppattherootofyourapplicationtoincludethemautomatically,oraddaLocalizationwidgetwithaMaterialLocalizatio