feat: Swipe to next or previous image in image viewer

This commit is contained in:
Krille 2025-01-05 16:55:07 +01:00
commit fb685c03cf
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 142 additions and 64 deletions

View file

@ -19,6 +19,7 @@ class ImageBubble extends StatelessWidget {
final double height;
final void Function()? onTap;
final BorderRadius? borderRadius;
final Timeline? timeline;
const ImageBubble(
this.event, {
@ -32,6 +33,7 @@ class ImageBubble extends StatelessWidget {
this.animated = false,
this.onTap,
this.borderRadius,
this.timeline,
super.key,
});
@ -62,6 +64,7 @@ class ImageBubble extends StatelessWidget {
context: context,
builder: (_) => ImageViewer(
event,
timeline: timeline,
outerContext: context,
),
);