Skip to Content
Examples

Examples

Every entry below is a file you can run. The catalogs in the repository own the complete list; this page is the short way in.

The counter, running

example/counter.dart is the larger counter: a title bar, a border, arrow keys, +, -, and explicit pointer handling. It is not the small app from Your first app; that tutorial shows its own captured frames.

Noir counter · Up, Space, then pointer activationView source
dart run noir:run example/counter.dartRecorded at 64×18 through NoirDriver (NOIR_DRIVE=1). Play to see the real rendered cells respond to parsed input.

Core examples

These need only the published noir package. Clone the repository and run them from packages/noir.

SourceCommandWhat it demonstrates
counter.dart dart run example/counter.dartRetained state, keyboard activation, and pointer activation.
layout_basics.dart dart run example/layout_basics.dartContainer, Row, Column, spacing, and flex distribution.
focus_form.dart dart run example/focus_form.dartFocus cues, validated input, submission, and pointer activation.
components_demo.dart dart run example/components_demo.dartEvery public control under two palettes.

The core example catalog  lists the rest, grouped by concept, controls, complete apps, motion, and advanced reference.

Companion examples

These use the optional noir_signals package. Run dart pub get at the repository root first, then run the commands from packages/noir_signals/.

SourceCommandWhat it demonstrates
counter.dart dart run example/counter.dartSignalWidget and useState for one local value.
task_list.dart dart run example/task_list.dartThe finished app from the task-list tutorial.
file_search.dart dart run example/file_search.dartAn externally owned model observed with SignalValueBuilder.

The companion example directory  holds these files and its own index. The tutorial’s first four checkpoints live in example/tutorials/task_list/. The final checkpoint is the shipped example/task_list.dart.

See Installation for the dependency setup these examples assume.

Last updated on