version 4.8.17 -- カレンダーで今日以降しか選べないようにした

This commit is contained in:
2024-08-10 09:11:29 +09:00
parent bdf6dd3c04
commit f9a2bae9a9
7 changed files with 25 additions and 21 deletions

View File

@ -382,7 +382,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
? "in_game".tr
: isAlreadyCheckedIn == true
? "in_game".tr
: destinationController.isInRog.value == true
: (destinationController.isInRog.value == true || (destination.buy_point != null && destination.buy_point! > 0))
? "checkin".tr
: "rogaining_not_started".tr,
style: TextStyle(color: Theme.of(context).colorScheme.onSecondary),
@ -564,7 +564,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
//checkin or remove checkin
destinationController.isInRog.value == true
(destinationController.isInRog.value == true || (destination.buy_point != null && destination.buy_point! > 0))
&& (distanceToDest <=
destinationController.getForcedChckinDistance(destination) || destination.checkin_radious==-1 )
&& destination.cp != 0 && destination.cp != -1 && destination.cp != -2