a2ui-project / a2ui-project/a2ui

[FEATURE]: Add a public pure-Dart adapter for Flutter catalogs and functions

Đang mở
#2,244 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
P2 status: first-line-handled status: needs-team-input type: feature/enhancement
Ngôn ngữ chính
TypeScript
Star
16.4k
Fork
1.3k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
134

Mô tả

- [x] I have searched the existing issues to make sure this feature has not already been requested.

## Is your feature request related to a problem? Please describe.

Flutter applications define catalogs/functions through Flutter GenUI APIs, while pure-Dart tooling uses a2ui_core types. No supported adapter proves which Flutter behavior is representable headlessly. Copying JSON Schema alone misses references, structural slots, bindings, validation, functions, and renderer fallbacks.

## Describe the Proposed Solution

Provide a public pure-Dart adaptation API that consumes serializable/public Flutter catalog definitions and produces a resolved a2ui_core catalog, explicit unsupported-schema or unresolved-$ref diagnostics, structural/dynamic/action metadata, a registry of caller-supplied pure deterministic function stubs, and a compatibility report distinguishing adapted, custom-driver-required, and unsupported components. Fail closed; do not serialize widget builders or arbitrary closures.

## Describe Alternatives Considered

Manual redeclaration drifts from the catalog shown to the agent. Flutter widget reflection is not portable. Treating schema conversion as behavior parity is unsafe.

## Additional Context

#1528 provides schema-driven binding/reference-resolution groundwork and #1282 provides relevant Node Layer work. This request focuses on the public Dart/Flutter adaptation boundary.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Review issues #1528 and #1282 for groundwork on schema binding and Node Layer. Examine the Flutter GenUI APIs and a2ui_core types to understand the adaptation boundary. The goal is to create a public Dart API that converts Flutter catalog definitions into resolved a2ui_core catalogs with diagnostics and compatibility reports. Start by exploring existing serialization and reference-resolution code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart, flutter, typescript
Lĩnh vực
backend-api-design, tooling
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.