stack

package
v0.0.0-...-e04c4e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package stack demonstrates a screen stack with data flowing in two directions:

Parent → child: via the constructor. cityList pushes newCityDetail(city).
Child → parent: via Pop(result). timezonePicker calls Pop(chosenTZ),
                which lands in cityDetail.OnEnter(chosenTZ).

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

func New

func New(t theme.Theme) screen.Screen

New returns the stack demo's root screen.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL