Merge pull request #38 from pedromassango/patch-1
Remove unnecessary Stack widget from photo_gallery.dart
This commit is contained in:
commit
12b9a1bb49
@ -146,10 +146,7 @@ class _PhotoGalleryState extends State<PhotoGallery> {
|
||||
gridOffset += Offset(0, -context.mq.padding.top / 2);
|
||||
final offsetTweenDuration = _skipNextOffsetTween ? Duration.zero : swipeDuration;
|
||||
final cutoutTweenDuration = _skipNextOffsetTween ? Duration.zero : swipeDuration * .5;
|
||||
return Stack(
|
||||
children: [
|
||||
// A overlay with a transparent middle sits on top of everything, animating itself each time index changes
|
||||
_AnimatedCutoutOverlay(
|
||||
return _AnimatedCutoutOverlay(
|
||||
animationKey: ValueKey(_index),
|
||||
cutoutSize: imgSize,
|
||||
swipeDir: _lastSwipeDir,
|
||||
@ -184,8 +181,6 @@ class _PhotoGalleryState extends State<PhotoGallery> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user