Widget catalog

Every public widget of gowaku, with a picture and the code that drew it.

control.Button

Runs OnPress when pressed.

interact.Pressable

The base for a pressable area with a look of your own: Build gets the hover, press and focus PressState and returns the content.

control.Link

A short text beside the text it belongs to that does something when pressed.

field.Input

A single or multiline text field with its label above.

field.Search

A text field for searching, with a magnifier and a clear button.

field.Autocomplete

A text field that suggests choices below itself as you type.

editor.Editor

An editor for code and long text, with line numbers, decorations and find and replace.

control.NumberStepper

Changes a whole number with minus and plus buttons.

control.Slider

Picks a value in a range.

control.RangeSlider

A Slider with two thumbs that picks a range; dragging the band between them moves both.

field.NumberField

A field for a number, typed or stepped with the arrow keys, the wheel while it has the focus, or a drag of the handle at its end.

field.TokenField

Edits a list of short texts such as tags or addresses, each shown as a chip.

field.Form

Checks and submits the FormItems below it together.

field.TimePicker

A field for a time of day, edited part by part with the arrows or digits.

control.Checkbox

A box that turns an option on and off.

control.Switch

Turns a setting on and off at once, with a knob that moves on a spring.

control.RadioGroup

A set of radio buttons that picks one choice.

control.Radio

A single radio button, for layouts a RadioGroup cannot give.

control.SegmentedControl

Picks one of two to four choices, with a plate that slides on a spring.

field.DropdownMenu

A field that opens a list below itself to pick one choice.

control.Chip

A compact pill: a toggling filter with OnChange, a button with OnPress, or a plain tag with neither.

field.Calendar

Picks a day from a month.

field.DatePicker

A field that shows a date and opens a Calendar below itself, whose title switches to the months and the years (the picture shows the years).

field.ColorPicker

Chooses a color with a plane of saturation and brightness, strips of hue and opacity, and a hex field.

basic.Text

Shows a string broken into lines by the rules of its Style, with Japanese line breaking, vertical text and justification.

basic.RichText

Mixes spans of different looks in one paragraph, with ruby and emphasis dots, and a Background behind a span, such as a match of a search.

field.SelectionArea

Makes the Text and RichText below it selectable with the mouse and the keyboard, and copyable, across paragraphs; ruby copies as its base text.

basic.Icon

Draws a vector shape on a 24 unit grid.

basic.Image

Shows a picture.

basic.SVG

Draws an SVG drawing fitted into a square.

basic.AnimatedImage

Plays an animated GIF, APNG or WebP.

control.Badge

A small mark for a count, a word or a dot.

control.Card

A surface that holds one piece of content.

control.Disclosure

A header that opens and closes the content below it.

interact.InteractiveViewer

Shows its child through a pan and a zoom: drag to move, Ctrl with the wheel or a pinch to zoom about the pointer.

basic.Divider

A hairline between groups of content.

control.Sparkline

A line or bar chart the size of a table cell, without axes or legend.

control.Tabs

Switches between pages, with the chosen page below a row of underlined tabs.

collection.Sidebar

The column of places at the left of a window.

nav.Breadcrumb

The trail to the current place.

nav.Steps

Shows where a flow of several steps is, such as a wizard or a checkout: a numbered circle and a name for each step, joined by lines.

nav.Navigator

A stack of pages.

nav.BackButton

Goes back to the previous page of the nearest Navigator.

control.ProgressBar

Shows how much is done as a bar that fills from the left.

control.ProgressRing

Shows how much is done as a ring that fills clockwise from twelve, with a child in its middle.

control.Skeleton

Stands in for content that is still loading.

overlay.Tooltip

A short label that shows when the pointer rests on its child or the keyboard moves to it.

overlay.Toast

A short message at the bottom of the window for a few seconds, with an optional action such as Undo.

control.InfoBar

A notice that stays in the page: info, success, warning or error, with a close button and one action.

overlay.Dialog

A card that stops the work for an answer.

overlay.Sheet

A panel that slides in from the bottom or the side of the window.

collection.List

A vertical list of any length that builds only the rows near the view.

collection.GridView

A grid of tiles of any number that builds only the rows near the view.

collection.ReorderableList

A List whose items move by drag or with Ctrl+Shift and an arrow.

collection.Table

A table with sorting, filters, range selection, cell editing and frozen columns.

collection.Tree

A tree of nodes that open and close, with multiple selection, lazy loading, renaming and moves by drag.

collection.PropertyGrid

An inspector that edits properties in two columns of names and values, in categories that fold.

collection.Group

A card of rows, the stuff of settings pages and forms.

overlay.MenuBar

The menu bar at the top of a window.

overlay.ContextMenu

Opens a menu over its child on a right click or the menu key.

nav.Toolbar

A row of buttons.

nav.StatusBar

The band along the bottom of a window, with leading and trailing items.

field.CommandPalette

Finds a registered Action by fuzzy search and runs it.

nav.TabBar

