- Notifications
You must be signed in to change notification settings - Fork29.7k
Closed
Labels
a: error messageError messages from the Flutter frameworkc: regressionIt was better in the past than it is nowfound in release: 2.0Found to occur in 2.0found in release: 2.1Found to occur in 2.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: duplicateIssue is closed as a duplicate of an existing issue
Description
flutter doctor:
flutter doctorDoctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel stable, 2.0.2, on Mac OS X 10.15.5 19F101 darwin-x64, locale zh-Hans-CN)[✓] Android toolchain - developfor Android devices (Android SDK version 30.0.3)[✓] Xcode - developfor iOS and macOS[✓] Chrome - developfor the web[✓] Android Studio (version 4.1)[✓] VS Code (version 1.54.3)[✓] Connected device (3 available)
Code demo:
import'package:flutter/material.dart';voidmain() {FlutterError.onError= (FlutterErrorDetails details) {print('~~~~~~~ FlutterError catch: $details'); };runApp(MyApp());}classMyAppextendsStatelessWidget {@overrideWidgetbuild(BuildContext context) {returnMaterialApp( title:'FlutterError.onError not called', home:MyHomePage(), ); }}classMyHomePageextendsStatelessWidget {@overrideWidgetbuild(BuildContext context) {returnScaffold( appBar:AppBar( title:Text('FlutterError.onError not called'), ), body:Row( children: [Text('A'*1000), ], )); }}
Screenshot
Question

FlutterError.onError not called when flutter framework error
Metadata
Metadata
Assignees
Labels
a: error messageError messages from the Flutter frameworkc: regressionIt was better in the past than it is nowfound in release: 2.0Found to occur in 2.0found in release: 2.1Found to occur in 2.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: duplicateIssue is closed as a duplicate of an existing issue
