Skip to content

Insufficient warning when the build function doesn't return a widget #808

Closed
flutter/flutter
#8825
@InMatrix

Description

@InMatrix

Steps to Reproduce

I observed that a user omitted "return" before the widget defined in the build function and IJ didn't complain until the code was run.

To reproduce, remove "return" from "return new Scaffold(" from the starter app. You will only get a very subtle indicator (the lightblue bar left to the line in question) to show you a suggestion to fix it.

image

The Dart Analysis tab does show the error:
image

However, you won't notice this if you are on the console tab. There is no visual indicator to suggest there is new information in the Dart Analysis tab. Is it possible to change the appearance of the Dart Analysis tab when the user's attention is needed?

Version info

That's the version used in the First Look event.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions