Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
783 B

import 'package:Capsule/components/custom_title_bar.dart';
import 'package:Capsule/models/image_message.dart';
import 'package:flutter/material.dart';
class ViewImage extends StatelessWidget {
const ViewImage({
Key? key,
required this.message,
}) : super(key: key);
final ImageMessage message;
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
appBar: const CustomTitleBar(
title: Text(''),
showBack: true,
backgroundColor: Colors.black,
),
body: Center(
child: InteractiveViewer(
panEnabled: false,
minScale: 1,
maxScale: 4,
child: Image.file(
message.file,
),
)
),
);
}
}