Accessing exported names of a nested component at runtime (Flutter 0.14.x)

Note: I'm not certain whether this is a bug or a current limitation — I've also posted this in the peer-to-peer support channel and haven't found a solution there yet, so I'm raising it here as well.


Runtime: Flutter 0.14.x

Description:

When a main artboard (e.g. NeonRoom) contains a nested component artboard (e.g. LCDDisplay) with exported component names (e.g. LCDText), there is no public API to access those live component instances inside it at runtime from Dart.

What was tried:

// From the main artboard — always returns null
ctrl.artboard.component('LCDText'); // null

// Via file-level artboard — returns an instance, but template/static bounds only
file.artboard('LCDDisplay')?.component('LCDText'); // non-null, but not the live instance

// Via the nested artboard component on the main artboard
ctrl.artboard.component('LCDDisplay'); // non-null (FFIComponent)
// But there is no method to access exported names inside it.
// Attempted casting its pointer as an Artboard and calling .component() — crashes the app.

Root cause (as understood):

In the C++ runtime, a NestedArtboard component pointer and the inner artboard pointer are separate objects. The Dart FFIComponent wraps the component pointer — there is no public API to retrieve the live inner artboard pointer from it. file.artboard('LCDDisplay') returns the file-level template instance, not the live rendering instance attached to the main artboard's state machine.

Questions / feature request:

  1. Is there an official way to get a live Artboard reference for a nested artboard at runtime in Flutter 0.14.x?

  2. Is there a planned API for traversing the nested artboard tree from Dart?

  3. Does artboard.component() intentionally only search the direct component list without recursing into nested artboards?

Happy to share more details if helpful.