mirror of
https://github.com/git-touch/git-touch
synced 2025-02-21 22:07:51 +01:00
fix(gh): reaction active color
This commit is contained in:
parent
381c3ef896
commit
97a524ecf9
@ -30,12 +30,6 @@ class GhEmojiAction extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _GhEmojiActionState extends State<GhEmojiAction> {
|
||||
Decoration _getDecorationByKey(String emojiKey) {
|
||||
return BoxDecoration(
|
||||
color: _hasReacted(emojiKey) ? PrimerColors.blue000 : Colors.transparent,
|
||||
);
|
||||
}
|
||||
|
||||
get payload => widget.payload;
|
||||
|
||||
onReaction(String emojiKey) async {
|
||||
@ -81,7 +75,13 @@ mutation {
|
||||
},
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(4),
|
||||
decoration: _getDecorationByKey(emojiKey),
|
||||
decoration: BoxDecoration(
|
||||
color: _hasReacted(emojiKey)
|
||||
? (theme.brightness == Brightness.dark
|
||||
? PrimerColors.blue900
|
||||
: PrimerColors.blue000)
|
||||
: Colors.transparent,
|
||||
),
|
||||
child: Wrap(
|
||||
crossAxisAlignment: WrapCrossAlignment.center,
|
||||
children: <Widget>[
|
||||
|
Loading…
x
Reference in New Issue
Block a user