fixed reset 2
This commit is contained in:
@ -380,7 +380,7 @@ class DestinationController extends GetxController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void resetRogaining() async {
|
Future<void> resetRogaining() async {
|
||||||
print("----- resetting --------");
|
print("----- resetting --------");
|
||||||
|
|
||||||
is_in_checkin.value = false;
|
is_in_checkin.value = false;
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:geojson/geojson.dart';
|
import 'package:geojson/geojson.dart';
|
||||||
import 'package:geolocator/geolocator.dart';
|
import 'package:geolocator/geolocator.dart';
|
||||||
@ -447,8 +449,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
destinationController.is_at_start.value ==
|
destinationController.is_at_start.value ==
|
||||||
true
|
true
|
||||||
? ElevatedButton(
|
? ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () async {
|
||||||
destinationController.resetRogaining();
|
await destinationController.resetRogaining();
|
||||||
destinationController.is_in_rog.value =
|
destinationController.is_in_rog.value =
|
||||||
true;
|
true;
|
||||||
destinationController.addToRogaining(
|
destinationController.addToRogaining(
|
||||||
|
|||||||
Reference in New Issue
Block a user