mirror of
https://github.com/git-touch/git-touch
synced 2024-12-17 02:38:39 +01:00
20 lines
470 B
Dart
20 lines
470 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:git_touch/scaffolds/single.dart';
|
|
import 'package:git_touch/widgets/app_bar_title.dart';
|
|
|
|
class ImageView extends StatelessWidget {
|
|
final ImageProvider imageProvider;
|
|
|
|
ImageView(this.imageProvider);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SingleScaffold(
|
|
title: AppBarTitle('Image preview'),
|
|
body: Container(
|
|
child: Image(image: imageProvider),
|
|
),
|
|
);
|
|
}
|
|
}
|