mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 18:08:07 -06:00
26 lines
529 B
Dart
26 lines
529 B
Dart
import 'dart:io';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ImageView extends StatefulWidget {
|
|
const ImageView({super.key, required this.imagePath});
|
|
|
|
final String imagePath;
|
|
|
|
@override
|
|
State<ImageView> createState() => _ImageViewState();
|
|
}
|
|
|
|
class _ImageViewState extends State<ImageView> {
|
|
GlobalKey imageWidgetKey = GlobalKey();
|
|
|
|
@override
|
|
Widget build(BuildContext mainContext) {
|
|
return Center(
|
|
child: Image.file(
|
|
File(widget.imagePath),
|
|
fit: BoxFit.contain,
|
|
),
|
|
);
|
|
}
|
|
}
|