ente/lib/ui/tools/collage/collage_item_widget.dart

28 lines
591 B
Dart
Raw Normal View History

2023-05-26 12:24:03 +00:00
import "package:flutter/material.dart";
2023-08-25 04:39:30 +00:00
import 'package:photos/models/file/file.dart';
2023-05-26 12:24:03 +00:00
import "package:photos/ui/viewer/file/zoomable_image.dart";
class CollageItemWidget extends StatelessWidget {
const CollageItemWidget(
this.file, {
super.key,
});
2023-08-24 16:56:24 +00:00
final EnteFile file;
2023-05-26 12:24:03 +00:00
@override
Widget build(BuildContext context) {
return InteractiveViewer(
child: ZoomableImage(
file,
backgroundDecoration: const BoxDecoration(
color: Colors.transparent,
),
tagPrefix: "collage_",
shouldCover: true,
),
);
}
}