use TextScaler for badge size

This commit is contained in:
Adam Velebil 2024-04-17 09:17:01 +02:00
parent 0349b37065
commit 8d128e74eb
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -708,7 +708,7 @@ class CapabilityBadge extends StatelessWidget {
backgroundColor: colorScheme.secondaryContainer,
textColor: colorScheme.onSecondaryContainer,
padding: const EdgeInsets.symmetric(horizontal: 6),
largeSize: 20,
largeSize: MediaQuery.of(context).textScaler.scale(20),
label: Text(
capability.getDisplayName(l10n),
),