update manual start
This commit is contained in:
@ -509,7 +509,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
as GeoJsonFeature<GeoJsonMultiPoint>;
|
||||
Position position =
|
||||
await Geolocator.getCurrentPosition(
|
||||
desiredAccuracy: LocationAccuracy.lowest,
|
||||
desiredAccuracy:
|
||||
LocationAccuracy.bestForNavigation,
|
||||
forceAndroidLocationManager: true);
|
||||
print("------- position -------- $position");
|
||||
Destination ds = Destination(
|
||||
@ -531,17 +532,40 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
color:
|
||||
Theme.of(context).colorScheme.onPrimary),
|
||||
)),
|
||||
SizedBox(width: 10,),
|
||||
SizedBox(
|
||||
width: 10,
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.secondary),
|
||||
onPressed: () async {
|
||||
destinationController.CallforCheckin(
|
||||
final Destination dd =
|
||||
destinationController.festuretoDestination(
|
||||
indexController.currentFeature[0]));
|
||||
indexController.currentFeature[0]);
|
||||
if (dd.cp == -1) {
|
||||
destinationController.is_in_rog.value = true;
|
||||
destinationController.addToRogaining(
|
||||
destinationController.current_lat,
|
||||
destinationController.current_lon,
|
||||
indexController.currentDestinationFeature[0]
|
||||
.location_id!);
|
||||
ExternalService()
|
||||
.StartRogaining()
|
||||
.then((value) => Get.back());
|
||||
} else {
|
||||
destinationController.CallforCheckin(dd);
|
||||
}
|
||||
},
|
||||
child: Text("チェックイン",
|
||||
child: Text(
|
||||
destinationController
|
||||
.festuretoDestination(
|
||||
indexController
|
||||
.currentFeature[0])
|
||||
.cp ==
|
||||
-1
|
||||
? "ロゲ開始"
|
||||
: "チェックイン",
|
||||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
@ -979,4 +1003,4 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user