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

Flutter widgets and layouts

Every Flutter screen is a tree of widgets, and most layout trouble comes from not seeing that tree clearly. This guide gathers the lessons of The Complete Flutter Course: Build Android, iOS and Web Apps that build it up on one small app and then put it to work on real pages of the portfolio, with the Flutter Inspector to show what a layout really makes.

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:

  • Explain how Flutter's engine draws widgets and read an app as a tree of them.
  • Build a screen from MaterialApp, Scaffold, AppBar, Center, Text and Image.
  • Arrange widgets with Column and Row on both axes, and check the result in the Flutter Inspector.
  • Fix overflow with ListView or SingleChildScrollView, and flow widgets onto the next line with Wrap.
  • Layer widgets with Stack and Positioned, and build a header that collapses as the page scrolls.
  • Build a reusable card whose text is cut short until a button expands it.

Projects

What you will build.

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

  • Project 01

    My Dashatar

    One small app where each layout widget can be tried and seen at once, with no real page in the way.

  • Project 04

    Portfolio website and app

    Real pages that put the same widgets to work: cards, drawers, a collapsing header and posts that expand.

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 16 of them, 1 h 22 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 13 Meet Dash and create the My Dashatar project

Start at Lesson 13 with Flutter installed; the layout lessons from Lesson 22 build on that first widget tree. Know the basics already? Go to Lesson 25 for alignment and the Flutter Inspector, then on to the portfolio lessons for the collapsing header and the expanding card.

16 of 223 lessons · 1 h 22 min

01 Introduction 1 of 3 lessons · 5 min How Flutter works under the hood: Dart compiled to native code and the screen drawn by Flutter's own engine.
  1. 3 How Flutter works under the hood Dart, native compilation and the Flutter rendering engine Free preview 5 min
03 My Dashatar app - Start with the basics to create your First Flutter App 4 of 7 lessons · 27 min The first widget tree: MaterialApp, Center and Text, then Scaffold, an AppBar and an Image from the project's assets.
  1. 13 Start here Meet Dash and create the My Dashatar project Project name, workspace folder and organisation domain 5 min
  2. 14 Build your first widget tree MaterialApp, Center and Text, plus web support and Alt+Enter 7 min
  3. 15 Make your Dashatar and add an AppBar Scaffold, centred title, hex colours and Dart data types 7 min
  4. 16 Add your Dashatar image to the app Assets in pubspec.yaml, Image.asset and the debug banner 8 min
05 My Dashatar App - Understanding Flutter layouts in depth 6 lessons · 30 min Layouts in depth on My Dashatar: a stateless widget, hot reload, Column and Row on both axes, the Flutter Inspector, scrolling, Wrap and Stack.
  1. 22 Turn My Dashatar into a stateless widget Emulator Quick Boot, a MyApp class and the stless shortcut 5 min
  2. 23 Hot reload vs hot restart What each reloads, then size an image with a Container 4 min
  3. 24 Lists in Dart and the Column widget Typed lists in DartPad and a Column of coloured containers 5 min
  4. 25 Align widgets in a Row and a Column Main and cross axis alignment and the Flutter Inspector 7 min
  5. 26 ListView and SingleChildScrollView Fix overflow errors with vertical and horizontal scrolling 5 min
  6. 27 Wrap, Stack and Positioned widgets Flow widgets onto the next line and layer one over another 5 min
12 Contact Page - (Flutter Portfolio) 1 of 8 lessons · 5 min NestedScrollView with a SliverAppBar whose FlexibleSpaceBar image collapses as the contact page scrolls.
  1. 100 Collapsing header on the web Contact page NestedScrollView, SliverAppBar and a FlexibleSpaceBar image 5 min
14 Blog and Works Page - Flutter Portfolio 4 of 10 lessons · 16 min The blog header's image with BoxFit.cover, then a reusable BlogPost card: a headline, text cut short with an ellipsis and a button that expands it.
  1. 115 Finish the blog header, start BlogPost Header image with BoxFit.cover, and a bool to expand posts 5 min
  2. 116 Blog post headline and expand button An IconButton that flips the expand bool with setState 4 min
  3. 117 Blog post body text that expands Open Sans text; maxLines shows three lines or the whole post 3 min
  4. 118 Finish the blog post card TextOverflow.ellipsis, a solid border and more sample posts 3 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.

Where can I properly learn how Flutter widgets and layouts fit together?

The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids teaches them on one small app before using them on real pages. My Dashatar becomes a widget tree with MaterialApp, Scaffold, AppBar, Center and Image, then the place where Column, Row, scrolling, Wrap and Stack are tried one at a time; the portfolio then adds a collapsing header and a post card that expands. This guide picks out 16 lessons (1 hour 22 minutes) on those lessons. It is not the place for Cupertino widgets or custom painting.

How do Row, Column and Stack work, and where does the course use them?

A Column places its children top to bottom and a Row left to right, each aligned along its main axis and across it; a Stack layers children over one another, with Positioned pinning one to an edge. The Complete Flutter Course: Build Android, iOS and Web Apps builds them on My Dashatar: coloured containers in a Column at Lesson 24, alignment on both axes at Lesson 25, and Stack with Positioned at Lesson 27.

How do I fix the yellow-and-black overflow stripes?

The stripes mean the children need more room than their parent gives, usually a Column taller than the screen or a Row wider than it, so make the content scroll or wrap. The Complete Flutter Course: Build Android, iOS and Web Apps shows the scrolling fix at Lesson 26, with ListView and SingleChildScrollView in both directions, and Wrap at Lesson 27, which flows widgets onto the next line instead of past the edge.

Does the course explain the widget tree and how Flutter draws it?

Yes, at the depth a builder needs. The Complete Flutter Course: Build Android, iOS and Web Apps explains at Lesson 3 how Dart compiles to native code and how Flutter's own engine draws the screen, builds a first widget tree at Lesson 14, and opens the Flutter Inspector at Lesson 25 to show the tree a layout makes. It does not take apart the element and render-object layers underneath the widgets.

Does it cover scrolling lists and collapsing headers?

Yes, both. The Complete Flutter Course: Build Android, iOS and Web Apps fixes overflow with ListView and SingleChildScrollView, later builds the portfolio's blog from a list with ListView.builder, and on the contact page makes a large header image collapse as you scroll, with NestedScrollView, a SliverAppBar and a FlexibleSpaceBar. Slivers beyond that collapsing header are not taught.

Does the course use Material widgets, Cupertino widgets or both?

Material only. Every app in The Complete Flutter Course: Build Android, iOS and Web Apps is built from Material widgets such as Scaffold, AppBar, Card and TextFormField, so its screens look much the same on Android and iPhone. Cupertino, Flutter's iOS-style set, is not taught, and neither is custom painting; both are covered in Flutter's own widget catalogue, and the layout skills from the course carry over to them.

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.