The Complete Flutter Course: Build Android, iOS and Web Apps
Responsive Flutter layouts for phone and web
A Flutter app that runs on phones and in desktop browsers has to look right on both, from a narrow screen held in one hand to a wide window. The Complete Flutter Course: Build Android, iOS and Web Apps handles that across its later apps: pads sized to any phone, a portfolio with web and phone versions of every page, a blog page that adapts itself, and a budget app with its own wide layout. This guide picks out the lessons where each technique appears.
Taught by Sagnik Bhattacharya and Paulina Knop
What you will be able to do
You will be able to:
- Size widgets from the screen with MediaQuery, and keep them clear of notches and system bars with SafeArea.
- Switch between a web and a phone layout at a chosen width with LayoutBuilder.
- Give a section the full height of the screen, and work out an image's height from the screen's width.
- Route each page to its web or phone version by width, and resize shared widgets through an optional width and height.
- Merge two versions of a page into one that sets its sizes and padding from a width check.
- Build wide layouts for a login screen and a dashboard beside their phone layouts.
Projects
What you will build.
The course has nine projects. These three matter most here.
-
Project 03
Launchpad
Pads sized with MediaQuery and spaced with Wrap, so the grid fits whatever phone it opens on.
-
Project 04
Portfolio website and app
Every page in a web and a phone version, then a blog page merged into one that adapts its sizes to the screen.
-
Project 08
Budget app
Narrow and wide screens with layouts of their own, from the login page to the dashboard's totals.
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 13 of them, 1 h 15 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 46 Ninja Challenge 2 solution: fit every screen
Start at Lesson 46, the end of the Launchpad challenge, where MediaQuery first sizes widgets to the screen; if you have not built the launchpad, its challenge begins at Lesson 42. The portfolio's responsive work starts at Lesson 51.
13 of 223 lessons · 1 h 15 min
08 Ninja challenge 2 - Launchpad app The launchpad made to fit every screen: Wrap spacing, pads sized with MediaQuery and SafeArea around them.
- 46 Start here Ninja Challenge 2 solution: fit every screen Wrap spacing, MediaQuery, SafeArea, sounds and the app name 7 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) LayoutBuilder in the portfolio's main file, then the web layout shown above a set width with the phone layout below it.
- 51 Project structure and LayoutBuilder Google Fonts, assets, web and mobile folders and main.dart 6 min
- 52 Layout by screen width and lint rules Web layout above 800 pixels, analysis_options.yaml and TabsWeb 6 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) A first section that fills the window's height, sized with MediaQuery.
- 55 Theme colour and a full-height first section A teal accent photo ring and MediaQuery to size the section 6 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) An image whose height is worked out from the screen's width, ready for the first deploy.
- 74 Getting ready for Firebase Hosting A width-based image height and signing in with firebase login 5 min
11 Mobile Landing Page - Flutter Portfolio A routes file that sends each address to the web or the phone version of its page by width.
- 87 Responsive routes for the portfolio Web or mobile by width, a home fallback and url_strategy 6 min
11 Mobile Landing Page - Flutter Portfolio The animated cards given an optional width and height so the phone layout can shrink them.
- 96 What I do cards on mobile Optional width and height on the renamed AnimatedCard 7 min
19 How to reuse code in your Flutter app? (Portfolio app) The two blog pages merged into one widget that checks the width and sets its title, sizes and padding to match, with the old files deleted.
- 147 Merge the blog pages into one file A common folder, one Blog widget and an isWeb width check 3 min
- 148 Adapt the shared blog page by screen width Title, sizes and padding set by isWeb; old blog files deleted 5 min
22 Budget App using Flutter Riverpod and MVVM architecture The budget app's login page given a wide layout of its own beside the phone one.
- 179 Google button wiring and the web login page Pick the web or mobile sign-in, then start the web layout 4 min
22 Budget App using Flutter Riverpod and MVVM architecture The wide dashboard: a large illustration beside the add buttons, and a totals box drawn at a larger size for the browser.
- 211 Web dashboard layout and add expense button Reset action, a large illustration and the first button 5 min
- 212 Add expense and add income buttons on the web Icon buttons that open the same pop-ups as on mobile 6 min
- 213 Totals box for the web dashboard Budget left, total expense and total income at a larger size 7 min
Instructors
Who teaches it.
Instructor, Flutter
Paulina Knop
Flutter developer and curriculum designer. Teaches the Flutter course.
Questions
Asked before starting.
How can I learn to make one Flutter app fit phones and desktop browsers?
The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids teaches it through apps rather than in theory: a launchpad whose pads fit any phone, a portfolio with web and phone versions of every page, and a budget app with its own wide layout. This guide picks out 13 lessons (1 hour 15 minutes) where MediaQuery, LayoutBuilder and width checks do that work. It suits learners building for phones and the browser together; tablets, foldables and rotation are not covered.
How does the course switch between a phone layout and a wide-screen layout?
By width, in two places. Inside a page, LayoutBuilder reports the space available, and the portfolio shows its web layout above a set width and its phone layout below it. Between pages, the routes file checks the width and sends each address to the web or phone version, so the contact page opens in the right form on any screen. The Complete Flutter Course: Build Android, iOS and Web Apps sets this up from Lesson 51 and in the routes of Lesson 87.
Does it use MediaQuery, LayoutBuilder or both?
Both, for different jobs. MediaQuery gives the size of the whole screen, which The Complete Flutter Course: Build Android, iOS and Web Apps uses to size the launchpad's pads, to give the portfolio's first section the window's full height and to work out an image's height from the width. LayoutBuilder gives the space a widget's parent offers it, which suits choosing between a web and a phone layout. You meet MediaQuery at Lesson 46 and LayoutBuilder at Lesson 51.
How do I size images and sections relative to the screen?
Take a share of the screen's measurements instead of fixed numbers. In The Complete Flutter Course: Build Android, iOS and Web Apps the portfolio's first section fills the window's height through MediaQuery at Lesson 55, an image's height is worked out from the width before the first deploy at Lesson 74, and the animated cards take an optional width and height so the phone version can shrink them at Lesson 96.
Can one shared page adapt itself instead of keeping separate web and mobile files?
Yes, and the course shows the move from one to the other. The portfolio first keeps separate web and mobile files for each page, which is easy to follow, then merges the two blog pages into one widget that checks the width with an isWeb flag and sets its title, sizes and padding to match, deleting the old files. The Complete Flutter Course: Build Android, iOS and Web Apps makes that change at Lesson 147 and Lesson 148.
What about tablets, foldables and rotating the screen?
They are not taught. The Complete Flutter Course: Build Android, iOS and Web Apps designs for two sizes, a phone and a wide browser window, and its width checks choose between those two; it has no lessons on tablet layouts, foldable screens, handling rotation or widgets that adapt their style to each platform. MediaQuery and LayoutBuilder are what those cases build on too, so these lessons are a sound base for adding further breakpoints yourself.
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.
The same course
For another background, goal, topic or comparison.
By background
By goal
By topic
- Dart
- State management
- Firebase
- Widgets and layouts
- UI design and styling
- Riverpod
- App architecture
- Sign-in and authentication
- Cloud Firestore
- REST APIs with Dio
- Navigation and routing
- Animations and gestures
- Flutter web
- Set-up on Windows and Mac
- Forms and validation
- Futures and Streams
- CI with GitHub Actions
- Reusable widgets
- Debugging
- Packages from pub.dev
Comparisons
- Flutter or React Native
- Which framework to learn
- Course or free tutorials
- Flutter or native Android
- Flutter or Swift
- Flutter or Kotlin Multiplatform
- Flutter or FlutterFlow
- Learn Flutter or use AI
- Riverpod, BLoC or Provider
- Firebase or Supabase
- Flutter web or React
- Dart or JavaScript
- Flutter or Ionic
- Flutter or .NET MAUI
- VS Code or Android Studio