Module 04 of 12

Styling, Theming & Responsive UI

Lessons

About This Module

A working layout is only half of a good app — it also has to look right and behave sensibly on every screen. This module covers the three things that give a Flutter app its finish: theming, design systems and responsive layout.

You'll start with ThemeData and the Theme widget, which let you set colors and text styles once and have them apply across the whole app, including Material 3 color schemes and dark mode. Then you'll look at typography and custom design, and the Cupertino package for iOS-style widgets alongside Material. It finishes with adaptive and responsive design: using MediaQuery, SafeArea and LayoutBuilder so one codebase works from phones to tablets and the web.

Watch the lessons in order, then continue on to Navigation & Routing.

Lessons

4 videos
01

Theme | Flutter Widget of the Week

A short Flutter team video on the Theme widget: how to define colors and text styles once and apply or override them across your app.

02

Prototyping Beautiful Designs with Flutter

The Flutter team shows what's possible with Flutter's typography and styling, combining variable fonts with Material and Cupertino looks, animation and custom shaders.

03

Flutter's Cupertino Package

An introduction to the Cupertino library of iOS-style widgets and how to use it alongside, or instead of, Material widgets.

04

How to Build Adaptive UI with Flutter

A Google I/O 2024 talk on building apps that adapt to different screen sizes, input devices and platforms from a single codebase.