Skip to content

Commit 57d1af5

Browse files
committed
fix: chip height
1 parent 2a144f1 commit 57d1af5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/theme.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ ThemeData _phoenixTheme({
122122
chipTheme: _createChipTheme(
123123
selectedColor: colorScheme.primary,
124124
colorScheme: colorScheme,
125+
textStyle: const TextStyle(fontSize: 14, height: 1.08),
125126
),
126127
);
127128
}
@@ -579,6 +580,7 @@ ListTileThemeData _createListTileTheme(ColorScheme colorScheme) {
579580
ChipThemeData _createChipTheme({
580581
required Color selectedColor,
581582
required ColorScheme colorScheme,
583+
required TextStyle? textStyle,
582584
}) {
583585
final isHC = colorScheme.primary == Colors.black ||
584586
colorScheme.primary == Colors.white;
@@ -589,11 +591,9 @@ ChipThemeData _createChipTheme({
589591

590592
return ChipThemeData(
591593
selectedColor: selectedBackgroundColor.withOpacity(isHC ? 1 : 0.4),
592-
labelStyle: TextStyle(
593-
color: colorScheme.onSurface,
594-
),
594+
labelStyle: textStyle?.copyWith(color: colorScheme.onSurface),
595595
checkmarkColor: selectedForeGroundColor,
596-
secondaryLabelStyle: TextStyle(
596+
secondaryLabelStyle: textStyle?.copyWith(
597597
color: selectedForeGroundColor,
598598
fontWeight: isHC ? FontWeight.bold : FontWeight.normal,
599599
),

0 commit comments

Comments
 (0)