チェッキン中に自動ポップアップを抑制

This commit is contained in:
2024-04-24 22:54:27 +09:00
parent 8945748d07
commit 5d6fd72df6
3 changed files with 23 additions and 3 deletions

View File

@ -374,7 +374,14 @@ class BottomSheetNew extends GetView<BottomSheetController> {
// return indexController.rogMode.value == 0
// ? detailsSheet(context)
// : destinationSheet(context);
return detailsSheet(context);
return Obx(() {
if (!destinationController.isCheckingIn.value) {
return detailsSheet(context);
} else {
return Container(); // チェックイン操作中は空のコンテナを返す
}
});
}
// 指定された目的地がすでにチェックイン済みかどうかを確認するメソッドです。
@ -412,6 +419,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
LogManager().addLog("Checkin radius : ${destination.checkin_radious}");
LogManager().addLog("--${destination.cp}--");
return SingleChildScrollView(
child: Column(
children: [

View File

@ -53,6 +53,13 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
WidgetsBinding.instance.addObserver(this);
_startIdleTimer();
// マップの操作イベントをリッスンして、_resetTimerを呼び出す
mapController.mapEventStream.listen((MapEvent mapEvent) {
if (mapEvent is MapEventMove || mapEvent is MapEventFlingAnimation) {
_resetTimer();
}
});
// MapControllerの初期化が完了するまで待機
WidgetsBinding.instance.addPostFrameCallback((_) {
setState(() {