wallpapers_kit 0.2.1
wallpapers_kit: ^0.2.1 copied to clipboard
A Flutter wallpaper gallery toolkit: grid, category strip, full-screen viewer, favorites, set-as-wallpaper and download — themed to auto-match your app's light/dark mode.
0.2.1 #
- Reverted
permission_handlerback to^12.0.3(was^13.0.0as of 0.2.0).permission_handler13.0.0/13.0.1 both hard-requirepermission_handler_android ^14.0.0, which needscompileSdk 37— a platform that isn't reliably resolvable from Google's SDK repository yet (only37.0/37.1/37.2-beta*sub-versions exist there, not a plainandroid-37), breaking the build for every consumer with no way to work around it via a normal dependency constraint (onlydependency_overridescan bypass it, and those never propagate from a package to its consumers).permission_handler12.0.3 depends onpermission_handler_android ^13.0.0instead, which only needscompileSdk 35(already commonly installed) and resolves cleanly with zero consumer-side configuration. If you added adependency_overrides: permission_handler_android: 13.0.1workaround for 0.2.0, it's safe to remove after upgrading to this version. - Removed the now-unnecessary
compileSdk = maxOf(flutter.compileSdkVersion, 37)requirement from the install instructions — plainflutter.compileSdkVersion(or any recent compileSdk) is enough again. WallpaperGridView/WallpaperFavoritesViewgainedonPageChanged(forwarded to theWallpaperViewerthey open — fires on every swipe to a different wallpaper) andscrollMilestoneWallpaperCount+onScrollMilestone(fires once per roughly N wallpapers scrolled past in the grid itself, in either direction). Both were previously only available on a directly-constructedWallpaperViewer; useful for a scroll- or swipe-based ad cadence (e.g. an interstitial every 30 wallpapers scrolled) without reimplementing the grid.
0.2.0 #
- Raised
permission_handlerto^13.0.0anddevice_info_plusto^13.2.0(was^12.0.3/^12.4.0) — the previous constraints excluded the current stable release of both, which pub.flutter-io.cn's dependency-freshness check flags.permission_handler13.0.0 requires AndroidcompileSdk 37; the example app now setscompileSdk = maxOf(flutter.compileSdkVersion, 37)to guarantee that floor. - Shortened the
pubspec.yamldescription to fit pub.flutter-io.cn's 180-character limit (was 221 characters, scoring 0/10 on "Provide a valid pubspec.yaml"). - Trimmed the README to the essential install/usage steps.
0.1.0 #
- Initial release.
Wallpapermodel — bring your own list from anywhere (network, assets, backend).WallpaperGridView,WallpaperCategoryStrip,WallpaperViewer,WallpaperFavoritesView— all themed viaTheme.of(context), so they follow your app's light/darkThemeModeautomatically.WallpaperActions— set wallpaper (home/lock/both) and download to gallery.WallpaperFavoritesStore— pluggable favorites persistence, with aSharedPreferences-backed default.onBeforeSetWallpaper/onBeforeDownloadhooks so host apps can gate actions behind their own ads, dialogs, or paywalls — the package itself ships no ad dependency.