feat(profile): default avatars via DiceBear "thumbs" (CC0), drop boring_avatars

Replace the flutter_boring_avatars fallback with a friendly DiceBear
"thumbs" face, generated offline (dicebear_core) and deterministically
from the pubkey, rendered as SVG (flutter_svg). The thumbs style is
CC0 1.0 (public domain) — no attribution, AGPL-clean — unlike Multiavatar
whose custom licence restricts use. Style parsed once and per-pubkey SVG
memoized; the CC0 <metadata> block is stripped to keep flutter_svg quiet.
This commit is contained in:
vjrj 2026-07-12 14:12:37 +02:00
parent d85b557f1e
commit d4a9142ee2
6 changed files with 153 additions and 45 deletions

View file

@ -78,7 +78,9 @@ dependencies:
# while the app is foregrounded. Mobile/Linux/macOS only; a no-op on web and
# Windows. Foreground-only by design — background/push is a later concern.
flutter_local_notifications: ^18.0.1
flutter_boring_avatars: ^2.1.0
dicebear_core: ^10.3.0
dicebear_styles: ^10.2.0
flutter_svg: ^2.3.0
dev_dependencies:
flutter_test: