我无法显示 iOS 的崩溃日志(适用于 Android)。我已经测试了以下内容:
启动:
void main() {
// Set `enableInDevMode` to true to see reports while in debug mode
// This is only to be used for confirming that reports are being
// submitted as expected. It is not intended to be used for everyday
// development.
Crashlytics.instance.enableInDevMode = true;
// Pass all uncaught errors from the framework to Crashlytics.
FlutterError.onError = Crashlytics.instance.recordFlutterError;
runApp(MyApp());
}
Run Code Online (Sandbox Code Playgroud)
扳机:
FlatButton(
child: const Text('Crash'),
onPressed: …Run Code Online (Sandbox Code Playgroud)