Skip to content

Instantly share code, notes, and snippets.

git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
flutter pub cache repair
@huuhieupham189
huuhieupham189 / precache.dart
Created April 5, 2021 15:36
Flutter Svg Precache
Future.wait([
precachePicture(
ExactAssetPicture(SvgPicture.svgStringDecoder, 'assets/my_icon.svg'),
null,
),
precachePicture(
ExactAssetPicture(SvgPicture.svgStringDecoder, 'assets/my_asset.svg'),
null,
),
// other SVGs or images here