27 lines
657 B
Dart
27 lines
657 B
Dart
import 'dart:io';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
/// Full-screen, pinch-zoomable view of a saved receipt photo.
|
|
class ReceiptImageScreen extends StatelessWidget {
|
|
final String imagePath;
|
|
|
|
const ReceiptImageScreen({super.key, required this.imagePath});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.black,
|
|
appBar: AppBar(
|
|
backgroundColor: Colors.black,
|
|
foregroundColor: Colors.white,
|
|
title: const Text('Receipt'),
|
|
),
|
|
body: Center(
|
|
child: InteractiveViewer(
|
|
child: Image.file(File(imagePath)),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|