removed distance to checkin
This commit is contained in:
@ -137,12 +137,8 @@ class DrawerPage extends StatelessWidget {
|
||||
onTap: () {
|
||||
String token = indexController.currentUser[0]['token'];
|
||||
AuthService.deleteUser(token).then((value) {
|
||||
if (value.isNotEmpty) {
|
||||
indexController.logout();
|
||||
Get.toNamed(AppPages.TRAVEL);
|
||||
Get.snackbar("ユーザーデータを削除する",
|
||||
"データを削除するためにユーザーの同意が設定されています アプリとサーバーでユーザーデータが削除されました");
|
||||
}
|
||||
});
|
||||
},
|
||||
)
|
||||
|
||||
@ -604,15 +604,10 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
),
|
||||
|
||||
// forced start / checkin
|
||||
Obx(
|
||||
() => distanceToDest <=
|
||||
destinationController
|
||||
.getForcedChckinDistance(destination)
|
||||
? ElevatedButton(
|
||||
Obx(() => ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary),
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.secondary),
|
||||
onPressed: () async {
|
||||
//print("~~~~ manual checkin button ~~~~");
|
||||
if (destination.cp == -1 &&
|
||||
@ -621,8 +616,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
destinationController
|
||||
.rogainingCounted.value ==
|
||||
false) {
|
||||
destinationController.isInRog.value =
|
||||
true;
|
||||
destinationController.isInRog.value = true;
|
||||
destinationController.addToRogaining(
|
||||
destinationController.currentLat,
|
||||
destinationController.currentLon,
|
||||
@ -642,15 +636,13 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
},
|
||||
child: Text(
|
||||
destination.cp == -1 &&
|
||||
destinationController
|
||||
.isInRog.value ==
|
||||
destinationController.isInRog.value ==
|
||||
false &&
|
||||
destinationController
|
||||
.rogainingCounted.value ==
|
||||
false
|
||||
? "ロゲ開始"
|
||||
: destinationController
|
||||
.isInRog.value ==
|
||||
: destinationController.isInRog.value ==
|
||||
true &&
|
||||
destination.cp == -1
|
||||
? "ゲーム中"
|
||||
@ -660,9 +652,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSecondary)))
|
||||
: Container(),
|
||||
)
|
||||
.onSecondary))))
|
||||
// ElevatedButton(
|
||||
// onPressed: () {}, child: const Text("ゲーム中")),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user