Ahmadre / FlutterIconPicker

An adaptive comprehensive IconPicker for Flutter
MIT License
112 stars 76 forks source link

46 Strip out unused IconPacks (*.dart files) #65

Closed Ahmadre closed 6 months ago

Ahmadre commented 6 months ago

Issues

Closes https://github.com/Ahmadre/FlutterIconPicker/issues/46

Idea & Solution

This PR solves the problem, that all pre-delivered IconPacks are compiled into the Flutter App and increases it's app size unnecessarily (around >= 1mb).

It's good to deliver pre-defined IconPacks, but in Production the unused Packs has to be stripped out from production code.

Ahmadre commented 6 months ago

Build Icon Generator finished:

Flutter Web in Version 3.16.*

App Size before: 23,0 MB App Size after: 21,9 MB (Only Cupertino Pack)