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

Flutter web: build a site and put it online

Flutter builds for the browser from the same project as for phones, and The Complete Flutter Course: Build Android, iOS and Web Apps uses that from the moment its portfolio is created: the site gets a favicon and working outside links, is built with flutter build web and is deployed to Firebase Hosting, and the budget app is tested in Chrome. This guide picks out those web lessons and says where they show their age, such as the HTML renderer Flutter has since removed.

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:

  • Create a Flutter project that targets the web alongside Android and iOS, and run it in Chrome.
  • Give a Flutter site its own favicon in the project's web folder.
  • Build a site with flutter build web and deploy it to Firebase Hosting with the Firebase CLI.
  • Open outside links from a Flutter page with url_launcher, the way a normal site's links open.
  • Explain how the CanvasKit renderer differs from the HTML renderer the lessons also show, which Flutter has since removed.
  • Test a web app's sign-in in Chrome when an emulator gets in the way.

Projects

What you will build.

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

  • Project 04

    Portfolio website and app

    A site built for the browser, given a favicon and outside links, then deployed and deployed again as it grows.

  • Project 08

    Budget app

    A full app whose web version signs users in and is tested in Chrome beside its phone version.

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 10 of them, 57 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 47 Creating a new Flutter project

Start at Lesson 47 if you can already build a Flutter screen: the portfolio is created there for the web, Android and iOS together. New to Flutter? Begin at Lesson 1; your first app opens in a browser from Lesson 14.

10 of 223 lessons · 57 min

03 My Dashatar app - Start with the basics to create your First Flutter App 1 of 7 lessons · 7 min A first widget tree with MaterialApp, Center and Text, and web support switched on so the same app opens in a browser.
  1. 14 Build your first widget tree MaterialApp, Center and Text, plus web support and Alt+Enter 7 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) 1 of 35 lessons · 6 min The portfolio created as one project for Android, iOS and the web, with an assets folder for its images.
  1. 47 Start here Creating a new Flutter project Portfolio app for Android, iOS and web, and an assets folder 6 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) 1 of 35 lessons · 6 min A favicon placed in the web folder, and a circle-cropped photo for the site.
  1. 50 Adding a favicon for the web A favicon.io icon in the web folder and a circle-cropped photo 6 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) 3 of 35 lessons · 16 min The site readied for hosting: firebase login, a Firebase project, firebase init and flutter build web, then the first firebase deploy and its release history.
  1. 74 Getting ready for Firebase Hosting A width-based image height and signing in with firebase login 5 min
  2. 75 Creating a Firebase project for hosting The console project, firebase init and flutter build web 5 min
  3. 76 First deploy to Firebase Hosting The firebase deploy command, release history and the drawer 6 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) 1 of 35 lessons · 7 min Social icons that open their pages through url_launcher, wrapped in a reusable link function.
  1. 78 Opening links with url_launcher An Instagram icon button and a reusable link function 7 min
12 Contact Page - (Flutter Portfolio) 1 of 8 lessons · 6 min CanvasKit against the HTML renderer, which the lessons switch on with a flag and Flutter has since removed.
  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 · 4 min The portfolio deployed again with firebase init and firebase deploy, with the course's note that the HTML renderer it used is gone.
  1. 138 Deploy to Firebase Hosting (HTML renderer) Run firebase init and deploy; the HTML renderer is now removed 4 min
22 Budget App using Flutter Riverpod and MVVM architecture 1 of 47 lessons · 4 min The budget app's register and log-in buttons tested in Chrome after an emulator's network fault.
  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.

Is there a course that teaches Flutter for the browser as well as for phones?

The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids builds for both from the same projects. Its portfolio is created for the web, Android and iOS at once, gets a favicon and working outside links and goes live on Firebase Hosting, and its budget app is tested in Chrome as well as on a phone. This guide picks out 10 lessons (57 minutes) of that web work. It suits learners who want one codebase on phones and the web; WebAssembly builds, JavaScript interop and search engine optimisation are not taught.

How do I deploy a Flutter web app to Firebase Hosting?

With the Firebase CLI. You sign in with firebase login, create a Firebase project and run firebase init in your project, build the site with flutter build web, then publish it with firebase deploy, and the Firebase console keeps a history of each release. The Complete Flutter Course: Build Android, iOS and Web Apps walks through it from Lesson 74 to Lesson 76, deploys again at Lesson 138, and installs the Firebase CLI on Windows at Lesson 10.

Which web renderer do the lessons use, and is that still right?

Partly not, and The Complete Flutter Course: Build Android, iOS and Web Apps says so itself. Its lessons compare CanvasKit with the HTML renderer and pass the flag that switches the HTML one on, and both Lesson 102 and Lesson 138 note that Flutter has since removed it. Flutter web now draws with CanvasKit or Skwasm and compiles to JavaScript by default or to WebAssembly on request, so where a lesson passes that flag, build without it.

Can a Flutter web app have a favicon and open outside links like a normal site?

Yes, both. The favicon is an ordinary icon file in the project's web folder, which The Complete Flutter Course: Build Android, iOS and Web Apps adds at Lesson 50. Outside links open through the url_launcher package, which the portfolio wraps in a reusable function at Lesson 78 so that its social icons open their pages in the browser; the same call opens links from the phone app too.

Are WebAssembly builds or JavaScript interop part of the web lessons?

No. The Complete Flutter Course: Build Android, iOS and Web Apps builds its sites the default way, compiled to JavaScript, and has no lessons on WebAssembly builds, on calling JavaScript from Dart, on search engine optimisation or on web apps that work offline. What its web lessons do cover is a Flutter site from new project to live address: layouts chosen by screen width, a favicon, outside links, Firebase Hosting and a Google sign-in that works in the browser.

How do I run and test the web version in Chrome?

Choose Chrome as the device and run the app as you would on a phone: Flutter starts it in a browser window. The Complete Flutter Course: Build Android, iOS and Web Apps switches on web support for its first app at Lesson 14, and at Lesson 175 tests the budget app's registration and log-in in Chrome after a network fault on the emulator, a useful habit whenever one platform misbehaves.

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.