Lighthouse π‘
PART OF QUEEN FRAMEWORK π
Queen CLI
- can be used outsize the framework
- for more out-of-box features use it with the rest of the framework
β‘CLI for flutter queen π
License: MIT License
Lighthouse π‘
PART OF QUEEN FRAMEWORK π
Describe the bug
The assets:add
command doesn't skip hidden files as mentioned here.
To Reproduce
Steps to reproduce the behavior:
lh assets:add
pubspec.yaml
.DS_Store
file from macOSflutter:
uses-material-design: true
assets:
- assets/.DS_Store
- assets/image.jpg
...
Expected behavior
assets:add
skips hidden files.
Desktop (please complete the following information):
assets/images/3x
LH
will look into these folder resize images to other lower resolutionsreturn Image.asset('assets/images/foo.png');
Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
if I have 60 file with the same parent the command will add 60 path
-assets
-images
-image1.png
-image2.png
-image3.png
-image4.png
-image5.png
-image6.png
-image7.png
currently it will make this output after using the command lh assets:add
flutter:
assets:
-assets/images/image1.png
-assets/images/image2.png
-assets/images/image3.png
-assets/images/image4.png
-assets/images/image5.png
-assets/images/image6.png
-assets/images/image7.png
Describe alternatives you've considered
while if the command only added
flutter:
assets:
-assets/images/
it will work but with much fewer lines on pubspec.yaml
pubspec.yaml
assets
folderlh assets:add
LH
will look into these folder update the project pubspec.yaml
and add you assets paths to the assets tagflutter:
assets:
# * HERE WILL BE LIST OF PATHS TO YOUR ASSETS
in case of duplicate names we should add the format to the end of the file
ar.json
"foo":"ΩΩΩ
Ω ΩΩΩ"
en.json
"foo":"foo key"
tr.dart
/// * ar => ΩΩΩ
Ω ΩΩΩ
/// * en => foo key
String get foo => 'foo'.tr
Why not parse pubspec.yaml
file and extract what are the asset directories/files and not assume it will be always assets
and recursively all the files it has.
For example, for the next pubspec.yaml
we would only parse the listed files/directories.
...
flutter:
assets: # Lists assets, such as image files
- images/foo.jpeg
- images/bar.jpeg
- sounds/
- assets/subdir/
...
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.