How to control smooth and probably custom scrolling in flutter web with mouse and trackpad both - flutter

Initially, I wanted to have smooth scrolling in flutter web, I tried web_smooth_scroll, which had some level of smoothness but while it was used I was unable to use the trackpad to scroll on my laptop.
Now, am looking for a scrolling solution for flutter web where I can manipulate the scroll through scroll_controller which works with a mouse, trackpad, and touchscreen.
Any advice is helpful.

Related

Zoom & pan with trackpad on web without clicking

I'm trying to add the panning & zoom functionality on web & desktop for both trackpad & touch (without a modifier, click or key).
The main issue i'm facing is that the widgets I am using i.e. GestureDetector/onScale, InteractiveViewer(based on onScale)... are always working on desktop as I expect but fail to work on web: On web, zoom is fine but the only way to pan is by a tap + a 2 fingers swipe.
I am not sure if this is a limitation of browsers/js, flutter implementation or If I am missing something.
Do you have any approach to implement this?
Relevant links:
https://github.com/flutter/engine/pull/36342
https://kenneth.io/post/detecting-multi-touch-trackpad-gestures-in-javascript
I have both behaviors implemented via onPointerSignal but it only works because I make a difference between panning & zooming by pressing a specific key on top of a simple scroll event.
onPointerPanZoomStart from Listener is trackpad-specific but only works on windows.
Web/js seems to be using the ctrlKey attached to a mouse event to filter pan zoom & zoom trackpad event.
At the moment i'm exploring MultiTapGestureRecognizer and if supported by web and not touch specific, will allow me to get different pointer ids and calculate proper deltas.

How to do trajectory animation in Flutter?

I'm looking for trajectory animation just like how https://leo9studio.com/ has done. You see while scrolling, those balls get scrolled from top to bottom. How can we replicate exactly in Flutter Web?
Additionally, how to create such a smooth scrolling effect in Flutter?
rive.app would be a good place to start looking, since you aren't really providing any context or code other than just a random idea, they have a great community and I have used their packaged for some neat animation on my web apps. They have a way to create your own designs and animations which would probably be the case there, unless you wanted to make it all with code then that would be a different story.
Or look at this post here How to animate a path in flutter?

Custom BouncingScroll Effect in flutter

Project
Hi, I was playing around with bouncing scroll physics in flutter, trying to achieve a specific behaviour.
Here is a simple mockup
BouncingScrollPhysics in flutter create this overscroll effect on top of a listview adding some space in relation to user scroll.
Question
Is it possible to extend this behaviour also to the spacing between list view elements? I noticed this kind of behaviour in some ios apps lately and i wanted to understand if this is achievable in flutter.
Hope someone can help with this, it's really cool effect.
Thanks

Leaflet.markercluster keyboard resize mobile

I am using the super useful Leaflet.markercluster for leaflet which has been great for performance because of the nice getExpandedVisibleBounds feature.
One problem I am running into is on mobile devices with the keyboard changing the viewport/bounds. When I enter an input box and the keyboard pops up, it shrinks the map viewport. After the keyboard goes away the viewport/bounds don't seem to update for the markercluster. The map is fully visible again but markers that are on the lower half of the map (where the keyboard was) are now not visible. Panning the map and zooming in and out don't seem to fix it. After a minute or so of use it seems to correct itself and the markers and now visible on the whole viewport again.
Any suggestions on how to fix this issue? Thanks!

Fast scrolling does not work properly with fragment in ViewPager

I m facing problem of fast scrolling in ViewPager from so many days.when i scroll fragments in Viewpager it does not smoothly work.I want scrolling very smoothly.Please guide me properly.!
You can try and alter the scroller's speed.
You cannot access it directly, but you can do that by reflection and change the duration.
More detailed instructions are here:
Slowing speed of Viewpager controller in android