mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-12 07:10:41 -06:00
feat: Add document scanner package
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user