~/talk

Mastering Scalable Theming for Custom Flutter Widgets

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter, design-collaboration]
slides:none on file

Explains how to implement scalable theming by using MaterialApp + ThemeData, creating a custom ThemeExtension to hold primary/secondary style objects, and making those style classes implement copyWith and lerp so animations work; uses Material 3 color system and the Material ColorScheme (45 colors); replaces static values with WidgetStateProperty (resolveWith/fromMap) to handle press/hover/focus, tracks states in a Set, and shows where the current API is unsafe and how a unified proposal would fix it.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03What is theming
  3. 4:40Material App theming
  4. 8:54How Material styles resolve
  5. 11:20Styling custom widgets
  6. 13:25Theme extensions
  7. 16:15Smooth transitions
  8. 19:27Managing style variants
  9. 21:16Dynamic styling states
  10. 23:24Interpolating state properties
  11. 26:16WidgetStateProperty challenges
  12. 30:27Improvements proposed
  13. 31:29Extending widget states
  14. 35:04Final thoughts
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.