Examples
The package ships 60+ runnable examples — one per feature, each with a recorded GIF. Clone the repo and run any of them.
Running an example
bash
# JIT (source, slower first run)
dart run example/simple.dart
# Kernel snapshot (~2× faster startup)
make kernel EXAMPLE=simple
dart run tool/bin/simple.dillThe catalogue
| Example | What it shows |
|---|---|
| simple.dart | Tick-driven countdown, minimal model |
| textinput.dart | Single-line text input |
| textinputs.dart | Multi-field form with Tab focus |
| textarea.dart | Multi-line editor |
| readline.dart | Readline editing keys |
| autocomplete.dart | Tab-completion suggestions |
| list_filter.dart | ListModel with fuzzy filtering |
| list_mutation.dart | Add / remove list items live |
| multi_select.dart | Checkbox list with toggle-all |
| table.dart | City data table |
| tree.dart | Expandable language/framework tree |
| cursor_model.dart | Blinking block/underline/bar cursor |
| spinner.dart / spinners.dart | One spinner / all frame styles |
| progress_bar.dart / progress_animated.dart | Interactive / auto-incrementing progress |
| spring.dart | Harmonica-style eased motion |
| gum.dart | filter / spin / pager helpers |
| file_picker.dart | Directory browser |
| help.dart | HelpModel + KeyMap |
| timer.dart / stopwatch.dart | Countdown / elapsed time |
| paginator.dart | Page dot indicator |
| gradient.dart | Per-character gradient text |
| canvas.dart | Canvas compositing with z-index |
| tabs.dart | TabsModel tabbed interface |
| border_style.dart | All Border variants + titles + colors |
| word_wrap.dart | Style.wordWrap at multiple widths |
| sgr_attrs.dart | SGR text attributes + Style.inherit() |
| mouse.dart | Mouse click / scroll events |
| exec_cmd.dart | External editor via execProcess |
| http.dart | HTTP fetch with spinner |
| file_log.dart | Write diagnostics to a file, not the UI |
| form.dart | huh-style fields, validation, wizard, dynamic pages |
| showcase.dart / all_features.dart | Full-featured galleries |
Plus more: window_size, fullscreen, cursor_style, pipe, send_msg, realtime, prevent_quit, sequence, focus_blur, vanish, print_key, views, set_window_title, altscreen_toggle, prompts_chain, shopping_list, package_manager, composable_views, color_profile, result, isbn_form.