fix: address analysis issues - remove unused import, fix deprecated APIs, update test

This commit is contained in:
fiatcode 2026-04-30 11:40:56 +07:00
parent 85249acc84
commit 07bae466cf
No known key found for this signature in database
32 changed files with 1550 additions and 75 deletions

View file

@ -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;
}
}
}
}