Beginning Flutter Debugging

Jan 18 2022 Dart 2.14, Flutter 2.5, VS Code 1.62 OR Android Studio

Part 1: Beginning Flutter Debugging

10. Understand the Red Screen of Death

Lesson Complete

Play Next Lesson
Next
Save for later
About this episode
See versions
See forum comments
Cinema mode Mark as Complete Download course materials
Previous episode: 9. Solve Layout Errors in ListViews Next episode: 11. Customize Linting with Dart Analyzer

No widget died during the creation of this episode.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.

So far, we’ve encountered errors that displays its details mainly in the debug console and sidebar. The Overflow warning sign is shown on the UI to let you know that an overflow occured then you open up the debug console to get more info about the error.

home: Scaffold(
  appBar: AppBar(
    title: const Text('Wazobia App'),
  ),
  body: Center(
    child: Container(
      height: MediaQuery.of(context).size.height / 2,
      width: MediaQuery.of(context).size.width / 2,
      color: Colors.amber,
    ),
  ),
),
body: Builder(
  builder: (BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Wazobia App'),
      ),
      body: Center(
        child: Container(
          height: MediaQuery.of(context).size.height / 2,
          width: MediaQuery.of(context).size.width / 2,
          color: Colors.amber,
        ),
      ),
    );
  },
),