~/talk

Applying Matrix4 Transformations in Flutter

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter, web-animation]
links:none on file
slides:none on file

Uses Matrix4 from vector_math as a 4x4 (16 doubles) transform to combine translate, scale and rotate into one pipeline, showing concrete code: translate(x:50), rotateC(pi/4) and rotateX(animation to 4π for two full flips), and a scale tween 1.0→1.3→1.0. Demonstrates tap-to-translate via GestureDetector, pinch-to-zoom using focal point deltas, and fixing visual bugs by reordering operations (translate before rotate/scale). Highlights Matrix4 (4x4, 16 doubles), Transform widget wrapping child, and compositing-only GPU transforms for maximal performance.

AI-written summary · about

  1. 0:00Matrix4 in Flutter
  2. 1:06Flutter coordinate system
  3. 6:58Matrix4 fundamentals
  4. 9:48Transform widget API
  5. 10:30Translating with Matrix4
  6. 11:55Scaling with Matrix4
  7. 13:00Rotating with Matrix4
  8. 15:09Skewing and perspective
  9. 16:13Order in transformations
  10. 17:41Matrix4 performance
  11. 19:50Flipping coin demo
  12. 25:09Global Comics examples
  13. 30:45Summary
~/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.