fixed details screen checkin
This commit is contained in:
@ -485,6 +485,7 @@ class DestinationController extends GetxController {
|
|||||||
rogainingCounted.value = true;
|
rogainingCounted.value = true;
|
||||||
chekcs = 0;
|
chekcs = 0;
|
||||||
isInCheckin.value = false;
|
isInCheckin.value = false;
|
||||||
|
Get.back();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
skipGps = false;
|
skipGps = false;
|
||||||
|
|||||||
@ -600,51 +600,64 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
),
|
),
|
||||||
|
|
||||||
// forced start / checkin
|
// forced start / checkin
|
||||||
distanceToDest <=
|
Obx(
|
||||||
destinationController
|
() => distanceToDest <=
|
||||||
.getForcedChckinDistance(destination) &&
|
destinationController
|
||||||
destinationController.isInRog.value == false &&
|
.getForcedChckinDistance(destination)
|
||||||
// destinationController.isInCheckin.value ==
|
? ElevatedButton(
|
||||||
// true &&
|
style: ElevatedButton.styleFrom(
|
||||||
destinationController.rogainingCounted.value ==
|
backgroundColor: Theme.of(context)
|
||||||
false
|
.colorScheme
|
||||||
? ElevatedButton(
|
.secondary),
|
||||||
style: ElevatedButton.styleFrom(
|
onPressed: () async {
|
||||||
backgroundColor: Theme.of(context)
|
//print("~~~~ manual checkin button ~~~~");
|
||||||
.colorScheme
|
if (destination.cp == -1 &&
|
||||||
.secondary),
|
destinationController.isInRog.value ==
|
||||||
onPressed: () async {
|
false &&
|
||||||
//print("~~~~ manual checkin button ~~~~");
|
destinationController
|
||||||
if (destination.cp == -1) {
|
.rogainingCounted.value ==
|
||||||
destinationController.isInRog.value = true;
|
false) {
|
||||||
destinationController.addToRogaining(
|
destinationController.isInRog.value =
|
||||||
destinationController.currentLat,
|
true;
|
||||||
destinationController.currentLon,
|
destinationController.addToRogaining(
|
||||||
destination.location_id!);
|
destinationController.currentLat,
|
||||||
saveGameState();
|
destinationController.currentLon,
|
||||||
ExternalService()
|
destination.location_id!);
|
||||||
.startRogaining()
|
saveGameState();
|
||||||
.then((value) => Get.back());
|
ExternalService()
|
||||||
} else {
|
.startRogaining()
|
||||||
await destinationController
|
.then((value) => Get.back());
|
||||||
.callforCheckin(destination);
|
} else {
|
||||||
}
|
Get.back();
|
||||||
},
|
await destinationController
|
||||||
child: Text(
|
.callforCheckin(destination);
|
||||||
destinationController
|
}
|
||||||
.festuretoDestination(
|
},
|
||||||
indexController
|
child: Text(
|
||||||
.currentFeature[0])
|
destination.cp == -1 &&
|
||||||
.cp ==
|
destinationController
|
||||||
-1
|
.isInRog.value ==
|
||||||
? "ロゲ開始"
|
false &&
|
||||||
: "チェックイン",
|
destinationController
|
||||||
style: TextStyle(
|
.rogainingCounted.value ==
|
||||||
color: Theme.of(context)
|
false
|
||||||
.colorScheme
|
? "ロゲ開始"
|
||||||
.onSecondary)))
|
: destinationController
|
||||||
: ElevatedButton(
|
.isInRog.value ==
|
||||||
onPressed: () {}, child: const Text("ゲーム中")),
|
true &&
|
||||||
|
destination.cp == -1
|
||||||
|
? "ゲーム中"
|
||||||
|
: isAlreadyCheckedIn == true
|
||||||
|
? "ゲーム中"
|
||||||
|
: "チェックイン",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.onSecondary)))
|
||||||
|
: Container(),
|
||||||
|
)
|
||||||
|
// ElevatedButton(
|
||||||
|
// onPressed: () {}, child: const Text("ゲーム中")),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user