Scroll a photo in all directions and pinch zoom-in/out.

384 views
Skip to first unread message

wendel....@xinox-apps.com

unread,
Nov 4, 2017, 5:52:07 PM11/4/17
to Flutter Dev
Hi,

I was planning to use one of the ScrollViews to hold a picture which can be scrolled in all directions.  (+zoom in/out)

Apparently all Scrollable widgets are limited to either scrolling horizontal or vertical, and looking at the source code, it has never been taken in account to scroll on both axis.

Any thoughts from the developers why they missed this? 


Ian Hickson

unread,
Nov 4, 2017, 5:54:26 PM11/4/17
to wendel....@xinox-apps.com, Flutter Dev
We just never had a need for a widget that did this specifically, so we never got around to implementing it. It should be relatively easy to implement manually, though. You can use the GestureDetector's onScaleState, onScaleUpdate, and onScaleEnd handlers for the user interaction, in particular.

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

--
Ian Hickson

😸

Hans Muller

unread,
Nov 6, 2017, 11:51:24 AM11/6/17
to Ian Hickson, wendel....@xinox-apps.com, Flutter Dev

On Sat, Nov 4, 2017 at 2:54 PM, Ian Hickson <i...@hixie.ch> wrote:
We just never had a need for a widget that did this specifically, so we never got around to implementing it. It should be relatively easy to implement manually, though. You can use the GestureDetector's onScaleState, onScaleUpdate, and onScaleEnd handlers for the user interaction, in particular.
On Sat, Nov 4, 2017 at 2:52 PM <wendel.de.witte@xinox-apps.com> wrote:
Hi,

I was planning to use one of the ScrollViews to hold a picture which can be scrolled in all directions.  (+zoom in/out)

Apparently all Scrollable widgets are limited to either scrolling horizontal or vertical, and looking at the source code, it has never been taken in account to scroll on both axis.

Any thoughts from the developers why they missed this? 


--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

--
Ian Hickson

😸

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages