Skip to content

Commit

Permalink
fix(main): ListItem disabled color (#8)
Browse files Browse the repository at this point in the history
* fix(main): ListItem disabled color

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
2 people authored and thelukewalton committed Apr 12, 2024
1 parent 64879e1 commit ac996d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/components/list_item/list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ class ZetaListItem extends StatelessWidget {
if (subtitle != null)
DefaultTextStyle(
style: ZetaTextStyles.titleSmall.copyWith(
color: zetaColors.textSubtle,
color: enabled ? zetaColors.textSubtle : zetaColors.textDisabled,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
child: subtitle ?? const SizedBox(),
),
DefaultTextStyle(
style: _titleTextStyle.copyWith(
color: enabled ? zetaColors.textDefault : zetaColors.textSubtle,
color: enabled ? zetaColors.textDefault : zetaColors.textDisabled,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
Expand Down

0 comments on commit ac996d9

Please sign in to comment.