hyiso / flutterw Goto Github PK
View Code? Open in Web Editor NEWFlutterw wraps flutter to support scripts and command hooks.
Home Page: https://pub.dev/packages/flutterw
License: Apache License 2.0
Flutterw wraps flutter to support scripts and command hooks.
Home Page: https://pub.dev/packages/flutterw
License: Apache License 2.0
I got an exception because it is impossible to add element to fixed length list:
Quick fix from my side was to rename argument arguments
-> originalArguments
List<String> arguments = []..addAll(originalArguments);
But i would like to believe there should be more elegant solution
0.5.0
flutterw --version
print Flutterw 0.5.0-pre.2
dart pub global activate flutterw
flutterw --version
Flutterw 0.5.0
Flutterw 0.5.0-pre.2
No response
0.5.2
After running dart test
in flutterw
, the global activated flutterw
is deactivated.
dart pub global activate flutterw
No change for global activated flutterw
No response
No response
flutterw run <script>
Support running custom scripts via flutterw run <script>
Flutter command is always too long, custom scripts will solve this problem
Related issue flutter/flutter#90612, dart-lang/pub#1904, dart-lang/pub#1674
I have faced impediment that in Windows I need to provide full path to flutter
executable because PATH
value is ignored due to the documentation
Using an absolute path for executable is recommended since resolving the executable path is platform-specific. On Windows, both any PATH set in the environment map parameter and the path set in working Directory parameter are ignored for the purposes of resolving the executable path.
And the main problem location of flutter is totally dynamic and machine dependant.
final process = await Process.start(
cmds.removeAt(0),
cmds,
runInShell: true,
mode: isVerbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal,
);
In dart:io
there is property isWindows, we can explicitly apply runInShell
flag for Windows OS.
P.S.: I seems command should be runned with mode ProcessStartMode.inheritStdio
in such case
No response
Support verbose logging for script
Currently nothing output when executing scripts
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.