todos-contra-el-fuego-mobile/lib/fireMarker.dart
vjrj 270d9a569e Remove info-level lint issues: avoid_dynamic_calls, use_build_context_synchronously, avoid_print, non_constant_identifier_names
- Type dynamic map accesses properly (avoid_dynamic_calls in genericMap, globalFiresBottomStats)
- Capture context before async gaps (use_build_context_synchronously in genericMap, genericMapBottom, globalFiresBottomStats)
- Replace print() with debugPrint() (avoid_print in firesApi.dart)
- Rename fireMarker function and _LayerSelectorButton to camelCase
- Rename variable FireNotifications to fireNotifications
- Fix no_default_cases in switch statements (add missing subscriptionConfirm case)
- Make FireNotification fields final, remove @immutable from YourLocation (mutable)
- Make monitoredAreas field final in _ViewModel
- Update subscribeViaApi to use copyWith instead of direct field assignment
2026-03-11 16:53:48 +01:00

24 lines
545 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';
import 'fireMarkType.dart';
import 'fireMarkerIcon.dart';
/// Create a Marker with custom positioning for fires and other map objects
Marker fireMarker(
LatLng pos,
FireMarkType type, [
VoidCallback? onTap,
]) {
return Marker(
point: pos,
width: 80.0,
height: 80.0,
alignment: Alignment.center,
child: GestureDetector(
onTap: onTap,
child: FireMarkerIcon(type),
),
);
}