Skip to content

Commit

Permalink
Theme.of(context).errorColor
Browse files Browse the repository at this point in the history
  • Loading branch information
Khen Solomon Lethil committed Jun 12, 2022
1 parent 7ee13ed commit d587108
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/view/launch/poll/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,17 @@ class _View extends _State with _Bar {
Icons.person,
// icon: Icons.check_rounded,
// iconColor: hasSelected ? Theme.of(context).highlightColor : null,
color: hasSelected ? Theme.of(context).errorColor : Theme.of(context).focusColor,
// color: hasSelected ? Theme.of(context).errorColor : Theme.of(context).hintColor,
color: hasSelected ? null : Theme.of(context).hintColor,
),
selected: hasSelected,
selectedColor: Theme.of(context).errorColor,
title: Text(member.name),
trailing: Icon(
// hasSelected ? Icons.remove_done_outlined : Icons.done_outlined,
Icons.done_outlined,
color: hasVoted ? Theme.of(context).primaryColorDark : Colors.transparent,
// color: hasVoted ? Theme.of(context).primaryColorDark : Colors.transparent,
color: hasVoted ? Theme.of(context).hintColor : Colors.transparent,
),
// remove_done_outlined
onTap: () {
Expand Down

0 comments on commit d587108

Please sign in to comment.