codelessly_sdk 44.0.0
codelessly_sdk: ^44.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.
44.0.0 #
Cards' blocks take the same words as the core notation and Desk for a tone, a size, a hint and a keyboard. A Cards page written with the old words has to be rewritten: each old word is refused with the line to write. Read "Reads differently" before upgrading. With codelessly_api 44.0.0, which this needs.
Reads differently #
- Tones are
success,warninganddanger.goodis nowsuccessandwarniswarningonCallout,ChatCard,Receipt,ActionButton,BoardColumn,FeatureCardandTaskCard;bad,errorandcriticalaredangeronBadge,StatusBadge,StatusDot(status),ProgressBar,PromptBanner,FeatureCardandTaskCard. A block's other tones (accent,primary,quiet,dark, the picture palettes) are as they were. - Sizes are
small,mediumandlargeonSearchBar,StatusDot,TabToggle,ToolbarandUpgradeButton; they weresm,mdandlg. - A field's empty text is
hint=; it wasplaceholder=onAuthInput,Combobox,CommandPalette,DropdownMultiselect,ExtensionChipsInput,FilterBar,FullWidthSearchInput,HeaderSearchInput,IconSelect,ProjectSelector,PromptInput,PromptInputWithBanner,RichTextField,SearchBar,Select,TextAreaandTextInput. ACombobox'ssearchPlaceholder=issearchHint=. PromptInput's muted line under the text isnote=; it washint=, which is now the empty text.- A keyboard is
type=onInputFieldandTextInput, with the values anInputtakes (type=email); it waskeyboard=emailAddress. - Masked text is
passwordonInputFieldandTextInput; it wasobscure.
43.0.0 #
With codelessly_api 43.0.0, which this needs: the notation has one form for each thing, and a form that said what another form says is refused with the line to write. Read codelessly_api's "Reads differently" before upgrading; notation written with a removed form has to be rewritten.
Reads differently #
- The design systems' sources, the examples and the showcases are written in the one form of each thing
(
shadow=small,onPointerDown,hint=,maxw=,state … saved). - Desk's
Banner,StatandStatus: atoneisdanger;erroris refused withtone=danger. - Cards'
Banner: atoneisdanger, as in Desk;erroris refused withtone=danger. - Cards'
InputField:hint=, as on anInput;placeholder=is refused with thehint=line.
Fixed #
- A chain of worked-out states shows the same values and reads quickly. A page whose states are each worked out from the one before (a loan's schedule, ten steps deep) took tens of seconds to read; it reads at once.
42.1.0 #
Cards' blocks fill the panel or column that holds them, two crashes are fixed, and the shown checks say more. Read "Draws and behaves differently" before upgrading. With codelessly_api 42.1.0, which this needs.
Draws and behaves differently #
- Cards: a block fills the place it is given.
Callout,OptionList,DayPicker,Details,Checklist,ProgressLineand the other blocks that were at most 720 wide on a wide canvas are as wide as thePanel, theCardor the page's column they stand in, so their edges line up with the panels beside them. AChatCardand aParagraphkeep the 720 measure. A page's measure is its column's: writemaxw=on it. - A wrapping list has a measured size. Inside what measures its children (a grid's rows, a row that squeezes them) it counts its real height; it counted 0, so a card's chips ran past its cell.
- Cards'
SiteNavon a phone cuts a long brand name with an ellipsis; it pushed the action button past the edge. - An app frame drawn in a place with no height is as tall as its tallest pane (it threw; see Fixed).
Fixed #
- A view removed while one of its dialogs has the focus no longer throws "Looking up a deactivated widget's ancestor is unsafe".
- A row or column that stretches its children across an axis with no bound is laid out to its content and stretched to that; it gave its children an infinite size and threw.
Shown checks #
content_overflowssays when a line with a written height is given less than three quarters of it in a column, and names the lines to indent under it; for a text taller than the column it is in, it gives both heights; for a list of copies past a row's edge it says wrap, scroll or fewer.no_sizeon a growing cell beside fixed ones counts the row's gaps and padding, and names the cause.list_emptyis not said of a list whose empty state is written withcount(list, …)==0or!any(list, …).
42.0.0 #
A major version: tables, grids and one-line texts size themselves differently, and a site's theme reaches its
design system. Read "Draws and behaves differently" before upgrading. New: a render server that renders in
parallel, dragging that stays inside a CodelesslyViewHost, a design pass that keeps the safe part of an answer,
and wide forms of Cards (codelessly_api 42.0.0, which this needs).
Draws and behaves differently #
- Tables. A running table that hugs its height is as tall as its rows, at most its cap; it was its cap. A
row whose cell's content is taller than the row grows to it (wrapped text was cut). The columns of a
fillWidthtable given less than their widths share the squeeze down to 72 before the table scrolls sideways. - A one-line text is not narrowed below its line: with no ellipsis it reports its whole line as the least it can be, so a row with no room narrows what can wrap beside it first.
- A grid given no width is as wide as its columns of its widest cell, or of squares of its cells' length; it was 0 wide.
- A child that fills, in a row that wraps, with no design size and content that cannot be measured (a line that scrolls sideways, a field) is a line of its own as wide as the row; it was 0 wide.
- A row or column as thick as its content whose children all fill across, in a parent that gives no bound (a grid of cells written out beside a text, or in a box as wide as its content), is as thick as their content; it was 0 thick and drew nothing.
- A themed
DataTabledraws rules under its rows only (columnLines, below). - Charts write their labels in the page's font. A chart, gauge or barcode that names no font takes the font of the text around it; it took the engine's default.
- A page as tall as its content reaches its window's foot: a canvas that hugs its height is at least as tall as its host says.
- Cards and Desk. A site's theme reaches the design system's page ground, cards, bands and inks (white cards
on a tinted page, a dark site).
Brand,SideButton,NavSection,NavItemandAccountfold on theirrailparameter alone, so under a sidebar that stays as wide as written they keep their labels. Cards' tab-like controls take a phone's 44 high tap areas, andPanelits phone padding, by the shown width and not the screen's. Cards'SiteNavshows no second action unless one is written.
Fixed #
- A view moved with a
GlobalKeyinto a place with no semantics (underExcludeSemantics) forgets the semantics built where it was; once that place was removed the next layout asserted in Flutter's semantics pass. - Agent UI (
UiSession,CodelesslyView) compiles no feature library again: a full-screen modal no longer pulls in the app widget. - The test suite runs on Windows; script tests are skipped with a reason where QuickJS cannot be built, and
tool/build_quickjs.shuses the first Python that runs.
New #
CodelesslyViewHost: what moves over a view stays in the host's box. The copy of a dragged node, the row lifted out of a reorderable list, a card dragged between lists and a lifted shared element are drawn in the host's overlay: in the box's coordinates, clipped to it and scaled with it. A drag outside the box is over nothing of the view. With no host nothing changes.handleActionis exported, so a host's own handler of a core action can run the built-in one after it.scrollTo index=reveals the copy at that position of its list (from 0), whatever the items' keys are, built first when the list has not built it.- Calendar
weekStart(monday…sunday) names the day an inline calendar's weeks start on, and tablecolumnLines(false: no lines between columns) is drawn at rest and running. - Formulas a document cannot run:
unreadableFormulas,unknownFunctionCalls,formulasOf,nearestFunctionsandformulaWhereWrittenare exported: the formulas that do not parse or call a function that does not exist, and where each was written. - The design pass keeps the safe part of an answer. Each operation is tried on its own: one that would hide
or disable a node, reorder or remove content, change what a node says or does, drop a color or style that
follows a value, or make a text unreadable (a font size under 10, a contrast under 3:1) is left out and
reported in
DesignOutcome.rejectedwith its reason; the rest is applied as one undo step.DesignPass.restyleFaultsandDesignPass.readsValuecheck the same rules. - Cards for a desktop: wide forms of
ChatCard,Segments,ComparisonTable,ChartCard,DayHeader,MapPanel,MediaandPhotoGallery; ten page words (Brand,SideButton,NavSection,NavItem,Account,PageHeader,Panel,ListRow,BulkBar,PaneHeader);sizes.railfolds a sidebar of them at a tablet's width.TO-DESKTOP.mdsays how. - Desk: a page scale for websites, and tones and washes by the theme's names.
- Shown checks.
low_contrastis reported by the session's and the render's checks.content_overflowsis said of a text of several words given a word's width under a row, and of a field or a select narrower than 44.no_sizesays why (a width taken by what is beside it in its row, a height no list row gives) and reads the document's own boxes only.list_emptyis not said of a list that starts empty on purpose, norcomponent_emptyof a call a rule hides.
tool/codelessly #
- The render server renders in parallel:
serveruns a pool of render workers behind one port and token, so requests from separate clients render at the same time and one request's captures are shared among idle workers.--workers autostarts four and follows the load (--min-workers,--max-workers,--retire-after);--workers nis a fixed number, at most 8 unless it says more.serve --statussays the limit and the last decision;benchmeasures it. --layout-onlyreturns the layout and the diagnostics without a picture.statesrenders its states at the same time on the server's workers.expand <site folder>reads the app's shared state fromapp.txtand needs nosite.json: a folder holdingpages/,components/orapp.txtis a site.- A count-up is let arrive before a picture: a timer with a condition, or one that writes what it reads, is waited for (5 s of the screen's time at most).
CODELESSLY_RENDER_SERVERnames another folder for a second server beside the checkout's. On Windows--comparefinds a reference by its name.
41.1.0 #
A view can be given a box as its whole world, views can share variables, and the command-line tools answer in a fraction of a second once the render server is up. One fault in how a view follows an edited document is fixed (codelessly_api 41.1.0, which this needs).
Fixed #
- A view no longer hangs when a document is rewritten under it. Where an edit put a node under one that had been inside it (a text rewritten line by line, so that its nodes take other ids), the view's boxes could close into a ring and the app stopped answering with a stack overflow. A box now leaves its old place before it is put in its new one.
- Sorting and filtering by dates is faster. A text read as a date is remembered for a moment instead of being parsed again at every comparison; a list sorted by date laid out in about a third of the time on Windows.
New #
CodelesslyViewHost: a view's box as its whole world. Wrapped round aCodelesslyView, what the page opens stays in the box: a dialog is centred in it, a sheet rises from its bottom edge and is as wide as it, a drawer slides in from its side, the barrier dims the box alone, a toast shows in it, and a press outside the box reaches the app. For a view shown in a panel or a preview. Without a host a view opens over the app, as before. Drag-and-drop proxies are not confined yet.CodelesslyView(shared:): a scope of variables placed around the view's own, so that several views (the pages of one app) read and write the same values.- The design pass says how it ended: nothing to change, could not run (with the model's error), cut off, or the operations it kept and the ones it left out. One rejected operation no longer refuses the whole answer, and a new warning is a note.
tool/codelessly #
- Fast when warm. With the render server up (
tool/codelessly serve),render,statesandsheetask it over a local socket and start no other program: one page at one size in about 0.3 s (it was 3.4 s), six pages at three sizes in about 3 s (it was 10 to 17 s).expandand the other notation commands run from a compiled program rebuilt when their sources change: a site in about 0.35 s (it was 6 s). A cold run works as before. --timings(orCODELESSLY_TIMINGS=1) prints the milliseconds of each phase.- On Windows the tool writes a package path Dart can read (it wrote one starting
/c/, whichflutter pub getcould not find). doctorexits successfully when rendering works, and says what QuickJS is needed for and how to build it.
41.0.0 #
A major version: several things draw or behave differently, most of them fixes to what was drawn wrong. Read "Draws and behaves differently" before upgrading. New: links in a text's runs, pictures that stretch from a centre slice, a clip shape on any node, banners over everything, lists that hold their place, snapping lists and wheels, lifted elements, and the device's edges (codelessly_api 41.0.0, which this needs).
Draws and behaves differently #
- A full-screen page with the keyboard open lays out above it and keeps the focused control in view; it kept
its full height under the keyboard.
screen.keyboardreads what still covers the page (0 there) andscreen.insets.bottomis 0 under an open keyboard, so a bar a page lifts itself is never lifted twice. - A running list over data keeps what is in view in place when items are put before it (a reversed chat moved
by a message's height on each new one). Not grids, sections or page-at-a-time lists.
scrollTo node= item=matches an item's key before a copy's index, and a reversed list's padding is on its right sides. - A run's
linktakes the tap (onLinkTap, else the link opens); a tap ran the text'sonTap. In markdown, bare domains are link runs that carry their address, and no link is made inside an email. presentation=banneris a banner over everything, queued, closed aftercloseAfterMs; it was a centred dialog.- Toggles. A checkbox's, radio's or switch's label longer than its width wraps, and the control grows; it was one line cut short. A checkbox under 40 or a radio under 32 draws its mark never less than the node up to 18.
- A control off by its
enabledis in its disabled state for its own state styles, and an off button with its own disabled fill is drawn as written; it was faded to half and never entered the state. - Sizes that are written are kept: a fixed-size child of a stretching row or column, a sized
circularProgressIndicatorin any parent. A button narrower than its padding and label gives up its side padding before its label is cut. A hugging row that scrolls in a narrower row takes that room and scrolls. - Fields. A multi-line field with
maxLinesN in a taller box shows N lines. Tab into a multi-line field taller than its scroll view keeps its top and caret in view. A code field's slots are each the field's own box, at its height, with its fill, border and radius, andfocused.borderis the look of the slot typed into next alone. Input formattersemailandphoneare applied. A field focused as its page opens is focused once. - Repaints. A bound border colour repaints on a node with content and along a clip shape; a text's
style.foregroundgradient is painted. - Clips.
clip=clips a node of any type; a node cut to a shape has its border and drop shadow along the shape, and a tap in a cut part passes through. - A slider fires
changeStartbeforechanged.concatof texts gives a text;.lengthreads a record's ownlengthfield first. A node shown again by a condition has new screen-reader node ids under it.
New #
- Links in a text: the
linkTaptrigger,regexMatchesand??in formulas. - Pictures that stretch and shapes that clip:
centerSliceon a picture;clipPath,clipViewBox,clipFitandclipCutson any node;angleon a linear gradient;blurRadiuson a drawing's paint. - Shown over everything, and in sequence: banners;
after=<id>on an animation; transitions of a node's width and height (property=layout) and of a text field's decoration;enterScaleon an anchored popover. - Lifted elements:
hero.flies=liftlifts a node over a new page from where it is on the screen and back, and a long press takesholdMs,commitMsandhaptic. - Lists:
stickToStart,jumpToLatest,refreshStyle;snapPhysics(a fling carries its momentum to the row it settles on, past rows not yet built); a PageView'sperspectivewithmotion.translateZ; andpageOffset, a row's distance from where its list snaps, for wheels and drums.pageOffsetis read from Flutter's list for now and may change when the SDK draws its own. - The device's edges:
screen.insets,screen.keyboardandscreen.textScalein formulas. - Keys:
Trigger.focusedon a key trigger, a switch'sthumbWidth,fontFamilyFallback,enableSuggestions,overscrollin a scroll's result,result.cancelledondragEnd.
tool/codelessly #
statesruns warm: several states share one render server the run starts (--coldstarts Flutter for each state, as before). A state whose runs write no picture fails (no_capture);--only <name>picks that state alone.- Frames:
--framesfirst or after--reloadfilms the load, and after a step what the step started;--long-press <id>=<ms>,holdholds a press;--drag …,press=<ms>. - Steps and targets:
--stage <name>=<json>,--clock <ISO time>,--insets,--text-scale,--keyboard <px>,<field>@suffixand@prefix,--tap <text>@link:<label|n>, a toast's label and its action. A step naming a point (--tap 150,345) is an error that says to name a node. - Diagnostics:
font_missingonce for a site (it wasfont_fallbackon every page),image_failedfor a computed path that names no file,set_overwritten,zero_size,control_heights_differ,icon_smaller_than_size. A replay's files are named after the page shown at the capture.
40.2.0 #
Charts drawn right whatever they are written with: labels that never touch, a smooth line that keeps to its values, series told apart, a tooltip that reads on its page. A node that leaves a key out draws as it did; the look of the notation's chart words is keys they write (codelessly_api 40.2.0, which this needs).
Drawn right, for every graph and chart #
- The labels under a plot never touch. They are measured: where all do not fit, every second, third… from the
first is written, evenly apart; the step ends on the last label where a step near the smallest does, and where
none does the last is left out rather than set at an odd gap. Before, each label that ran into the one before it
was dropped, so the first of a line chart was missing and the gaps were uneven. A fitted view with no
tickEveryhas its ticks on those rows. - Long labels are cut before they are thinned away. Where thinning alone would write fewer than half of them, each (or every second) is cut with an ellipsis to the room between two, while that room holds about seven letters.
- A smooth line keeps to its values.
curvedmarks are drawn as a monotone curve: between two points the line stays between them. The curve it replaces rose above peaks and dipped below troughs the data did not have. - Series with no color are told apart. A
chart's series that write none take the theme's series colors in turn (colors.chart1,chart2… where the theme names them, else its primary followed by colors of other hues as light and as strong as it; a theme with no primary starts from#2563EB); they were all one green. A donut's rows that give no color, and a graph's marks that write none, take them the same way (an area and the line along its top share one); a graph's were all#2962FF. - A graph on a page takes the theme's colors where its style says nothing: the grid, the labels, a crosshair's
tag and the tooltip. A
graphnode drew a fixed light style whatever the theme, so its grid was lost on a dark page. - A tooltip is a surface with a hairline round it and a soft shadow, in the surface's ink; it was an inverted
box. It stays over the panes: beside the pointer on the side that has the room, never over a legend or out of the
graph. One mark with no
namewrites its value alone (it wrote the row field's name), and a graph too small to hold a tooltip draws none. - Bars side by side are each at most the widest a bar is drawn (
maxBarWidth); the group was that wide together. tool/codelessly renderdraws agraphnode's labels, and a chart's whose family is written empty, in the render's default family; a graph whose style named no family drew boxes for letters.
Keys, off unless written (codelessly_api 40.2.0) #
chart:legend,roundScale(the scale rounded out to its grid lines, never leaving more than a third of the plot empty over the highest value; its figures have the decimals of its step, a thousand and more a separator, ten thousand and more written20K),dots,cursorLine,plotInset,maxBarWidth, a series'fade, and for a donutlegend(its labels and shares beside the ring where its box has the room, else under it) andcenterLabel(its total in its hole; the selected slice's value and label while one is selected).lineChart:gridValues(round lines with their figures whereplotPaddingkeeps 24 or more left of the plot),cursorLine,tooltip.barChart:gridValues,tooltip.graph:legend,style.palette,style.ink,style.tooltip,tooltipText,tooltipBorder,x.inset,y.nice, a mark'sdots,centerandcenterLabel.GraphEngine.legendis the legend as laid out,GraphEngine.xLabelsthe labels that are written,graphPalettethe colors a graph uses when neither its marks nor its style say.
Layout, formulas and the render tool #
- A negative
xoryon a child of a Stack that hugs holds: the child hangs out by that much. - A fill child with no size of its own, under a Stack sized from its children, takes its content's size. It was 0 wide.
- A flex child's
minWidthis kept when its Row squeezes. - Setting a map or list variable to null gives null. It gave
{}or[]. matchesandregexReplaceread leading inline flags ((?i),(?s),(?m),(?u)); a pattern that fails is reported.- The expand says a null variable with no type that a formula reads by a field, and notes a site expanded at the default width of 1440.
- The render says
zero_sizewith why,icon_smaller_than_size,control_heights_differ(controls of different heights in one Row), and why a text's box is 0 wide.
40.1.0 #
Needs codelessly_api 40.1.0.
- A
lineChartwhose rows have a name for their x (xField: "day"over{"day": "Mon", "count": 3}) draws them in the order written, a step apart, each labelled by it under the plot. Rows with no number for their x were left out, so the chart drew nothing. Rows with numbers are placed by them, as before.
40.0.0 #
Documents that drew wrongly or held the renderer draw now, and a render says what a picture cannot: a formula that failed, a name the theme does not have, a child drawn over what follows it. Needs codelessly_api 40.0.0.
What a page draws on a phone and by default: a text that keeps its words whole, controls at a web page's size, fields that read on the ground they stand on, bar charts in the theme's colour. With CodelesslyAPI 40.0.0. Read the first section before upgrading.
Behaviour changes (read before upgrading) #
- A condition is no for nothing. A
visiblebinding whose value is nothing (a name nothing has, a formula that failed),"",0, an empty list or an empty map hides the node; a text or a record shows it. Before, any value that was not true, false or a number left the node as written, so bothif length(x)==0andif length(x)>0drew when the formula failed, andif parent && parent.bodydrew with no parent. - A child that fills its Stack and is placed off its start is drawn there (
h=fill y={…}: a page of a stage, the Stack's size, moved by its place). It covered the Stack whatever itsxorysaid. A place of 0 is as before. - A function a formula calls is worked out once for the same arguments within one evaluation, unless it read
something that differs from call to call (
random,pick,newId,now,nowMs, a script). A body that writes an argument's expression several times no longer costs the product of them. - A formula that makes more than 200,000 calls of the page's own functions in one evaluation is cut off: the
calls past that give nothing (
FormulaFunction.maxCalls;FormulaFunction.onRunawayis told the function). Functions that call each other without end returned after minutes or never. - A computed variable read while another is worked out is kept when no cycle was met under it: a variable twelve others read in turn, each for every item of a list, is worked out once a change, not once a read.
regexReplacereads a group written\$1as$1(the backslash was kept in the result).- A one-line text field whose text is taller than the kit's box (a title at
fontSize44) is as tall as its line; it was cut to the default height. - A calendar given less height than its rows ask for keeps each day's note (a mark, a price) in the day's own cell; the notes fell on the days under them.
Text
- A text never breaks inside a word. Where its box is narrower than its longest word, the text is drawn
smaller so that the word fits, down to 65 % of its size; a word still too long keeps its line and fades out at
the box's edge. It was broken wherever the line ended, in a narrow column a letter a line. A text of one line
(
maxLines: 1), one withscaleDown, and one whose words fit are as before.
Controls
- A control 40 high is a step of its own: a label of 14 with 16 at its sides (it took the 36 step's 13 and
12), an icon button's glyph 18, a menu row 36. The 44 step's side padding is 18 (14 before). A theme with a scale of its own
(
sizes.mediumorsizes.large, as Desk's) keeps the steps it names unless it namessizes.regulartoo. - A field or a select held to a height and as wide as its content measures its sides at that height's step (they were the default step's, so a select 40 high was a few pixels narrower than its own value, which was cut).
- A field, a select or a picker on a ground of another brightness than the theme's
surface(a light card in a theme whosesurfaceis dark) is drawn for that ground: its fill and ink are made from it. It took the dark surface as its fill, with dark ink.
Charts
- The chart types are drawn by the graph. A
chart,barChart,lineChartandplotChartnode is written out as agraphnode and drawn by it, as one render object: bars that stack or stand side by side, lines, areas, candles and slices round a center, with a selection (hover, tap to pin, a finger pressing and moving) and its tooltip, guides, value labels and its own grid and axis labels, so a label at an edge is not cut. The charts' own painters are removed, and pictures of charts differ. - What a chart type says that the graph has no word for is not drawn: the timeline chart, end labels, totals over stacks, a bar's gap, and the plot chart's selection guides and marker shapes.
- A bar chart's bars are at most 56 wide when the node gives no
maxBarWidth, each in the middle of its column. With few values in a wide card they were slabs. - A bar chart with no
coloris the theme's primary wherever that shows on the surface (1.5:1). A light primary (an amber, a lime) was replaced by the ink, since it does not read as text there.
Formulas
money(value, "USD"): a currency's three-letter code where the symbol goes is that currency's symbol ($9.00); it printed the code before the figure.
Theme
The SDK no longer uses Flutter's Material theme at all. It reads no Theme and puts none above a layout: a
layout, and the runtime's own dialogs, toasts, sheets, players and lists, draw with the project's theme tokens
and nothing else. A project looks the same in a MaterialApp, a CupertinoApp and a plain WidgetsApp.
- Nothing of your app's theme colours anything of the SDK's. The loading spinner (
CodelesslyLoadingScreen) took your app theme's primary colour before a project had loaded; it is the project's primary, or a neutral ink. A dialog's barrier is black at 54% unless the action sets a scrim; yourDialogTheme.barrierColoris not read. themeDataOfis removed. For the project's colours in your own widgets usesurfaceRoles(tokens)(see Added); the theming guide shows aThemeDatabuilt from them.FeedbackThemeis no longer aThemeExtension(itslerpis gone), and aFeedbackThemein yourThemeData.extensionsis not looked for.ResolvedFeedbackTheme.themeDatais removed (ResolvedFeedbackTheme.tokensgives the look as theme tokens), andResolvedFeedbackTheme.resolvetakes the theme's colour roles and font instead of aThemeData.- A widget of your own shown inside a layout (an external component, a registered widget) finds your app's theme, where it found one the SDK made from the project's tokens. In an app with no Material theme it finds none, as anywhere else in that app. It still gets the layout's default text style and icon colour.
- A widget of your own inside a layout is no longer on a
Material. One that needs a Material ancestor (anInkWell, aTextField, aListTile) must bring its ownMaterial. - The confirm dialog's shadow is the theme's (its largest shadow token), where it was Material's elevation. A dialog look with shadows of its own is unchanged.
- The audio player's background and text are the theme's: its tertiary background, its text colours and its font. The sizes of the text are the same.
Screens, dialogs and sheets
- Your app's
ThemeData.pageTransitionsTheme(andThemeData.platform) no longer change how a project's screens come and go. A screen with no transition of its own plays the SDK's page transition (CodelesslyConfig.pageTransitions, see Added): by default the platform's, which is what an app with an untouched theme played before. An app that customised its theme's page transitions and wants them for the project's screens passes them in; the navigation guide has the few lines that do it. - On Android the system's back swipe plays the screen's own way out under the finger, as far as the first
15% of it, then leaves or comes back. It played Material's predictive-back look (the screen shrinking in a
rounded frame). Only apps with
android:enableOnBackInvokedCallbackare affected. - On the web a screen opened through
CodelesslyWidget.onGenerateRoute(your ownpushNamed, a link) has no page transition, as anavigateaction's screen already had none there. It played the transition of the visitor's operating system. CodelesslyPageRouteis no longer aMaterialPageRoute(it is aPageRoute):route is MaterialPageRouteis false for a project's screens, and a paywall and a full-screen modal open in aCodelesslyPageRoutetoo.seeThroughPageTransitionsis removed, withSeeThroughZoomPageTransitionsBuilder(internals.dart): above backdrop screens the SDK's transitions paint nothing behind the screens by themselves.- Behind two screens while they move, Android's transition and the desktop's scrim are the project's surface color, not your app theme's.
- A dialog comes and goes as the SDK's other presented layouts do: it fades in and grows from 96% over
320 ms, and leaves over 200 ms. It faded over 150 ms both ways, as Material's dialog does. This is every
openModaldialog with no blur or scale of its own, andconfirm. - A plain bottom sheet moves as the SDK's sheets do: up over 320 ms and down over 200 ms on the SDK's curve
(it was 250 ms on Material's), and a downward fling of 400 px a second closes it (it was 700). It is as wide as
the screen unless the action sets
sheetWidth, which a plain sheet now follows; it was never wider than 640. It still follows a finger, and closes when let go under half way. - A dialog's barrier and pull to refresh are called "Dismiss" and "Refresh" to a screen reader in every app.
In a Material app they were your app's Material localization.
CodelesslyConfig.labelsgives them, and the other words of the runtime's own chrome, in your language (see Added).
Chrome
The runtime's own chrome looked like Material's. It is drawn with the SDK's stock controls now, in the project's theme (or a design system's), as the same control in a screen is.
- Buttons. The toast's action and close button, the confirm dialog's answers, the players' play buttons, a
swiped row's Undo and a chat list's jump-to-latest button are the SDK's buttons with nothing of Material's over
them: the theme's hover and press layers, and a focus ring when the keyboard is on one (it was a tint). Their
colours, fonts, radii and the dialog's button height are still the feedback look's (
FeedbackTheme, a toast's or a confirm's own style).- The toast's action is as wide as its label and padding (it was at least 48), and the close button's cross is the icon size of the SDK's 36 px button (16; it was 18).
- The audio player's play button is the SDK's 44 px icon button in the theme's secondary text colour (it was 40 px, in the primary colour). The video player's is the SDK's small floating button at 44 px: the primary colour, with its shadow.
- A list's jump-to-latest button is the SDK's small floating button, 44 px (it was 48 px on a tonal surface).
- The Undo bar is the theme's inverse surface (the tooltip's colours), with the theme's panel radius and shadow and 13 px text. It was Material's dark grey snackbar.
- The audio seek bar is the SDK's slider, as an unstyled
sliderdraws: its track, its thumb and its disabled look. It was a 3 px track with a taller played part and a 12 px thumb. - The loading spinner is the SDK's spinner as an unstyled
circularProgressIndicatordraws it: a 24 px ring, its arc a steady 30% turning once every 900 ms, in the theme's primary colour. The loading screen (CodelesslyLoadingScreen), a paginated list's default loading footer and an audio player that is getting ready showed Material'sCircularProgressIndicator(36 px on the loading screen, its arc growing and shrinking). AloadingBuilderof your own is unchanged. - Pull to refresh shows the SDK's spinner on a 36 px disc in the theme's raised surface, with its hairline
border and shadow. The arc fills from the top as the list is pulled, then turns while the list refreshes. It
was Material's 40 px white disc and its arc with an arrowhead. The pull that brings it down, where it rests
and how long it takes to leave are unchanged;
refreshColor,refreshBackgroundColorandrefreshDisplacementapply as before. - The line between a list's items (
separator: divider) is the SDK's divider: adividerThicknessof 0 draws no line (it drew a hairline of one device pixel), and a line thicker than the gap between the items is centered on the gap (it grew out of one side). Any other line is unchanged. - The players' and the chat list's buttons show no tooltip. Hovering (or holding) the video and audio play buttons and a list's jump-to-latest button showed "Play video", "Pause audio", "Jump to latest". They no longer do; a screen reader still reads those names.
- The keyboard reaches the toast's, the Undo bar's and the players' buttons as it reaches a screen's controls. They are in the SDK's own focus order now (Tab, Shift+Tab, Enter and Space), where they were stops of Flutter's. In the confirm dialog the focus still starts on the yes (on Cancel when it is destructive), Tab moves between the two, Enter presses, Escape cancels. A revealed swipe action is no longer a Tab stop of its own: the row's keys run its actions, as before. The audio seek bar takes the arrow keys, Page Up and Page Down, Home and End.
Added #
-
The
graphnode: rows drawn as marks (bars, lines, areas, candles, slices) on rows one place each or a linear x scale, with ticks, guides, panes, a crosshair and a selection it publishes as state. When the rows change, the marks move from the values on screen to the new ones; a linear x scale's view pans and zooms about the pointer and is set and read as{from, to}. -
render --screen-timeout <seconds>(default 120): the most real time one screen at one size may take. Past it the page's own functions and computed variables give nothing, the screen is reported as an error (screen_timeout) and the run goes on to the next.FormulaFunction.deadlineis the limit a host sets. -
A site names its date:
"now"insite.jsonis the--nowof every render and state of the site when none is passed. -
FormulaEvaluator.onFailureis told each formula that could not be worked out, with why;FormulaEvaluator.truthyis whether a value counts as yes where a condition is read. -
Render diagnostics:
formula_failedalso names a node whose formula failed when the screen was drawn (its condition, its list, its text, a value) or a variable's, with the formula and why;formula_runaway: a formula cut off at the call limit, naming the function;theme_name_unknown: a color the theme does not have,theme.<name>written as a value's text, ortheme.<name>read in a formula where the theme gives no such value;icon_not_drawnalso for a control's icon (anIconButton's, aButton's, a field's) that names no glyph, and names a known icon of the same name without its style's ending;paints_outside: a node drawn past the bottom or the right edge of a Stack (or a box) that does not clip, over something after it, with by how much;site_now: a"now"insite.jsonthat is not a time.
-
CodelesslyConfig.pageTransitions: the page transition of a project's screens.CodelesslyPageTransitions.platform(the default) plays Android's fade forwards, iOS's and macOS's slide with its back swipe from the edge, the zoom on Windows and Linux, and none on the web. Each can be chosen by name on every platform (fadeForwards,cupertino,zoom,none).CodelesslyPageTransitions.animated(...)takes any transition of the animation system: aRouteTransition, with a preset (sharedAxisX,fadeThrough,iosPush,circularReveal...) or its ownenterandexitposes, curves and durations, played as anavigateaction'srouteTransitionis. A subclass of your own draws anything else. Anavigateaction's owntransitionorrouteTransitionstill wins for that navigation. -
CodelesslyConfig.labels: the words a screen reader hears for the runtime's own chrome (CodelesslyLabels: a dialog's barrier, a toast's close button, pull to refresh, jump to latest, the players' buttons, the seek bar), English unless you give your own. -
surfaceRoles(tokens): the colours an unstyled control draws in (SurfaceRoles: surface, onSurface, primary, muted, outline, hairline, error), from a project's theme tokens, for your own widgets.
Fixed #
-
A render with no
--nowstarts at the real time, as its documentation said:now()andtoday()gave 1 January 2015 (31 December 2014 in zones west of Greenwich), so calendars, countdowns and "today" lists were empty.--waitstill moves the clock;--nowand a site's"now"pin it. -
A Stack with
fit=contain(orcover) and no size of its own along an axis (w=fill) scales its content's size. Its frame was not a number, the picture was blank and the render's layout dump failed on it ("Infinity or NaN toInt"). -
A box that fills, measured with no bound and with nothing in it that sizes it (a filling tile in a cell of a grid whose rows hug) no longer fails the layout with "A Stack requires bounded constraints".
-
parent.parent.item(the outermost item in a list three deep) reads that item; it read nothing, so a condition on it drew no row. -
The notation's
go pagenames a page written in the site's folder whensite.jsonlists no pages. -
The package is tested and documented for any app shell. Its tests run under a plain
WidgetsAppas well as aMaterialApp; the README and the quickstart have aWidgetsAppsample and say what the SDK needs from the app around it (aNavigator, and the Material icon font for icons); the example app is a plainWidgetsApp, with aMaterialAppvariant inexample/lib/main_material.dart. -
A host app that is not a Material app can open dialogs and sheets, and show a reorderable list. Under a plain
WidgetsApp(noMaterialLocalizationsabove the SDK) anopenModal(a dialog, a cover, a bottom sheet), aconfirmand a list withreorderfailed with "No MaterialLocalizations found". Each is a route or a list of the SDK's own now, the same in every app.
Changed #
- No file of the package imports Flutter's Material or Cupertino library (23 did). An app that does not use
Material itself carries about 430 KB less of it (Android arm64: 104 KB of
flutter/src/material, from 432 KB; 16 KB offlutter/src/cupertino, from 47 KB; none ofmaterial_color_utilities, from 72 KB). What is left in such an app comes from the plugins the package depends on (video_player,webview_flutter,in_app_purchase), which import Material themselves. A Material app carries about 300 KB less.docs/design/no-material.mdhas the measurements.
Desk #
Tabsscroll sideways, with a fade at the edge, where the row has no room for them all. They were cut.Property: its label is as wide as its words (112 at least, 220 at most); it was cut at 112 beside free room.ListRow: its description says how tall it is (44 with one line, 66 with two, 87 with apreview) and that no height is written on it; its previews are at those heights.
Tools #
- The render command draws a text that names no family in the theme's
fontFamily, as an app does. It gave such a text Roboto by name, so a site whose theme names a serif was drawn in Roboto while the run reported the serif as fetched. text_clippedsays when a text was drawn smaller, or cut, to keep a word whole, and at what share of its size.
39.0.0 #
Schema 3 is the only schema the SDK loads; a sheet's resting stop in a variable, a file picked without an upload, the share panel and the page's address. Needs codelessly_api 39.0.0.
Behaviour changes (read before upgrading) #
Schema 2 documents are refused
- Documents of schema 2 are no longer loaded. Every loader (Firestore, HTTP, an asset bundle, memory) refuses
a publish model, layout, component or bundle of any schema other than 3, or with no
"schema", with aPublishLoadExceptionthat names the schema it found and the one it reads:The publish model of project [p1] is in schema 2; codelessly_api reads schema 3 only.,Layout [home] is in schema 2; ...,The bundle is in schema 2; .... A schema newer than 3 says the same and addsUpdate codelessly_sdk. - What to do with one: convert it with 38.0.0 before upgrading. 38.0.0 is the last release that reads schema
2: with it, load each publish model, layout, component and bundle (a bundled asset too) and save what
toJsongives, which is schema 3 (codelessly_api's 39.0.0 entry says how). A project published again from the Codelessly Editor is schema 3 already. Then upgrade: nothing that is schema 2 is read any more, in memory or otherwise. - A
setValuepath of schema 2 (loops[0].duration,drag.track.value...) is no longer recognised and refused with a hint: it is a path like any other, and sets nothing the node reads. - The
clocktrigger is gone (it was read as atimer); writetimer. - A signature pad's
signLineOffsetandshowSignMarkare no longer read: writesignLineBottomandsignLineMark.
Sheets
- A notation
Sheetwith a stop over nine tenths rises to it (stops=[0.5,1]: the whole window), since codelessly_api 39.0.0 makes the sheet as tall as its highest stop. It stopped at its half stop: the higher one was dropped.
Added #
-
The stop a bottom sheet rests at, in a variable (
openModal'sstopVariable; the notation'sSheet#id stops=[0.5,1] stop=@name). The sheet writes the stop (assnapHeightsgives it:0.5,1) as it opens and when a drag, its handle or Alt and the arrows move it to another; setting the variable moves the open sheet to the nearest stop; a sheet opened while the variable holds one of its stops opens there; the variable is0once the sheet has closed. An app's ownActionUibinds it by implementingSheetStopUi(openSheet, given aSheetStopto read, write and listen to); without it the sheet opens as before and binds nothing. -
pickFileopens the platform's file chooser (thefile_selectorthe SDK already uses; the browser's on the web) and gives the picked file's record as${result}:{name, size, type, data},dataadata:URL an image shows and acloudFilesaction uploads as itssource.accept,multiple,content(dataUrl,text,none) andmaxSizeMBare its fields; picking nothing ends the chain without an error.Services'filePicker(or the app shell's own picker) is asked; aTypedFilePickeris offered the accepted kinds (PlatformFilePickeris one), any other picker is asked for images or any file and what it gives is checked.mimeTypeOfFileName,acceptedKindsandfileAcceptedare exported. -
shareopens the device's share panel with a text, a link and a title, throughServices' newsharer(Sharer).PlatformSharer, the default, is the browser'snavigator.shareon the web. On Android, iOS, macOS, Windows and Linux the SDK has no share panel of its own (it adds no plugin for one): giveServices(sharer: ...)your app's (a few lines over a share plugin), or the action copies the link (with no link, the text) to the clipboard and${result.copied}is true, as it does in a browser withoutnavigator.share.${result.shared}says the panel took it.RecordingSharerrecords shares in tests. -
screen.url: the address of the page as shown. In a browser, its URL; elsewhere the location the screen's route was opened with (/trip/coast?day=2, asCodelesslyWidget.onGenerateRoutenames routes and as a link into the app opens them), or empty when it has none. A dialog or sheet has the address of the page it was opened from. In aCodelesslyViewtoo. -
Render tool:
--pick-file <path>is the file apickFileaction (or acloudFilesupload) picks in a run, repeatable; without it nothing is picked, as when the chooser is closed. Ashareaction copies its link there, listed undercopied to the clipboard. -
A graph, as a preview (
package:codelessly_sdk/graph.dart):CodelesslyGraphdraws an interactive chart from a JSON spec and a list of rows, with no closures in the spec: panes of marks (lines, areas, bars, candles) over one x axis the person drives, transforms that work out further columns (sma,ema,rsi,stddev), price lines, session bands and markers. It pans, flicks, zooms by wheel and pinch, scales an axis by a drag, fits the y scale to the rows in view, shows a crosshair that snaps to the rows, follows new rows, and asks for older ones as the view reaches the first (onNeedHistory). Its viewport and cursor are state it gives the app (onState) and takes back (view).GraphEngineandGraphSpecare the same without a widget. It is drawn by a copy of the graphic package kept inside the SDK (MIT), and adds thevector_mathdependency. This is a preview: the spec's shape and these classes may change in any release, and a Codelessly document cannot hold a graph yet.
Desk #
- A
BoardColumn's cards are 8 apart, as its description says: cards written under it touched. Cards made by aneachgo in aColumn w=fill gap=8under the column, with theeachin it (a gap does not reach into aneachfrom outside it); Desk's guide says so. - The kanban example's cards drag between columns: each column's cards are in a Column that takes a dropped
card (
drop=cards onDrop={…}) and each card is dragged (drag=cards({k.key})). Its pictures are rebuilt, with one of a card dropped on another column (board@1440x900-light-dragged.png), and the gallery's feedback page.
Removed #
tool/notation/notation.sh migrate(andmigrate.dart,migrate_bind.dart,expand_all.dart --migrate), which rewrote notation files from the grammar of 33 and earlier (bind=name,key:value,-> actions): rewrite such a file with 38.0.0's tool before upgrading. The notation still saysbind=is not read, with the line as it is written now.
Tools #
tool/codelessly renderreports a document that is not of schema 3 asschema_unsupported(an error naming the schema it has) and does not render it.notation printrefuses such a document with the same message.
38.0.0 #
Needs codelessly_api 38.0.0, whose entry lists what the notation now draws differently.
Behaviour changes (read before upgrading) #
The notation's shorthand words
Heading,H1–H4,Title,Brand,Logo,Link,NavItem,NavSection,SidebarFooter,IconTile,Dots,ConfirmDialog,Shortcut,computedand their other names are no longer the notation's (see codelessly_api's 38.0.0 entry):expandsays each as an unknown word, or a placeholder with--open, unless a definition gives it. A design system's component of one of these names is called as before: Desk'sNavItem,NavSection,BrandandMenuItem, so Desk's and Cards' reference screens draw as they did. To keep writing them, read a dictionary that defines them (Added); the definitions, ready to copy, are in codelessly_api's notation reference (docs/reference/notation/components.md).
Layout
- Squeezable texts side by side in a row keep their own widths while they fit, and give way in proportion
when they do not (CSS's
flex-shrink), in a row that squeezes its children (squeezeChildren, the default). As flexible children of equal flex they took an equal share each, so a heading beside a short count wrapped at half the row with room to spare. Where they cannot fit even at their least, they give way below it, so what is beside them stays in the row, as before. Measured (a grid's row that hugs it), the row is as tall as the squeezed texts' lines. A row withsqueezeChildren: falseis unchanged. - A grid whose rows shrink-wrap (
shrinkWrapRows) and that gives amainAxisExtenthas rows at least that long (CSS'sgrid-auto-rows: minmax(extent, auto)); the extent was not read and rows were as short as their content (a timetable's slots 16 px high).
Controls and charts
- An inline calendar given less height than its rows need fits its six rows of days inside its box (down to 20 px a row); its rows stayed 48 px and painted past the box.
- A line chart draws a series written without a
kindas a line (chartType: line,series: [{"field": "first"}]); it was a bar, which a line chart does not draw, so the chart had no lines. - A ring filled to a value (
circularProgressIndicatorwith avalue) shows its track when it names nobackgroundColor: the theme'strack, else a progress bar's tenth of grey. It drew the arc alone. A spinner (no value) is unchanged.
Dialogs
- A confirm action's built-in dialog takes a design system's dialog: the corner of
radii.dialog(beforeradii.popup), and with adialogTitletext style its title at that size, its message atbody's, its buttons atsizes.controland its cancel outlined insecondaryBorder. Desk's confirm drew the runtime's own 18 / 15 / 44 px and a text cancel beside Desk's outlined buttons. A theme with no dialog of its own is unchanged but forradii.dialog.
The vocabulary record
- A word read from a dictionary resolves as a
definitionwhosedefinedByandoriginare the dictionary's folder name (wordsfor--dictionary ../words), notdesign system.
Added #
- A design at a width. A page written with the notation's
at <width>blocks (codelessly_api's 38.0.0 entry) renders as it is, with no change here: each design shows at its widths. Across a width bound the text typed into a field is kept (both copies of the field bind the same variable); the focus and the caret are not (the copy shown is another field, and the hidden one loses the focus), and each copy of a scrolling list keeps its own scroll position. An action that names a copied field (focus search) reaches the copy that is shown. - Render tool:
--modalscaptures the screens only ever opened as a modal (anopenModalnames them, nonavigatedoes), each alone, in a run that captures every screen. Without it each such screen is named in amodal_screen_not_capturedinfo line, with how to capture it. - Dictionaries.
tool/notation/notation.sh(prompt,expand,validate,print) andtool/codelessly notationandvalidateread the folders of definitions--dictionary <folder>names (written again for each further folder), or, with none written, thoseCODELESSLY_DICTIONARYlists (separated as inPATH;--no-dictionaryreads none); a site'ssite.jsonadds its own ("dictionary": ["../words"], relative to it). A word is read from the first that defines it: the page's owndefine, the site's, the design system's, then the dictionaries in order.promptlists their words, one line each as a line uses it; the MCP server'scodelessly_validatetakesdictionary(a list of folders). - The vocabulary record says where the meaning of a word is written:
originisbase,code(a word of the page's frames the expander writes out) or the name of the dictionary it was read from.
Fixed #
- A custom paint's color worked out to the name of a theme color (
stroke={props.ink}withink="tealDot") draws in that color; it was transparent. - No
value_not_computedwarning for a word such asnullthat is in the data a text reads (a site's variables, a component's parameters) though not in the page's document.
37.0.0 #
Needs codelessly_api 37.0.0, whose entry lists what the notation now draws differently.
Behaviour changes (read before upgrading) #
Text fields
- A multi-line field with an action of its own (
textInputActionsend,done…) takes Enter itself: Enter is the action and Shift+Enter a new line (while an IME composes, Enter stays the IME's). A text area with no action is unchanged. - Sending from a multi-line field keeps the focus.
- A box around a text field with a focused look of its own (
focused.border=…) is focused while the field has the focus, as CSS's:focus-within. - A field with no border keeps its border's radius for its fill.
- A hugging text field whose box has a height of its own draws its text at that box's step of the control scale.
Controls
- A date or time picker whose decoration names only its fill, border and corners keeps its icons. A decoration's border with no corners takes the control radius.
- A dropdown with no frame of its own (
underline: false) has its value in the middle of its box. - A switch given one side only (
Toggle h=44) draws the standard 36 × 20 track in the middle of its box.
Layout
- A stack that does not scroll and has a
clipBehaviorclips what is in it, its corners' radius too. - A list's copies that are hidden take no gap.
- A fill with a
maxWidth, in a stack, is as wide as the stack up to that. - Squeezable texts beside a child that fills keep their own width and the filling child takes the room left, whatever order the row's boxes are applied in.
Keys
- What is under an open overlay takes no key. A page's
keylines and a node'sonKeyDownwait while a dialog, a sheet, a drawer or a menu is open; the overlay's own keys run. A page shortcut that was meant to act over its own dialog now needs to be written under the dialog.
Themes and fonts
- A theme with no
surfaceon a dark ground: controls, menus, tooltips, pickers and dialogs take that ground as their surface and the theme'sinkas their text. A light ground, and a theme that names itssurface, are unchanged. - A site's theme family is one of its pages' fonts: the family the theme names (
"fontFamily","titleFontFamily") is declared at each weight the pages' texts use, so an app fetches it with the page. - A theme font that loads after the first layout reaches the controls' own texts (a checkbox's and a toggle's label, a field's hint).
Render tool
- Fonts from Google Fonts. A family that is neither among the tool's own faces, the
--fontsdirectories nor the site's declared files is fetched from Google Fonts and kept in a cache (CODELESSLY_FONT_CACHE, else.dart_tool/codelessly_google_fonts). A family Google Fonts does not have is drawn in an open face, the same on every machine: Georgia in Gelasio, Times New Roman in Tinos, Arial and Helvetica in Arimo, Courier New in Cousine, another serif in Gelasio, a slab in Roboto Slab, a script in Dancing Script.--no-google-fonts(orCODELESSLY_NO_GOOGLE_FONTS=1) fetches nothing; then, or when a fetch fails, the family falls back to the machine's face of its class and thefont_fallbackwarning says so. A render never fails for a font, and no font file is added to the package. placeholder_wordsays when a stand-in draws nothing and takes no room.--wait:now()andnowMs()move with the run's clock.--nowstill pins it.
Desk
- Narrow forms:
PageHeaderputs its actions under the title on a phone,BulkBarputs its actions on a second line, andBreadcrumbshows its last step below a desktop's width. - Avatars inside Desk's components are the sizes its design gives: 20 on a
TaskCard, 32 on aListRow, 36 on aPaneHeader(they all drew at 28: the component's numericsizewas not passed through). - Desk's rail is 64 (
sizes.rail, was 60), and an app'sSidebarwith no rule for other widths is a rail on a tablet and a drawer on a phone.
Added #
design_systems/cards/TO-DESKTOP.md: taking a Cards screen to a desktop page on Desk, with two screens taken across.design_systems/NAMES.md: the parts Desk and Cards share under other names or shapes.design_systems/desk/TO-MOBILE.mdsays what now happens by itself.- Render driver:
--tap "Text"taps the line of an open menu, popover or dialog that shows that text; a step on a row of a list hidden at this size is skipped with a note. FormulaClock.sourcelets a host that runs time itself give the time formulas read.- Notation tools: an overlay a site's component writes after its tree is on every page that calls it;
notation.sh prompt --opensays how a theme names its font.
Fixed #
- An accordion draws every child after its header.
- A ring (
circularProgressIndicator) that fills its place draws. - A control's label falls back for the symbols its font lacks (← → ↗ ⌘).
- A paint
paragraphwithtextAlignandmaxWidthis aligned across itsmaxWidth. - A list that keeps its end in view, with a padding of its own, no longer fails.
scrollTofrom an overlay reaches the page under it.- The render command gives no
page_not_writtenwarning for a page listed without its extension.
36.0.0 #
Needs codelessly_api 36.0.0.
Behaviour changes (read before upgrading) #
- Tabs, segmented buttons and chips take the theme's accent with nothing styled and are rounded rectangles at the control radius, not grey pills: the chosen one is the accent with the on-accent ink, the others the theme's ink at 6% (10% in the dark). A chip chosen from shows no check mark unless written.
- Tab follows the order of the tree (the document's lines), not the position on screen.
- Custom paint: a node's painter is drawn over the node's own fill and border and under its children; a filled node hid its painter whole.
- A Splitter is as long as the panes it divides and an 8 px hairline in a desktop window.
- A text beside a Spacer keeps its own width; a list is as thick as its thickest item; copies of an
eachacross a row sit where the row says (they were centered). - A node that reacts only to the secondary button takes no part in a primary press.
- Render tool, output names: diagnostics are
diagnostics[-screens][@sizes][-label].json; a capture after--navigateis named after the screen it shows;--outlinelists this run's files only. A full-page capture with a dialog, drawer or menu open is the window as it shows. - Notation tools:
expandsaves a vocabulary record in the site's folder (vocabulary.json,VOCABULARY.md;--no-recordfor none); a components file that cannot be loaded and a formula that cannot be parsed fail the expand; a built-in word wins over a site's definition of its name.
Added #
- Desk (
design_systems/desk): a desktop design system, written clean room: a theme (zinc neutrals, an indigo accent, Inter 13), 36 components, its guides (README.md,DESIGN.md,TO-MOBILE.md), galleries and three reference screens. A site re-accents it by namingprimaryalone. - The vocabulary loop:
tool/codelessly validate(and the MCP toolcodelessly_validate) gives a site's issues and placeholder words as JSON; render reports each placeholder (placeholder_word) and a formula the engine cannot parse (formula_invalid) or that fails (formula_failed);notation.sh vocabularyharvests the records of many runs. - Sites in notation:
expand <site folder>writes the whole site (its pages, components, variables and theme);site.jsonlists pages by name or as records; adesignSystemmay be an absolute path. - Render driver:
--state <label> <steps>captures several states in one run; steps hold modifier keys (--tap shift+row);--drag id=dx,dy,hold;--focuson any focusable node;#ncounts the copies shown; a component's node by the end of its path (joinSeason/action); named parts of built-in controls (@increment,@decrement,@thumb,@option:<label>);--scroll x,y. - Controls:
semanticLabelon a checkbox, switch, radio and slider; a field's own label takes the theme'sfieldLabel.
Fixed #
- A list's item template is read at the screen's size (wrapped copies were 0 tall); the children slot shows a
slots.childrenit is given; a nested list's parent tells its readers when the outer item changes. - A grid whose rows hug measures an item with no intrinsic size by its laid-out length (it threw).
close; closecloses the overlay and the one under it; a tooltip's${…}is filled from its scope;key jdoes not fire on Shift+J; focus reaches a field inside a component.- A list reordered by the keyboard with no Handle moves its row by Alt and the arrows.
35.0.1 #
Needs codelessly_api 35.0.0.
Fixed #
- What a view reports of a UI that is right (
UiSession.shownDiagnostics), found by running every check over the showcase pages and the vocabulary corpus:component_emptyno longer names a block that draws with a painter (Cards'Media) or one that only wraps what is put in it (WideScroll).no_sizeno longer names the rows anifleaves out under aneach, a list with no items, or a text whose value is empty.value_not_computedno longer names a value that is an empty text ("Picked: {sel}"before anything is picked), a value beside another with no text between them, or words the UI's own text or data has ("ERROR null check failed").
35.0.0 #
Needs codelessly_api 35.0.0.
Changed #
- Notation:
tool/notation expandtakes--nearest-colors; aUiSessionwrites the notation's looks as theme names and leaves written colors as written.
Removed #
- The strict validator is gone (codelessly_api no longer has
package:codelessly_api/validate.dart):tool/codelessly validate,render.sh --validate-onlyand the MCP server'scodelessly_validateare removed, and a render reports only what it meets while rendering.
34.0.0 #
Needs codelessly_api 34.0.0.
Breaking #
- The compact notation binds a variable with
@, and codelessly_api reads only that (its docs/design/13-compact-notation.md, section 3.1):Slider @heat min=14 max=24(bare, the control's value;value=@heatthe same),Column selectable selected=@picked,SortMenu @sort direction=@dir(a block's further variable),Slider @low @highandCalendar @arrival @departure(a range), where 33 wrotebind=heat,bind=picked,direction=dir,bind=low bindEnd=high. On what only shows a value, 33'sbind={done/total}isvalue={done/total}. A bound variable is declared: by astateline, a site's variable, a loop's item or a definition's parameter.bind=,bind={…}andbindEnd=are not read: each line that writes them is one issue that shows the line in the new form. To migrate:tool/notation/notation.sh migrate <file or folder>...(--design-system <folder>for the blocks the files call, else every design system here;--site <site.json>for a site's variables;--checkto list what is left;--from 32for a file written before 33.0.0). It rewrites notation files and the notation in Markdown, Dart, Python, JSON and HTML, adds astateline at a screen's head for each variable it binds and nothing declares, and prints each line it changed. It cannot rewritebind=assembled in code (a Python f-string, a Dart interpolation):--checknames those lines, to rewrite by hand. - The showcase's sortable tables bind their header's direction (
TableHeader @sort desc=@descinexamples/showcase/cards/dashboard,data_table,table_wideand the desktop pages with aTableHeader): a second tap on a header flipsdesc, as the block's own documentation asks. 33 readdesc={desc}as a value shown, andmigrateleaves a value in braces as written. - Everything in this repository written in the notation is rewritten with it: the examples (the showcase's cards,
recorded answers and desktop pages, the playground's samples, the prompt app's screens and its bundle of Skip),
tool/values, the benchmark's generated notation, the README and the docs; the showcase's site (examples/showcase/site) is expanded again. Changelog entries of earlier releases keep the form they were written in.
Added #
- The built-in confirm dialog shows a detail, its buttons' words and a destructive yes; its buttons are
confirmOkandconfirmCancelto the render tool, focus starts on the yes (on Cancel when it is destructive), and a menu that opened it stays out of sight behind it. - Cards:
mark=onListRow,ConversationRow,PostCardandCommandPalettehighlights what a search matched;Bannertakeslive;InfiniteListtakeshasMore; theComposersends on Enter and takes a new line on Shift+Enter. - The vocabulary tool (
tool/notation/notation.sh vocabulary) counts resolved, stand-in, never read and unknown words apart, lists the definitions that do less than they say, andprompt --openprints the glossary with signatures (--glossary=namesfor names alone). - The render tool logs what
announceand live regions said; a step whose node is not found names the nodes it may have meant; a tap on a block goes to its one tappable part;--keytakes any printable character, F1 to F24 andmod; a sheet's handle is<sheet id>/handle;--reloadrestarts on the page shown, in the mode--themegave.
Fixed #
- A bottom sheet with stops moves to its next stop when dragged anywhere, and its content scrolls at the top stop.
SwipeAction … removesremoves its row, and its revealed action takes a tap.- A range slider's thumbs are Tab stops of their own with a focus ring, and an arrow between whole-number ends steps by at least 1.
- A press on a reorder handle focuses it, so Alt and the arrows move its row after a tap.
- Cards'
CanvasShellhugs its content where nothing limits its height;Ratingno longer warns of a bound root placement;Segmentsfits its labels at 390; aTimePickerreads a whole number as minutes since midnight.
33.1.1 #
Needs codelessly_api 33.1.1.
Changed #
- A list beside its detail, written once in the notation, works on a phone (codelessly_api's notation, design
note 13 section 14.4): the list fills the screen, a tap on a row (Enter or Space on it) shows the detail with a
back button at its top left, and the back button, Escape and the system back show the list again where it was
left; the detail fades and slides in.
test/notation/list_detail_test.dartdrives it by pointer and keyboard in a session and the system back in a published app; a desktop keeps both side by side. The showcase inbox (examples/showcase/desktop/tier5/app_inbox.txt) is a list and its detail at 390; the ten showcase pages draw as before at 1440x900.
Fixed #
- A control's label is centered on its glyphs by the font's own ascent and descent from the baseline. A style with no line height of its own has its line rounded up to a whole pixel, and the label was centered on that box: up to half a pixel too high, a pixel once snapped (13 px over and 16 under "Send" in a 40 px button). Buttons, chips, dropdowns, menu rows, tabs and pickers share the label.
33.1.0 #
Needs codelessly_api 33.1.0.
Needs codelessly_api from its master branch (universal words, docs/design/21-universal-words.md).
Added #
notation.sh prompt --open --design-system <folder>names the design system's words: the glossary (Review 6, D29): one line with the names of its components and defined words the open prompt does not teach, and the instruction to use one as expected and define only what is in neither list.--no-glossaryleaves it out (the promptcorpus-define/d01andd02were written with). With Cards: 3,664 characters (24,206 for a page at 1280 against 20,542 without; 14,874 for a card at 390 against 11,202).- The vocabulary tool lists the named words used in a shape we do not take (Review 6, D30): a section of
VOCABULARY.mdranks, by answers, the parameters, flags, events and variants answers gave a component of the design system or a word it defines that it does not take (the glossary's bug list); the sections that were "on words we have" are now "on core words". - Cards' words take the shapes the self-defining answers agreed on (the vocabulary loop's Review 5, D25;
codelessly_api docs/design/20-defined-words.md section 10). From the harvest of
corpus-define/d01andd02(111 answers), where three or more answers defined a word, or a word Cards already had:Timelineis first a list of dated records (items=[] bind=at selected onPick;events=,steps=,entries=andcurrent=,onSelectare aliases; a bareTimelineis still it), its tracks and route meanings nametracks=[]andstops=[];Stepper#steps(steps=[] bind=step current done=[] orientation onPick) is the steps indicator beside theSteppercomponent, the number control, read when a line fits it better;Countdown#timer("label" seconds=0 warnAt=0 format="m:ss" onWarn onEnd;warnBelow=,onDonealiases);ChatBubbletakes its text as a string androle="user";StarRatingisRating,Breadcrumbsandcrumbs=areBreadcrumb's. Where the writers' definitions were labelled boxes because the thing needs a primitive, Cards has a stand-in in the agreed signature, its events declared and a//line saying what it does not do:MapView(andMap),RouteMap,FloorPlan,SignaturePad,CameraView,PhotoPicker,Waveform. - The shapes the glossary's answers wrote, taken (the vocabulary loop's Review 6, D30; from
corpus-define/d03): repaired components (tool/repairs/)Banner icon= action= onAction(andactionLabel=;Banner.warningis its tone, in the notation),FileUploader accept=(a text or a list, said in its hint) andmultiple,Rating max=(its label no longer required); definitionsTimelineItem date= done= current=,AttachmentTile "name" "size" progress=(its close button withonRemovealone),FlightProgress value=; aliases for a component's list under the name answers gave it (ChipTabs,ChoiceChips,Combobox,SegmentedControl,StepIndicator items=),StatusBadge status=,StatCard caption=,ImageUpload accept=,CodeBlock lang= copy.test/tool/cards_shapes_test.dartexpands each line as an answer wrote it, with no word left unknown and a document that validates. d03's unknown words 40 to 14. - The vocabulary tool counts universal words (
tool/notation/vocabulary_words.dart,tool/vocabulary/count.py): a new resolution,universal, for a word every line understands read where the type has no word of that name, and for each word a stand-in of a type we do not have honours (the parser says which: Review 2, D6). A bare number in the text position is counted as a text.vocabulary.json's words carry the files that used them (in), sogaps.pycounts files again (it printed 0). examples/showcase/desktop/behaviours/universal.txt: the universal words on several kinds of line, rendered in light and dark.
Fixed #
- A box whose bound interaction state changes (
selected,disabledfrom its binding) is re-applied even when its node is otherwise unchanged: a list's row that became selected kept its old press target (not announced selected) and did not show its state style until something else re-applied it. - A node in its
disabledstate runs no pointer actions (before, it was only taken out of the focus order).
Changed #
notation.sh vocabulary: a word an answer defines holds for all of its screens (the vocabulary loop's Review 4, D20):define Word …blocks anywhere in an answer (models write them after the last screen) are read for every### screen, with codelessly_api'sparseNotation(…, definitions:); what is wrong in one is said once, on the screen that holds it.tool/vocabulary/hoist.py, the stopgap that copied them to the head of each screen, is removed.notation.sh expandreads a file's definitions wherever they are written.notation.sh prompt --openasks for every invented word to be defined after the last screen (Review 4, D19; codelessly_api'snotationDefinePreface), sobatch.sh preparewrites self-defining batches.--no-definegives the prompt the first corpus was written with, identical tocorpus/b09/prompt.txt.notation.sh vocabulary: overlays opened and never written (Review 3, D17): codelessly_api now opens a placeholder sheet for them with the open vocabulary; the report counts them (overlaysinvocabulary.json, a section inVOCABULARY.md, and the summary line) instead of as grammar issues.notation.sh vocabularyharvests definitions (Reviews 3 and 4, D15 and D22;tool/notation/vocabulary_harvest.dart):VOCABULARY.mdgains "Words defined in more than one answer": for each such word, by how many answers defined it, every definition's signature and body side by side as fenced blocks, with which core words, components, universal words (review 2's list) and other definitions each body uses, and a note where the signatures disagree (different strings, a parameter some answers name and others do not, a parameter that may be one under two names: the same default, never in the same answer). Then "Words one answer defined that others used without a definition".vocabulary.jsonhas both asharvest(definedInMoreThanOne,wouldResolve).notation.sh vocabulary:go decks_and_mixerreaches the screen### Decks and Mixer(its id isdecks-and-mixer); it did not validate.
33.0.0 #
Needs codelessly_api 33.0.0.
Breaking #
- The compact notation has a new grammar, and codelessly_api reads only it (its docs/design/17 and 18):
Column gap=12,Input "Email" bind=email,selected={tab == "a"},Button "Save" onTap={saved=true; toast "Saved"},SiteNav … onNavigate={go {lower(result)}} onCta={go signup}, where it wasgap:12,=email,selected:=tab=="a",-> saved=true; toast "Saved"andonCta: go signupon a line of its own. A file in the old grammar does not expand: each old line is an error that says what to write. To migrate:tool/notation/notation.sh migrate <file.txt> --design-system <folder>(also--markdown,--dartfor notation inside those files;--check). It is a one-off tool with its own copy of how the old grammar split a line, to be deleted once the sites written before 2026-11-16 are migrated. - Everything in this repository written in the notation is rewritten: 434 files (the showcase's recorded answers,
the playground's samples, SSUI's targets, the prompt app's screens,
tool/values/reference), the design systems' patterns, the line each component is taught by (Cards' through its generator), the prompt app's bundle of Skip, the README and the tests. Each rewritten file expands to the document master's parser gave for the file as it was: 868 expansions (as a card, and as a page with Cards) compared to the byte, and the same for the 217 pages of the twenty sites with Cards. The recorded answers as the models wrote them are in this repository's history (the parent of this change). Answers written with no vocabulary (examples/showcase/natural-words/**/natural, theelicitstreams), recorded prompts and the recorded.jsonlstreams are evidence of what was written and are left as they were: they no longer expand.
Added #
-
Every word an answer used, known or not (
tool/notation/notation.sh vocabulary; the vocabulary loop's journal, Review 1, D1):vocabulary.jsonhaswords(each type; per type each string position, parameter, flag and layout word, event and variant; each action verb, formula function and statement) with how each resolved (core, component, alias, definition, unknown), andsummary;VOCABULARY.mdopens with the table by kind and resolution and adds, for each word we have, what the answers gave it (and what a component or a defined word takes that nobody gave).tool/vocabulary/count.pycounts all of them (the 30 answers of the first two batches: 1,580 words, where the old count says 508) and still diffs two runs, an old one too. The parser is unchanged: what it knew is read from the answer's line, what it did not from its record. -
Cards defines words in the notation (
design_systems/cards/vocabulary/*.txt, codelessly_api docs/design/20-defined-words.md): 40 files, 46 meanings, for words the corpus reached for (StickyNote,FlipCardwithFrontandBack,ChatBubble,Tablein three shapes,Timelinein three,ColorPicker,RangeSlider bind=range,Countdown…).expand,vocabularyandpromptload them with the design system;promptlists their signatures in the taught mode only;vocabulary --no-definitionscounts without them. On the corpus: lines that stand in 220 → 99, unknown types 98 → 54, words resolved 46.6% → 57.7%. -
The vocabulary loop (codelessly_api docs/design/19-open-vocabulary.md): the prompt teaches the grammar and a small core, the model writes any word it expects, and we count the words it reached for.
tool/notation/notation.sh prompt --open: the open-vocabulary prompt (no component list, no behaviour words).tool/notation/notation.sh expand <file.txt> --open [--vocabulary <file.json>] [--aliases <file.json>]: a word the notation does not have stands in (a type) or is left out, and is recorded;--vocabularywrites the record. The aliases are codelessly_api's built-in table and the design system'svocabulary.json.tool/notation/notation.sh vocabulary <folder or files> [--design-system <folder>] [--aliases <file.json>] [--no-aliases] [--out <dir>] [--sites <dir>](tool/notation/vocabulary.dart): reads a corpus of answers (several screens to a file, each under a### nameline), expands every screen open with Cards, and writesvocabulary.jsonandVOCABULARY.md: every word with the files and uses that reached for it and how it resolved (core, component, alias, unknown), its parameters, events and example lines; names that share a part side by side; the parameters, flags, events, verbs, variants and formula functions we do not have; the grammar issues by message; and what does not validate, each file checked as a site with formulas parsed as the renderer parses them.--siteswrites each file as a site folder fortool/render/render.sh.design_systems/cards/vocabulary.json: Cards' own aliases (Tabs items=istabs=,Rating … readonlyisreadOnly).tool/vocabulary/corpus/2026-11-16-sonnet/: the first corpus (the prompt, 20 app briefs, Sonnet's answers) with the tool's output: 105 screens, 4,657 lines; 81.3% a core word, 11.6% a Cards component, 3.1% an alias, 4.0% a word we do not have (6.5% before the aliases;no-aliases/has that run).
-
Nineteen behaviours, folded from the
dsl5/*branches (their notation in the 33.0.0 grammar; an example page with all of them isexamples/showcase/desktop/behaviours/words.txt):- Confirm: the built-in confirm opens with the focus on Cancel (
onTap={confirm "Remove it?" then {rows=[]}}). - A saved value (
state draft="" saved) that no longer has the shape or type of its declaration starts afresh, and its stored entry is removed. - A one-time code (
CodeInput "Code" bind=code length=6 digits): a text field withotpLengthis drawn as boxes, still one field, one Tab stop and one semantics node. - A range slider (
Slider bind=low bindEnd=high): two thumbs that never cross; Space or Enter switches the thumb the keys move. - A list that follows its end (
each line in lines follow h=180) shows a "Jump to latest" button, a Tab stop, once the reader scrolls away. - Search: the formulas
fuzzy,fuzzyScore,matchRanges,matchRuns,matchReason(each r in fuzzy(rows,q,x=>x.title),Text "{r.title}" mark={q}). - Announcements: the
announceaction (onTap={announce "Saved"}) and a live text (Text "{n} results" live). - Overlays: a bottom sheet with
snapHeightsrests at stops (Sheet#filters stops=[0.5,0.9]), dragged by its handle or moved with Alt+Up/Down; tests for a liveblockBack(Dialog#edit guard={name!=""}). - A splitter (
Splitter bind=paneW min=200 max=640): dragged, or moved by arrows, Page Up/Down, Home/End; Enter collapses and restores. - A rating: a slider with
trackShape: stars(andreadOnly); Cards'Ratingblock (Rating "Your rating" bind=score half). - A tooltip (
IconButton "close" tooltip="Close") shows on keyboard focus and a touch hold too, Escape hides it, and it names an icon-only button. - A hover card (
Link "About Mara" preview=bio,Popover#bio arrow): opens on a rested pointer or a keyboard focus, stays while the pointer is on it; an anchored popover can draw an arrow. - Shortcuts (
key mod+k onPress={open search}): a combination with Ctrl/Cmd or Alt runs while a field is typed in;Text "Search" shortcut="mod+k"shows Ctrl K or ⌘K. - Reorder (
each stop in trip reorder,Handle): Alt+Up/Down from a row's handle moves it, Alt+Left/Right passes it to the next list of its group; moves are announced. - Swipe actions (
SwipeAction "Book" side=end onTap={…}): Left/Right reveal a row's action, Enter or Space runs it, Escape hides it. device.hover,device.pointer: live, from the mice connected (if !device.hover); the render tool gives a capture 1024 or wider a mouse.- A number field (
Input "Qty" bind=qty type=number min=1 max=12 step=1) steps by Up/Down, Page Up/Down, Home/End; a click reaction withrepeatrepeats while held. Cards' Stepper, Counter, NumberInput and CartLine use both. - A calendar in the page (
Calendar bind=arrival bindEnd=departure disabledDates=[…] marks={…}): the picker's month with a range, by pointer and keys; render tool:--tap <calendar>@<yyyy-MM-dd>. - A table by keyboard (
DataTable rows={orders} columns=[…] bind=row): one Tab stop, sort from a header, arrows through rows and columns, Enter or Space selects.
- Confirm: the built-in confirm opens with the focus on Cancel (
-
tool/notation/expand_all.dartwithcompare_runs.dart: many files expanded at once, as a card and as a page with Cards, and two such runs compared to the byte: the proof that a change to the parser, or a rewrite of the files, leaves the documents as they were. -
The keyboard on plain nodes: a node with a
clickreaction is a Tab stop. It shows the theme's focus ring (focusBorder, the node's corner radius) when the keyboard brings the focus, never for a pointer; Enter and Space run its click; itsfocusedstate applies; a screen reader gets one focusable button named by its text ortooltip. Skipped:focusable: false,ignorePointer,disabled, hidden nodes, a click whosewhenfails, and a node that is itself a control. Tab also skips controls underignorePointerand scrolls the stop it lands on into view. -
Modal overlays hold the keyboard: a dialog, sheet, side sheet, popover, full-screen cover and the built-in confirm take the focus as they open (the first focusable when the keyboard opened them, else the overlay itself with no ring), keep Tab inside, close on Escape unless
barrierDismissibleis false or the canvas blocks back (backPressedruns), and give the focus back to what opened them; nested overlays unwind. Their route is named for assistive technology (the canvas'ssemanticLabel, a popover by its opener, else its first text).ModalFocus(internals) is the host for a route of your own. -
focusGroup: what is focusable inside a node is one Tab stop; the arrows of its axis, Home, End and (withtypeAhead) a letter move inside. Cards'MenuPopoveris one, so a notationMenuis driven as the kit's dropdown menu is;MenuItemshows the focused row as the hovered one. -
Render command: prints where the keyboard focus is after the steps (the node, whether its ring shows, whether it is in an overlay), lists it under
focusin the diagnostics file, and marks it in--dump-layout. -
docs/BEHAVIOR_CHECKLIST.md: ten questions a control or design-system block answers, and
test/support/keyboard.dart, the test helper that answers them. -
Session views: a
CodelesslyViewsession'scloseModalcloses the modal the session opened (a menu row that chose left the menu open). -
Pages at a tablet's and a phone's width: with the notation's reflow (codelessly_api), a page written for a desktop renders without layout errors at 834 and 390 wide;
tool/notation/notation.sh expandtakes--no-reflow, and reads a site's variables from thesite.jsonbeside--out(or--site). -
A menu's corner: a popover is clipped to a theme's
radii.menuwhere it names one (elseradii.popup, a dialog's corner). -
Cards: blocks fixed for a phone (SiteNav with its own menu, Hero, PostCard, Details with
inlineOnPhone, PlaceRow, Steps, Pager, ComparisonTable, PhotoGallery, CodeSample, Counter, Testimonial, SiteFooter, DocsNav, CommandPalette, FeatureCard, InputField, CallToAction), a newBeforeAfter,radii.menu, and menu items at the body size.design_systems/cards/tool/repairs.pykeeps changes made to generated components across a rebuild (--record). -
Cards, tabs: Tabs, TabToggle, SegmentedControl, ChipTabs and BrowserTabs are Cards blocks, and with Segments they stay on one line and scroll where the options do not fit (never a second row): hover and pressed states, 44 high tap areas on a phone, an edge fade, the chosen option brought into view. ChoiceChips keeps equal columns while the labels fit, else chips as wide as their labels that wrap. The patterns say which of Tabs, Segments and ChipTabs to write.
-
A photo viewer: the notation's
Lightboxrenders as a viewer over the window (zoom by pinch, wheel and double tap, pan, a gallery that pages with thumbnails and a count); Cards' PhotoGallery takesviewer="overlay", which leaves its grid in place for it. Render steps--double-tap,--wheeland--pinch(the CLI and the MCP tool) drive it;examples/showcase/desktop/behaviourshas a gallery, a list of pictures and one picture. -
Examples: overlays, an app's sidebar drawer and a lightbox written in the notation (
examples/showcase/desktop/behaviours). -
Render steps
--long-press <id>(alongPressreaction, a context menu on touch),--right-click <id>(asecondaryClickreaction, a context menu on a desktop:menu=<id>in the notation) and--reload(the app is closed and started again on the same screen with what it kept on the device, so a variable markedsavedcan be seen surviving a reload within one run; each capture still starts with nothing stored). In the CLI,render.sh, the MCP tool's steps ({"long-press": "id"},{"right-click": "id"},{"reload": true}) and the README.
Fixed #
- A date or time field given only a label keeps its calendar and chevron, and shows the label as its hint.
- A borderless text field with a
contentPaddingthat hugs its height centers its line in the room the kit's minimum height adds (it sat at the top: Cards' FilterBar showed its search text 4 px above the icon beside it). - A page route opened from an overlay sized to its design fills the window.
tool/render/render.shruns under Git Bash on Windows (it gave Dart/c/…paths).- A site's variables written by name in
site.json("variables": {"cart": [], "plan": "pro"}) or as records with notypework in the notation's expander (it threw a Dart cast error on the object form), the render command and the runtime: they are read by codelessly_api's manifest reader, each typed by its value, and a record that cannot be read is aninvalid_variableerror onsite.json(the expander prints it as one line). - The render command's
--full-pagecapture of an app frame (Appwith aSidebarbeside aMaintaller than the window) left the columns beside the scrolling pane unpainted below the first window (a black or transparent strip under the sidebar, and atransparent_backgroundwarning). The frame is right as written: the sidebar is as tall as the window and stays in view whileMainscrolls. The capture now carries each side pane's own background (its fill and border, without its content) down to its bottom; the pane's content shows once, in the first window. - A card dragged onto a drop target whose
dropreaction takes it out of its list (a board's column) threwCannot hit test a render box that has never been laid out, and the drop did nothing. Three causes: a layer added to the middle of a node's chain between frames (the dragged card's opacity) was hit tested by the next pointer event before it was laid out (a node whose own layers are not all laid out now takes no hit, as one whose first layer is not already did); the dragged copy of a component instance was built without the component registry, so it showed the component's defaults instead of the call's parameters, at another size (a flex overflow in the copy); and adraggableordropTargetwritten on a component's call (TaskCard … drag=task(c.id)insideeach) evaluated its data, key and conditions inside the component, where the list'sitemand the page's variables do not exist, soresult.datawas empty. They read in the caller's scope now, as the call's reactions do. - The render command's
--drag <id>=<dx>,<dy>over a node withswipeLeft,swipeRight,swipeUporswipeDownreactions fired nothing: its pointer moves carried no times, so the release had no speed and no swipe was recognized (the renderer's trigger fires as before). The moves are now timed a frame apart: a drag by a distance is a swipe that way. - A menu item that opens a dialog, a sheet or a screen (
MenuItem "Delete" onTap={open confirmDelete}) left its menu drawn, dimmed, under the dialog until the dialog closed: its chain is "open the dialog, close the menu", and anopenModalwaits for its modal, so the close ran afterwards. A chain whoseopenModal(not a popover) is followed at once by a plaincloseModal, run from a popover, now closes the popover first and then opens. A chain that only opens keeps its popover under what it opens, and Escape goes back to it, as before. - The render command's
--key Enterin a focused text field did nothing (TextInput … onSubmitted={…}never ran after--type): a field connected to the platform's text input leaves Enter to it, and the test harness's text input sent nothing. The blocks wireonSubmittedcorrectly and a device submits. The step now does what the platform does: it sends a one-line field its action key (itssubmittedreactions run) and types the new line into a multi-line one. - Cards:
SortMenu bind=sort options=[…]drew an open panel of options on first paint, over what was beside it: SSUI's SortMenu is the body of a menu, not a control. Under Cards it is a closed control, 36 tall: the page's dropdown showing the choice (its menu opens on a tap, Enter or Space; the arrows and Enter choose) and the arrow button that flips the direction beside it. A repair indesign_systems/cards/tool/repairs.py, so a rebuild keeps it. NumberInput bind=amount step=0.01 showStepper=trueoverstate amount=0saved 26 for a typed 25.50, and ArrowUp, ArrowDown and the stepper buttons did nothing: the notation declared the variable an integer, which rounds what the field sets. codelessly_api's notation now declares it a decimal (the field and the block were right); the value keeps the step's precision by typing, by the arrow keys and by the buttons.- A site that overrides Cards' accent (
"theme": {"primary": …},colors.accent) no longer keeps Cards' blue in dark mode, in the selectedSidebarrow andConversationRow, in the infoBanner, in links and focus rings: the site's theme is laid over the design system's with codelessly_api'sThemeTokens.withSiteTheme(the render command andUiSession), which makes what Cards makes from its accent from the site's."primary"or"colors"written at the top ofsite.json, outside"theme", is asite_key_ignoredwarning that says where it goes. Cards' DESIGN.md says how a site sets its accent, its fonts (fontFamilyfor the Inter styles; the display and mono styles one by one) and dark as its default ("mode": "dark"). - Cards:
ReorderableList addable=falseis a fixed set of items whose order alone changes: it hid the + of the header and still drew the x that removes each row. The x goes with the +. - A dialog whose content is taller than the window (a long
Dialogbody on a phone) ran off the screen, its last buttons out of reach, with a flex overflow: it is now laid out at the height it asks for and scrolls inside the window (a drag, a wheel; a step that taps one of its nodes brings the node into view). A dialog that fits is laid out as before.
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.
- A text field holds its gesture recognizers only while it is attached: detaching releases them, with the double-tap timer a tap leaves running, so a field removed from the tree (whose dispose may wait for a frame that never comes) leaves no timer behind.
- SVG text is drawn in one family: vector_graphics reads
font-familyas a single name, so the resolved list ("DejaVu Sans, Lora") named a font nothing has. A named family is drawn, or, where the caller knows its fonts (SvgFonts.isAvailable, set by the render tool), the next family the list names or the site's font; a lacking family is still reported.
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)