win32_runner 0.1.0 copy "win32_runner: ^0.1.0" to clipboard
win32_runner: ^0.1.0 copied to clipboard

Compile and run a Flutter app without needing any C/C++ code. Just Dart!

pub package Language

Experimental package for running Flutter apps from a Dart runner, instead of the C++ runner that is provided by default when you do flutter create.

You might use this to create a Windows Flutter app without requiring a C++ compiler on your system.

At present, this is not much more than a lightweight experiment. It doesn't currently support plugins or theme changes. It is therefore not recommended for use with production apps: it's more a proof-of-concept.

A sample app that uses it can be found in the example\ subdirectory. This can be used to run an existing Flutter app.

For example:

# Create a sample app
C:\src\win32_runner> cd ..
C:\src> flutter create simpleapp
C:\src> cd simpleapp

# Compile Flutter code and assets to the build\ subdirectory
C:\src\simpleapp> flutter assemble -dTargetPlatform=windows-x64 --output=build -dBuildMode=release release_bundle_windows_assets

# Compile Dart runner
C:\src\simpleapp> dart compile exe ..\win32_runner\example\win32_runner.dart -o win32_runner.exe

# Run Flutter app
C:\src\simpleapp> .\win32_runner

Sample results: image

25
likes
0
pub points
20%
popularity

Publisher

verified publisherhalildurmus.dev

Compile and run a Flutter app without needing any C/C++ code. Just Dart!

Repository (GitHub)
View/report issues

Topics

#ffi #windows

License

unknown (license)

Dependencies

args, ffi, win32

More

Packages that depend on win32_runner