~/talk

Enhance your Flutter painting skills

Talkat Fluttercon Europe 2024 · 2024-07-03..07-05· [web-animation, creative-coding]
github:letsar
slides:none on file

A live demo builds a “Happy Sparkle” face that follows the pointer, leaves particle trails, and rotates sparkles while remaining performant. Code uses CustomPaint with Paint.shader (radial gradients and image/fragment shaders), maskFilter blur, and repaints driven by a Listenable and shouldRepaint comparisons. Positioning uses canvas.save/restore to rotate copies, images use drawAtlas/drawRawAtlas to batch 21 sprites into one GPU call, overlapping-opacity fixes use saveLayer (expensive), and many particles use drawVertices with indices for efficiency.

AI-written summary · about

  1. 0:00Flutter painting intro
  2. 4:48Happy Sparkle magic
  3. 7:39Repainting custom painters
  4. 10:09Canvas save and restore
  5. 12:41Animating custom painters
  6. 15:11Drawing with drawAtlas
  7. 19:58Fixing opacity issues
  8. 25:02Drawing many vertices
  9. 29:22Flutter painting recap
  10. 30:50Closing & Q&A
~/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.