Skip to content

A script created in JavaScript to check the unused libraries and asset’s your app. 


Notifications You must be signed in to change notification settings

Martin-Fenocchio/unused-assets-and-libraries-for-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unused assets and libraries checker

A script created with JavaScript to check the unused libraries and asset’s your app.

It gives you a list of the unused libraries and assets like this:

The project [name of your app] have 20 unused dependencies, these are:

cropperx
cupertino_icons
custom_image_crop
file_selector
flutter_isolate
flutter_launcher_icons
... 13 more

You can remove all these dependencies executing this command: 

flutter pub remove cropperx cupertino_icons custom_image_crop... 


also the project have 40 unused assets, these are:

assets/icons/cancel.svg
assets/icons/check.svg
assets/icons/close.svg
assets/icons/visibilityOff.svg
assets/icons/visibilityOn.svg
... 26 more

How install


It's easy, with a few steps you will able to run the script.

1 - Clone the Github's repository:

Git clone https://github.com/Novak-Fenocchio/Unused-assets-and-libraries-for-flutter.git

2 - Download the dependencies:

npm install

3 - Set the environment's vars:

Create a9 .env file in the root directory of the cloned project

projectRootPath= [the directory of your flutter's project]

Example: projectRootPath= Users/**/development/my-flutter-app

4 - Run the script:

Run node index.js

About

A script created in JavaScript to check the unused libraries and asset’s your app. 


Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published