チェッキン中に自動ポップアップを抑制
This commit is contained in:
@ -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: [
|
||||
|
||||
@ -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(() {
|
||||
|
||||
Reference in New Issue
Block a user