{"id":21943152,"url":"https://github.com/fsdsabel/flutter_net_host","last_synced_at":"2025-03-22T15:43:31.671Z","repository":{"id":82641807,"uuid":"273913811","full_name":"fsdsabel/flutter_net_host","owner":"fsdsabel","description":"Prototype for embedding Flutter to .NET","archived":false,"fork":false,"pushed_at":"2020-06-21T13:55:09.000Z","size":118,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T16:46:25.192Z","etag":null,"topics":["csharp","flutter","interop","wpf"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fsdsabel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-21T13:51:27.000Z","updated_at":"2025-01-22T10:48:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"460331f9-b0e4-41af-bc61-bc3ab0f7cc3d","html_url":"https://github.com/fsdsabel/flutter_net_host","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsdsabel%2Fflutter_net_host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsdsabel%2Fflutter_net_host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsdsabel%2Fflutter_net_host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsdsabel%2Fflutter_net_host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fsdsabel","download_url":"https://codeload.github.com/fsdsabel/flutter_net_host/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244981189,"owners_count":20542288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","flutter","interop","wpf"],"created_at":"2024-11-29T03:28:38.793Z","updated_at":"2025-03-22T15:43:31.642Z","avatar_url":"https://github.com/fsdsabel.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prototype Embedding Flutter in .NET \n\nThis is a prototype to proof embedding flutter to .NET. This is far from production ready but proofs that it's possible to do.\n\n## Setup\n\n- You need to setup flutter SDK for Windows Desktop development\n- Visual Studio 2019 16.6 or higher\n- Visual Studio Code with flutter plugin (Attaching Flutter debugger only works with this)\n\n\n## Building\n\n1. Build flutter app in debug mode with\n```cmd\ncd src\\flutter_app\nflutter run\n```\n2. Terminate app\n3. Build and run `src\\FlutterHost.sln` with Debug configuration\n4. Open folder `src\\flutter_app` in Visual Studio Code and start debugging configuration `Flutter: Attach to Device` (hit `F5`)\n5. You should be able to edit Dart sources with automatic reloading\n\n## Takeaways\n\n1. It's possible to embed Flutter to .NET (Core and full)\n2. Live editing flutter code is possible\n3. 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.\n4. Development workflow is a bit cumbersome. It could be much better if `flutter build windows` would build the .NET project. This might be possible by tinkering with the `src\\flutter_app\\windows` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsdsabel%2Fflutter_net_host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffsdsabel%2Fflutter_net_host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsdsabel%2Fflutter_net_host/lists"}