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,8 +1,9 @@
import 'dart:async';
import 'package:fires_flutter/models/yourLocation.dart';
import 'package:flutter/material.dart';
import 'models/yourLocation.dart';
/// Open a places dialog for selecting a location.
/// Currently returns a default location as the google_places_autocomplete package
@ -10,9 +11,9 @@ import 'package:flutter/material.dart';
/// TODO: Implement with a modern null-safe places API integration
Future<YourLocation> openPlacesDialog(GlobalKey<ScaffoldState> sc) async {
// Show a snackbar informing the user that this feature is not yet available
final messenger = ScaffoldMessenger.of(sc.currentContext!);
final ScaffoldMessengerState messenger = ScaffoldMessenger.of(sc.currentContext!);
messenger.showSnackBar(
SnackBar(
const SnackBar(
content: Text(
'Place selection is currently unavailable. Please use manual location entry.'),
),