codelessly_sdk 32.0.0
codelessly_sdk: ^32.0.0 copied to clipboard
Server-driven UI for Flutter. Design screens in the Codelessly Editor, publish, and render them natively in your app, with live updates, data, actions and navigation.
32.0.0 #
Needs codelessly_api 32.0.0. No SDK API was removed or renamed; the major version follows the API's (the compact
notation's Column center reads differently: see its changelog).
Added #
DesignPass: a design agent you supply restyles a session's UI in place, after a fast model has written it from plain parts. An answer that is rejected, or that changes what the UI says or does, is undone and asked for again; a kept pass is one undo step. See the guide, "The design pass".DesignPass(blocks: [...]): the agent may put the design system's blocks you name in place of plain nodes.DesignPass.changedMeaning(before, after, blocks: ...)accepts a removed node when a block carries its text, bindings and actions.OnDemandBlocks(store:): called with a new block's files so the host can save them; a later session started from that folder has the block.- Markdown: a text with
markdowndraws bold, italic, code, links, @mentions and lists without the markers; a text field withmarkdownstyles what is typed as it goes, markers dimmed. - A text field's reactions read
${field.value},${field.word},${field.cursor},${field.selectionStart}and${field.selectionEnd}(field.wordis the word ending at the cursor). "render": "glyph"on a Material icon draws the font glyph exactly as Flutter'sIcondrawsIcons.*, and loads no SVG.- Designed defaults: with a design system whose theme defines them, plain cards, badges, bar charts, popups,
dialogs and chart series take its look, and a control's corner follows its height (
radii.controlXs…controlLarge). The bundled look is unchanged.
Changed #
editTextedits a field as typing does: its changed reactions run, it is one undo step, and the field keeps the keyboard.- A node at opacity 0 takes no taps, like a hidden one. A scrim waiting to fade in no longer swallows taps.
Fixed #
- A spinner holds still when the host's tickers are off (a design canvas) and paints in its own layer.
31.0.1 #
- A text field with a limit shows its count again. A
textFieldwithmaxLengthdraws how much of the limit is used under the field ("0/280"), following the typing, as it did when the field was Flutter'sTextField; 31.0.0 drew a counter only when the design wrotedecoration.counterText, which still replaces it (and written empty,counterText: "", still means no counter). A hugging field with a limit is one caption line taller than in 31.0.0.
31.0.0 #
Breaking: the library an app imports is smaller. Thirty-five types that are the SDK's own machinery (bound
values and the tree's bindings, the viewport's boxes, route and transition internals, the session view's sources,
the managed-component resolver) are no longer exported from package:codelessly_sdk/codelessly_sdk.dart. They are
in package:codelessly_sdk/internals.dart, which promises no stability. None is named in the guide or used by the
examples, the tools or CodelesslySite; one CodelesslyEditor test named two (ManagedComponentSource,
ManagedComponentResolver) and now imports it. An app that used one adds that import. Moved:
BackGuard, BoundNode, BoundSource, BoundValues, BoundVariable, CanvasBox, CanvasLocationMatch,
CanvasSizingScope, CanvasViewport, CodelesslyPageTransitionRoute, CodelesslyRouteTransitionRoute,
CodelesslyTranslucentRoute, ExpressionValues, FocusManagerKeyboard, FontRegistrationCache,
HitTestedWhereDrawn, InstanceBindings, ManagedComponentResolver, ManagedComponentSource, MapValueScope,
MemoryManagedComponentSource, NavigatorActionUi, NodeGestures, PopoverLayout, PublishAssetSource,
RenderNodeView, RouteDragDismiss, ScreenActionContext, ScreenIdentity,
SeeThroughZoomPageTransitionsBuilder, SessionValues, ThemedSource, TransitionPhysics,
TransitionSideView, TreeBindings.
Breaking for tests and hosts that look for EditableText. A textField is a render object: there is no
EditableText widget under it. A test finds the field's RenderEditable in the render tree (or uses the render
tool's --type), and a host that asks "is someone typing?" by looking for a focused EditableText calls
isTyping(), now exported, which is true while one of the SDK's fields has the keyboard.
-
A model's answer in the notation, with a design system (guide chapter 18):
UiSession(designSystem: ...),notationInstructions({blocks}),applyNotation(text, {prelude})(looks written as the design system's token names, so the same answer takes another theme or dark mode unchanged), andaddBlock(definition), which gives a running session a block designed after it began. -
Blocks designed while a session runs (guide chapter 18,
examples/on_demand_blocks):notationInstructions(askForBlocks: true)has the model name a block where none fits;UiSession.wantedBlocksholds what it asked for;OnDemandBlockstakes each request to a designer the host supplies, keeps a design only when it is a component of that name, of node types the session has, calling no cycle, and passes the validator and the check the host gives, and adds it withUiSession.addBlock;applyNotation(text, replace: true)puts the card written again in place of the old one.OnDemandBlocks.mostlyPlainPartsandshownProblems()are a host's two other signals. -
UiSession.shownDiagnostics()reportscontent_overflows(a warning): a child of a row or a column that reaches more than a pixel past its right or bottom edge, unless it is under a scroller or a transform. -
isTyping()is exported: whether one of the SDK's text fields has the keyboard. -
Render tool:
--design-system <folder>renders one document with a design system's blocks and theme;--dump-layoutwrites the label a button or chip draws as its text. -
edgeFadeon scrolling containers and page views: content fades out at an edge it continues past, by scroll position, on any background. -
A block's children show as they arrive in a streamed answer (a card frame filled line by line stayed empty until the view was rebuilt).
-
UiSession.shownDiagnostics()reportsvalue_not_computed: a text with a gap where a computed value came out as nothing. -
The render tool's
--dump-layoutcarries the text each node shows.tool/values/check.pyuses it to test the values a generated card shows after it is used. -
The
cardsdesign system (43 blocks for inline chat cards), the showcase, and blocks designed on demand (examples/showcase/on-demand). -
A checkbox, radio or switch draws its
labelbeside the mark (8 px away, centered on it, the control hugging both); a tap anywhere on it toggles. A list tile no longer draws a hairline of its own: a list draws the dividers between its rows (separator).
Tell the model when its valid UI shows nothing. Final frames of recorded SSUI generations (tool/stream/streams/live/2026-11-14-ssui) showed blank cards or cards missing their content while the summary's final validation was clean. The causes, and what changed:
-
UiSession.shownDiagnostics(): once a view has laid the UI out, what a reader would see wrong, as edit diagnostics a host adds to the stream's result (result.withDiagnostics(session.shownDiagnostics())):empty_view(no canvas root, or a canvas showing no text, icon, image or control, with why),list_empty(data that is not a list, no item template, or empty while the list it reads is not, with the lambda to write),empty_label,expression_not_evaluated,text_no_color(also a transparent color),component_empty, andno_size. Views register the check withattachShownProbe. The text checks are shared with the render command (paragraphIssues). The chat example adds them to every reply's result; replays report them inmetrics.json(shownDiagnostics). -
A bound value that names a theme color or text style resolves against the theme: the reservation card's day labels were bound to
{'from': 'caption', 'color': 'onPrimary'}and drew transparent (empty day buttons). -
The formula parser runs without Flutter (
formula_time.dartholdsClockTickand the pinned time;FormulaClock.pinnedforwards to it), andFormulaEvaluator.reportis whatValidateOptions.formulastakes. The chat example's sessions and the recorder (record_check.dart, Dart VM) now check formulas with it, and the recorder reports references unresolved at the end of a stream (unresolvedReferences), so the formula errors reach the model. -
A formula that does not parse because it is written as JavaScript (
x.toFixed(2),s.trim().toUpperCase(),list.map(...),function (s) { return ... }) says what to write instead (fixed(x, 2),upper(trim(s)),map(list, x => ...), an arrow lambda): a recorded order summary failed three turns on 'Unexpected "(" at 38'. -
tool/stream/live_summary.pynames each cell's final frame (its last retry's replay) and what that frame shows wrong: the frames read as blank were often a first turn whose retry had fixed it. -
The chat example's prompts are regenerated (the design system's scales as the binding to write).
-
Tab bars, navigation bars and the app bar as render objects (Milestone 3, WS-F).
tabBar,tabs,navigationBar,bottomNavigationBarandappBarno longer host Material'sTabBar,NavigationBar,BottomNavigationBar,BottomAppBar,AppBaror aScaffold(render/controls/{tab_bar,navigation_bar,app_bar}.dart). With nothing styled a tab bar is SSUI's Tabs (36 high when it hugs, pixel-identical to the component), a navigation bar SSUI's tab bar (about 61 high when it hugs), the app bar SSUI's top bar (44). The indicator moves between items over 150 ms; Left/Right/Home/End move the keyboard, Enter/Space pick; tabs scroll when they overflow; picking fireschangedwith the index, written back to a boundinitialIndex/selectedIndex. Size changes: a hugging tab bar is 36 (was Material's tab height), a hugging or unsized navigation bar about 61 (was its design size), an unsized control of these types hugs instead of being 0 × 0; fixed sizes are kept. A canvas's app bar and bottom bar grow by the view's safe area (read from the view, not MediaQuery). -
Date and time pickers are render objects (Milestone 3, workstream G).
datePicker,timePickeranddateTimeInputdraw SSUI's select field (28 high when they hug; calendar or clock icon, value, chevron) and open in the root's overlay layer: a popover under the field on a screen 600 or wider, else a bottom sheet; a tap outside or Escape closes it. Dates in SSUI's calendar (month and year navigation, the range, today ringed, arrows, Page Up/Down, Home/End, Enter), times in hour/minute (and AM/PM) columns; month and day names and the first weekday are the platform locale's (intl, no Material localizations); today follows the formulas' clock (--now). An empty picker shows its hint or "Select date" instead of today's date. NoshowDatePicker/showTimePickerand no Material dialog: the picker islands inwidgets/inputs.dartare gone. Size changes: an unstyled hugging picker is 28 high; adateTimeInputtakes its node's size (the island ignored it: the pickers sample's parity golden is re-pinned to the nodes' own 300 × 56). -
The
dropdownis a render object (render/controls/dropdown.dart, Milestone 3 WS-B): SSUI's Select on the field frame (28 high when it hugs,primaryBackground, hairline, radius 7, Lucide chevron intertiaryTextturned over while open, the value optically centered) opening its menu (render/controls/menu.dart) as an entry of the root's overlay layer: under the field or above it when there is no room, at least its width (120 at least), 240 high at most and scrolling, SSUI's surface (level3, hairline, 4 px inset, 28 px rows, the selected row tinted with a check). A press outside or Escape closes it and the field keeps the focus; Enter, Space and the arrows open it, arrows, Home/End, Page Up/Down and type-ahead move, Enter and Space choose (changed, written back). Screen readers get a button with its value and expanded state and the rows as buttons. No Material arrow, card, route, ripple or elevation. The popup layer (ControlPopup: barrier, placement, dismissal) is for dialogs and sheets to reuse. Matches SSUI's own Select to 0.77 % (light) and 0.73 % (dark) of the pixels (test/controls/ssui_select_reference_test.dart). A dropdown that hugs its height is 28 high (was 48;isDense24: thesamples-inputsparity goldens re-pinned), and one that hugs its width is as wide as its widest item plus the chevron and padding;isDenseandisExpandedno longer change its size;elevationmaps to SSUI's shadow levels.
A list that filtered to nothing, explained. A recorded SSUI data table (data_table@claude-sonnet-5-5) showed
"No results" over twelve defined invoices: its filtered variable was filter(invoices, (statusF == 'All' || status == statusF) && contains(lower(cust), lower(search))), a condition without its item (computed once, outside the list,
and matching no item). The formula engine is right; nothing told the model.
-
textFieldis a render object (Milestone 3, WS-A): SSUI's field frame (render/controls/field_frame.dart: label above, never floating; hint in the text's metrics; helper and error below in the theme'serror, a named role included; border, focus and disabled from tokens; 240 × 28 when it hugs) aroundRenderEditable, edited withoutEditableText(render/controls/editable.dart: text input connection with IME composition, keyboard and pointer selection, clipboard, undo/redo, obscuring,maxLength, autofill per form, semantics). Tab reaches it from render-object controls.TextFieldHandle.controlleris now the field'sFieldEditorandfocusNodeitsControlFocusNode; the text field island is gone fromwidgets/inputs.dart. -
Milestone 3, kit follow-up and workstreams C and I: every render-object control's state changes (hover, press, focus, selected, disabled) ease over SSUI's 150 ms (
durations.control, ease-out) on its own ticker; a control node with no layout hugs (a column of zero-prop buttons lays out on the scale); buttons takeloading(SSUI's spinner in the icon's place, presses ignored, busy to screen readers); chips (chip,actionChip,choiceChip,filterChip,inputChip) andbadgeare render objects in SSUI's look (render/controls/chips.dart; the check mark's room kept, an input chip's x firesdeleted), 0.00 % from soft_saas_ui's own;circularProgressIndicatorandactivityIndicatorare render objects on their own ticker (render/controls/spinner.dart) and no file imports Cupertino. Parity goldens re-pinned for the new look: samples-material/chips and fab_badge. -
UiSession.applyStreamreports, when the stream ends, the references it accepted as warnings while the stream ran and that never arrived (codelessly_api'sunresolvedReferences): anunknown_namein a computed variable's formula or a binding is an error in the result, with the lambda to write when the name is a field of a list's records. The warnings it replaces are dropped. -
tool/stream/replay.sh --dump-documentwritesdocument.json(the document when the stream ended) andstate.json(UiSession.values). -
Tests: the reference's filter, sort and page example works as it says (
test/lists/filter_sort_page_example_test.dart); the recording's end-of-stream errors (test/session/ui_session_list_formula_test.dart). -
A session without a design system draws its gauges and charts in its theme: the colors they leave unset (indicator_theme.dart) come from the theme the tree reads from its component registry, and only a session with a design system had one, so a plain session's (
UiSession(theme:)) were always the neutral set. Every session's view now has a registry (empty without a design system), so a site, a session with a design system and a plain session take the same path (test/session/session_indicator_theme_test.dart). With no theme they are the neutral ink and greys, as before. -
Toggles, slider and segmented button are render objects (Milestone 3, WS-E).
checkbox,switch,radio(render/controls/toggles.dart),slider(slider.dart) andsegmentedButton(segmented.dart) draw with no Material widget; their islands (widgets/inputs.dart,inputs_toggle.dart,slider_paint.dart, the slider shapes ininputs_shapes.dart) are gone. With nothing styled each is SSUI's control: a 16 px checkbox and radio, a 36 × 20 switch whose thumb eases over 150 ms, a 200 × 28 slider with a 6 px rail and a ringed 14 px thumb (no shadow), and SSUI's segmented well with each label measured centered in its segment. Values write back throughchangedand follow their bindings; tristate checkboxes; radio groups with arrow keys; slider drag, tap, arrows, Page Up/Down and Home/End, its value indicator in the root's overlay and its custom paint between its parts; segmented tap and arrow keys, single and multi select; checked, toggled, slider (increase/decrease) and per-segment semantics. Size changes: hugging toggles and segmented buttons were 0 × 0 or Material-sized and are now SSUI's; a sized one keeps the islands' proportions (checkbox box 18/40, radio ring 18/32, switch track 52/59 of the node). Looks dropped as Material-only: the off thumb shrinking on a plain switch, the segmented check mark (a setselectedIconstill shows), the slider thumb's shadow and default tick dots. Matched against soft_saas_ui's own controls (ssui-toggles-*.png) within 0.6 % (toggles), 0.1 % (sliders), 0 % (segmented). -
Milestone 3 begins: buttons are render objects (codelessly_api
docs/design/11-no-widgets.md).filledButton,elevatedButton,outlinedButton,textButton,iconButtonandfloatingActionButtonare drawn byRenderButton(lib/src/render/controls/buttons.dart) with no Material widget in their path. With nothing styled each is SSUI's button: filled = primary, tonal = tertiary, elevated, outlined = outline, text = ghost, icon button = SSUI's ghost icon button, a floating action button = primary with SSUI's floating shadow. A hugging button is 28 px high (SSUI's compact); a sized one takes the padding, font, icon size and radius of the nearest step of the control scale (24/28/32/36/44). Hover and press are SSUI's faint overlays, focus its 1.5 px ring (keyboard only), disabled 50 % opacity; a boundselecteddraws SSUI's active tint with primary ink. EveryButtonStylefield, the node's padding and itsstatespatches still apply. The zero-prop page matches SSUI's own widgets to 0.06 % of the pixels (test/controls/ssui_reference_test.dart; renders indesign_systems/ssui/examples/renders/m3). -
List tiles, accordions and expansion tiles are render objects (Milestone 3, workstream D).
listTileisRenderListTile,accordionandexpansionTileareRenderExpansion(lib/src/render/controls/{tile,expansion}.dart); theListTile,ExpansionTileand the accordion's Material toggle button are gone. With nothing styled a list tile is SSUI's ListRow (36 high, 28 dense, 12 × 6 padding, 10 between its slots, no divider of its own (a list draws them:separator),activeTintwhen selected) and an accordion is SSUI's Accordion (atertiaryBackgroundheader panel, 1 pxprimaryBorder, radius 8, SSUI's chevron turning down as it opens, the content in aprimaryBackgroundpanel); an expansion tile's header is itstileslot's slots laid out as a list tile, with the chevron andprimaryBorderhairlines while open. The slots and content are nodes laid out by the tree. The whole header is the tap target (it was a 48 px button over the header's end); Tab focuses it with SSUI's ring, Enter and Space toggle it; the content opens and closes over SSUI's 150 ms ease on the tree's ticker, clipped while it moves; screen readers hear a button, expanded or collapsed. A toggle fires the node'sclick, thenchangedwith the new state; a list tile with aclickreaction takes focus and the hand cursor. On a design canvas an expansion tile is drawn as it is (it was a placeholder). Zero-prop pages match SSUI's own Accordion and its ListRow to 0.00 % of the pixels (test/controls/tile_reference_test.dart). Size changes: a hugging list tile takes its content's size (it was its design size, often 0 × 0); a hugging accordion's header is 46 px high (SSUI's). Parity goldens re-pinned (samples-collections/controls, the accordion page): the header child sits 16 px inside SSUI's 1 px border and is as wide as the room beside the chevron (rowrc17300×64 at (20, 38) → 238×64 at (37, 33), its textt18with it), the content starts under the 46 px header in a 16 px panel (r20y 102 → 127), and the collapsed one's header child moves the same way (r22(20, 303) → (37, 273)). ThelistTilelayout test now expects its slots centered on the tile (36 in a 72 px tile), not on Material's 56 px row. -
Size changes of buttons (parity goldens): a hugging button is 28 high (Material's was 40); the icon beside a label is SSUI's (14–18) with a 6 px gap (Material's 18 and 8), so labeled buttons with an icon are 2 px narrower.
samples-material/buttons:elev_hug186×39 → 184×38.6,filled_hug184 → 182 wide,text_icon118 → 116 wide. Thestaticset goes from 99.06 % to 98.84 % of rects within 1 px: six filled buttons of one fixture 2 px narrower (one squeezed by its column from 40 to 37.3 high) and the 43 rects beside them that move with them. -
The control kit (
lib/src/render/controls):RenderControl(states, tap, hover and cursor, focus, activation, semantics, a 44 × 44 touch target by hit testing only),ControlLabel(one line, glyphs centered),ControlTokens(SSUI's tokens bundled as data,ssui_defaults.g.dart, written bytool/controls/bundle_ssui.dartand checked againstdesign_systems/ssui/design_system.json, the document's theme over them, for the screen's brightness and backdrop),ControlFocusNode/ControlFocusScope(Tab and Shift-Tab in reading order, Enter, Numpad Enter and Space activate, Escape,autofocus), and the rootRenderControlRootwith an overlay layer. -
NodeViewis the adapter: its render object (RenderNodeView) is now aRenderControlRoot; it feeds key events fromFocusManager's early handlers (orHardwareKeyboardwhen nothing has Flutter's focus) and bridges the two focuses. A document of buttons lays out, paints, hit-tests and takes the keyboard with noMaterialApp,WidgetsApp,ThemeorOverlayabove it (test/controls/root_test.dart);attachRootshows a root in a view with no widget at all (test/controls/direct_attach_test.dart). -
The
tooltipbehavior (declared, never drawn before) shows SSUI's tooltip in the root's overlay layer after the theme'sdurations.tooltipDelayof hovering, and names the node to screen readers. -
RenderTree.themeandRenderTree.dark: the theme and brightness controls draw with (CodelesslyWidgetsets the mode). -
Theme roles that name a theme color (
"primary": "forest") now reach controls, dialogs and toasts (they drew black or white). -
test/architecture_test.dartkeeps a ratchet of the files that may importmaterial.dart,cupertino.dartorwidgets.dart(60 at the start); it only shrinks, and the render-object controls are never on it. The look guard measures labels and fonts of render-object controls too (LabeledControl). -
Island controls not yet moved (chips, fields, toggles, pickers, tabs, bars, tiles) are unchanged and still draw their neutral look.
What ten sites built as data (brief 3) ran into.
- Text inside an SVG image is drawn in the site's fonts: a generic family (
sans-serif,monospace) and text with no family take the theme'sfontFamily, a named family is asked for as a text style's is with the theme's font as its fallback, and the picture is recorded once they load (in the render command it was drawn as solid blocks). The render command names the SVG infont_fallbackwhen a family is not had. navigateevaluates ato(andbase) built by a binding (${item.to}): it threw "no such screen".- A canvas opened as a modal takes the size its media rules give it at the screen's width (the patch was ignored).
- A
lineChartwith noaxisLabelStylecolor draws its tick labels and axis title in the axis color (they were white). gridView.fillGaps(CSSgrid-auto-flow: dense).VariableAnimator.anyPlaying: whether a number variable's timeline plays anywhere.- Render command:
- every run first prints the SDK and API versions, commits and paths it uses; Flutter is looked for in the usual
install places too, and when none is found the message says to set
FLUTTER=/path/to/flutter/bin/flutterand that the tool and reference are onmaster; - a step on a component's node (by its path) hidden at a size is skipped there, and a skip is its own warning,
step_skipped, notinteraction_failed; --hoverat several sizes no longer crashes the harness (Flutter's mouse tracker assertion);- full-page captures draw an open dropdown menu or toast once, in the first window, and a page whose content changes height once it scrolls (a header compacting on scroll) is stitched without a doubled line at a seam;
--typenames the one node with a text field among nodes sharing an id;- a page
site.jsonlists but not written yet is onepage_not_writtenwarning per file, notunknown_screenerrors; - counters animated in a load reaction (one after another) are captured where they end;
- image paths are relative to the site's folder in every document, components included (the README said the document's), and a path written from a component's folder is reported with the path to write;
- a variable font declared once counts as having every weight of its
wghtaxis (nofont_fallback); - a flex overflow names the list copy that overflows and says what its content needs and what to change.
- every run first prints the SDK and API versions, commits and paths it uses; Flutter is looked for in the usual
install places too, and when none is found the message says to set
- Skipped tests for the controls engineer: invalid form fields vanish when the theme's
errorrole names a theme color (test/tool/form_named_error_role_test.dart); an emptydatePickershows today's date (test/tool/date_picker_empty_test.dart).
Generative UI with a design system, recorded and replayed.
UiSession(designSystem:)allows the design system's components under the session's trust profile (TrustProfile.withComponents): with the defaultTrustProfile.agentevery call to one wascapability_not_allowed, so a model's design-system UI never applied.- A session's theme names (
"color": "primaryBackground","style": "sectionTitle") resolve in its own nodes in light mode:ThemedSourcestarted with no names and was only given the theme when the mode changed, so they resolved in dark only (components' names did resolve). - A component call that streams in after its parent shows (a pending child that arrives as a call, or a set that
changes a node's type to one) renders as its definition: its parent places its children again
(
NodeBox._becameCall). It drew as the empty box of an unknown type. - The stream replay (
tool/stream/replay.sh) replays a recording with the design system its meta names (or--design-system), in light or--theme dark, and reportsdesignSystem(component calls rendered and not, core controls the design system replaces) inmetrics.json.examples/stream_chat/tool/record.dart --design-system ssuirecords with one (prompt,ui_docs, per-op validation and retries),record_all.shgains--design-system <id>and--only ssui, and the live summary has the design system per cell and its components against the raw controls it replaces.
Fixes.
- Gauges, charts and barcodes drawn with the theme's colors (the ones they leave unset,
indicator_theme.dart) repaint when the theme changes at run time (setThemeMode, the platform's brightness undersystem): the box notes it depends on the theme (RenderTree.dependOnTheme) and a theme change (ComponentRegistry.theme,themeChanged) re-applies it. Before, only nodes naming theme colors re-applied, so an unstyled gauge kept the old mode's colors. - The render command with no
--screenno longer renders a canvas only ever opened as a modal as a screen of its own, whether theopenModalis on a page or inside a component (the site's or its design system's). - An image whose path a binding builds (
"bind": {"decoration.fills[0].image.url": "images/${id}.jpg"}), relative to the site, is read from the site's files when it is drawn: the app's tree reads site images throughSiteImageLoader(the loader's file URL, else its bytes), and a raster image whose URL has no scheme is fetched by the tree's loader instead ofNetworkImage. Literal paths were already resolved when the layout loads. - A theme's
fontFamilyis the default family of every text, as it is the controls' (Flutter: theDefaultTextStylean app's theme gives): a text node with no family (and nodefaultTextStyleabove it naming one) is drawn in it, in a site (CodelesslyWidget) and in a session (CodelesslyView).RenderTree.textDefaultholds it under every node's inherited default text style. Before, controls took the theme's font and text nodes the platform's. No parity golden or render test changed. - The render command waits for its own font fetches still in flight before its runtime checks: a family asked for by
name late (named by a binding, so no layout lists it, its file slow to read) was measured in the fallback, so
text_clippedwas reported for text the PNG drew in the real font.DirectoryFontFetcher.debugLatencysimulates a slow source in tests. - A
dateTimeInput,datePickerortimePickerwhose width hugs takes its content's width (IntrinsicWidth), as atextFieldand adropdownalready did: in a wrapping row it took the row's whole width, and in a plain row it failed (an unboundedInputDecorator). A picker's field reads its constraints only when its height fills.
30.1.0 #
No special cases left (with codelessly_api's unreleased removal of the last 21 one-look fields, each now a general mechanism; its CHANGELOG has the table). The renderer no longer reads them:
| Removed | Drawn now by | SDK |
|---|---|---|
text countUp, countUpDuration, countUpCurve, countUpOnShow |
a transition and an animation of props.text |
RenderCountUpParagraph (count_up.dart) is gone: a transition or track on a text prop counts the number in it (RenderAnimations, isTextPath); an animated text re-applies instead of retexting in place, so its player sees each change |
slider ruler ticks, marker, activeTrackStartOpacity, thumbGripColor |
the slider's customPaint |
a slider draws its node's custom paint between its parts (slider_paint.dart): painter over the track and under the thumb, foregroundPainter over the thumb, reading size and slider (value, min, max, trackRect, thumbCenter); RenderCustomPaintLayer.drawnByContent and drawFor. The ruler track draws its strip and fill, the marked track (fillFromEnd) its fill, the rectangular thumb its body and border |
slider deriveOverlayColorFromThumb |
nothing (it was never read) | — |
text field highlightStart, highlightEnd, highlightStyle |
the field's runs |
HighlightTextController.runs: every run, merged in order over the field's style, as a text node's runs |
table selectedRowEdgeColor, selectedRowEdgeWidth |
the cell template's selected state style |
both table renderers draw no edge |
date/time input displayFormat |
format |
formatted with format only |
test/migration/special_fields_test.dart draws what the migration makes of a node that used each and matches what
the previous renderer drew from the same node (goldens and recorded texts taken with it): identical; a count, frame
for frame; the slider's fade within one level but for 12 anti-aliased pixels at the track's rounded end (the fade is
now the inactive color laid over the active track). A ruler track in a document already at schema 3 draws no
ticks of its own: they are custom paint ops (the migration writes them for a schema-2 document).
- Radio group: arrow keys move the choice. Each radio is its own island with its own
RadioGroup, which saw one radio: right and down now choose the next radio of the group in reading order, left and up the previous, wrapping at the ends, the focus moving with the choice, as Flutter'sRadioGroupdoes. - Forms: fields a list repeats inside a form belong to it. A field published its form's state to its own list
item's instance, so the form saw only fields in its own instance, and a form a list repeats validated every
item's fields. A field's form instance is now its instance with the items of lists inside the form left behind:
each form instance validates and publishes its own fields;
validatechecks the instance of the form around the node whose reaction runs it (FormRegistry.formInstanceOf,anyInstance). - A box that hugs both ways and keeps an aspect ratio sizes as
AspectRatiodoes (the widest it may be, else the tallest). It took no size while its intrinsic height said its width over the ratio, so in a grid row that shrink-wraps it drew nothing in the room the row made for it.
A site looks like itself: theme mode, declared fonts, local images (with codelessly_api's unreleased
Unstyled controls that are not Material's, and design systems as data (with codelessly_api's unreleased additions).
- Shapes. Without a theme radius, buttons, chips and segmented buttons have a 6 px radius (no stadium); dialogs, menus and pickers 8 px with a hairline. A field with no border of its own is outlined (the theme's radius, else 6), padded 12, its label above it (always visible) and its hint inside; no underline, no floating label. Dropdowns draw the same outline; date and time pickers are plain fields of their node's size (they grew past it before) with a calendar or clock icon. Switches have one thumb size and no outline; check boxes a 4 px radius; tabs a square underline; a chip is as wide as its content, so its check mark never cuts its label.
- Controls fit their node. No 48 px tap-target margin or platform density: a 28 or 32 px node shows the whole control, its label centered (segmented buttons take the node's height; fields of a set height center their line; pagination centers its buttons). Hugging buttons and chips lose the margin (48 to 35-40 px).
- Colors from the theme. Tab bars, pagination, gauges, charts, barcodes and signature pads take the colors
they leave unset from the theme of what they are drawn on (
indicator_theme.dart). - The guard (
test/app/no_material_look_test.dart) also asserts no stadium button, no underline-only field and no cut chip label, and measures every labeled control's label centered within 1 px at its default height and 32 px, in Barlow and Roboto, light and dark. - Generated UI with a design system or a theme.
UiSession(designSystem:, theme:): the design system's components are node types of its catalog, its tokens (with the app's theme over them) the themeCodelesslyViewresolves named colors and text styles against, reads as${theme.*}and draws controls with. A themeless session's field text is in the same family as a text node beside it; the stream replay gives its session the render command's default family. - The render command reads
site.json'sdesignSystem(design_system_missingwhen it cannot). design_systems/ssui: Soft SaaS UI as data: its tokens, DESIGN.md, PATTERNS.md, 23 components drawn from core nodes (four wrap a styled text field, dropdown or slider), a gallery and three inline cards with raw-control counterparts, and their renders.
Earlier in this release: a site looks like itself: theme mode, declared fonts, local images (with codelessly_api's unreleased additions).
- Theme mode.
Codelessly.themeMode,themeModeChoiceandsetThemeMode(mode, persist:): the site'sThemeMode(a choice over the theme's ownmode, kept in local storage undercodelessly.themeModewhen persisted, so a reload starts in it). Every screen follows it at once: named colors, named text styles, the control theme (control_theme.dart, still the single source) and${theme.isDark},${screen.isDark}and the new${theme.mode}. ThesetThemeModeaction reaches it throughThemeModeUi, which the screen's UI implements.ThemeModeis hidden from the barrel export (it shares Flutter's name): import codelessly_api with a prefix. - Site files.
PublishAssetSource: a loader that serves a site's own files (MemoryPublishLoader(assets:, readAsset:),AssetPublishLoaderfrom assets beside the bundle,HttpPublishLoaderatpublish/{slug}/files/{path}). A declared font (aPublishFontwhoseurlis a relative path) is read through it (SiteFontFetcher, falling back to the app's fetcher), WOFF unwrapped (sfntOf, moved here from the render tool); an image a layout or component names by a relative path (images/hero.jpg) becomes the file's URL or adata:URL, a missing one logged assite_file_missing. - render.sh.
--theme light|dark|system(PNG names end-<mode>; steps may toggle it). The fontssite.jsondeclares are used with no--fonts, loaded before the page shows; a missing declared file isfont_missing, a WOFF2font_format;font_fallbacknames the nodes that asked for the family and how to declare it. Relative image paths start from the site's folder.--fonts systemis no longer turned into a relative path.
The render command (tool/render), from nine agents' reports of building multi-page sites:
-
Full-page captures draw what a reader sees once, once. A
stickynode is drawn in its place in the page, not pinned at the top of every window; an open modal, dialog or sheet and its backdrop are drawn in the first window only, the page below undimmed; after--navigateor a tap that navigates, the page navigated to is captured at its own height (routes a navigator keeps offstage are skipped by steps, checks and captures). -
--navigatetakes a query string (speaker?id=ada,/project?id=7: a leading slash no longer opened the entry screen), reports a screen it cannot find with the list, and later steps (--set) act on the screen navigated to. -
--drag <id>=<dx>,<dy>(or=<other id>): press, move and release; held first where a drag starts on a long press. -
Runs take turns on one SDK checkout (a lock around
flutter test, which rewritesbuild/as it starts), so concurrent runs no longer race onbuild/native_assetsorNativeAssetsManifest.json. -
render.shfinds Flutter inFLUTTER,FLUTTER_ROOT, thePATH, then/opt/flutter; runsflutter pub getwhen the dependencies are missing or stale; and uses a siblingCodelesslyAPIcheckout through apubspec_overrides.yamlit writes (never touching one of your own), else the published package. -
downloadFilesucceeds headless: the file is saved under<out>/downloads/<capture>/;copyToClipboardcopies in memory and the chain after it runs. Both are printed and listed in the diagnostics (downloads,clipboard). -
--now <ISO time>pinsnow(); a--setholds against a timer orloadreaction that writes the variable later (set_overwrittensays so). -
Steps: a step on a node hidden at one size is skipped there with a note, not an error; an id two shown nodes share (a page's and a component's) is an error naming each by path (
page/saved,footer/saved);evCard#0/evReservereaches a node inside a list's copy; a tap, a drag or a navigation first unfocuses a text field elsewhere (typing and then tapping a button that removes the form no longer ends in a detached render-object assertion from the tool's side). -
--comparematches a reference by its exact screen, state and size (savedno longer takessaved-empty), and--compare-map home=indexrenames. -
unknown_screenis reported once per missing screen with how many links name it, not once per link. -
A migrated stroke path draws itself on again. codelessly_api's migration now writes
strokePath.drawMsas an animation of the path op'strimEndand a transition of it; the player draws it frame for frame as 30.0.0's RenderStrokePath did (test/custom_paint/stroke_draw_on_test.dart: the drawn share against the old formula and the pixels against the static drawing at that share). Three general fixes made that exact:- a track with no
fromortoon a path the player patches into the node (notmotion,opacity) reads the node's own value without the track's last value (RenderTree.resolveUnanimated; before, it read back what it had drawn and stayed at its start), the field's declared default where the JSON omits it (BindPaths.declaredDefault), and an inline expression there evaluated; - a transition on such a path watches the node's own value, not the animated one, so a bound change under a settled track eases;
- a node its animations patch re-applies when a binding changes even if the node as shown did not (a top-level node, or a binding change that left it equal), so its player sees the change.
- a track with no
-
A time picker's
use24hisalwaysUse24HourFormat(codelessly_api;TimePickerProps.alwaysUse24HourFormat). -
State patches on
selfand@<key>in schema-2 documents are migrated to the node's id (codelessly_api), so those hover, press and selection styles now apply.
Requires the codelessly_api changes of the same name (forms, grid placement, scroll control).
- Forms work. A text field's
validatorruns: the field shows its error as its own and its form'sautovalidateModesay (always,onUserInteraction,onUnfocus,onUserInteractionIfError) and when its form is validated.validatechecks a form, focuses the first invalid field on screen and gives whether all are valid; aformnode publishes${form.valid}and${form.errors}. A radio inside aradioGrouptakes the group's value and runs the group'schanged. An outlined or filled field with nocontentPaddingtakesInputDecorator's default (12 px at the sides) instead of none. - Grid spans. A
gridViewplaces items by theircolumnSpan,rowSpan,columnStartandrowStartas CSS grid's sparse auto-placement does; a span is at most the grid's columns. Grids whose items set none lay out as before. - Scroll control. Scroll reactions give
${result.index}and${result.count};itemSnappingcomes to rest with an item at the start (render-object scroll views, andItemSnapPhysicsin data-bound lists). Data-bound and counted lists now run theirscrollandscrollEndreactions. - Fixes. A focused field hidden or removed by a tap's actions lets the focus go, instead of asserting
attachedfrom its keyboard connection (type, then tap). An icon chosen by a binding on a button draws its glyph (it drew nothing offline: codepoint 0 was taken for a codepoint). A text run that starts or ends inside an expression styles the text as shown, instead of printing the expression. The render command answers clipboard calls from memory, so a chain that copies runs on.
Earlier in 30.1.0 #
Requires codelessly_api 30.1.0. The schema stays 3: every loader reads "schema": 2 and 3, migrating 2 in
memory (migrate2to3), never writing back (kLoadableSchemas is {2, 3}). 30.0.0's schema-3 documents keep
loading, read as they are: one written with 30.0.0's spellings of a node's scale and rotation, its flight key, a
stroke path, a box drawn as a path or per-shape paints must be updated (codelessly_api's changelog has the
mapping; a schema-2 document is migrated to the one spelling when it loads).
- No Material defaults reach the screen. Controls (the Material islands: buttons, chips, fields, switches,
sliders, pickers, tabs, navigation bars, progress) and the runtime's chrome (dialogs, toasts, sheets, menus,
tooltips, date and time pickers) take every color and font their node leaves unset from one theme,
themeDataOf(tokens)(lib/src/render/control_theme.dart): everyColorSchemerole is a token or derived from one, and without a theme the set is neutral (kInknear-black onkPaperwhite; near-white onkPaperDarkin dark mode; greys between). No purple seed, no tints (surfaceTinttransparent), no splashes (NoSplash), no elevation unless a node sets one, and text in the tokens'fontFamily(titleFontFamilyfor titles) or no family at all, never Roboto. A tokenprimarythat doesn't read on the surface (3:1) gives way to the surface's ink for what controls draw on it; filled buttons and floating action buttons keep it as their fill.buttonRadiusshapes every kind of button, chip and segmented button;radiusdialogs, menus, pickers and (when set) the default text field border. - Controls read what they sit on. Each island's theme is made for the surface under it (the node's and its
ancestors' fills,
ControlTheme): an unstyled text, outlined or icon button, a check or a thumb on a dark band of a light page is drawn light. A button, floating action button or chip with a fill of its own but no label color is labeled in ink or paper, whichever reads on it; a button'sstyle.textStyle.coloris its label color whenforegroundColoris unset (Flutter drew the theme's over it). Labels Flutter dropped the color of (a chip's, a navigation bar's, an input's text in a style of its own) are in the theme's ink instead of white. - The icon button is a plain button (a
TextButtonaround the glyph): no raised lavender tile. A tonal filled button is the theme's selected tint. An unset divider is the theme's faint outline over what it's drawn on, an unset badge the theme's error color, an unset activity indicator the theme's muted ink. - Breaking:
CodelesslyConfig.useHostThemeis removed. Layouts never render with the app'sTheme; the mode is always the device's. Islands hosted outside aCodelesslyWidget(aNodeViewin an app) get the neutral theme, not the app's. The runtime's dialogs, toasts and sheets open from inside the layout's theme (they opened from above it, so they took the app's), and the confirm dialog's and toast's buttons, the pickers and theirpickerThemestart from the layout's look (ResolvedFeedbackTheme.themeData;apply(ThemeData)and the inputs'ColorScheme.fromSeedare gone). AFeedbackThemein the app'sThemeData.extensionsno longer reaches a layout.themeDataOftakes an optionalsurface;kInk,kInkOnDark,kPaper,kPaperDarkare exported. - Guard: test/app/no_material_look_test.dart renders every control type of the inputs, material, collections and indicators groups unstyled, with no theme and with a brand theme, light and dark, and fails on any pixel of Material 3's baseline palette, on a ripple when a button is pressed, or on a control text not in the theme's font.
- Render tool: the published theme's
fontFamilydefaults to Roboto, as its text styles' does (the controls took the tool's ownThemeData(fontFamily: 'Roboto')before). - A node's scale and rotation are its motion. The chain's own
scalelayer and theRenderTransformoflayout.rotationare gone:RenderMotiondrawsmotion.scaleandmotion.rotate(the migration keeps 30.0.0's rotation pivot, moved by half an uneven margin, as a translation). A state style that moves a node (states.pressed.<id>.motion) keeps its motion layer at rest, as the scale layer was kept (a layer added mid-press lost the tap). Migrated documents draw pixel for pixel as before: the parity goldens are unchanged, and 48 renders of 16 corpus documents and a page of state scales and rotations (at rest, hovered, selected) match codelessly_sdk 30.0.0's (codelessly_api docs/design/03-motion.md). - One shared element.
herowithflies: betweenScreens(Flutter'sHero) is the navigation flight, its lookflightShuttle(RenderHeroMark.flightShuttle, wasflight);flies: inPlaceis whatflightKeywas:RenderFlightBoxflies it in from where the node with its tag was, on a spring or as itsflightsays, and a dropped drag copy records its place under that tag. The two kinds don't fly to each other. - A
customPaintpath op'scommandsdraw: Flutter'sPathcalls (moveTo,lineTo,quadraticBezierTo,cubicTo,close) in order, each number a literal or a formula, a call skipped while itswhenis false; what draws a migrated stroke path's curves anduntilWidth. The path node readsstrokeMiterLimit(default 4 as before). - Breaking: the 30.0.0 paint painters are gone.
RenderStrokePathandStrokePathPainter(and their place inpaintLayers), a box drawn as a path (buildBoxPath,RenderShapePath's box painter, the box-path case of the paint plan and of the render tool'spath_overflow), the path painter's per-shape colors and gradients (PathShapes) anddashPath(the box path's dashes). A stroke path's draw-on animation (drawMs) is not drawn: the migration keeps it aslegacy.strokePath.drawand the line shows at its progress at once. - Run time: a
setValuepath 30.1.0 moved (scale,layout.rotation,flightKey,flight.*,strokePath.*,props.path,props.subpathColors) that reaches a running app (from a script or another document) sets nothing and says, once, what to write (olderSchemaPathHint), as schema-2 paths already did. - Tests: test/motion/fold_transform_test.dart (a migrated scale, rotation and uneven margin drawn where
30.0.0 drew them; a state's scale snapping beside an easing motion; a scale transition on its own timing;
setValue paths); hero and in-place flight tests; test/custom_paint/migrated_paint_test.dart (each 30.0.0 paint
feature as the migration rewrites it, matched against a golden in test/custom_paint/goldens taken while the
30.0.0 painters still drew it and agreed: pixel for pixel, a fading fill within 1/255, a box path's fill edge
within 3/255); test/paint/paths_test.dart's stroke path and box path tests check the migrated document's pixels
against Flutter's own
Pathcalls. The catalog corpus digests of the five files whose documents hold a moved field, and strata_tabs' stroke path, were taken again (179 lines). The recorded op streams ofrestaurant_menuandsaas_pricing(3 rates each) say their box paths as path nodes ("type": "path",props.data), each delta and its time kept but for the characters that changed. The stream chat example'sassets/system_prompt.mdis regenerated. - The reference is one base plus links (codelessly_api's
docs/reference). The chat example's compact prompt is the base's runtime form (runtimeStarter(), ≈ 43.7k characters, ending with the index ofui_docstopics) andui_docsanswers with the reference's pages (UiSession.docs, unchanged); its full prompt carries the base's file form (assets/system_prompt.md, regenerated). The render and stream READMEs point at the base and at the reference's render page.
30.0.0 #
Requires codelessly_api: ^30.0.0.
Schema 3. Published apps hold schema 2: every loader (Firestore, HTTP files and bundle, asset bundle,
memory) reads "schema": 2 and 3, migrating 2 in memory (migrate2to3), never writing back; a stored
component is checked against its digest as stored, then migrated. A stored document in a newer schema is
refused (PublishLoadException, naming the SDK update). Schema 2 documents load and are migrated in memory;
write schema 3. The render command publishes schema 3 and leaves the validator's notes (schema_outdated)
out of its findings.
- Breaking: the code of the removed one-app fields is gone (see codelessly_api 30.0.0): the track's fine
mode, double tap, parking (
defaultValue,parkedProgress),smoothglide and arcgain; a dismissible's and pan's tilt (rotateFactor,originX/Y), disabled follow and shake,shareAs,follow: falseand the fly-off spin; area path pacing and the upright flip (MeasuredPath.attakes nobyArea); a transition's arc; a drop target'sfullIf,hoverDelay, refused slot and thedropFull/dragHovertriggers (${drag.full}is gone); snapprojectVelocityandrotationSnap. ThesetVariableglide (animateMs) is ananimateaction (the migration rewrites it).trackValueslosesfine. - Flutter's reading: a text node applies its
layout.paddingaround its lines, asPadding(child: Text)(a hugging text grows by it; a fixed one insets its lines). Schema-2 documents are unchanged: the migration drops the padding schema 2 ignored (steptext.padding). A text style without aheightis laid out at the font's own line height, as Flutter'sText(kTextBasehas no height), under the nearestdefaultTextStyle(Flutter'sDefaultTextStyle), which every text style a node draws merges over: a text's style and runs, a widget's label and field styles, a painter's paragraphs, a typewriter's caret, a chart's tooltips, the nodes an island shows again (TextDefaultScope) and a view's root (RenderTree.rootSlot). Schema-2 documents keep 1.33 through the migration (the 66 parity pages and the m05 sites render byte-identical PNGs). Breaking:RenderTree.naturalLineHeightandkTextBaseNaturalare removed;textStyle(style, [inherited]);Slot.textDefault. - A schema-2 path a
setValuenames (not migrated: it is read against its target when it runs) sets nothing and is said once, with the schema-3 path to write (schema2PathHint); the action's other values apply. - Behavior changes: a track with no value is drawn at its minimum (the
drag_miscparity golden moves three thumbs:fader cap,knob,path track); the other dropped fields no longer act. Everything else renders as before: the 66 parity pages, the m05 experiments' sites (byte-identical PNGs), the Relay site (schema 2 through the migration and schema 3 rewritten draw the same boxes).
Streaming generative UI, hardened against real model output
UiSession: a batch or stream applied to a UI that already has roots cannot replace them or add a canvas (protectRoots, on:start_over), so a retry patches the UI; the end of a stream addsrenderDiagnostics(empty_button,low_contrast, and withglyphCoverage,missing_glyph) to the result, andlayoutDiagnostics()reports nodes with content laid out with no size (no_size);lastStreamEnd(repairs of malformed JSON, ops recovered);docs()answersui_docs;values(the views' variable values). A canvas's body with a fill (the card) shows as soon as it arrives instead of waiting for its first child: first paint of the recorded live cards 0.4 to 1.0 s earlier.CodelesslyView(services:): with aScriptRunneramong the services, the session's own scripts run (runScript, where the profile allows them:TrustProfile.agentApps).- Replay command (
tool/stream): ops recovered from malformed input, JSON repairs, first text, render diagnostics, scripts, and "works when used" (a scripted interaction per brief,tool/stream/interactions; scripts run in QuickJS);tool/stream/live_summary.py. The three live recordings re-replayed (tool/stream/out/live). examples/stream_chat: the compact prompt (the generated base set, compact tools,ui_docs), lookups answered within the turn, the retry protocol with a cap, forced tool use where the model allows it, six app briefs,tool/record_all.sh(the live matrix),tool/use_local_api.shandtool/check.sh(CI: the example builds against the siblingcodelessly_api).
Components in published apps, hosted plugins as components (sections and components, phase 2)
- A published site with components just works.
PublishLoader.loadComponent(memory, asset bundle, HTTP bundle or files, Firestorepublish/{p}/components/{type}withcompressedDocument);Codelesslyloads a layout's closure of components (listed by the model and found in the documents) before the screen shows, caches each at its publish path by digest (offline: any cached copy), refuses one whose document doesn't match its digest, reloads a component whose model entry changed (aLivePublishLoaderfollows it: every instance updates in place, the pages don't reload), loads the fonts of called components, and fetches a missing definition when a call renders without it. Misses are logged ascomponent_missing.Codelessly.loadComponent,publishedComponents; components an app defines itself win over published ones.componentDigest,componentIntact,decodeStoredPublishComponent,ComponentRegistry.onMissing. - Hosted plugins:
Codelesslyinstalls the plugins a publish lists (model.plugins) before decoding layouts, through the loader as aPluginSource(a bundle's embedded versions;plugins/{id}/versions/{n}over HTTP and in Firestore), the cache, digests, minSdk and the catalog check;Codelessly.hostedPlugins,Codelessly.actions(the runner with the plugins' action types). A plugin node type is a component definition (CodelesslyFeature.components) rendered as ordinary boxes of the screen's tree: hug and fill through the seam, interaction, slots and events as any component's. Behavior change: the island path for plugin widgets (_HostedRecipe, a fixed-size fit box) is gone;hostedPluginFeaturereturns no recipes. - Per instance:
setValue/setVariantinside a component instance set that instance's node (RenderTree.setInstanceValue); slot content inside a list of the definition shows once per item, in the caller's scope (SlotContent); an instance's scopes are released when it leaves the tree (InstanceBindings.releaseInstance);persiston a component variable is kept per instance path (NodeBinder.persistComponentVariable,PersistedVariable.attach(key:)); a changed declaration decodes the loaded layouts that call it again. Behavior change (bug fix): set value inside an instance changed the page's node of that id. - Render command:
--components-all; a call can be tapped by its id (--tap send,--tap 'sizes#3');render_exceptionnames a node inside an instance by path and its component's file; publishing writes the components, their digests and each layout's closure into the bundle. examples/relay-pricingis a three-page site sharing header, menu, footer, call to action, button, cards and a theme, published and loaded over HTTP then offline intest/examples/relay_site_test.dart.
Authoring fixes from the third direct-authoring experiment (cycle 3)
- Named colors and text styles resolve against the published theme as the screen shows it (its media rules at
the screen's size, its dark colors in dark mode), on the page and in components (
ComponentRegistry.theme); a change of theme re-applies only the nodes whose resolved values differ.${theme.text.*}reads resolved styles. - Icon
size: the glyph at that size, centered in the node's box; a hugging icon takes it. - Actions naming a node from inside a component instance (
scrollTo,animate,focus,editText) act on that instance's node. Behavior change (bug fix): they acted on every instance's (or none). - A node written
visible: falsewhose media rule bindsvisiblecollapses when hidden. RenderFitBox.designWidthUsed/designHeightUsed: a fill laid out with no room took its design size.- Render command:
fill_fallback(a fill whose size came from its design number, naming the parent and the fix); diagnostics find a node's parent in its own document and name component nodes by path (no more falselayout_overflowwhen a page and a component share an id);--full-pagecaptures the whole page while the window keeps its size (behavior change:screen.heightand anything pinned to the window's top and bottom are no longer stretched to the page; page content is unchanged), and--dump-layoutreports boxes where the PNG draws them;--unfocus,--key;--compare(side-by-side and diff images, bands, height difference); of a font package's subset files the one with Latin text's characters is served; the site manifest's theme is validated, published and its fonts loaded.
Authoring fixes from the second direct-authoring experiment (cycle 2)