Skip to content

Commit ef57f4b

Browse files
committed
지도 이중 스크롤 개선
지도 이중 스크롤 개선
1 parent 916eed6 commit ef57f4b

File tree

1 file changed

+45
-40
lines changed

1 file changed

+45
-40
lines changed

lib/features/my_place/screen.dart

+45-40
Original file line numberDiff line numberDiff line change
@@ -494,50 +494,55 @@ class _AddMyPlaceDialogState extends State<AddMyPlaceDialog> {
494494
},
495495
child: Column(
496496
children: [
497-
Stack(
498-
children: [
499-
Container(
500-
height: 300,
501-
child: GoogleMap(
502-
webGestureHandling:
503-
WebGestureHandling.greedy,
504-
gestureRecognizers: const {
505-
Factory<OneSequenceGestureRecognizer>(
506-
EagerGestureRecognizer.new),
507-
},
508-
initialCameraPosition:
509-
const CameraPosition(
510-
target: LatLng(
511-
37.5662952, 126.9779451),
512-
zoom: 12,
513-
),
514-
markers: {
515-
Marker(
516-
markerId: const MarkerId('1'),
517-
position: const LatLng(
497+
PointerInterceptor(
498+
child: Stack(
499+
children: [
500+
Container(
501+
height: 300,
502+
child: GoogleMap(
503+
webGestureHandling:
504+
WebGestureHandling.greedy,
505+
gestureRecognizers: const {
506+
Factory<OneSequenceGestureRecognizer>(
507+
EagerGestureRecognizer
508+
.new),
509+
},
510+
initialCameraPosition:
511+
const CameraPosition(
512+
target: LatLng(
518513
37.5662952, 126.9779451),
519-
icon: _markerIcon,
520-
draggable: true,
521-
onDrag: (LatLng latLng) {
522-
_markerPosition = latLng;
523-
setState(() {});
524-
},
514+
zoom: 12,
525515
),
526-
},
516+
markers: {
517+
Marker(
518+
markerId:
519+
const MarkerId('1'),
520+
position: const LatLng(
521+
37.5662952,
522+
126.9779451),
523+
icon: _markerIcon,
524+
draggable: true,
525+
onDrag: (LatLng latLng) {
526+
_markerPosition = latLng;
527+
setState(() {});
528+
},
529+
),
530+
},
531+
),
527532
),
528-
),
529-
//장소 검색
530-
Positioned(
531-
top: 10,
532-
left: 10,
533-
right: 10,
534-
child: MyTextField(
535-
controller:
536-
TextEditingController(),
537-
hintText: '장소 검색',
533+
//장소 검색
534+
Positioned(
535+
top: 10,
536+
left: 10,
537+
right: 10,
538+
child: MyTextField(
539+
controller:
540+
TextEditingController(),
541+
hintText: '장소 검색',
542+
),
538543
),
539-
),
540-
],
544+
],
545+
),
541546
),
542547
Text(
543548
'핀을 드래그하여 이동할 수 있어요!',

0 commit comments

Comments
 (0)