~/talk

Chaining Jetpack Compose modifiers beyond intuition

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android, kotlin]
links:none on file
slides:none on file

Demonstrates that modifier order changes measured size, placement and hit area by altering constraints and the layout pass: swapping size and padding produces different measured rectangles, multiple size modifiers often do nothing, and a requiredSize still sits inside a parent that fills max size; swapping scale and offset changes whether the translation is scaled; a custom gradient plus clip only works when clip precedes the gradient; conclusion: treat size modifiers in layout phase and graphics modifiers in drawing phase differently.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Modifier chaining intuition
  3. 7:59Layout phase and constraints
  4. 17:58Constraints vs modifiers
  5. 23:21Order matters summary
~/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.