https://github.com/halildurmus/win32_runner
Run a Flutter app without needing a lick of C/C++ code. Just Dart!
https://github.com/halildurmus/win32_runner
build dart flutter win32 windows
Last synced: 4 months ago
JSON representation
Run a Flutter app without needing a lick of C/C++ code. Just Dart!
- Host: GitHub
- URL: https://github.com/halildurmus/win32_runner
- Owner: halildurmus
- License: bsd-3-clause
- Created: 2022-01-31T00:01:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T13:41:13.000Z (over 1 year ago)
- Last Synced: 2025-04-09T23:16:21.001Z (about 1 year ago)
- Topics: build, dart, flutter, win32, windows
- Language: Dart
- Homepage:
- Size: 201 KB
- Stars: 63
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Authors: AUTHORS
Awesome Lists containing this project
README
[![ci][ci_badge]][ci_link]
[![Package: win32_runner][package_badge]][package_link]
[![Publisher: halildurmus.dev][publisher_badge]][publisher_link]
[![Language: Dart][language_badge]][language_link]
[![License: BSD-3-Clause][license_badge]][license_link]
**A Dart runner for Flutter Windows apps — no C++ compiler required.**
`package:win32_runner` is an *experimental* package that replaces the default
C++ runner generated by `flutter create` with a pure Dart alternative, letting
you build and run Flutter Windows apps without a C++ toolchain installed.
> ⚠️ **Experimental:** This package is a proof-of-concept and is **not suitable
> for production use**. Plugin support is not yet implemented.
## 🚀 Getting Started
The [example] subdirectory contains a ready-to-use sample. Follow the steps
below to run an existing Flutter app on Windows using the Dart runner.
**1. Clone the repository**
```console
C:\src> git clone https://github.com/halildurmus/win32_runner.git
C:\src> cd win32_runner
```
**2. Install dependencies**
```console
C:\src\win32_runner> dart pub get
```
**3. Create a sample Flutter app**
```console
C:\src\win32_runner> cd ..
C:\src> flutter create simpleapp
C:\src> cd simpleapp
```
**4. Compile the Dart runner**
```console
C:\src\simpleapp> dart build cli -t ..\win32_runner\example\win32_runner.dart -o build
```
**5. Compile Flutter code and assets**
```console
C:\src\simpleapp> flutter assemble -dTargetPlatform=windows-x64 --output=build -dBuildMode=release release_bundle_windows-x64_assets
```
**6. Run your Flutter app**
```console
C:\src\simpleapp> .\build\bundle\bin\win32_runner.exe
```
You should now see your Flutter app running via the Dart runner:
![demo][demo_image_link]
## 📝 Documentation
Full API reference is available here:
👉 [API Reference][api_reference_link].
Additional usage examples are located in the [example] directory.
## 🐞 Features and Bugs
If you encounter bugs or need additional functionality, please
[file an issue][issue_tracker_link].
[api_reference_link]: https://pub.dev/documentation/win32_runner/latest/
[ci_badge]: https://github.com/halildurmus/win32_runner/actions/workflows/win32_runner.yml/badge.svg
[ci_link]: https://github.com/halildurmus/win32_runner/actions/workflows/win32_runner.yml
[demo_image_link]: https://raw.githubusercontent.com/halildurmus/win32_runner/main/screenshots/demo.png
[example]: https://github.com/halildurmus/win32_runner/tree/main/example
[issue_tracker_link]: https://github.com/halildurmus/win32_runner/issues
[language_badge]: https://img.shields.io/badge/language-Dart-blue.svg
[language_link]: https://dart.dev
[license_badge]: https://img.shields.io/github/license/halildurmus/win32_runner?color=blue
[license_link]: https://opensource.org/licenses/BSD-3-Clause
[package_badge]: https://img.shields.io/pub/v/win32_runner.svg
[package_link]: https://pub.dev/packages/win32_runner
[publisher_badge]: https://img.shields.io/pub/publisher/win32_runner.svg
[publisher_link]: https://pub.dev/publishers/halildurmus.dev