Skip to content

[Feature Request] Add text on Layout Explorer that shows there is an error #2147

@katisari

Description

@katisari

Screen Shot 2020-07-01 at 1 14 13 PM

Currently, the layout explorer is empty when you click on the Column widget when there is a renderbox not laid out error.
It might be helpful to add a message "Layout could not be determined" on the explorer indicating that nothing was shown on the screen because of the error.
or a visualization of why the listview was causing the error.

To replicate, replace the contents of lib/main.dart with the following:

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Demo'),
        ),
        body: Column(children: [
          ListView(children: [Text('hello')])
        ]),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2important to work on, but not at the top of the work list.enhancementNew feature or requestinspector-2.0-cleanupBugs that will no longer be relevant after Inspector 2.0 has landed.layout explorerscreen: inspector

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions