feat(profile): generated default avatars (boring-avatars beam) from pubkey
People without a photo or seed illustration now get a deterministic pattern avatar drawn from their pubkey (flutter_boring_avatars, MIT), in an earthy seed-tone palette, replacing the coloured-initial disc. Same pubkey renders the same picture on every device with nothing shared.
This commit is contained in:
parent
e65d82017a
commit
1c2b3d5e8d
6 changed files with 59 additions and 45 deletions
|
|
@ -6,7 +6,7 @@ import 'seed_glyph.dart';
|
|||
/// media server, like offer photos);
|
||||
/// - `tane:seed:<name>` — one of our own seed illustrations (for people who'd
|
||||
/// rather not put a real photo — pseudonymity stays the default);
|
||||
/// - empty — the deterministic coloured disc with the name's initial.
|
||||
/// - empty — a pattern avatar generated deterministically from the pubkey.
|
||||
const avatarGlyphPrefix = 'tane:seed:';
|
||||
|
||||
/// The seed illustrations offered as ready-made avatars. Names are the stable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue