Run a Flutter app without needing a lick of C/C++ code. Just Dart
Read Time:55 Second

Run a Flutter app without needing a lick of C/C++ code. Just Dart

0 0
Run a Flutter app without needing a lick of C/C++ code. Just Dart

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 high-DPI scaling, or 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:srcwin32_runner> cd ..
C:src> flutter create simpleapp
C:src> cd simpleapp

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

# Compile Dart runner
C:srcsimpleapp> dart compile exe ..win32_runnerexampleflutter_run.dart -o flutter_run.exe

# Run Flutter app
C:srcsimpleapp> flutter_run

Sample results:
Run a Flutter app without needing a lick of C/C++ code. Just Dart

GitHub

View Github

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Deja una respuesta

Entrada anterior A simple and clean designed todo app. Green ToDos.
Entrada siguiente A Music App Template With Flutter