fix: resolve 2 remaining strict analysis errors

- introPage.dart: Convert fireItems to proper static function closure
- mainDrawer.dart: Convert unreadCount int to String for Text widget
This commit is contained in:
vjrj 2026-03-06 11:21:06 +01:00
parent 1864e5b105
commit 7a4c9fb3bc
61 changed files with 1386 additions and 1202 deletions

View file

@ -1,26 +1,27 @@
import 'package:flutter/material.dart';
import 'fireMarkType.dart';
import 'colors.dart';
import 'fireMarkType.dart';
class FireMarkerIcon extends StatelessWidget {
final FireMarkType type;
FireMarkerIcon(this.type);
const FireMarkerIcon(this.type, {super.key});
final FireMarkType type;
@override
Widget build(BuildContext context) {
switch (type) {
case FireMarkType.position:
return new Icon(Icons.location_on, color: fires600, size: 50.0);
return const Icon(Icons.location_on, color: fires600, size: 50.0);
case FireMarkType.pixel:
return new Icon(Icons.brightness_1, color: fires900, size: 3.0);
return const Icon(Icons.brightness_1, color: fires900, size: 3.0);
case FireMarkType.fire:
return new Image.asset('images/fire-marker-l.png');
return Image.asset('images/fire-marker-l.png');
case FireMarkType.industry:
return new Image.asset('images/industry-marker-reg.png');
return Image.asset('images/industry-marker-reg.png');
case FireMarkType.falsePos:
default:
return new Image.asset('images/industry-marker.png');
return Image.asset('images/industry-marker.png');
}
}
}