Documentation
¶
Overview ¶
Package examples is the parent of the runnable examples. Each example is a main package in its own directory, for instance examples/counter, and uses only the public packages. Early development examples live in examples/dev.
Flutter: the examples in the Flutter repository (examples/).
Directories
¶
| Path | Synopsis |
|---|---|
|
Command animations shows four animations in four labelled tiles: an AnimatedContainer that changes size, color and corner radius when tapped, a Pulse (a ScaleTransition driven by a repeating controller), an AnimatedSwitcher that cycles a counter, and a TweenAnimationBuilder that turns a plus sign.
|
Command animations shows four animations in four labelled tiles: an AnimatedContainer that changes size, color and corner radius when tapped, a Pulse (a ScaleTransition driven by a repeating controller), an AnimatedSwitcher that cycles a counter, and a TweenAnimationBuilder that turns a plus sign. |
|
Command counter is the reference example of the SPEC (§12.12): a Material 3 app with an app bar, a counter and a floating action button that adds one.
|
Command counter is the reference example of the SPEC (§12.12): a Material 3 app with an app bar, a counter and a floating action button that adds one. |
|
Command custompaint shows CustomPaint with a custom painter: an analog clock with a gradient face, a shadow, minute and hour ticks and three hands.
|
Command custompaint shows CustomPaint with a custom painter: an analog clock with a gradient face, a shadow, minute and hour ticks and three hands. |
|
dev
|
|
|
canvas-tour
command
Command canvas-tour opens a 640x480 window that shows the proof scenes of milestones 2 to 4 (shapes, gradients, blend modes, effects, text), one per page, drawn by the GPU renderer, and a last page, size-grid, that depends on the size of the window: a grid of lines one pixel wide, which shows whether the buffer is as sharp as the screen (on a display with a fractional scale it must be, step 3.7).
|
Command canvas-tour opens a 640x480 window that shows the proof scenes of milestones 2 to 4 (shapes, gradients, blend modes, effects, text), one per page, drawn by the GPU renderer, and a last page, size-grid, that depends on the size of the window: a grid of lines one pixel wide, which shows whether the buffer is as sharp as the screen (on a display with a fractional scale it must be, step 3.7). |
|
input
command
Command input opens a 640x400 window that logs every key and pointer event (with slog) and changes the mouse cursor: a text cursor over the left half of the window, a pointing hand over the right half.
|
Command input opens a 640x400 window that logs every key and pointer event (with slog) and changes the mouse cursor: a text cursor over the left half of the window, a pointing hand over the right half. |
|
runapp
command
Command runapp is a development example (step 7.4): it runs the widgets binding with widgets.RunApp and shows a render tree made of widgets, to check the whole path from RunApp to the window.
|
Command runapp is a development example (step 7.4): it runs the widgets binding with widgets.RunApp and shows a render tree made of widgets, to check the whole path from RunApp to the window. |
|
text-tour
command
Command text-tour opens a 640x480 window that shows the text proof (the text-tour scene of internal/proof) drawn by the GPU renderer: Latin text in several sizes, weights and styles, Arabic and Hebrew, CJK, color emoji, every decoration style, shadows, an ellipsized paragraph and a justified one.
|
Command text-tour opens a 640x480 window that shows the text proof (the text-tour scene of internal/proof) drawn by the GPU renderer: Latin text in several sizes, weights and styles, Arabic and Hebrew, CJK, color emoji, every decoration style, shadows, an ellipsized paragraph and a justified one. |
|
window
command
Command window opens a 640x400 window (Wayland or X11) titled "Glutter dev window" and fills it with #6750A4 using OpenGL ES, drawing a new frame each time the compositor asks for one.
|
Command window opens a 640x400 window (Wayland or X11) titled "Glutter dev window" and fills it with #6750A4 using OpenGL ES, drawing a new frame each time the compositor asks for one. |
|
Command editor is a small text editor on a WidgetsApp, without Material.
|
Command editor is a small text editor on a WidgetsApp, without Material. |
|
Command gallery shows the Material components of Glutter, one page for each group of them, with a side list to choose the page and a toggle between the light and the dark theme.
|
Command gallery shows the Material components of Glutter, one page for each group of them, with a side list to choose the page and a toggle between the light and the dark theme. |
|
Command layout shows the layout widgets of Glutter in five labelled sections: a Row with Expanded and Flexible children, a Column for each MainAxisAlignment, a Stack with a Positioned badge, a Wrap of twelve colored tags and a Table.
|
Command layout shows the layout widgets of Glutter in five labelled sections: a Row with Expanded and Flexible children, a Column for each MainAxisAlignment, a Stack with a Positioned badge, a Wrap of twelve colored tags and a Table. |
|
Command multiwindow shows several windows.
|
Command multiwindow shows several windows. |
|
Command navigation shows the navigation of Glutter on a WidgetsApp, without Material.
|
Command navigation shows the navigation of Glutter on a WidgetsApp, without Material. |
|
Command scrolling shows the scroll views of Glutter in seven tabs: a ListView with 10,000 rows, a GridView of colored tiles, a CustomScrollView with a pinned header, a list and a grid, a PageView of three pages, a ReorderableList, a TreeSliver (a file tree whose folders expand and collapse) and a Material ReorderableListView (with its drag handles).
|
Command scrolling shows the scroll views of Glutter in seven tabs: a ListView with 10,000 rows, a GridView of colored tiles, a CustomScrollView with a pinned header, a list and a grid, a PageView of three pages, a ReorderableList, a TreeSliver (a file tree whose folders expand and collapse) and a Material ReorderableListView (with its drag handles). |
|
Command todo is a to-do list in a table.
|
Command todo is a to-do list in a table. |
|
Command tray is a small note-taking window that lives in the system tray.
|
Command tray is a small note-taking window that lives in the system tray. |