serverpod_tui library
Classes
- BorderedBox
- A container with a rounded border and optional title.
-
BoundedQueueList<
E> -
A
QueueListwith a fixed maximum length. - Button
- A keyboard-activated button with a highlighted activation character.
- ButtonBar
- A horizontal bar of Button widgets with consistent spacing.
- Checkbox
- A check box component
- CompletedOperation
- Completed tracked operation, stored in the log history.
- CompletedOperationWidget
- Renders a completed tracked operation as a left-aligned log-style line with a trailing divider.
- Form
- A form component that renders text input, single select, boolean and multi-select options.
-
FormConfig<
T extends FormConfigOption> - Base configuration for a form.
- FormConfigOption
- A form configuration option.
- FormDescription
- Description for a form config.
- FormInputConfig
- A text input configuration for a form.
-
FormRequirement<
T extends FormConfigOption> - Represents a requirement for FormConfig.
-
FormSelectionConfig<
T extends FormConfigOption> - A selection configuration for a form.
- FormState
-
State for a
Formcomponent. This manages states for text input, focus and selection (single and multi). - HelpOverlay
- Help overlay showing all keybindings. Sizes to its content; scrolls if content exceeds the available terminal height.
- LogMessageWidget
- Renders a single structured log entry.
- Logo
- LogViewerWidget
- Renders structured log entries with active tracked operations stacked at the bottom.
- RadioButton
- A radio button component.
- RenderUnconstrainedBox
- RenderWrap
- Render object for wrap layouts.
- ServerpodTerminalBackend
- A terminal backend for nocterm that allows executing preExit callback before exiting the Dart process.
- ServerpodTheme
- Provides ServerpodThemeData to the widget tree.
- ServerpodThemeData
-
Serverpod-specific TUI theme colors layered on top of
TuiThemeData. - Shimmer
- A widget that applies an animated shimmer effect to its child.
- SpinnerIcon
- A spinner icon that uses the shared animation from SpinnerScope.
- SpinnerNotifier
- Notifier that broadcasts animation ticks to listeners.
- SpinnerScope
- Provides shared spinner animation state to descendants.
- TabBar
- A tab bar component.
- Tip
- Renders a tip.
- TrackedOperation
- A tracked operation (server session or CLI progress).
- TrackedOperationWidget
- Renders an active tracked operation with spinner.
-
TuiApp<
T extends TuiAppStateHolder< TuiState> > - A root TUI component.
-
TuiAppState<
S extends TuiApp< TuiAppStateHolder< >TuiState> > - The logic and internal state for a TuiApp.
-
TuiAppStateHolder<
S extends TuiState> - Provides access to the shared TuiState and a way to trigger rebuilds on the currently mounted TuiAppState.
- TuiLogSink
-
IOSink that splits captured stdout/stderr into lines and forwards
each to addLine (e.g.
state.rawLines.add). - TuiLogWriter
-
A
LogWriterthat routes log entries and scopes to the TUI state. - TuiState
- Central state for the TUI, mutated by the backend and rendered by nocterm.
- UnconstrainedBox
-
Lets
childlay out at its natural size and reports that size up the tree, ignoring the parent's constraints. - ValidatingTextController
-
A
TextEditingControllerthat validates its text on every change and exposes the validation result via an error notifier. - Wrap
- Creates a wrap layout. By default, the wrap layout is horizontal.
Enums
- BoolFormConfigOption
- FormConfigOption that can either be enabled or disabled.
Extensions
Constants
-
runningFrames
→ const List<
String> - Braille frames that circle.
-
setupFrames
→ const List<
String> - Braille frames that fill upward.
-
teardownFrames
→ const List<
String> - Braille frames that fill downward.
Functions
-
formatDuration(
Duration duration) → String - Format a duration with dynamic units (μs/ms/s/m).
-
runTuiApp(
Component app, {bool enableHotReload = true, TerminalBackend? backend, void onShutdownSignal()?}) → Future< void> - Run a TUI app with terminal settings restoration.
-
shutdownTuiApp(
[int exitCode = 0]) → void - Restores stdin terminal modes captured by runTuiApp then shuts down the nocterm app with proper terminal cleanup.