按照official internationalization tutorial的提示,当我尝试使用从ARB文件自动生成的翻译引擎(AppLocalizations.of(context).helloWrold)时,我得到了The getter was called on null: import 'package:flutter/material.dart';
import 'package:flutter_gen
我犯这个错误已经有一段时间了,我想我需要一些专家的第二眼来解决这个问题,我对^语言很陌生。我在我的项目中添加了可本地化的语言,以不同的语言添加了所有的files.arb,并试图按照Google的教程和其他不同的工作导入它,但是仍然会出现相同的错误:The following NoSuchMethodError was thrown building StyleguideScreen(dirty):
The getter
I/flutter ( 4941): The getter 'openAppDrawerTooltip' was called on null.I/flutter ( 4941): Receiver: null I/flutter ( 4941): Tried calling: openAppDrawerTooltip I/flutter (on null.I/flutter
每当我试图运行我的颤振应用程序时,我都会得到这个错误。它只会在下面抛出错误,编译器就会退出。
../..Local/Pub/Cache/hosted/pub.dartlang.org/nb_utils-3.3.0+13/lib/src/AppTextField.dart:181:60: Error: The getter- 'ThemeData' is from 'package:flutter<