Skip to content

Commit

Permalink
fix: chip height
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Nov 14, 2024
1 parent 2a144f1 commit 57d1af5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ ThemeData _phoenixTheme({
chipTheme: _createChipTheme(
selectedColor: colorScheme.primary,
colorScheme: colorScheme,
textStyle: const TextStyle(fontSize: 14, height: 1.08),
),
);
}
Expand Down Expand Up @@ -579,6 +580,7 @@ ListTileThemeData _createListTileTheme(ColorScheme colorScheme) {
ChipThemeData _createChipTheme({
required Color selectedColor,
required ColorScheme colorScheme,
required TextStyle? textStyle,
}) {
final isHC = colorScheme.primary == Colors.black ||
colorScheme.primary == Colors.white;
Expand All @@ -589,11 +591,9 @@ ChipThemeData _createChipTheme({

return ChipThemeData(
selectedColor: selectedBackgroundColor.withOpacity(isHC ? 1 : 0.4),
labelStyle: TextStyle(
color: colorScheme.onSurface,
),
labelStyle: textStyle?.copyWith(color: colorScheme.onSurface),
checkmarkColor: selectedForeGroundColor,
secondaryLabelStyle: TextStyle(
secondaryLabelStyle: textStyle?.copyWith(
color: selectedForeGroundColor,
fontWeight: isHC ? FontWeight.bold : FontWeight.normal,
),
Expand Down

0 comments on commit 57d1af5

Please sign in to comment.