チェッキン中に自動ポップアップを抑制
This commit is contained in:
@ -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