Undefined name 'AppLocalizations'.
Try correcting the name to one that is defined, or defining the name.
请在 pubspec.yaml 上添加这些依赖项
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: any
然后
pub get
添加依赖 -> 生成:true;