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

@ -28,11 +28,13 @@ class MessageContent extends StatelessWidget {
final Color textColor;
final void Function(Event)? onInfoTab;
final BorderRadius borderRadius;
final Timeline timeline;
const MessageContent(
this.event, {
this.onInfoTab,
super.key,
required this.timeline,
required this.textColor,
required this.borderRadius,
});
@ -137,6 +139,7 @@ class MessageContent extends StatelessWidget {
height: height,
fit: fit,
borderRadius: borderRadius,
timeline: timeline,
);
case CuteEventContent.eventType:
return CuteContent(event);