Update colors
This commit is contained in:
@@ -626,7 +626,7 @@ class _DeviceDetailViewState extends State<DeviceDetailView> {
|
||||
_buildTalkgroupCategory(
|
||||
'Static',
|
||||
_deviceProfile!.staticSubscriptions,
|
||||
Colors.blue,
|
||||
Theme.of(context).colorScheme.primary,
|
||||
Icons.link,
|
||||
canDelete: true,
|
||||
),
|
||||
|
||||
@@ -150,14 +150,14 @@ class _LastHeardItemTile extends StatelessWidget {
|
||||
|
||||
const _LastHeardItemTile({required this.item});
|
||||
|
||||
Color _getEventColor() {
|
||||
Color _getEventColor(BuildContext context) {
|
||||
switch (item.event) {
|
||||
case 'Session-Start':
|
||||
return Colors.green;
|
||||
case 'Session-Stop':
|
||||
return Colors.red;
|
||||
default:
|
||||
return Colors.blue;
|
||||
return Theme.of(context).colorScheme.primary;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ class _LastHeardItemTile extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final eventColor = _getEventColor();
|
||||
final eventColor = _getEventColor(context);
|
||||
|
||||
return Card(
|
||||
margin: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
|
||||
@@ -281,14 +281,14 @@ class _ActivityItemTile extends StatelessWidget {
|
||||
|
||||
const _ActivityItemTile({required this.item});
|
||||
|
||||
Color _getEventColor() {
|
||||
Color _getEventColor(BuildContext context) {
|
||||
switch (item.event) {
|
||||
case 'Session-Start':
|
||||
return Colors.green;
|
||||
case 'Session-Stop':
|
||||
return Colors.red;
|
||||
default:
|
||||
return Colors.blue;
|
||||
return Theme.of(context).colorScheme.primary;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ class _ActivityItemTile extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final eventColor = _getEventColor();
|
||||
final eventColor = _getEventColor(context);
|
||||
|
||||
return ListTile(
|
||||
dense: true,
|
||||
|
||||
Reference in New Issue
Block a user