updated cp start back to minus one and auto center timer to 10 sec

This commit is contained in:
2024-03-05 12:20:24 +05:30
parent eaee1ce820
commit cd258744fc
3 changed files with 13 additions and 13 deletions

View File

@ -88,7 +88,7 @@ class _MapWidgetState extends State<MapWidget> {
Icons.circle,
size: 6.0,
),
i.properties!['cp'] == -1 || i.properties!['cp'] == 0
i.properties!['cp'] == -1
? Transform.translate(
offset: Offset(18, 0),
child: Transform.rotate(
@ -167,8 +167,7 @@ class _MapWidgetState extends State<MapWidget> {
}
void _startIdleTimer() {
_timer =
Timer(const Duration(milliseconds: (1000 * 60 * 10)), _centerMapOnUser);
_timer = Timer(const Duration(milliseconds: (1000 * 10)), _centerMapOnUser);
}
void _resetTimer() {
@ -180,7 +179,7 @@ class _MapWidgetState extends State<MapWidget> {
indexController.mapController.move(
LatLng(
destinationController.currentLat, destinationController.currentLon),
15.0);
17.0);
}
@override