The Complete Flutter Course: Build Android, iOS and Web Apps

Debugging Flutter apps and fixing errors

Errors cost beginners hours mostly because the message looks foreign. This guide gathers the lessons of The Complete Flutter Course: Build Android, iOS and Web Apps where a real error appears in a real project and is fixed in front of you, from a failed set-up check to a clash between two forms, and says plainly which debugging tools the course leaves for later.

Taught by Sagnik Bhattacharya and Paulina Knop

The Complete Flutter Course: Build Android, iOS and Web Apps: Sagnik Bhattacharya and Paulina Knop

What you will be able to do

You will be able to:

  • Read flutter doctor's report and clear the items your platforms need.
  • Fix a failed Android build by upgrading Gradle, then cleaning the project and fetching packages again.
  • Use the Flutter Inspector to see why a layout sits where it does, and fix the overflow it reveals.
  • Replace print with the logger package so test output stays out of the released app.
  • Trace an error back to its cause, such as two forms sharing one key.
  • Tell a platform's fault from your own by trying the same feature on another platform.

Projects

What you will build.

The course has nine projects. These two matter most here.

  • Project 01

    My Dashatar

    The first build errors met and fixed, before there is much code for them to hide in.

  • Project 04

    Portfolio website and app

    Real faults from a real project: a renderer bug and two forms that clashed.

Lessons

The lessons that matter, in course order.

The Complete Flutter Course: Build Android, iOS and Web Apps has 223 lessons. This page picks out 8 of them, 34 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 9 Run flutter doctor and accept Android licences

Start at Lesson 9 if your set-up is failing; otherwise go to the lesson for the error in front of you. The later lessons sit inside projects, so their code makes most sense once you have built that project up to the same point.

8 of 223 lessons · 34 min

02 Flutter Setup and Installation 1 of 9 lessons · 1 min flutter doctor's report read line by line, and the Android licences accepted.
  1. 9 Start here Run flutter doctor and accept Android licences Read the report and run flutter doctor --android-licenses 1 min
03 My Dashatar app - Start with the basics to create your First Flutter App 1 of 7 lessons · 2 min A build failure fixed with Android Studio's Gradle upgrade assistant, flutter clean and pub get.
  1. 19 Fix build errors by upgrading Gradle Android Studio upgrade assistant, flutter clean and pub get 2 min
05 My Dashatar App - Understanding Flutter layouts in depth 2 of 6 lessons · 12 min The Flutter Inspector on a Row and a Column, then overflow errors fixed with ListView and SingleChildScrollView.
  1. 25 Align widgets in a Row and a Column Main and cross axis alignment and the Flutter Inspector 7 min
  2. 26 ListView and SingleChildScrollView Fix overflow errors with vertical and horizontal scrolling 5 min
12 Contact Page - (Flutter Portfolio) 1 of 8 lessons · 6 min A hover bug traced to the HTML web renderer, since removed from Flutter, with the flag that chose it and a run configuration.
  1. 102 The HTML web renderer, now removed The --web-renderer html flag, its hover bug and a run setup 6 min
17 Add data to Firestore using Flutter: Contact page: Flutter Portfolio 1 of 6 lessons · 5 min print replaced by the logger package, so debug output stays out of the released app.
  1. 133 Replace print with the logger package Keep test output out of the released app with logger.d 5 min
19 How to reuse code in your Flutter app? (Portfolio app) 1 of 10 lessons · 4 min An error from two forms sharing one GlobalKey, fixed by giving each form a key of its own.
  1. 151 Reuse the mobile contact form ContactFormMobile, shared controllers and a GlobalKey per form 4 min
22 Budget App using Flutter Riverpod and MVVM architecture 1 of 47 lessons · 4 min Sign-in tested in Chrome after an emulator network bug, a way round a fault that is not in your code.
  1. 175 Registering and logging in to the app Test both buttons on Chrome after an emulator network bug 4 min

Instructors

Who teaches it.

Paulina Knop smiling, shoulder-length brown hair, wearing a black top.

Instructor, Flutter

Paulina Knop

Flutter developer and curriculum designer. Teaches the Flutter course.

Questions

Asked before starting.

How do I learn to track down and fix errors in Flutter apps?

By meeting real errors and fixing them one at a time, reading the message before changing anything. The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids does that as its projects run into them: flutter doctor's report, a Gradle build failure, overflow seen in the Flutter Inspector, a web renderer bug, an error from two forms sharing one key and an emulator network fault. This guide gathers those 8 lessons (34 minutes). It is not for someone who wants breakpoints or Flutter DevTools taught.

How do I fix a Gradle build error in a Flutter project?

Often by upgrading Gradle, then cleaning the project. The Complete Flutter Course: Build Android, iOS and Web Apps meets a common build failure at Lesson 19 and fixes it with Android Studio's upgrade assistant, followed by flutter clean and flutter pub get to clear old build files and fetch the packages again. If an error remains, read its first lines: they often name the Gradle, plugin or Java setting it expects.

What does the Flutter Inspector show me?

The widget tree of the running app, with the size and alignment of each widget, so you can see why a layout sits where it does. The Complete Flutter Course: Build Android, iOS and Web Apps opens it at Lesson 25 while aligning a Row and a Column on both axes, and the next lesson uses what it shows to fix overflow with ListView and SingleChildScrollView.

How do I log messages without leaving them in the released app?

Use a logging package instead of print. The Complete Flutter Course: Build Android, iOS and Web Apps swaps print for the logger package at Lesson 133, whose debug messages show while you develop and stay silent in the released app, then uses it to check what each contact form field holds; the portfolio's refactor later keeps one shared logger for the whole app.

Will I learn breakpoints and Flutter DevTools?

No. The Complete Flutter Course: Build Android, iOS and Web Apps does not teach breakpoints, stepping through code in the debugger, Flutter DevTools or performance profiling as subjects; its debugging is reading errors, the Flutter Inspector and logging. Android Studio, the editor the course uses, has those tools built in, and Flutter's documentation explains them step by step.

Why does something work on one platform and fail on another?

Because each platform has its own build tools, renderer and quirks, so a fault can belong to one alone. The Complete Flutter Course: Build Android, iOS and Web Apps meets two such cases: a hover bug that only the old HTML web renderer showed, at Lesson 102, and an emulator network fault during sign-in, worked round by testing in Chrome at Lesson 175. Trying a feature on a second platform is a quick way to tell your bug from the platform's.

Flutter

See the whole course.

The Complete Flutter Course: Build Android, iOS and Web Apps: 25 hours of video in 223 lessons, built around 9 projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.