In order to get all dependencies, run:
- Win:
dart .\packages\multi_pub_get.dart .\packages
- Linux:
dart ./packages/multi_pub_get.dart ./packages
If dart is not in your path, you can find it in
flutter\bin\cache\dart-sdk\bin
.
- place
defs
tag in the start of file (afterxmlns
tag ends) - https://petercollingridge.appspot.com/svg-editor
- Conservative
- Remove whitespace
- use CSS
- Convert svg's to
si
format, if usingjovial_svg
loader (see below)
- Activate
jovial_svg
executablesflutter pub global activate jovial_svg
- Run
svg_to_si
against all svgs that you have added one by one (svg_to_si <path to file>
) - Assets now have the following structure:
assets/<subfolder>/svg
<= here you place original svg (DO NOT ADD TO ASSETS in pubspec.yaml)assets/<subfolder>/si
<= here you place compiledsi
files (ADD THIS TO ASSETS in pubspec.yaml)