Flutter-like UI framework in C#.
- Keep
Widget/Element/RenderObjectarchitecture as close as practical to Flutter. - Make rewriting controls from Flutter (Dart) to C# straightforward, with minimal conceptual translation.
- Reuse Avalonia mostly as platform infrastructure: app/window host, lifecycle, input plumbing, and drawing backend abstractions.
- Keep layout and paint behavior inside this framework's render layer.
- App UI is built with Flutter-like widgets and lifecycle primitives (
StatefulWidget,State,SetState, reconciliation). - Render/layout/paint behavior is framework-owned (
RenderObject/RenderBox/render pipeline), not Avalonia-control-driven UI logic. - Samples demonstrate real framework usage via widget host flow, not only low-level render demos.
- Core primitives are stable and close enough to Flutter semantics for practical Dart-to-C# control porting.
- Changelog:
CHANGELOG.md - Global implementation status and roadmap:
docs/FRAMEWORK_PLAN.md - AI-oriented context map and workflows:
docs/ai/MODULE_INDEX.md
using Avalonia;
using Avalonia.Media;
using Flutter.Widgets;
namespace Flutter.Net;
public sealed class MyApp : StatelessWidget
{
public override Widget Build(BuildContext context)
{
return new Container(
color: Brushes.White,
padding: new Thickness(24),
child: new Column(
children:
[
new Text("Hello, Flutter.NET"),
new SizedBox(height: 12),
new Text("Render tree is driven by Flutter-like widgets.")
]
)
);
}
}