fixed reset 2

This commit is contained in:
Mohamed Nouffer
2023-09-15 21:01:38 +05:30
parent 0ca29a5293
commit 4db56e9c0f
2 changed files with 5 additions and 3 deletions

View File

@ -380,7 +380,7 @@ class DestinationController extends GetxController {
return;
}
void resetRogaining() async {
Future<void> resetRogaining() async {
print("----- resetting --------");
is_in_checkin.value = false;

View File

@ -1,3 +1,5 @@
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:geojson/geojson.dart';
import 'package:geolocator/geolocator.dart';
@ -447,8 +449,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
destinationController.is_at_start.value ==
true
? ElevatedButton(
onPressed: () {
destinationController.resetRogaining();
onPressed: () async {
await destinationController.resetRogaining();
destinationController.is_in_rog.value =
true;
destinationController.addToRogaining(