mokr 1.0.0
mokr: ^1.0.0 copied to clipboard
Realistic mock data and images for Flutter UI development. Stable deterministic seeding. For development and prototyping only.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 — 2026-04-16 #
Breaking Changes #
Mokr.randomUser()→Mokr.random.user()Mokr.randomPost()→Mokr.random.post()Mokr.feedPage()→Mokr.feed()Mokr.avatarUrl()→Mokr.image.avatar()Mokr.imageUrl()→Mokr.image.url()Mokr.bannerUrl()→Mokr.image.banner()Mokr.clearSlot()→Mokr.slots.clear()Mokr.clearAll()→Mokr.slots.clearAll()pinparameter removed — use deterministic seeds instead (Mokr.user('my_seed')never clears)shared_preferencesdependency removed;path_provideradded
Fixed #
- Unsplash prewarm now fires in background —
init()returns immediately
New #
Mokr.text.*namespace —name,handle,bio,caption,comment,initials, and moreMokr.image.provider(),Mokr.image.meta()—ImageProviderandMokrImageMetaaccess levelsMokrImageMeta.aspectRatio— synchronous, known before image loads; eliminates layout jumpsMokrUserBuilder,MokrPostBuilder,MokrFeedBuilder— builder widgets for total layout freedomMokrImage.aspectRatioFromSource— wraps image inAspectRatiousing source dimensionsMokr.cache.*namespace —warm(),clear(),status()for Unsplash URL cache lifecycleMockUser.avatarProvider,MockPost.imageMeta—ImageProviderandMokrImageMetaon models directly
0.1.0 — 2026-04-05 #
Added #
- Four generation modes: deterministic, slot, pinned slot, fresh random
Mokr.user(),Mokr.randomUser(),Mokr.post(),Mokr.randomPost(),Mokr.feedPage()Mokr.avatarUrl(),Mokr.imageUrl(),Mokr.bannerUrl()MokrAvatar,MokrImage,MokrPostCard,MokrUserTilewidgets- 15 image categories via
MokrCategory - Picsum default provider; Unsplash opt-in via
Mokr.init(unsplashKey:) - Slot persistence via
shared_preferences - FNV-1a 32-bit hash for determinism across hot reloads and restarts