From d5871089f2faaaf6822d85957552af1cf6d0631d Mon Sep 17 00:00:00 2001 From: Khen Solomon Lethil Date: Sun, 12 Jun 2022 08:51:59 +0200 Subject: [PATCH] Theme.of(context).errorColor --- lib/view/launch/poll/main.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/view/launch/poll/main.dart b/lib/view/launch/poll/main.dart index 111fa62..c724cdb 100644 --- a/lib/view/launch/poll/main.dart +++ b/lib/view/launch/poll/main.dart @@ -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: () {