- introPage.dart: Convert fireItems to proper static function closure - mainDrawer.dart: Convert unreadCount int to String for Text widget
27 lines
803 B
Dart
27 lines
803 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'colors.dart';
|
|
import 'fireMarkType.dart';
|
|
|
|
class FireMarkerIcon extends StatelessWidget {
|
|
|
|
const FireMarkerIcon(this.type, {super.key});
|
|
final FireMarkType type;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
switch (type) {
|
|
case FireMarkType.position:
|
|
return const Icon(Icons.location_on, color: fires600, size: 50.0);
|
|
case FireMarkType.pixel:
|
|
return const Icon(Icons.brightness_1, color: fires900, size: 3.0);
|
|
case FireMarkType.fire:
|
|
return Image.asset('images/fire-marker-l.png');
|
|
case FireMarkType.industry:
|
|
return Image.asset('images/industry-marker-reg.png');
|
|
case FireMarkType.falsePos:
|
|
default:
|
|
return Image.asset('images/industry-marker.png');
|
|
}
|
|
}
|
|
}
|