Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FlutterError.onError is not called when framework throws an error #78503

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
@chvin

Description

@chvin

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

image

Question

image
FlutterError.onError not called when flutter framework error

Metadata

Metadata

Assignees

No one assigned

    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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp