fix: address analysis issues - remove unused import, fix deprecated APIs, update test
This commit is contained in:
parent
85249acc84
commit
07bae466cf
32 changed files with 1550 additions and 75 deletions
|
|
@ -6,9 +6,7 @@ class StatusScreen extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Event Log'),
|
||||
),
|
||||
appBar: AppBar(title: const Text('Event Log')),
|
||||
body: ListView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
children: [
|
||||
|
|
@ -31,10 +29,7 @@ class StatusScreen extends StatelessWidget {
|
|||
Widget _buildPlaceholderEvent(String type, String detail, String extra) {
|
||||
return Card(
|
||||
child: ListTile(
|
||||
leading: Icon(
|
||||
_getIconForType(type),
|
||||
color: _getColorForType(type),
|
||||
),
|
||||
leading: Icon(_getIconForType(type), color: _getColorForType(type)),
|
||||
title: Text(type),
|
||||
subtitle: Text('$detail $extra'.trim()),
|
||||
),
|
||||
|
|
@ -74,4 +69,4 @@ class StatusScreen extends StatelessWidget {
|
|||
return Colors.grey;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue