Comments (4)
Micro tutorial after 0.2.0:
- setup a custom
PhotoViewController
- Use its
reset
method when needed - The end
from photo_view.
@renancaraujo It seems can be done be add a gesture detector on PhotoView... But Dont know how to go back..... any thoughts?
class HeroPhotoViewWrapper extends StatelessWidget {
const HeroPhotoViewWrapper(
{this.imageProvider,
this.loadingChild,
this.backgroundDecoration,
this.minScale,
this.maxScale});
final ImageProvider imageProvider;
final Widget loadingChild;
final Decoration backgroundDecoration;
final dynamic minScale;
final dynamic maxScale;
@override
Widget build(BuildContext context) {
return Container(
constraints: BoxConstraints.expand(
height: MediaQuery.of(context).size.height,
),
child: GestureDetector(
child: PhotoView(
imageProvider: imageProvider,
loadingChild: loadingChild,
backgroundDecoration: backgroundDecoration,
minScale: minScale,
maxScale: maxScale,
heroTag: "someTag",
),
onTap: () {
// pop up this
},
));
}
}
from photo_view.
@jinfagang A gesture detector to reset internal state of a widget?
It does not seem to be right.
from photo_view.
@renancaraujo Haha, waiting for your creative method, I am also stuck on this.. By the way, this hero animation on iOS not seems smooth as Android, it has a left to right animation which makes hero transition not simple enlarge animation ... I don't sure if you can understand this, but you will fill it if you have both iOS and Android device to test it.
from photo_view.
Related Issues (20)
- Uncaught Exception [BUG] HOT 3
- [BUG] How to solve it? HOT 2
- Is it possible to limit the movement of child widget upto the boundaries of PhotoView.customChild? HOT 1
- How can I make the second double tap to zoom out instead of zooming in? HOT 2
- [BUG] NetworkImages being loaded again on every swipe HOT 6
- [BUG] Cannot rotate + zoom corners HOT 2
- Support Pinch Zoom on Desktop/Touchpad HOT 1
- Click event response is too slow HOT 1
- Zooming bug HOT 1
- [BUG] Make PhotoViewController.scale should not be null HOT 1
- [BUG] `onTapUp` is not called when touch is lifted
- App crashes when zoom is pinched to maximum as a child of ColorFiltered widget
- Can anyone tell any alternatives? This repo seems abandoned, has anyone forked and fixed issues, I tried to make my own photo viewer, but meh didn't get impressive results HOT 2
- [desktop application] Next/Previous image with keyboard HOT 2
- back button pops the current screen into many screens back
- slowly load a big net img HOT 1
- Add more values to PhotoViewComputedScale
- Doesn't it have property "isAntiAlias"? HOT 1
- [BUG] Cannot zoom on desktop
- [BUG] Zoom function error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photo_view.