dynamic_cached_fonts 0.3.1
dynamic_cached_fonts: ^0.3.1 copied to clipboard
A customizable dynamic font loader for flutter with caching enabled.
0.3.1 #
Dependency Updates
- Added support for the latest version of
firebase_storage. Minimum supported version continues to be v8.0.0
0.3.0 #
Stable Null safety release
0.2.0 #
Dependency Updates
- Minimum version constraint for
flutter_cache_manageris now v3.1.2
Features/Updates
verboseLogis not deprecated in all APIs.DynamicCachedFonts.toggleVerboseLoggingshould be used instead to toggle verbose logging
It's likely that support for
verboseLogwill end in v1.0.0.
loadCachedFontandloadCachedFamilynow throws aStateErrorif the font has not been cachedUnsupportedErroris thrown if the downloaded file is not a .ttf or .otf font fileDynamicCachedFonts.loadandloadCachedFamilynow returnFuture<Iterable<FileInfo>>instead ofvoidcacheFontandloadCachedFontnow returnFuture<FileInfo>instead ofvoid
No migration is required for the above 2 changes since a method/variable that expects
voidallows any other type as well.
DynamicCachedFonts.loadnow exits and throws immediately if font has already been loaded- Add
DynamicCachedFonts.customandRawDynamicCachedFonts.custommethods to make the API testable cacheKeyFromUrlis now exported for testing. It generates the cache key, used by the cache manager, from a given url
Internal Updates
- Improve file format verification logic
- Update
DynamicCachedFonts.loadlogic
0.1.0 #
- Add complete web cache support
- Update documentation for some public and private APIs
- Disable RawDynamicCachedFonts' default constructor
- Improve logging in
RawDynamicCachedFonts.loadCachedFontand font extension verification
0.0.1 #
Initial Release (Non null-safe)