Deterministic Title Placeholder Painter

Give items with no artwork a cover of their own by hashing the title into a stable gradient and packaging it, plus measured text and a badge, as a custom Painter you can hand straight to an image loader's placeholder, error and fallback slots — covering what makes the hash actually deterministic, measuring text outside a layout pass, and reporting an intrinsic size. Use when coverless rows all look identical, when a generated colour changes between runs or platforms, when placeholder text spills outside its tile, or when a null image model leaves a blank square.

maxrave-dev af32fad 7.7 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/deterministic-title-placeholder-painter commit af32fada80

Frequently asked questions

npx skillmds@latest add maxrave-dev/deterministic-title-placeholder-painter