- introPage.dart: Convert fireItems to proper static function closure - mainDrawer.dart: Convert unreadCount int to String for Text widget
24 lines
832 B
Dart
24 lines
832 B
Dart
import 'dart:async';
|
|
|
|
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
|
|
/// is not maintained and doesn't support null safety.
|
|
/// 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 ScaffoldMessengerState messenger = ScaffoldMessenger.of(sc.currentContext!);
|
|
messenger.showSnackBar(
|
|
const SnackBar(
|
|
content: Text(
|
|
'Place selection is currently unavailable. Please use manual location entry.'),
|
|
),
|
|
);
|
|
|
|
// Return a default location
|
|
return YourLocation.noLocation;
|
|
}
|