Co-authored-by: Azareth-Tr <Azareth-Tr@users.noreply.github.com>
Co-authored-by: MENDOZA BALLARDO GAEL RICARDO <gael-meb123@users.noreply.github.com>

vistas
This commit is contained in:
shinra32
2026-05-23 00:45:34 -06:00
parent c58fa571aa
commit 3a3178eb3b
15 changed files with 527 additions and 4237 deletions

View File

@@ -33,7 +33,7 @@ class _MapScreenState extends State<MapScreen> {
enServicio: true,
);
final HouseModel _casa = HouseModel(
final HouseModel _casa = const HouseModel(
id: 'casa-01',
calle: 'Av. Insurgentes 245',
colonia: 'Centro',
@@ -45,6 +45,7 @@ class _MapScreenState extends State<MapScreen> {
Set<Marker> _markers = {};
Set<Circle> _circles = {};
bool _mapLoaded = false;
Timer? _refreshTimer;
// Distancia simulada (metros)
@@ -91,8 +92,8 @@ class _MapScreenState extends State<MapScreen> {
circleId: const CircleId('radio-alerta'),
center: LatLng(_casa.latitud, _casa.longitud),
radius: _casa.radioAlertaMetros.toDouble(),
fillColor: AppTheme.blue.withValues(alpha: 0.08),
strokeColor: AppTheme.blue.withValues(alpha: 0.4),
fillColor: AppTheme.blue.withOpacity(0.08),
strokeColor: AppTheme.blue.withOpacity(0.4),
strokeWidth: 1,
),
};
@@ -135,6 +136,7 @@ class _MapScreenState extends State<MapScreen> {
mapType: MapType.normal,
onMapCreated: (c) {
_mapController.complete(c);
setState(() => _mapLoaded = true);
},
),
@@ -289,7 +291,7 @@ class _LiveBadgeState extends State<_LiveBadge>
decoration: BoxDecoration(
shape: BoxShape.circle,
color: widget.activo
? AppTheme.primary.withValues(alpha: 0.5 + _anim.value * 0.5)
? AppTheme.primary.withOpacity(0.5 + _anim.value * 0.5)
: AppTheme.textSecondary,
),
),
@@ -356,7 +358,7 @@ class _ArrivalBar extends StatelessWidget {
borderRadius: BorderRadius.circular(4),
child: LinearProgressIndicator(
value: progreso,
backgroundColor: AppTheme.primaryMid.withValues(alpha: 0.4),
backgroundColor: AppTheme.primaryMid.withOpacity(0.4),
valueColor:
const AlwaysStoppedAnimation<Color>(AppTheme.primary),
minHeight: 6,