Document tabs that close, reorder, and tear off into another window.

control.SplitPane

Two panes divided by a draggable divider.

nav.DockLayout

Arranges groups of tabs as an IDE does.

basic.Row

Lays out its children in a row.

basic.Column

Lays out its children in a column.

basic.Flex

The Row and Column with its axis as a field, for a direction chosen at run time.

basic.Expanded

Fills the rest of a Row or Column, shared by the weights of Flex.

basic.Flexible

Shares the free space, but the child may stay smaller than its share.

basic.Stack

Paints its children on top of each other.

basic.PositionedFill

Stretches a child over the whole Stack, whose size the other children decide.

basic.Wrap

A Row that starts a new run when the next child does not fit, for tags and chips.

basic.Grid

Lays out tiles in columns of the same width: a fixed number, or as many as a minimum width allows.

basic.Padding

Puts room around its child.

basic.Align

Places its child within the space it is given, from 0 to 1 on each axis (not -1 to 1 as in Flutter).

basic.Center

Places its child in the middle.

basic.SizedBox

Forces a width, a height or both.

basic.ConstrainedBox

Adds minimum and maximum sizes to its child.

basic.Container

A box that combines size, padding, color, gradient, border, corners and shadows.

basic.DecoratedBox

Paints a layout.Decoration behind its child.

basic.Scroll

Shows a child larger than itself, moved by the wheel and a scroll bar.

basic.CustomLayout

Arranges its children with the algorithm of a layout.Delegate.

basic.LayoutBuilder

Builds its content with the constraints its parent gives it, to change with the room it has, such as one pane above the other when narrow and side by side when wide.

basic.AspectRatio

Sizes its child to a width over height of Ratio.

basic.Opacity

Paints its child with a uniform transparency.

basic.Blend

Combines its child as one picture with what is below, as mix-blend-mode does in CSS.

basic.BackdropFilter

Blurs what is painted below its box, then paints its child: frosted glass.

basic.ImageFiltered

Draws its child blurred, as filter: blur() does in CSS.

basic.ShaderMask

Draws its child through a custom shader: shimmers, ripples, tints.

basic.Transform

Turns, slants or stretches its child with an affine transform.

basic.Translate

Paints its child moved by a fraction of its size: the cheap move of a transition.

basic.ClipRRect

Cuts what its child paints to its box; ClipRRect rounds the corners, to the theme's card corners when Radius is 0.

basic.Scale

Paints its child scaled around Origin: the cheap zoom of a transition.

control.CustomPaint

Paints with a layout.Painter, for charts, meters and other shapes no widget offers.

basic.RepaintBoundary

Keeps the picture of its child apart, so a change on one side does not repaint the other.

interact.FocusRing

Draws the pale 3px focus ring of the standard controls, for controls of your own.

basic.AnimatedContainer

A Container that moves to new colors, sizes, padding, corners, borders and shadows over time.

basic.AnimatedOpacity

An Opacity that fades to a new value.

basic.AnimatedAlign

An Align that moves to a new alignment.

basic.AnimatedPositioned

A Positioned that moves to a new place in its Stack.

basic.AnimatedSwitcher

Crossfades or slides from an old child to a new one.

nav.Hero

When a Navigator changes pages, the child with the same Tag flies from one place to the other.

GestureDetector
interact.GestureDetector

Reports taps, double taps, secondary taps, long presses, drags (start, update, end) and pinches on its child.

MouseRegion
interact.MouseRegion

Reports the pointer entering and leaving, and sets the cursor over its child.

Listener
interact.Listener

Hands every pointer event over its child to a function, with the pressure of a pen, for drawing.

Focus
interact.Focus

Lets its child take the keyboard.

IgnorePointer
basic.IgnorePointer

Lets the pointer pass through its child to what is below.

Draggable
interact.Draggable

Drags data out of its child: to a DragTarget, another window or another program.

DragTarget
interact.DragTarget

Takes text or files dropped on its child, from this window or from programs such as Explorer or a browser.

Semantics
interact.Semantics

Describes its child to assistive technology and does what a screen reader asks.

ExcludeSemantics
interact.ExcludeSemantics

Hides its child from assistive technology, as aria-hidden does, for text that only decorates, such as the initial in an avatar.

FocusTraversalOrder
interact.FocusTraversalOrder

Sets where the controls below it come in the order of Tab, as tabindex does in HTML.

basic.Builder

Builds its content with the BuildContext of its place, to read what is above, such as the theme.

basic.Theme

Gives the widgets below it their look, for a part of the window with another accent.

basic.MediaQuery

Tells the widgets below about the window: brightness, scale, reduced motion, locale and the size of its content area.

Localizations
basic.Localizations

Hands the standard widgets the words of their locale.

Overlay
overlay.Overlay

A place to show entries on top of its child.

Pictures are drawn on the CPU by gpu/soft with the Go fonts, so the text in them is English. Lower-case helpers in the examples, such as themed and tile, are in internal/catalog/helpers.go.