The Complete Flutter Course: Build Android, iOS and Web Apps
Reusable widgets and cleaner Flutter code
For learners facing repeated tabs, forms and text styles in Flutter, this guide selects the reuse lessons in The Complete Flutter Course: Build Android, iOS and Web Apps. Follow parameterised widgets through the portfolio refactor, then tackle the budget app refactor with challenges to attempt before viewing the solutions.
Taught by Sagnik Bhattacharya and Paulina Knop
What you will be able to do
You will be able to:
- Recognise duplication as an app grows and choose the code to share.
- Give widgets named and required parameters for text, sizes and controllers.
- Extract navigation tabs, drawers and contact forms into shared widgets.
- Combine similar pages in a shared widget whose layout responds to screen width.
- Maintain consistent code with lint rules, formatting on save and a shared logger.
Projects
What you will build.
The course has nine projects. These two matter most here.
-
Project 04
Portfolio website and app
Remove duplication from code you have written, after deliberately building the portfolio with repeated elements.
-
Project 08
Budget app
Practise refactoring again in a larger app, attempting several shared widgets before watching the solution.
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, 2 h 3 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 143 Introduction to reusing code
Already built the portfolio? Begin its refactor at Lesson 143, which uses that existing code. Otherwise, the earlier path begins at Lesson 52 and introduces reusable widgets; to build the portfolio itself, start at Lesson 47.
16 of 223 lessons · 2 h 3 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) Configure lint rules in analysis_options.yaml while developing the web layout for screens above a set width.
- 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) Create the portfolio's reusable text widgets, Sans and SansBold, passing in the text and its size.
- 57 Reusable SansBold and Sans text widgets Stateless widgets that take the text and font size 5 min
09 Layouts, Gesture and animations: Landing Page Web (Portfolio) Extract a styled form field into TextForm, using named parameters and marking required inputs.
- 65 Turning the form field into a TextForm widget Named and required parameters and maxLines for taller fields 8 min
19 How to reuse code in your Flutter app? (Portfolio app) Refactor the portfolio to share tabs, drawers, contact forms, skill tags and blog pages, and correct the key shared by separate forms.
- 143 Start here Introduction to reusing code What reuse means, and why the portfolio repeated code so far 3 min
- 144 Reuse the web navigation tabs A TabsWebList widget, plus Ctrl+W to select whole widgets 4 min
- 145 Reuse the web navigation drawer A DrawersWeb widget that carries the URL launcher function 3 min
- 146 Reuse the mobile navigation drawer A DrawersMobile widget with the web drawer's link buttons 3 min
- 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
- 149 Reuse the web contact form One ContactFormWeb widget for the landing and contact pages 4 min
- 150 Why use custom text widgets Sans and SansBold read better than restyling Text each time 1 min
- 151 Reuse the mobile contact form ContactFormMobile, shared controllers and a GlobalKey per form 4 min
- 152 Reuse the teal skill tags One tealContainer function for all skill tags, and one logger 4 min
22 Budget App using Flutter Riverpod and MVVM architecture Start the budget app's Open Sans text widget with reuse built in, rather than extracting it later.
- 170 Creating a custom reusable widget An Open Sans text widget and the styled register button 4 min
22 Budget App using Flutter Riverpod and MVVM architecture Build a shared text form widget with a label, validation, digits-only input and red borders for errors.
- 196 A reusable text form widget Label, validator, digits-only input and red error borders 7 min
23 Budget app: performance optimisation and code reuse Extract shared login fields and buttons, the drawer, add buttons and totals box from the budget app, pausing to attempt several challenges.
- 216 Performance optimisation and code reuse StreamProvider for sign-in, shared widgets and a model class 58 min
Instructors
Who teaches it.
Instructor, Flutter
Paulina Knop
Flutter developer and curriculum designer. Teaches the Flutter course.
Questions
Asked before starting.
Which course teaches me to turn repeated Flutter code into reusable widgets?
The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids demonstrates refactoring in both the portfolio and budget app. The portfolio has a whole section devoted to sharing navigation tabs, web and mobile drawers, contact forms and skill tags as widgets or functions. Its blog pages are combined into a page that adjusts to screen width. The budget app refactor occupies a long lesson with challenges to attempt before the solutions. This guide selects 16 lessons, totalling 2 hours 3 minutes, focused on reuse. It is not for someone who wants widget tests, a package of their own or a design system taught.
How can I give a reusable widget parameters for different screens?
In The Complete Flutter Course: Build Android, iOS and Web Apps, changing values such as text, size and a controller are passed through the constructor as parameters. These are named and marked required when callers must supply them. At Lesson 57, Sans and SansBold show this with text and font-size inputs. At Lesson 65, a styled field becomes TextForm with named and required parameters, plus maxLines to allow taller fields.
When should I use a function instead of a reusable widget?
Flutter's performance guidance favours a widget for a reusable screen element because Flutter can rebuild it independently. Functions suit behaviour, including opening links or displaying dialogs. The Complete Flutter Course: Build Android, iOS and Web Apps demonstrates both: tabs, drawers and forms are widgets, while shared functions handle links and the submit dialog. The skill tags use a tealContainer function that returns a widget.
Why does the course deliberately repeat code before teaching reusable widgets?
The repetition lets you practise implementing each element before extracting shared code. At Lesson 143, The Complete Flutter Course: Build Android, iOS and Web Apps explains that the portfolio's tabs, drawers and forms were repeated deliberately. The refactor therefore removes duplication from code you wrote, rather than from an invented example, showing the purpose of each shared widget.
Will I learn lint rules and consistent Flutter code formatting?
Yes. The Complete Flutter Course: Build Android, iOS and Web Apps covers the basics by configuring lint rules in analysis_options.yaml at Lesson 52 and enabling format on save during set-up so Dart's formatter tidies the files. Short custom text widgets help keep screens readable, and a shared logger replaces print calls scattered through the code.
Does the course teach widget tests, publishing my own packages or creating a design system?
No. The Complete Flutter Course: Build Android, iOS and Web Apps teaches reuse within each app, not widget tests to protect refactoring, publishing your shared widgets as a package, or creating a design system. Its focus is the everyday work that precedes those topics: recognising repeated code, choosing widget parameters and placing shared code in a common file or folder.
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
- Responsive layouts
- Animations and gestures
- Flutter web
- Set-up on Windows and Mac
- Forms and validation
- Futures and Streams
- CI with GitHub Actions
- 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