fix: resolver conflicto ServiceStatus y tipo nullable en dashboard
- hide ServiceStatus de geolocator para evitar conflicto con modelo propio - usar _selectedHour! en getFormatTime (ya esta guardado por null-check previo) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e56807b75e
commit
9cde46b88a
@@ -1,7 +1,7 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:geolocator/geolocator.dart';
|
||||
import 'package:geolocator/geolocator.dart' hide ServiceStatus;
|
||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:intl/intl.dart';
|
||||
@@ -556,7 +556,7 @@ class _DashboardViewState extends State<DashboardView> {
|
||||
const Icon(Icons.access_time, size: 17, color: Color(0xFF42A4EF)),
|
||||
const SizedBox(width: 6),
|
||||
Text(
|
||||
ScheduleEntity.getFormatTime(_selectedHour),
|
||||
ScheduleEntity.getFormatTime(_selectedHour!),
|
||||
style: const TextStyle(fontSize: 13),
|
||||
),
|
||||
const Spacer(),
|
||||
|
||||
Reference in New Issue
Block a user