More minor fixes

This commit is contained in:
Adam Gastineau 2026-08-26 07:00:49 -07:00
parent 9a15e3f5f6
commit 73d2366916
3 changed files with 5 additions and 7 deletions

View file

@ -211,8 +211,6 @@ class _DriftSlideshowPageState extends ConsumerState<DriftSlideshowPage>
return;
}
_pageController.jumpToPage(index);
setState(() => _fadingSlideIndex = prevIndex);
unawaited(

View file

@ -111,7 +111,7 @@ class SlideshowController extends ChangeNotifier {
_paused = false;
notifyListeners();
if (delegate.videoProgressOf(_currentIndex) != null && delegate.isVideoCompleted(_currentIndex)) {
if (delegate.isVideoCompleted(_currentIndex)) {
goToNextSlide();
return;
}

View file

@ -53,15 +53,15 @@ class SlideshowSlide extends StatelessWidget {
@override
Widget build(BuildContext context) {
final Widget content = asset.isImage || frozen
? AnimatedBuilder(
animation: zoom,
builder: (context, _) => PhotoView(
? ScaleTransition(
scale: zoom.drive(Tween(begin: 1.0, end: 1.0 + _kenBurnsZoomMultiplier)),
child: PhotoView(
imageProvider: getFullImageProvider(asset, size: context.sizeData),
index: index,
disableScaleGestures: true,
gaplessPlayback: true,
filterQuality: FilterQuality.high,
initialScale: _scale * (1.0 + zoom.value * _kenBurnsZoomMultiplier),
initialScale: _scale,
controller: PhotoViewController(),
onTapUp: (_, _, _) => onTapUp(),
),