Skip to main content

tom_d4rt_flutter 1.10.0 copy "tom_d4rt_flutter: ^1.10.0" to clipboard
tom_d4rt_flutter: ^1.10.0 copied to clipboard

Source-based D4rt interpreter with the full Flutter Material bridge surface (SourceFlutterD4rt), plus the bridge conformance test suite and HTTP test harness.

1.10.0 #

Changed — on the interpreter release for GitHub #13-#18, bridges by tom_d4rt_generator 1.65.0 #

The floor is tom_d4rt ^1.263.0: a bridged noSuchMethod satisfies an interface, the extensions of a prefixed import apply, generic function references keep their type arguments, an extension's own type parameters are bound, explicit extension overrides E(x).member work, and an extension holds a getter and a setter of one name. The bridges are regenerated by the published tom_d4rt_generator 1.65.0 (dev dependency ^1.65.0), which decides the relaxer file's types by what its imports export: the 17 vector_math types (Vector2 ... Vector4, Matrix2 ... Matrix4, Quaternion, Aabb2 / Aabb3, Frustum, Obb3, Plane, Quad, Ray, Sphere, Triangle, IntersectionResult) and their nullable forms are now RC-2 type arguments (ValueNotifier<Vector3>); Colors stays out (material and vector_math both export one). The other bridge files change only in their header.

