This commit is contained in:
futpib 2026-01-25 12:36:39 +00:00 committed by GitHub
commit 2f67f6d5ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,20 +192,19 @@ class ArtistPageHeader extends HookConsumerWidget {
),
),
const Gap(5),
Flexible(
child: AutoSizeText(
context.l10n.followers(
artist.followers == null
? double.infinity
: PrimitiveUtils.toReadableNumber(
artist.followers!.toDouble(),
),
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
minFontSize: 12,
).muted(),
),
if (artist.followers != null)
Flexible(
child: AutoSizeText(
context.l10n.followers(
PrimitiveUtils.toReadableNumber(
artist.followers!.toDouble(),
),
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
minFontSize: 12,
).muted(),
),
if (constrains.mdAndUp) ...[
const Gap(20),
actions,