This is a prototype to proof embedding flutter to .NET. This is far from production ready but proofs that it's possible to do.
- You need to setup flutter SDK for Windows Desktop development
- Visual Studio 2019 16.6 or higher
- Visual Studio Code with flutter plugin (Attaching Flutter debugger only works with this)
- Build flutter app in debug mode with
cd src\flutter_app
flutter run- Terminate app
- Build and run
src\FlutterHost.slnwith Debug configuration - Open folder
src\flutter_appin Visual Studio Code and start debugging configurationFlutter: Attach to Device(hitF5) - You should be able to edit Dart sources with automatic reloading
- It's possible to embed Flutter to .NET (Core and full)
- Live editing flutter code is possible
- Exchanging simple method calls between both worlds is possible (Click WPF-Button in WPF and +-Button in Flutter). More work would be needed for more complex scenarios.
- Development workflow is a bit cumbersome. It could be much better if
flutter build windowswould build the .NET project. This might be possible by tinkering with thesrc\flutter_app\windowsdirectory.