Name resolution: yes — through the interpreter release (an extension member through a prefixed import, a call of an extension's name as an explicit override, an extension setter beside its getter).

1.9.1 #

Changed — the relaxer file's generic constructor factories are in part files (relaxsize1) #

The bridges are regenerated by tom_d4rt_generator 1.63.2, which splits a relaxer output above 25 MB: lib/src/bridges/flutter_relaxers.b.dart (93.4 MB at 1.63.0, near GitHub's 100 MB limit per pushed file) is now 4.2 MB, and its RC-2 generic constructor factories are in flutter_relaxers_part1.b.dart … flutter_relaxers_part3.b.dart (28-31 MB each), part files of the same library. The code is the same function by function; nothing a consumer imports changes. The generator dev dependency is ^1.63.2, and test/relaxsize1_bridge_file_size_test.dart (guard runner) holds every *.b.dart at or below 50 MB.

Name resolution: no.

1.9.0 #

Changed — on the batch release: tom_d4rt 1.257.0 / tom_d4rt_ast 0.237.0, bridges by tom_d4rt_generator 1.63.0 #

The floor is tom_d4rt ^1.257.0, and the bridges are regenerated by the published tom_d4rt_generator 1.63.0: the 15 generated proxies are receivers (D4.markProxyIsReceiver, a script's super.m() runs the native member once), a proxied override returning List<E> hands native code a List<E> (GEN-133), and the generic constructors match T? / T<U> type arguments. The generator dev dependency is ^1.63.0.

Name resolution: no.

1.8.0 #

Changed — Flutter 3.47 floor (GitHub #5) #

flutter: ">=3.47.0": the bridges are generated against Flutter 3.47.9 and use its API. They import Flutter classes through its public libraries, so a release that only moves a src file no longer breaks them; the README's new "Flutter versions" section says what still needs a regeneration.

Name resolution: no.

Fixed — a script's super.m() on a hand-written receiver proxy runs the native member once (ghissues45) #

The hand-written proxies the runtime registrations install for CustomPainter, SingleChildLayoutDelegate and the Diagnosticable family stand in as a script instance's native object, so a script override's super.m() reached the proxy, which forwarded the member to the script again: the override recursed until the stack overflowed (about 4000 calls, swallowed), and shouldRebuildSemantics answered the inverse, getSize 0x0. The proxies now implement D4ReceiverProxy (_D4rtSuperCalls, _DiagnosticsForwarder.superCall): while the interpreter runs a script's super call inside d4rtSuperCall, they answer the native member. ChangeNotifier and DiagnosticableTree are marked as receivers (D4.markProxyIsReceiver). MultiChildLayoutDelegate and the CustomClipper proxies forward only abstract members, which no super call reaches, and are unchanged.

Changed — on the published interpreter (ghissues45) #

The interpreter floor is tom_d4rt ^1.256.0, which the receiver code needs, and the bridges are regenerated by the published tom_d4rt_generator 1.58.0.

Name resolution: no.

1.7.0 #

Fixed — name-keyed generic dispatch reads T? and T<U> type arguments (ghissues42) #

Since tom_d4rt 1.257.0 / tom_d4rt_ast 0.237.0 a type argument's name keeps its ? and its own type arguments. The runtime registrations switched on the plain name, so ValueNotifier<String?>('a') took the bridge constructor's inferred ValueNotifier<String>, and dependOnInheritedWidgetOfExactType<_Scope<int>>() and ThemeData.extension<_Brand<int>>() found nothing. The GlobalKey, ValueKey, ValueNotifier and RadioGroup.maybeOf dispatch now matches the name without its type arguments and with its ?; ValueKey and ValueNotifier have nullable arms (ValueNotifier<String?>(...) is a ValueNotifier<String?> whatever its value). The inherited-element and theme extension lookups match a script class by its class name (_Scope<int> as _Scope) and a native one by its whole type name. Takes effect with tom_d4rt 1.257.0 / tom_d4rt_ast 0.237.0; with an older interpreter nothing changes.

Name resolution: no.

1.6.0 #

Fixed — script DiagnosticableTree and Diagnosticable classes (ghissues25) #

A script class mixing in Diagnosticable threw Invalid target: expected Diagnosticable, got InterpretedInstance from toString() and toDiagnosticsNode(); a script class extending DiagnosticableTree answered null from toDiagnosticsNode(), toStringDeep() and toStringShort() (GEN-130). The runtime registrations add proxies for both (_InterpretedDiagnosticable, _InterpretedDiagnosticableTree) that call the script's toStringShort, debugFillProperties and debugDescribeChildren overrides; the existing DiagnosticableTreeMixin proxy shares their forwarding, and the default toStringShort of all three names the script class (Leaf#1a2b3) rather than the proxy class. The Diagnosticable case works with the published interpreter. The DiagnosticableTree proxy runs a script class's inherited members once it is marked as the instance's receiver (D4.markProxyIsReceiver), which needs tom_d4rt 1.249.0 / tom_d4rt_ast 0.229.0.

Name resolution: no.

1.5.0 #

Changed — analyzer 14 stack and Flutter 3.47 (vstdm3) #

Bridges regenerated by tom_d4rt_generator 1.53.0 (analyzer 14) against Flutter 3.47.9 / Dart 3.13.7. Flutter 3.44 cannot resolve the analyzer-14 packages (it pins meta 1.18.0), so this release needs Flutter 3.47 or later; the regenerated bridges import 3.47's file layout (no more widgets/visibility.dart, the break GitHub #5 reported). The bridged surface is preserved and gains four Flutter 3.47 types (HitTestRequest, HitTestResponse, NativeHitTestTarget, ContextMenuButtonKind). Proxies now re-type the Future an interpreted async override returns, so native code calling such an override (Flutter 3.47's text field asking a script's SpellCheckService) gets a Future<T>. The companion app's macOS deployment target is 12.0, Flutter 3.47's minimum.

Resolves tom_d4rt ^1.230.0 and tom_d4rt_generator ^1.53.0.

Name resolution: no.

1.4.8 #

Changed — resolves the web int fix release (dfin9) #

tom_d4rt ^1.229.0. No code change; the bridges are unchanged.

Name resolution: no.

1.4.7 #

Changed — resolves the correctness release (dfin7) #

tom_d4rt ^1.228.0. No code change; the bridges are unchanged.

Name resolution: no.

1.4.6 #

Changed — resolves the security release (dfin4) #

tom_d4rt ^1.226.0. No code change; the bridges are unchanged.

Name resolution: no.

1.4.5 #

Changed — resolves the interpreter releases sci1/sci2 published (sci3) #

tom_d4rt ^1.224.0. No code change; the bridges are unchanged.

Name resolution: no.

1.4.4 #

Changed — bridges regenerated with tom_d4rt_generator 1.51.0 (sch3) #

dev tom_d4rt_generator ^1.51.0. 1.51.0 formats its output at this package's language version, so every generated *.b.dart is now dart format-clean as written. The generator's other 1.51.0 changes are in its own CHANGELOG.

Name resolution: no.

1.4.3 #

Changed — resolves tom_d4rt 1.210.0; bridges regenerated with tom_d4rt_generator 1.50.0 (scf34) #

tom_d4rt ^1.210.0 and dev tom_d4rt_generator ^1.50.0. The regeneration changes only each file's // Generated: line: 1.50.0's output on macOS is the same as 1.47.0's.

Name resolution: no.

1.4.2 #

Changed — the withheld GEN-126 registrations are documented as settled (scf31) #

Comment only. The note where the RenderProxyBox and TwoDimensionalChildBuilderDelegate proxies would be registered now records that scf31 repaired the case in the interpreter (tom_d4rt 1.210.0 / tom_d4rt_ast 0.195.0) by recognising a bridged super object when it comes back, and why the two proxies must therefore stay unregistered. No behaviour changes in this package.

Name resolution: no.

1.4.1 #

Changed — bridges regenerated with tom_d4rt_generator 1.47.0 (scf17) #

All 18 generated bridge files were rewritten by one generator, the same one tom_d4rt_flutter_ast 0.9.1 uses, so the twins record a single writer. Only the header lines changed; every bridge body is byte-identical, so no script behaviour moves.

Two of them, dart_ui_bridges.b.dart and vector_math_bridges.b.dart, still named this machine in their // Source: header (/Users/.../sky_engine/lib/ui/ui.dart, a pub-cache path) — output from before the generator emitted dart: / package: URIs there. They now read dart:ui and package:vector_math/vector_math_64.dart.

Name resolution: no.

1.4.0 #

Documented — why GEN-126's last two bases have no interface proxy (sce164) #

RenderProxyBox and TwoDimensionalChildBuilderDelegate are the third and last case of GEN-126: a script subclass returns as its bridged base and the declared-parameter check refuses it. The obvious repair is a proxy registration. Both were written, registered, measured and reverted; the analysis is recorded in d4rt_runtime_registrations.dart where the registrations would go.

  • A registration alone does nothing for these two. The proxy registry is consulted only when the bridged super class has NO constructor adapter — the ABSTRACT bases. Both of these are concrete, so the native base is built directly and handed across and the proxy is never constructed.
  • Flipping that preference fixes the binding and WEDGES the app: rendering/render_shrink_wrapping_viewport_test.dart times out and flutter_base_13 goes +54 → +52 -2. Reverting restores +54 exactly.
  • The delegate proxy removes three type errors and produces 408 framework errors, because it makes the script's build override run for the first time and that override calls setState during build.

Comment-only in lib/. test/sce164_proxy_registry_parity_test.dart (AST twin, covering both) fails if either is registered again, and independently holds that the two hand-duplicated registries agree and that every proxy class exposes its interpreted instance. scf31 owns the remaining work.

Name resolution: no.

1.3.0 #

Changed — the extension registry keys a named extension by name AND target type (sce1) #

Regenerated at tom_d4rt_generator 1.26.2. These eighteen bridge files were the last in the repo whose writer could not be named — they predate the generator's version stamping — and unlike every other package in that sweep the content moved rather than only the stamp:

'StringCharacters'    -> 'StringCharacters@String'
'HtmlElementViewImpl' -> 'HtmlElementViewImpl@HtmlElementView'

A NAMED extension was keyed by its bare name, so two extensions of the same name on different target types collided. tom_d4rt_flutter_ast received this at generator 1.26.0; this package never did, and the twins are now on the same generator and the same keying.

Verified by the bridge corpus, which is the right gate for a bridge change: base corpus 927 / 1 / 0, identical to the two preceding recorded runs cell for cell.

Name resolution: no.

1.2.3 #

Fixed - a script subclass now binds as itself after a round trip (scd138 / GEN-126) #

A script declaring class _A11yNote extends StatelessWidget and handing instances to Flutter got the bridged BASE back when the value returned to a parameter declared as its own class:

type 'StatelessWidget' is not a subtype of type '_A11yNote'

scd119 (tom_d4rt 1.106.0 / tom_d4rt_ast 0.93.0) fixed the MECHANISM: ResolvedBinding.bind retries against the interpreted instance behind a D4InterpretedProxy after the base check has failed. What it could not fix is a proxy that does not expose one - and 21 of this package's 40 interpreted proxies did not implement the interface, so the retry saw nothing and refused a value that works.

Among them were the two bases a script is most likely to extend (StatelessWidget, StatefulWidget) and several GEN-126 names its symptom list.

Each now implements D4InterpretedProxy and exposes its instance. Purely additive: the retry runs only after the base check has already failed, so it can remove a rejection but never add one, and no program that binds today stops binding.

Needs an interpreter carrying scd119. Below that the retry does not exist and these declarations are inert.

Name resolution: no.

1.2.2 #

Fixed — a dangling citation in d4rt_runtime_registrations.dart #

The // Why: above the slotted render-object proxy explained itself in full and then cited doc/testlog_20260427-1339-post-c22/error_analysis.md for the D7 label. That folder was pruned in April along with every other run folder, so the path had been unresolvable in any clone for months while still reading as something a reader could open.

The comment now names the run (20260427-1339-post-c22) rather than a path, which is the convention interpreter_unfixable.md states for a past pass: a run id is the name of a pass, not a location. No behaviour changes.

Name resolution: no.

1.2.1 #

Changed — formatted the hand-written half of lib/ (scd81) #

The formatter had never been run here, so until this commit dart format on any single file rewrote it wholesale and buried whatever real edit came with it. That matters more in these two packages than in most: they are twins, and the shared d4rt_user_bridges/ set is derived by sync_shared_user_bridges.dart rewriting one import line and checked by comparing TEXT.

Only the hand-written files — the 18 generated *.b.dart are deliberately untouched. tom_d4rt_generator emits them by string concatenation and depends on no formatter, so formatting them would start a permanent fight: format, regenerate, and the diff is back. Teaching the generator to format its own output is tracked separately, and needs a workspace-wide regeneration because every consumer's freshness guard reads committed output.

Layout-only, measured rather than asserted: normalising away whitespace and then whitespace-and-commas leaves every changed file byte-identical to its previous content, and no quote count changed, so no string literal was re-split and no D4rt script text moved. dart analyze clean in both twins.

Name resolution: no.

1.2.0 #

  • Add ProfilingMetrics (exported from tom_d4rt_flutter.dart) — a single compile-time switch mirroring the interpreter's D4rtProfiler.enabled, plus snapshot(), report() and reset(). The test app and the test drivers now read one source of truth for whether D4rt's init-path profiler is compiled in. The published default is off, so every profiling branch behind it is dead-code-eliminated at zero runtime cost.
  • Migrate the TwoDimensionalChildDelegate proxies to ScrollCacheExtent, following the Flutter SDK's replacement of the raw cache-extent doubles (RCK22).
  • Regenerate all 15 Flutter bridge files under the upgraded Flutter SDK on tom_d4rt_generator 1.14.0. The visible surface change is that bridged enums now carry their static methods — e.g. KeyboardLockMode.findLockByLogicalKey is callable from interpreted code.
  • Fix the idle_timeout watchdog in the test harness on Linux (RCK22).

1.1.0 #

  • Add SourceFlutterD4rt.warmup() — forwards to D4rt.warmup() so embedders can pay the residual eager warm-up cost (warm-parent Environment, stdlib, and the analyzer parser front-end) off the first frame instead of stalling the first script build. The recommended call site is a post-first-frame callback: WidgetsBinding.instance.addPostFrameCallback((_) => d4rt.warmup()). Idempotent and script-neutral.

1.0.1 #

  • Housekeeping: test artifacts now live in a gitignored testlog/ folder; doc/ no longer ships machine-generated baselines or last_testrun.json. No code changes.

1.0.0 #

Initial pub.dev release of the source-based Flutter bridge runtime — the recommended way to run D4rt scripts that return Flutter widget trees.

  • SourceFlutterD4rt — a tom_d4rt interpreter pre-loaded with the full generated Flutter Material bridge surface (17 generated *.b.dart files under lib/src/bridges/). Feed it raw Dart source; it returns a live Widget.
  • build(source, context) and buildMultiFile(...) entry points; rendering against real Flutter widgets (not mocks).
  • Hand-written runtime registrations layered on top of the generated bridges: interface proxies, generic type relaxers, and generic constructor factories.
  • d4rt_user_bridges/ — hand-written D4UserBridge overrides for classes that need bespoke behaviour beyond the generated adapters.
  • Sample-source loaders (SampleProgram, SampleSource, createSampleSource, DiskSampleSource, AssetSampleSource, buildDiskProgram, …) for loading multi-file sample apps.
  • Bridge conformance test suite plus the long-lived companion-app HTTP harness used to drive the flutter-material corpus.
0
likes
0
points
296
downloads

Publisher

unverified uploader

Weekly Downloads

Source-based D4rt interpreter with the full Flutter Material bridge surface (SourceFlutterD4rt), plus the bridge conformance test suite and HTTP test harness.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

characters, flutter, meta, path, tom_d4rt, vector_math

More

Packages that depend on tom_d4rt_flutter