Skip to content

Commit

Permalink
fix: chips light/dark icons (#580)
Browse files Browse the repository at this point in the history
* fix: chips light/dark icons

* refactor: don't subscribe to whole theme
  • Loading branch information
dtscalac authored Jun 27, 2024
1 parent 02957dd commit aeb6f24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions catalyst_voices/lib/widgets/chips/voices_chip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class VoicesChip extends StatelessWidget {

@override
Widget build(BuildContext context) {
final iconTheme = IconTheme.of(context).copyWith(size: 18);
return DecoratedBox(
decoration: BoxDecoration(
color: backgroundColor,
Expand All @@ -87,7 +88,7 @@ class VoicesChip extends StatelessWidget {
Padding(
padding: const EdgeInsetsDirectional.only(end: 8),
child: IconTheme(
data: const IconThemeData(size: 18),
data: iconTheme,
child: leading!,
),
),
Expand All @@ -99,7 +100,7 @@ class VoicesChip extends StatelessWidget {
Padding(
padding: const EdgeInsetsDirectional.only(start: 8),
child: IconTheme(
data: const IconThemeData(size: 18),
data: iconTheme,
child: trailing!,
),
),
Expand Down

0 comments on commit aeb6f24

Please sign in to comment.