~/talk

Mastering CustomPainter: Going Beyond Widgets in Flutter

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter, creative-coding]
name:Sofia Rey
links:none on file
slides:none on file

Explains how to parse backend SVG strings into Flutter paths using the xml and path_drawing parser (parseSvgPathData), convert SVG commands to Path methods, then measure routes with computeMetrics to sum contour lengths and map a backend percentage to a point and tangent. Shows a working TruckMap: extract position, draw the car with drawCircle and drawImageRect, layer paints with save/restore, and skip repaints via shouldRepaint — a complete pipeline that actually renders moving cars on a race track.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47Why CustomPainter matters
  3. 2:50Flutter rendering pipeline
  4. 4:39CustomPainter integration
  5. 6:27CustomPainter class
  6. 9:38Canvas API basics
  7. 10:21Basic shape drawing
  8. 12:08Drawing text
  9. 13:13Working with images
  10. 14:59Vertices and GPU optimization
  11. 16:24Path objects deep dive
  12. 17:07Paint styling and effects
  13. 18:35Canvas transformations
  14. 20:00SVG vs Canvas
  15. 21:26SVG path commands
  16. 24:21Bézier curves
  17. 27:36Truck Map case study
  18. 29:03Parsing SVG paths
  19. 31:58Truck Map implementation
  20. 33:23Positioning cars
  21. 36:10Final demo
~/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.