Documentation
¶
Overview ¶
Package stack demonstrates a screen stack: how screens are pushed and popped, how data flows between them, and how a screen replaces itself.
Parent → child: via the constructor. cityList pushes newCityDetail(city).
Child → parent: via Pop(result). timezonePicker calls Pop(chosenTZ),
which lands in cityDetail.OnEnter(chosenTZ).
Self → self: via Replace. Both the list and the detail bind r to
screen.Replace(fresh instance of themselves) — an atomic
top-of-stack swap. Stack depth doesn't change, nothing
flickers, and the screen underneath is untouched: its
OnEnter does not fire. A pop+push would do both.
Each screen uses a different layout to show that the stack doesn't care what its children look like — it just hosts layout.Node trees.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.