Concepts
Concepts
These pages explain how a gift application works. Read them in order if you are new to gift: the first four explain the core model, the rest build on it. Each page links to the components and examples that show the concept in action.
View functions, composition, components, memoization and keys.
Padding, frame, background, border, clip and the other chained methods.
Typed state, what a write rebuilds, bindings and editors.
Constraints, how stacks divide space, flex, frames, alignment and overflow.
Semantic colors, the light and dark theme and switching at run time.
Installing fonts, the font register, shaping, wrapping and truncation.
The outline and solid symbol sets, your own icons and what they cost.
The image pipeline: sources, thumbnails, caches, budgets and errors.
Hit testing, pointer capture, touch, keyboard focus, clipboard and the on-screen keyboard.
Navigation stacks, tab bars and overlays, all driven by your state.
What animates by itself, transitions and animating your own painters.
The UI goroutine, App.Post, tokens and background work.
Your own view type with a layouter, a painter and input handling.
Drawing on demand, glass quality, window setup and Raspberry Pi OS.
Headless tests with gifttest, golden images and the giftauto interface.
Counters, overflow reports, the metrics build, the debug build and logging.