network_or_asset_loader 0.0.8
network_or_asset_loader: ^0.0.8 copied to clipboard
A Flutter package that provides a network-based asset loader for easy_localization with smart fallback and caching capabilities.
0.0.8 #
- Bug Fix:
saveTranslationnow writes content to the file (caching was previously non-functional) - Bug Fix: Fixed inverted cache duration logic in
localTranslationExists— renamedignoreCacheDurationtocheckCacheDurationfor clarity - Bug Fix: Fixed timeout race condition — replaced
Future.anywith proper.timeout()to avoid leaked HTTP requests - Improvement: Cache is now stored in
getApplicationSupportDirectory()instead ofgetTemporaryDirectory()for reliable persistence - Improvement:
localeUrlis now strongly typed asString Function(String)instead ofFunction - Feature: Added
httpClientparameter — inject a customhttp.Clientfor auth headers, interceptors, or testing - Feature: Added
forceRefreshparameter — bypass cache and always fetch from the network - Feature: Added
onSourceResolvedcallback — get notified which source translations were loaded from (cache, network, expiredCache, or asset) - Feature: Added
TranslationSourceenum for source tracking
0.0.6 #
- Minor updates and improvements
0.0.5 #
- Updated GitHub Actions workflow to use latest stable Flutter version
- Fixed workflow compatibility issues
0.0.4 #
- Fixed library file naming to use underscores (network_or_asset_loader.dart)
- Updated all import statements to use correct package and file names
- Added GitHub Actions workflow for automated publishing
- Minor documentation improvements
0.0.3 #
- Breaking Change: Renamed class from
EasyNetworkAssetLoadertoNetworkOrAssetLoader - Breaking Change: Package name changed from
network-or-asset-loadertonetwork_or_asset_loader - Improved naming clarity and consistency
0.0.2 #
- Breaking Change: Renamed class from
WadNetworkAssetLoadertoEasyNetworkAssetLoader - Updated
connectivity_plusdependency to version 7.0.0 - Fixed connectivity check to work with new API that returns
List<ConnectivityResult> - Added comprehensive documentation comments to all public API elements
- Improved code documentation and examples
0.0.1 #
- Initial release
- Network-based translation loading with smart caching
- Automatic fallback to local cache and bundled assets
- Configurable cache duration and network timeout
- Support for easy_localization package