fix: Unread badge color

This commit is contained in:
Christian Pauly 2021-03-28 09:21:39 +02:00
parent cb6217c059
commit 49d5f867c9

View File

@ -34,13 +34,16 @@ class UnreadBadgeBackButton extends StatelessWidget {
padding: EdgeInsets.all(4), padding: EdgeInsets.all(4),
margin: EdgeInsets.only(bottom: 4, right: 8), margin: EdgeInsets.only(bottom: 4, right: 8),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.red, color: Theme.of(context).primaryColor,
borderRadius: borderRadius:
BorderRadius.circular(AppConfig.borderRadius), BorderRadius.circular(AppConfig.borderRadius),
), ),
child: Text( child: Text(
'$unreadCount', '$unreadCount',
style: TextStyle(fontSize: 12), style: TextStyle(
fontSize: 12,
color: Colors.white,
),
), ),
), ),
) )