Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inside ListView Animating StreetView Camera Up & Down is hard #18

Closed
Aristidios opened this issue Aug 24, 2022 · 4 comments
Closed

Inside ListView Animating StreetView Camera Up & Down is hard #18

Aristidios opened this issue Aug 24, 2022 · 4 comments

Comments

@Aristidios
Copy link

Aristidios commented Aug 24, 2022

Hello 👋,

First of all thanks for your package it's great,

I'm having issues when using FlutterGoogleStreetView() inside a ListView as the scrolling of the vertical ListView conflicts with the gesture to moveCamera Up & Down on touch devices - any ideas how to solve this ?

Also the Google Maps credits titles move up & down while scrolling

@zyzdev
Copy link
Owner

zyzdev commented Sep 9, 2022

IgnorePointer may helpful.
You should decide which widget(ListView or FlutterGoogleStreetView) can consume the touch event.

@Aristidios
Copy link
Author

@zyzdev Thanks for you answer, the thing is FlutterGoogleStreetView is a child of ListView therefore IgnorePointer will also prevent touch events on FlutterGoogleStreetView :/

@zyzdev
Copy link
Owner

zyzdev commented Sep 9, 2022

@Aristidios Try feeding gestureRecognizers

FlutterGoogleStreetView(
 ...
   gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{
       Factory<OneSequenceGestureRecognizer>(
          () => EagerGestureRecognizer(),
      ),
   },
...
)

@zyzdev
Copy link
Owner

zyzdev commented Sep 15, 2022

Feeding gestureRecognizers like below should solve this issue.

FlutterGoogleStreetView(
 ...
   gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{
       Factory<OneSequenceGestureRecognizer>(
          () => EagerGestureRecognizer(),
      ),
   },
...
)

@zyzdev zyzdev closed this as completed Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants