Flutter Tutorial - How To Pinch To Zoom An Image | The Right Way | Zoom In/Out Images

  Рет қаралды 21,105

HeyFlutter․com

HeyFlutter․com

Күн бұрын

Пікірлер: 49
@HeyFlutter
@HeyFlutter 2 жыл бұрын
This might help you :) 👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com Source Code: github.com/JohannesMilke/pinch_zoom_image Zoom Image On Double Tap: kzbin.info/www/bejne/amXQgXurprWairc 3D Flip Image Rotation Animation Tutorial: kzbin.info/www/bejne/jl7cl6iBas6ra7c 3D Flip Image Rotation By Gestures Tutorial: kzbin.info/www/bejne/q4LaZoqojcSAh7s Rotate Image By Degrees Tutorial: kzbin.info/www/bejne/iYbapX-MhLt0nKs 3D Effects In ListView Tutorial: kzbin.info/www/bejne/rZ-3in6Aeq9qnJY Animated Progress Button Animation Tutorial: kzbin.info/www/bejne/moCofKGEibeXp5I Pick Images From Camera And Gallery Tutorial: kzbin.info/www/bejne/g4TZZGughJl4gM0 Image Slider Tutorial: kzbin.info/www/bejne/gHawqWWXrZVqaZY Page Transition Animation Tutorial: kzbin.info/www/bejne/lYOWdpKXpMtpb8U Horizontal Scrollable Image Card Tutorial: kzbin.info/www/bejne/mJKkkH1rqbqne7c Capture Screenshot Tutorial: kzbin.info/www/bejne/qHKln5R8Yr2eaac Set Background Image Tutorial: kzbin.info/www/bejne/qXW2ZZZneJJ5msk Set Background Color Tutorial: kzbin.info/www/bejne/m3-ZY62ios90e7M Dark Mode Switch Tutorial: kzbin.info/www/bejne/foSkkmyvnpWCg6M Flutter Layout Basics Tutorial: kzbin.info/www/bejne/r4rbppiKg653oqM Shimmer Effect Animation Tutorial: kzbin.info/www/bejne/mHqvaoJjorN5iM0 Shader Mask Tutorial: kzbin.info/www/bejne/gHWYeneLeZKApdE
@RaphaelPungin
@RaphaelPungin 3 жыл бұрын
Amazing video! Pinch to zoom sounded like a simple topic, but you have explored so much detail that I have not even thought of! Thank you!
@ВикторЦай-л7я
@ВикторЦай-л7я 2 жыл бұрын
Big big big thanks, man!
@psatler
@psatler 3 жыл бұрын
That was so cool, Johannes! Thanks!
@EsmeraldaLopez-zt6yl
@EsmeraldaLopez-zt6yl 3 жыл бұрын
Nice video. Thanks!
@althafaralijaffarali1803
@althafaralijaffarali1803 3 жыл бұрын
Advance wishes for the 30k subs bro 🔥❤️🔥. Keep rocking 👌. Do you remember? I told you that you will definitely reach 30k by the end of this year. You proved it 🔥. Thanks for your contribution bro 🎉🎊. Your consistent will definitely gonna take you to the great heights 🌟🌠
@Maystro_eg
@Maystro_eg 3 жыл бұрын
absolutely Amazing...
@huguesbomo9297
@huguesbomo9297 3 жыл бұрын
thanks very much again
@md.ruhulamin7963
@md.ruhulamin7963 3 жыл бұрын
Thank you sir.
@christinewasike
@christinewasike 2 жыл бұрын
It's difficult to see what you have set as the argument for the curve parameter in the CurveAnimate contractor. Please clarify what comes after "curve: Curve..."
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Christine Wasike! Follow this link: api.flutter.dev/flutter/animation/CurvedAnimation-class.html I hope you will get your answer 🙂
@christinewasike
@christinewasike 2 жыл бұрын
@@HeyFlutter Appreciate it. Thank you!
@letmeflutter6644
@letmeflutter6644 Жыл бұрын
thank you
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @letmeflutter6644 😊
@kingster996
@kingster996 Жыл бұрын
Thanks - really appreciate the additional info and detailed instructions. Please have a beer on me!
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad I could be of help, Thank you Chris King! 😊
@samo92mx
@samo92mx 8 ай бұрын
Whats the difference initialize after or before super.initState?
@HeyFlutter
@HeyFlutter 8 ай бұрын
Thank You @samo92mx! Follow this link: stackoverflow.com/questions/58400001/should-i-call-super-initstate-at-the-end-or-at-the-beginning#:~:text=As%20you%20could%20see%20in,dispose()%20. I hope you will get your answer 🙂
@demosongsheetmusic
@demosongsheetmusic 3 жыл бұрын
Amazing tutorial! Thank you! Can you explain two things for me please? At 4:41, _onInteractionStart_ contains _showOverlay(context)_ call without any checks. Then, just a few seconds later, at 4:49, you do the the check _if (entry == null) showOverlay(context)_ Also, at 6:26, you added a check to _onInteractionEnd_ _if (details.pointerCount != 1) return_ Why did you add these checks? What do you achieve by this?
@demosongsheetmusic
@demosongsheetmusic 3 жыл бұрын
@@HeyFlutter Oh, so _onInteractionEnd_ might get called multiple times, okay. It won't be a big mistake to leave the second check out, since _resetAnimation_ looks idempotent to me (won't do anything if animation is stopped). Thanks for answering so quickly! 😊
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, Demo song sheet music Casper Jazz! 🙂These are small checks 1. You want to show only one overlay at a time 2. Execute this method only once when one pointer is tapping the screen. Since if you end the interaction it will call onInteractionEnd twice with one finger on the screen or zero fingers on the screen :) Remember during the interaction you have 2 fingers on the screen.
@faizulla5838
@faizulla5838 3 жыл бұрын
What Flutter in yours courses 1.2~2.0 .. or 2.5?
@nickschepers363
@nickschepers363 Жыл бұрын
Wow, thanks. This helped me a lot with my progress!
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Nick Schepers! Follow this link: stackoverflow.com/questions/56423707/flutter-zoomable-widget I hope you will get your answer 🙂
@amonlexa57
@amonlexa57 5 ай бұрын
Please tell me what to write inside Clamp? final double opacity = ((scale - 1) / (maxScale - 1)).clamp(?, ?);
@HeyFlutter
@HeyFlutter 5 ай бұрын
Thank You @amonlexa57! Follow this link: stackoverflow.com/questions/56970838/whats-the-logic-of-clamp-function-in-dart I hope you will get your answer 🙂
@ずーやん-w8y
@ずーやん-w8y Жыл бұрын
Is there a way to get the color information of an image pixel? "How can I get the normal image size and the enlarged image size?"
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You ずーやん! Follow this link: stackoverflow.com/questions/61793700/flutter-get-pixel-color-from-image-in-var I hope you will get your answer 🙂
@Yeraybt
@Yeraybt Жыл бұрын
Could someone help me by telling me how I can save that zoomed image and add it to another screen to a CircleAvatar and keep the same centre point? thx
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Yeray bt! Follow this link: github.com/mchome/flutter_advanced_networkimage/issues/113 I hope you will get your answer 🙂
@prrs11
@prrs11 3 жыл бұрын
Thank you !, i have a question, how i can improve the sensitive of pinch to zoom inside a listview, sometimes is hard to zooming because the listview scroll wins the battle of the gesture and the list scrolled instead of zooming.?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, Rodrigo Porras! 🙂 Check out this issue here: github.com/flutter/flutter/issues/70192 I tried it out on my device and for me it works fine, for vertical and horizontal ListViews and PageViews.
@HUTIENLAN
@HUTIENLAN 10 ай бұрын
I don't know why but this caused a very weird behavior. For example, I can't show overlay every time. Sometimes it does work sometimes it doesn't. And most important, it caused an error when I tried to pop back and the overlay doesn't disappear.
@HeyFlutter
@HeyFlutter 10 ай бұрын
Thank you, @HUTIENLAN! 🙂. Please try to provide enough details with your question
@HUTIENLAN
@HUTIENLAN 9 ай бұрын
@@HeyFlutter For example, it doesn't work at all on physical iOS device. Also, it does work on android phone. However, it could not zoom in each time. You have to try couple times to show an overlay
@billiardoxx
@billiardoxx 2 жыл бұрын
Hi, I'm having a problem with the Overlay widget, it is removed from beginning of animation and not when the animation is completed. So I had to disable the call to addStatusListener method, and I added removeOverlay method into event onInteractionEnd. Moreover I've noted the image is not zoomed in from the first contact, you need a second contact and the animation just starts. Any advice?
@billiardoxx
@billiardoxx 2 жыл бұрын
@@HeyFlutter Nop, no error is showed in debug console. I'll try publish my code in Github later if you wish to check it.
@YXUN2000
@YXUN2000 3 жыл бұрын
Can this be done on PDF file?
@YXUN2000
@YXUN2000 3 жыл бұрын
@@HeyFlutter noted, thank you for your reply!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, YX! 🙂In general, you can use this pinch zoom for every widget in Flutter. However in general, the zoom should be supported by your PDF package so you shouldn't do it on your own.
@deutschmitarabien
@deutschmitarabien 3 жыл бұрын
it doesnt work with entry its null and not initilaized
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Hello, Nagham Ahmed Alskhni! Follow this link: stackoverflow.com/questions/60068435/what-is-null-safety-in-dart, I hope it will solve your problem. Thank You 🙂
@emadharazi5044
@emadharazi5044 2 жыл бұрын
Wow!!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, Emad Harazi! 🙂
@chahodiyahina2448
@chahodiyahina2448 2 жыл бұрын
how can get source code
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You chahodiya hina!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
Flutter Zoom Image | Pinch To Zoom
13:44
HeyFlutter․com
Рет қаралды 20 М.
Flutter Tutorial - InteractiveViewer - DeepDive
11:50
HeyFlutter․com
Рет қаралды 9 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 12 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 26 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 6 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
How to drag, drop, scale & rotate widgets in Flutter like Instagram
12:32
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 277 М.
Top 35 Flutter Widgets
29:29
Flutter Mapp
Рет қаралды 328 М.
BEST 15 Flutter Animated Widgets
24:05
Flutter Mapp
Рет қаралды 58 М.
Add Images To Your App (TWO METHODS!) - Flutter Friday 5
5:35
Codemy.com
Рет қаралды 17 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 12 МЛН