Repository navigation
Conversation
The template's engine inventory is pinned at 98377b7f and its control surface was generated from a Ruby surface of 386 entries. Ruby main (51bea9b1) now advertises 449 entries over 238 wire types, including Form, NestedScrollView, FadeTransition and the LocalAuthentication service, and engine abd906b9 adds a 21st package, ruflet_local_auth. These assertions fail until the template is re-synced and the surface regenerated in the following commits.
Generated with
ruby tool/sync_ruflet_source.rb --source <clean ruflet-engine> \
--ref abd906b941660bd8ff3c4baa81792e1d75fd49dd
from the previous pin 98377b7f (engine PRs #1-#102 merged since). The
tool needed no --initialize: the version-5 inventory was clean. It
copied 570 files and removed 2 the engine split up
(controls/cupertino_surface_controls.dart, material_picker_controls.dart);
1386 managed files now match their engine blobs. The only change outside
ruflet_packages/ is the source-ref comment in pubspec.yaml and the
regenerated ruflet_source_integrity.json.
The new package is ruflet_local_auth. No other package pubspec changed
its runtime dependencies; ruflet_audio and ruflet_charts only gained dev
dependencies for their own tests.
The sync vendors ruflet_packages/ruflet_local_auth, and test/ruflet_namespace_test.dart requires every vendored package to be a pubspec path dependency imported by both entrypoints. Register it the way every other optional extension is registered. The CLI keeps it only when an app selects it: - ruflet main (CLIENT_EXTENSION_MAP has local_auth since a6366ca7) keeps the dependency, import and registration for `extensions: [local_auth]` or the `biometrics` service and removes them otherwise. - Released gems 0.0.22/0.0.23 do not know local_auth. They treat the registered import as an unconfigured external extension and remove the dependency, import, registration and package directory, so their generated client is unchanged. The Android, macOS and Windows plugin registrants are what `flutter pub get` regenerates for the template's full plugin set, as they already list every other bundled extension's plugin. A build regenerates them from the pruned dependencies, so they do not reach an app that does not select local_auth.
Generated with
RUFLET_SOURCE_ROOT=<clean ruflet worktree at 51bea9b1> \
ruby tool/conformance/generate_ruflet_control_surface.rb
The surface grows from 386 to 449 entries (348 -> 409 visual, 38 -> 40
service) and from 205 to 238 wire types. The change is additive: no entry
was removed, no wire type or Ruby class changed, and no keyword was
dropped. 63 entries are new (Form, NestedScrollView, the transitions,
the clips, slivers, Stepper, Table, LocalAuthentication, ...) and 60
existing entries gained keywords.
Every keyword in this surface is also in the engine's own contract,
packages/ruflet/test/contract/ruflet_control_surface.json at abd906b9,
and both list the same 238 wire types.
This was referenced Nov 8, 2026
Generated with
ruby tool/sync_ruflet_source.rb --source <clean ruflet-engine> \
--ref a4632931a307761c5b8060e529307a4f0a5cb4ba
from the previous pin abd906b9. a4632931 is the current
codex/engine-initialization head. abd906b9..a4632931 is one engine PR,
#103 "refactor: dispatch Page invoke methods through a handler table",
whose body reports no behavior change. The tool copied 2 files
(lib/src/controls/page.dart and the new
test/widgets/page_invoke_methods_test.dart) and removed none. 1387
managed files now match their engine blobs. Outside ruflet_packages/ it
changed only the source-ref comment in pubspec.yaml and
ruflet_source_integrity.json.
Corrections to the cdbc2aa message:
- 98377b7f..abd906b9 was engine PRs #1-#102 plus one direct commit,
c9b9d76e "Render validation errors for Cupertino text fields", which
belongs to no PR. So this branch now takes 98377b7f..a4632931: engine
PRs #1-#103 and c9b9d76e.
- cdbc2aa also hand-edited tool/RUFLET_SOURCE_SYNC.md ("All 20 owned
packages" -> 21).
The released gems 0.0.21-0.0.23 do not know local_auth. They strip its import and its registration as an unconfigured external extension, the registration with the regex /^\s*alias\.Extension\(\),\s*\n/. Before that, their prune_client_main has already replaced every known extension it drops with an empty line. With the registration between geolocator and lottie, the regex match started at the first of those empty lines, so it also removed every empty line above the registration. Every entrypoint those gems generated then differed from the base template in blank lines. After `// --FAT_CLIENT_END--`, the line above the registration is a comment, so the regex removes only the registration line. 0.0.21-0.0.23 then generate byte-identical entrypoints again. The markers are only an insertion point: insert_missing_extension puts a missing registration before FAT_CLIENT_START. No CLI or template tool reads what comes after FAT_CLIENT_END. ruflet main knows local_auth. Its prune_client_main keeps the newline of every registration it drops, so main's entrypoints still get one more blank line than on the base template, wherever the registration sits.
The README's list still named the 20 packages from before the sync. It now names ruflet_local_auth too, says that it needs a gem newer than 0.0.23, and says why its registration comes after the fat-client block in both entrypoints.
Gems 0.0.19 and 0.0.20 prune only the flet_* package names in their own extension map. Against this template they keep every ruflet_* extension package as a client dependency (0.0.20 prunes ruflet_qrcode_scanner, the one it knows by name), so every bundled package's native plugins are linked into the apps they build. ruflet_local_auth is no exception: with those gems it reaches every app. The README now says so next to the note about 0.0.21-0.0.23.
Undo what 3575227 and 77c1aa2 did to pubspec.yaml, both entrypoints and the committed Android, macOS and Windows plugin registrants. Those files are byte-identical to e32c873 again. ruflet_packages/ruflet_local_auth stays: the sync tool writes it, the integrity manifest lists it, and no build compiles a package that nothing depends on. Why: every published gem from 0.0.15 to 0.0.23 copies these files into the client it builds. 0.0.19 and later clone this repo's main; 0.0.15 to 0.0.18 clone the default branch, also main, whenever ~/.ruflet has no template cache. Gems 0.0.15 to 0.0.21 prune only the package names in their own extension map (flet_*, plus ruflet_qrcode_scanner from 0.0.20) and keep every other dependency the template lists. With the package referenced, every app those gems build gained local_auth, local_auth_android, local_auth_darwin and local_auth_windows, Android's USE_BIOMETRIC permission and Apple's LocalAuthentication framework, with no NSFaceIDUsageDescription. Those gems have no Ruby API for local auth. Corrections to earlier messages on this branch: - 3575227 says the CLI keeps the package only when an app selects it. That holds for ruflet main, 0.0.22 and 0.0.23. Gems 0.0.15 to 0.0.21 kept it in every app. - 77c1aa2 and eb2a29c say gems 0.0.21 to 0.0.23 strip the unknown registration. The published 0.0.21 (rubygems sha256 3f7cdf95...) does not. The code that does, discover_registered_external_extension_names and prune_external_extension_registrations, first appears in ruflet 8a6c8175 and was first released in 0.0.22. Those claims were checked against a locally installed 0.0.21 (sha256 904d8496...), which is not the published gem. 0.0.21 belongs with 0.0.19 and 0.0.20, and so do 0.0.15 to 0.0.18. What this costs: until a gem writes the dependency, import and registration of a selected bundled package that the template does not list, `extensions: [local_auth]` and the `biometrics` service fail with "selected Flutter extensions are missing: ruflet_local_auth", exactly as they do on template main (e32c873) today. ruflet main already derives those lines for external packages in sync_external_extension_registrations.
Every published gem copies pubspec.yaml and both entrypoints into the client it builds. Gems 0.0.15 to 0.0.21 prune only the package names in their own extension map (flet_*, plus ruflet_qrcode_scanner from 0.0.20), so they keep every other ruflet_* dependency the template lists and link its plugins into every app they build. test/ruflet_namespace_test.dart now checks: - the 20 packages the template referenced before the sync (e32c873) are path dependencies, imported by both entrypoints and registered there with <alias>.Extension(). Before, deleting a registration still passed; - every other vendored package is listed in optInPackages, so a package new to ruflet_packages/ fails the test until someone decides how it ships; - an opt-in package is not a dependency or override and is neither imported nor registered by an entrypoint. The plugins only it brings are not in the Android, macOS, Windows or Linux registrants either; `flutter test` regenerates those from the resolved plugins before it runs, as every build does, so that part checks the resolved set, not a hand edit of the committed copy; - inside each entrypoint's extension list there is exactly one FAT_CLIENT_START/FAT_CLIENT_END pair, and a registration of a package that 0.0.22 and 0.0.23 do not know sits after FAT_CLIENT_END. Above it, their prune swallows the blank lines left by the registrations they drop (the e793cce regression). No such registration exists today, so this guards a later change.
The README's "Bundled extensions" section said that gems 0.0.21 to 0.0.23 strip ruflet_local_auth and that its registration belongs after FAT_CLIENT_END. The published 0.0.21 does not strip it (that code first shipped in 0.0.22), and the package is no longer registered at all. It now says: - pubspec.yaml and both entrypoints reference the 20 listed packages, and gems 0.0.22 and later keep only the ones ruflet.yaml selects; - gems 0.0.15 to 0.0.21 strip only flet_* names (and ruflet_qrcode_scanner from 0.0.20), so they keep every other referenced package in every app, and all of them build from main; - so a new package must stay unreferenced. ruflet_local_auth is carried in ruflet_packages/ but needs a gem that writes its dependency, import and registration itself, which no released gem does yet; - test/ruflet_namespace_test.dart enforces this through optInPackages.
AdamMusa
marked this pull request as draft
November 8, 2026 18:07
tool/RUFLET_SOURCE_SYNC.md listed only the Ruby checks, so a sync could be committed without running test/ruflet_namespace_test.dart, which is what stops a package new to ruflet_packages/ from being referenced. This repository has no CI, so the documented steps are the only place that test runs. The command list now ends with `flutter test`, and the doc says why a new package must not be added to pubspec.yaml or the entrypoints: every published gem copies those files into the client it builds, and gems before 0.0.22 keep every ruflet_* dependency listed there, so the package's native plugins would reach every app those gems build. It points to optInPackages and the README's "Bundled extensions" section. Documentation only. The file sits in tool/, which clients copy but never compile; no generated client changes outside tool/.
Generated with
ruby tool/sync_ruflet_source.rb --source <clean ruflet-engine> \
--ref f44e7df7083596dc5bd7da7c1bf4a3f5a7ce5b66
from the previous pin a4632931. f44e7df7 is the current
codex/engine-initialization head (lead decision D1: engine >= the
current default head). a4632931..f44e7df7 is one engine PR, #106
"test: fail for any engine type without a declared test". It touches
only packages/ruflet/test/ and the engine's root README, so no Dart
under any lib/ changes and no client compiles anything new.
The tool copied 88 files and removed none: the new
test/contract/control_test_coverage_test.dart, and a two-line coverage
declaration added to 87 existing tests under ruflet/test/. 1388
managed files now match their engine blobs. Outside ruflet_packages/ it
changed only the source-ref comment in pubspec.yaml and
ruflet_source_integrity.json.
Every published gem copies test/ into the build/client it generates, renames the package there (name: ruflet_client here, the app's name there), and rewrites pubspec.yaml, the entrypoints and ruflet_packages/ for the app's selection. The four wiring tests added in 0eb15ae pin this template's wiring, which such a client does not keep, so a plain `flutter test` inside build/client got worse with them (default web client, Flutter 3.41.2): - 0.0.22, 0.0.23 and ruflet main: 3/3 passed on base e32c873; with 0eb15ae, 3 of 7 tests failed (also with services: [camera] on apk). - 0.0.19 to 0.0.21: 1 of 3 already failed on base (the base version of the namespace test checks entrypoint imports these gems prune); with 0eb15ae a different test failed instead. - 0.0.15 to 0.0.18 keep the template's wiring: 3/3 on base, 7/7 with 0eb15ae. The four tests now skip unless pubspec.yaml's name is ruflet_client. In the template all 7 tests still run and pass. In a client of every CLI above, the four report as skipped and the other three pass. Not caught by design: renaming this template's own package would skip the wiring tests here too.
60df336 skipped the four wiring tests unless pubspec.yaml's name is ruflet_client, on the premise that every gem renames the client package. That premise is false. Every CLI (published 0.0.13 to 0.0.23 and ruflet main) takes the client's name from the app config in build_client_metadata (app.package_name, and from 0.0.20 also the app name) and keeps the current name, the template's ruflet_client, when the config gives none. Only mobile builds of 0.0.20 and later require an app identity, so a web or desktop build whose ruflet.yaml keeps only app: {backend_url} keeps name: ruflet_client. There the four tests ran, and `flutter test` inside build/client failed 3 of 7 for 0.0.22, 0.0.23 and ruflet main, the regression 60df336 was meant to fix. Its message, its test comment and the PR body said otherwise. The tests now tell the template from a client by the source-ref comment in pubspec.yaml. tool/sync_ruflet_source.rb --check fails unless the template has exactly one. Every CLI drops it, because each rewrites pubspec.yaml with YAML.dump when it builds a client, whatever name it keeps. Nothing is skipped any more. Where the comment is present, the four tests check this template's exact wiring as before. In a generated client they check what holds in every client: - each vendored package is a referenced or an opt-in one; - each referenced package that is still a dependency is a vendored path dependency, and each one an entrypoint imports is a dependency that the entrypoint registers; - an opt-in package the client does not depend on is not imported or registered, and no plugin only it brings is registered; - a template package released gems do not know registers after FAT_CLIENT_END. Packages an app adds through `extensions:` (0.0.21 and later) belong to the app and are not checked. Renaming the template's package no longer turns the checks off. Deleting the source-ref comment would switch the template to the client checks, but sync --check then fails. The four tests' names are unchanged. The per-gem results (flutter test inside clients of every published gem from 0.0.13 and of ruflet main, with and without an app name) are in the PR body.
Published 0.0.13 and 0.0.14 clone AdamMusa/ruflet-template without --branch when ~/.ruflet/templates is missing, like 0.0.15 to 0.0.18, and map only the flet_* package names in CLIENT_EXTENSION_MAP, like 0.0.15. The README named only 0.0.15 and later. README only; no file a CLI copies into a generated client changes.
Generated with
ruby tool/sync_ruflet_source.rb --source <clean ruflet-engine> \
--ref 98e418571d817fba1ffe2ab9f637e12ad8f066b6
from the previous pin f44e7df7. 98e41857 is the current
codex/engine-initialization head (lead decision D1). f44e7df7..98e41857
is fourteen merged engine PRs: 104, 105, 108-117 except 107, 119 and
125. Their user-visible changes are listed in the PR body.
The tool copied 100 files and removed none, the same 100 paths that
git diff f44e7df7..98e41857 changes under packages/. 1427 managed files
now match their engine blobs. Four vendored package pubspecs gain
dev_dependencies only (geolocator_android, provider). Outside
ruflet_packages/ it changed only the source-ref comment in pubspec.yaml
and ruflet_source_integrity.json.
The control surface regenerated from ruflet main f034e99b is unchanged
(449 entries, 238 wire types).
Brings in template#3 (startup hooks, 8b08569). No conflicts.
Generated with
ruby tool/sync_ruflet_source.rb --source <clean ruflet-engine> \
--ref 00d1df3c307a94ba79c11326e8a8c43cc05356d9
from the previous pin 98e41857. 00d1df3c is the current
codex/engine-initialization head (lead decision D1). 98e41857..00d1df3c
is one merged engine PR, 107, which changes tests only.
The tool copied 1 file (ruflet_audio/test/audio_service_test.dart) and
removed none, the only path that git diff 98e41857..00d1df3c changes
under packages/. 1427 managed files now match their engine blobs.
Outside ruflet_packages/ it changed only the source-ref comment in
pubspec.yaml and ruflet_source_integrity.json.
The control surface regenerated from ruflet main 33705440 is unchanged
(449 entries, 238 wire types).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does.
ruflet_packages/to ruflet-engine 00d1df3c, the head of the default branchcodex/engine-initialization(checked this round): engine PRs 1–117, 119 and 125, plus the direct commitc9b9d76e. No engine PR is open.ruflet_local_authpackage without referencing it, so no published gem compiles or links it.test/ruflet_namespace_test.dartand aflutter teststep totool/RUFLET_SOURCE_SYNC.md.Outside
ruflet_packages/, the diff against base8b08569touches only the repoREADME.md, the source-ref comment inpubspec.yaml,test/ruflet_namespace_test.dart,tool/RUFLET_SOURCE_SYNC.mdandtool/conformance/. template#3's entrypoints, bootstrap test and hooks contract are unchanged. Head:cd3b8aa.This revision.
e81884dmergesmain(8b08569, template#3's startup hooks) with no conflicts.cd3b8aare-syncs from 98e41857 to 00d1df3c, which adds engine PR 107, tests only: the tool copied 1 file (ruflet_audio/test/audio_service_test.dart) and removed none, so no renderer code changed since3d51859. The control surface regenerated from ruflet main b28cb1cf and a668af6e is unchanged. In the list below, the 108 item now names open engine issue #126, and 111's SlidePicker write-back is marked [owner: confirm].Open owner decisions.
ruflet_local_authneeds (a ruflet PR, not opened). Until a gem has it, no app can select local_auth, as onmaintoday.e793ccefandcdbc2aafas the first templates with the new controls andruflet_local_auth.User-visible behavior changes (engine
98377b7f..00d1df3c)The renderer ships in the template, so each change reaches an app whatever gem built it, but only when that gem sends the control, key, event or method involved. 0.0.15–0.0.21 send legacy wire names such as
CupertinoDatePickerandDropdownM2; 0.0.22 and 0.0.23 send canonical names; keys only ruflet main declares (Form, NestedScrollView, the transitions,inline,sliding,identifier, clientactions) are unreachable from published gems. Extension and service items reach 0.0.13–0.0.21 apps, which compile every bundled package, and 0.0.22+ apps only when the app selects that extension or service. "iOS" means the engine's Cupertino design, its default on iOS and macOS.Each line is a bug fix: a Ruby keyword, event or method that was ignored, crashed or misrendered (X1, D6). [owner: confirm] marks a change to layout or payloads that an app could rely on. New in this revision: open engine issue #126 under 108 (Services), the mark on 111's SlidePicker write-back, and the item on ruflet main's new template check. 107, the only engine PR added since
3d51859, changes tests only.Default shapes every gem sends (119)
"center","top_left", …, alsotopLeft) parse. Any string threw, so controls that ruflet_core 0.0.13–0.0.23 givealignment: "center"by default rendered Flutter's error widget:filled_icon_button,filled_tonal_icon_button,outlined_icon_buttonand thecupertino_button/cupertino_filled_button/cupertino_tinted_buttonfamily on both designs,cupertino_timer_pickeron iOS (119).page.window.alignmentas a named string no longer makes the Window service drop the whole window update (title, size, position, opacity, …); the window moves to that alignment (119).padding,marginorborder_radiusmap withallapplies it to every side or corner it does not name;{"all" => 8}parsed to zero. Visible with the defaults gems send: iOScupertino_text_fieldgoes from 0 to 7 px inner padding,filled_icon_button/filled_tonal_icon_button/outlined_icon_buttonwith an explicit alignment get 8 px padding instead of 0, and iOScupertino_*_buttonwith an explicit alignment get radius 8 instead of square corners (119).Menus
PopupMenuButtonon_selectgets the item id as a string, as on Android (was the entry'svalue/text); a checked item'sclickcarries!checked(73).PopupMenuButton: item taps reach the row, soon_selectfires,on_cancelfires on dismiss, disabled entries are not tappable, and a Cupertino submenu'sMenuItemButtonnow closes the sheet (42).context_menu(items:)shows its items; the popup was empty (78).context_menu: per-trigger item lists are honored (74);on_select/on_dismissfire, with a long press reported as Material's right-click (b: "secondary") by default (40, 74);openfails at once with an explanation (71).Switch, Checkbox, Radio
switchis a compact row as on Android: it no longer stretches to full width, tapping empty space no longer toggles it, andwidth/heightscale switch and label together (84).switchchangecarries the new bool instead ofnil(84).switchhonorslabel_text_style, a control aslabel, andmouse_cursor; Android honors thumb images andimage_error(84).toggle_inputsListTile (84, 86).checkbox(spacing:)works on Android (86).disabledis disabled; on both designs a control as a radiolabelrenders (87).toggle_inputstile taps select it,label_styleand state-mapfill_colorare honored, and the missing-RadioGroup error reads "Radio must be enclosed within RadioGroup" (87).on_focus/on_blurfire on Switch, Checkbox, Radio and the Button and IconButton families (84, 86, 87, 90, 91).Buttons, IconButton
styleandvisual_density; acompacticon button is 48 px instead of 56 px (91).selected_iconand honorsselected_icon_color,disabled_colorandenable_feedback(91); its icon colour resolves as on Material, and only a plain IconButton becomes the iOS back chevron (102).blurworks on Button and IconButton; it raised "Unknown … method" (90, 91). Other unknown methods raise engine PR 59'sUnsupportedErrortext instead ofException("Unknown Button method: …")(90, 91).width,marginandbadge(90).OutlinedButton.iconfireson_hover(90).iconrenders an empty button on both designs; Android showed an error box, or the non-Rubycontent(91).Bottom sheets, dialogs, View, AppBar, NavigationBar
bottom_sheetgets a native surface: grabber, safe area, lifted above the keyboard, capped at 9/16 of the screen unlessscrollable, drag to dismiss,fullscreenas a page sheet (17).open: falseon a BottomSheet or AlertDialog closes only its own route; it could pop the page beneath or a route above, and the dialog could then never reopen (37).bottom_sheetsits above the navigation bar instead of covering it (66), and the FAB keeps a 16 px margin above the bar and the sheet (68; tests in 80).app_bar(large: true)renders the M3 large top app bar,toolbar_height+ 88 dp (152 dp by default); Android ignoredlarge(23).cupertino_app_bar(trailing:)shows the trailing action, which wins overactionsas on iOS; AppBarbadgerenders on both designs (97).disabled, or under a disabled bar or ancestor, no longer selects it or fireson_change, as on Material (125).Invoke methods, Page
UnsupportedError("<Type>(<id>).<method> is not supported on <platform>: …")instead of waiting out the Ruby timeout: Window methods on mobile and web,focuson Switch, Checkbox, Radio, ProgressRing, ListTile and AppBar (59, 84, 86, 87, 94, 95, 97).StateError("Window state could not be read: …")(79).ArgumentErrorreply instead of crashing the handler or looking like success; optional ones get defaults (52).nilon failure return the error: Geolocatorget_current_positionwhen the plugin fails (on_errorstill fires),distance_betweenwith a missing or non-numeric coordinate, AudioRecorderis_supported_encoderwith a nil, missing or unknown encoder.on_resultgets(nil, error)instead of(nil, nil)andinvoke_syncraises; ruflet_rails' location and recorder elements show the failure instead of(none)(108, 113).next_pagewithout arguments no longer throws; TextFieldfocustargets the rendered field andblurworks; Material Tabsmove_to(-1)counts from the end and clamps, as on iOS (18).page.set_allowed_device_orientationsraisesUnsupportedErroroff mobile (was a silent no-op) andArgumentErrorfor an unknown name (was dropped);page.get_device_infopicks its fields from the device record's type (102).Parsing, text input, pickers
ease_in_out,space_between,best_for_navigation, …) take effect instead of silently falling back to the default;linearis a known curve and an unknown curve prints a warning (63, 76).semantics(content)draws the wrapped control;textfield,hint_text,focus,on_tap,on_long_pressandon_double_tapwork, and a long press no longer runson_dismiss(2).text_field(error:)shows the error under the field, witherror_styleanderror_max_lines; every iOS TextField is now wrapped inColumn(mainAxisSize: min, crossAxisAlignment: stretch)(c9b9d76e).border: "outline"/"underline"draw the native grey hairline instead of a 1 dp black line,underlineloses its white fill, andborder: "none"draws no border or fill (it kept the native rounded border and white fill) (53).border_color/border_widthwithoutborderapply on iOS (67).focused_bgcolor/focused_colorapply on focus (72),focused_bgcoloroverfill_coloras on iOS (102).text_input_actionworks; withmultiline: trueand an ending action, Return submits instead of inserting a newline (14).search_bar.open_viewandclose_view(text)work; they raisedUnknown SearchBar method. Every gem from 0.0.15 to 0.0.23 exposes both (70).on_tap_outside_bar(43).textinstead ofkey(10).expanded_insets,selected_suffixandhover_color(54).update,selectorclickis sent; the rows redraw when the centred row changes (125).DropdownM2on_changekeeps firing on iOS for gems up to 0.0.21 (100). With 0.0.22/0.0.23,dropdown_m2(on_change:)still never fires; fix: translate dropdown_m2 events and keys onto the canonical Dropdown ruflet#28 fixes that in Ruby and is not in v0.0.23.page.show_dialog/page.openof acupertino_date_pickerpresents a modal picker; it drew inline wheels thatclose_dialogcould not dismiss. No change for 0.0.22/0.0.23 (98, 101).material_picker(enable_label: true)shade labels read#FFEBEEinstead of#COLOR(ALPHA: 1.0000, RED: …, on iOS (82) and on Material via a fork of flutter_colorpicker 1.1.0'sMaterialPicker, MIT (85). Needs thecolor_pickersextension; gems 0.0.22+ declarematerial_picker.segmented_button(sliding: true)renders the sliding control instead of an error (93, 102).ProgressRing, ListTile, ResponsiveRow, scrolling
progress_ring(progress:)shows the fraction instead of spinning (94).progressandvalue,progresswins on Android, as on iOS (94).padding, an iOS tile withouttitlerenders instead of an error, number titles render, and iOS tiles announce button, selected and enabled state (95).responsive_row(scroll:)andexpansion_panel_list(scroll:)scroll; withoutscrollthey render as before (102).responsive_row(spacing:)from 0 up to 0.1 no longer draws a negative gap (debug builds failed aspacing >= 0assertion, release builds overlapped the cells); this includes ruflet_railsgap-0grids. Negative and larger spacings are unchanged (115).breakpoints, a maprun_spacingresolves against the row's own breakpoints: keys the row defines now apply, and default names it does not define (xs,md, …) no longer do. Rows without custombreakpointsare unchanged (115).Extensions
tooltipon Bar/Line/Scatter/Candlestick charts no longer crashes the chart (it becomes the control tooltip), and atooltipmap withoutmessageno longer stops the chart rendering on Material (116).tooltipmap: bars and line points without their own tooltip show their value (bars showed none; touching a line chart threw). An item's owntooltip(bar_chart_rod(tooltip: "Peak")) is shown instead of the value, andshow_tooltip: falsehides a rod's or point's tooltip when the chart has notooltip(116).on_eventspots reach Ruby as[{bar_index:, spot_index:}]instead of[""];rod_stack_itemsrender and BarChartgroup_spacingapplies (116).colorinstead ofpicker_color, which no gem reads, and SlidePicker writes a pick back tocolor, where it wrote nothing, and keeps it across later updates. With either picker, Ruby'scolornow follows the user's pick (111).colorupdate wins over a written-backhsv_color; BlockPicker, MultipleChoiceBlockPicker and MaterialPicker follow Rubycolor/colorsupdates after mount (111).valueorselectionis no longer written back or reported ason_change/on_selection_change; a selection the editor clamps (after a shortervalue, or past the end) is written back without an event. The core TextField still reports a Ruby-set selection (110).code_theme/languagenames (atom_one_dark,clojure_repl) resolve instead of falling back to no theme or plain text (110).fixed_top_rows: 0the heading moves to the top with them; a table with a height and no rows laysemptyout under the heading as on Android, a plainTextat its top (112).size: "medium"/"large"(whatdata_column2(size: :medium)sends) render as M and L columns instead of small on both designs; on Android the sort arrow animates over 150 ms instead of 150 µs whensort_arrow_animation_durationis unset (112).RichAttributionwithpopup_initial_display_duration> 0 stays open for that duration, as on Android; it closed in the first frame (114).interaction_configurationwithoutpinch_move_thresholdrenders (null check);cursor_keyboard_rotation_configurationtrigger_keyswork when named by label or as one name, and a missing or unreadable value gets flutter_map's Control-key default instead of throwing on every key down (114).src, an update that keepssrcno longer re-parses the file or fireson_loadagain (117).web_view(url:)withoutmethodloads (it threw ininitStateand loaded nothing), andload_requestwith no or an unsupported method loads with GET instead of an error (109).urlormethodRuby changes on a mounted view is loaded (only the mount url was), except a url the view itself reported to Ruby since its last load, so the ruflet_rails shell's write-back on its nextpage.updatedoes not reload the page; invokes reach a WebView Ruby puts in place of another in an unkeyed parent (109).Services
on_position_changeno position stream starts (no location updates, streamon_errororpositionwrite-back), including ruflet_rails<%= geolocator %>. With it, each position reaches Ruby once (was once per patch received), a configuration change reaches the device, and an errored stream restarts on the next patch, sending one moreon_errorper patch while the failure lasts (108).on_errorhandler that patches the Geolocator itself, such aspage.update(geo, data: "retry"), loops while the stream keeps failing: patch, restart on the device,on_error, patch. Measured this round with a throwaway test (not committed) over a permission-denied device channel and one patch per error, stopped after 10 rounds: 11 stream starts and 11on_errorat 00d1df3c, 1 and 1 with the geolocator code from before 108.creation_date/last_modified_datestrings no longer fail the invoke (parsed, or dropped if unreadable), and*_optionspatched after the first call apply to the next one (104).start_recordingwith anios_configurationwithoutoptions, or adevicegiven as an id (string, number or{id:}map), records instead of failing with a type error; an unusabledeviceoroptionsstill fails, with anArgumentErrornaming it instead of a TypeError or NoSuchMethodError (113).Previously ignored keywords and events, now honored
delete_icon_tooltip(3); ExpansionPanelListexpand_icon_color(4); MenuItemButtontrailing,semantic_label(5); ReorderableDragHandle layout keys (7); Cupertino AppBarenable_background_filter_blur(9); ProgressRingyear_2023(11); DataTablehorizontal_lines(13) and Cupertinovertical_lines(28);font_family_fallback(45);surface_tint_coloron NavigationBar (48), NavigationDrawer (49), Banner (50); ReorderableListViewspacing,divider_thickness,prototype_item(51).image(src_base64:)renders instead of an error box (8);audio(src_base64:)plays, and load errors fireon_errorinstead of throwing (19).long_press(6); ReorderableListView answersscroll_to(15);on_focus/on_bluron Chip (32), MenuItemButton (34), SubmenuButton (35), Slider (39); Banneron_dismiss(41); DataTableon_select_all(44);on_hoveron TabBar (58) and MenuItemButton (62).badgerenders on Draggable (55), DragTarget (56), KeyboardListener (57), RadioGroup (60), Screenshot (61), SelectionArea (64), AutofillGroup (65).Additions (new wire types and keys, mostly reachable only from ruflet main): IndexedStack (12), ListSection (16), FormRow (21), CustomScrollView with SliverAppBar/SliverPadding (20, 26, 102), DraggableScrollableSheet (24), Stepper (25), AboutDialog (29, 83), FittedBox (31), Table (33), CarouselView (38); Form, NestedScrollView, transitions, clips, FractionallySizedBox, IntrinsicWidth/Height, Ignore/AbsorbPointer (102);
on_refresh(27, 46),on_end_reached(30),keyboard_dismiss_behavior(36),animate_changes(47),auto_scroll_animation(102), ListTilechevron(22), control methods (18); clientactions, TextFieldon_paste_files, SearchBaron_tap_outside_view, Semanticsidentifier, Dropdownmenu_border_radius, and theruflet_local_authextension, which this template carries but does not wire (102).No output change of their own: shared control core and registry rules (81, 88, 96, and 102's dark-mode surface-colour follow-up to the core that 81/84/86 added in this range), file splits (92, 99), analyzer clean-ups (75, 77, and 110's, which moves the Cupertino code editor's line-number and search-highlight alpha from 128/255 to 0.5), the checked-in surface (89),
.gitignore(69), tests only (80, 105, 106, 107). 104, 108–117 also add tests and dev dependencies.ruflet main's template surface check (ruflet#80; in no released gem)
formorcarousel_viewbuilds with--strict(it exited 1 withneeds ruflet-template e793ccef345b or newer), andextensions: [local_auth]no longer warnsneeds ruflet-template cdbc2aaf6036 or newer; that build still stops withselected Flutter extensions are missing: ruflet_local_auth(owner decision 2). This is the check's intended effect once the template lists those controls.Other open engine issues (#121 SecureStorage keychain options on Apple, #123 UTC dates, #127 DragTarget
on_leave) are present in base8b08569too; this PR does not change them.Hard rule: apps of published gems are unchanged (run this round, base
8b08569vs headcd3b8aa)Gems. 0.0.13 to 0.0.23, each
.gemmatching the sha256 rubygems.org lists (checked this round; 0.0.23 is still the newest) and unpacked fresh, plus ruflet main b28cb1cf (viagit archive; its 13 configs were re-run after main moved from 33705440, with the same results). The current main, a668af6e (ruflet#87), changes nopackages/rufletfile.Method. Each CLI's own code ran
ruflet new demo_app, thenruflet build <platform>, withRUFLET_TEMPLATE_REPO_URLat a localfile://repo whosemainis the tree under test, and emptyHOMEandRUFLET_CACHE_DIR, so every CLI cloned it as it clones GitHub. Flutter 3.41.2 ran for real,pub getincluded, and so did thepod installthe CLIs run themselves; onlyflutter build,flutter precacheanddart runwere recorded instead of run.build/clientwas hashed right after the build, with the run path anddate_creatednormalized, and each pair compared file by file.Configs. For all 12 CLIs:
webdefault;iosdefault;webandmacoswith no app identity (ruflet.yamlkeeps onlyapp: {backend_url},services.yamlonlyservices: []);apkwithservices: [camera]and withservices: [location];ioswithservices: [biometrics];webwithextensions: [local_auth]. Plusextensions: [charts],[map]and[lottie, webview](0.0.22, 0.0.23, main), an app extension package by path (0.0.21 and later), andapkwith no app identity (0.0.20 and later). 0.0.13 and 0.0.14 have noservices.yaml, so their services configs build as the default. 114 configs: the 99 of earlier rounds plus the last review's 15 (location and lottie+webview select packages whose pubspecs changed in this range), each built on both trees (228 builds).Results.
ruflet_packages/the only files that differ aretest/ruflet_namespace_test.dart,tool/RUFLET_SOURCE_SYNC.md, fourtool/conformance/files,.ruflet-template-revision(66 clients), and CocoaPods'Pods/Pods.xcodeproj/project.pbxproj(35 iOS and 12 macOS clients). That pbxproj names groups after the absolute run path (runs/<cli>/basevsruns/<cli>/head): built base then head in one directory (0.0.13macoswith no identity, 0.0.23iosdefault), the pbxproj files are byte-identical and every file outsideruflet_packages/,Pods/included, matches apart from the tooling files. Leaving out CocoaPods and Gradle output (Pods/,.symlinks/,ephemeral/,.gradle/), each client has 166–178 files outsideruflet_packages/, the same count on both trees, all byte-identical apart from the tooling files:pubspec.yaml,pubspec.lock, both entrypoints, the plugin registrants,.flutter-plugins-dependencies,AndroidManifest.xml, theInfo.plists, Podfiles andPodfile.lockwherever the build wrote them. Every vendored file in a head client equals the head template's committed blob, apart from media_kit's build-generated.cache/headers/mpv-v0.36.0.tar.gzin 27 iOS/macOS clients, identical on both trees.apkwith no app identity for 0.0.20 and later, main included (must define app.name, app.package_name, app.organization; 0.0.20 namesservices.yaml), and main'sservices: [biometrics]andextensions: [local_auth](selected Flutter extensions are missing: ruflet_local_auth). None of them runs any Flutter command.ruflet_local_authdependency, import or registration, a local_auth plugin,USE_BIOMETRIC, or local_auth in a Podfile orPodfile.lock.NSFaceIDUsageDescriptionappears only in main's two failing configs, on both trees.ruflet_packages/ruflet_local_auth/(20 → 21), which nothing compiles. 0.0.22, 0.0.23 and main keep only the selected packages (1–3, the same on both trees), except where the build stops before pruning (no-identityapk, 20 → 21) and main's two failing local_auth configs (1 → 2).Verified 987 … at 98377b7fon base andVerified 1427 … at 00d1df3con head (39 builds each).pubspec.yaml; 29 of the 99 keep the nameruflet_client.ruflet newcreates nobuild/clientwith any of the 12 CLIs.services: [biometrics]andextensions: [local_auth]builds first warnthe Flutter template lacks 1 extension this app uses: … local_auth (ruflet_local_auth): needs ruflet-template cdbc2aaf6036 or newer; on head that warning is gone, and both trees then stop as above. An app that addscarousel_view(...)to the default app, built by main with--strict: base exits 1 withthe Flutter template lacks 1 control this app uses: carousel_view (CarouselView), main.rb:26: needs ruflet-template e793ccef345b or newerbefore any Flutter command; head runs the build.tools/template_surface_revisions.rb --check --ref origin/main --ref cd3b8aareports main's table current (at b28cb1cf and a668af6e).flutter build webon head clients (not stubbed): 0.0.13 default (its entrypoint imports all 19 extensions), 0.0.23 with lottie and webview, and main default exit 0, withmain.dart.js10,207,150, 8,731,307 and 8,470,324 B. The3d51859round measured 10,207,105, 8,731,262 and 8,470,278 B for the same configs.Pre-existing, unchanged by this PR: for an app extension declared by path (
extensions: [{ext_pkg: {path: …}}]), gems 0.0.21+ and ruflet main insertext_pkg.Extension(),before the first// --FAT_CLIENT_START--, which sits inside the entrypoints' import block, so the generated entrypoint does not parse. Measured this round on both trees:dart formatrejects both entrypoints withFunctions must have an explicit list of parameters, at line 5 ofmain.server.dartand line 6 ofmain.self.dartfor 0.0.21, and at lines 4 and 5 for 0.0.22, 0.0.23 and main. The matrix recordsflutter buildinstead of running it, so those configs report success. The fix belongs in the CLI.Pre-existing, unchanged by this PR (0.0.17): gem 0.0.17 deletes
lib/connection_probe.dart,connection_probe_io.dartandconnection_probe_stub.dartfrom the client as stale template files, butmain.server.darthas importedconnection_probe.dartsince the template's first commit. Measured this round on a base8b085690.0.17 web client: the realflutter build web --target lib/main.server.dartexits 1 withError when reading 'lib/connection_probe.dart'. The head keeps the same entrypoints and files, so nothing changes here. The fix belongs in a template or CLI change.flutter testinside generated clients (run this round)Every gem copies
test/intobuild/client. With this head, 102 of the 114 clients passflutter test11/11, including the 7 failing builds and 27 of the 29 that keepname: ruflet_client. The other 12 fail only template#3'stest/ruflet_bootstrap_test.dart(already onmain), which compileslib/main.server.dart:connection_probe.dartis missing in the eight 0.0.17 configs, and the entrypoint does not parse in the four path-extension configs (both above). Base8b08569clients of those 12 configs fail that file the same way. Base 0.0.19macoswith no identity and 0.0.21 with a path extension also failall bundled engine and extension packages use the Ruflet namespace, which passes with this head. Five other base clients (0.0.13 web, 0.0.16 iOS, 0.0.20 no-identity apk, 0.0.23 lottie and webview, main biometrics) pass 7/7. Carried over:60df336failed 3 of 7 in no-identity 0.0.22, 0.0.23 and main clients.Template checks (run this round on
cd3b8aa)sync_ruflet_source.rb --check, offline / with--sourcea clean engine worktree at 00d1df3cgenerate_ruflet_control_surface.rb --check(RUFLET_SOURCE_ROOT= ruflet main b28cb1cf, and a668af6e)test_ruflet_control_surface.rb/test_ruflet_source_integrity.rb(alsoLANG=C) /test_self_contained_runtime_contract.rb/ template#3'stest_bootstrap_hooks_contract.rb/test_sync_ruflet_source.rb, on Ruby 4.0.5 and 3.4.5flutter test8b08569: 7/7),git statusclean afterwardsflutter analyze lib test8b08569(3RufletRuntimegetters inlib/main.self.dart, 3 infos)ruflet_audio(107's package) at 00d1df3cflutter analyzeno issues;flutter test+22, all pass; the vendored test file is byte-identicale32c873fixture;compat_goldens_test.rb366 runs, 800 assertions, 0 failures. Vendoring base8b08569then headcd3b8aaand regenerating after each: head changes 195 CLI goldens against base and 0 page goldens. As at 33705440 (161 goldens, 0 argv or exit lines), most changes are template file counts, the pinned engine SHA and file count, the source-ref comment, andruflet_local_authabsent from pruned clients (inbuild-apk--self-with-RUFLET_CLIENT_DIR, the prune deletes its two files and the rewrittenpubspec.yamlis identical). The rest come from main's template surface check (ruflet#80): 9 goldens lose its "template lacks" warning (7 forform, 2 for local_auth in the biometrics builds), and the 4--strictform goldens (build apk --self --stricttwice,doctor --strict,run main.rb --strict) go from exit 1 to exit 0 and run the rest of the command. Those 4 exit lines are the only argv or exit lines that change.compat_goldens_test.rbafter each regeneration: 366 runs, 0 failures.mainmerged in with a merge commit (e81884d), no conflicts; template#2 is the only open template PR. No ruflet or engine PR was touched.Carried over, not re-run this round
test/ruflet_namespace_test.dartand the wiring it checks are unchanged since7ff1809.7ff1809, 22 plants with a control):flutter testcatches 16;sync --checkand the integrity test catch a deleted source-ref comment (with and without the wiring) and byte drift; the surface test catches a removedformentry. A plugin hand-added to the committed Android registrant is not caught (earlier rounds).main.dart.js+343,266 B (+4.2%), APK +2,359,296 B (+2.5%), iOSApp.framework+828,944 B, macOS +824,144 B. Not re-measured.ruflet_audio: not re-run;98e41857..00d1df3cchanges onlyruflet_audio's test file, and each engine PR lists its own runs.Follow-ups and corrections
FAT_CLIENT_END).e32c873; at ruflet main b28cb1cf, vendoring8b08569alone (template#3) changes 188 CLI goldens, and this head changes the 195 described above.on_errorself-patch loop, listed under 108): a fix needs another re-sync and an entry here.maintoday (pre-existing, above); not opened as an issue or PR here.3d51859body left 111's SlidePicker write-back unmarked (now under [owner: confirm] with ColorPicker), cited ruflet main f034e99b (now b28cb1cf and a668af6e), and did not say that its per-client file count excludes CocoaPods output. The7ff1809body said iOSborder: "none""maps onto the native decoration"; the head draws no decoration (engine testruby_text_field_border_test.dart). It also named template refactor: ordered startup hooks around runApp (WP-00 R3) #3's old head20df7e0, and gave the path-extension parse error as "line 4 or 5". The99b8197body dropped this per-area list, against X1/D6, restored since;60df336's name-based skip was wrong for apps whose config names no app (fixed in99b8197); an earlier body said "156–162 files per client" where its data said 152–162;eb2a29c's 0.0.21 results came from a local copy, not the published gem.