2019-08-31 16:44:27 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2019-09-25 11:06:36 +02:00
|
|
|
import 'package:git_touch/scaffolds/single.dart';
|
2019-09-11 13:59:47 +02:00
|
|
|
import 'package:git_touch/widgets/app_bar_title.dart';
|
2019-08-31 16:44:27 +02:00
|
|
|
|
|
|
|
class ImageView extends StatelessWidget {
|
|
|
|
final ImageProvider imageProvider;
|
|
|
|
|
|
|
|
ImageView(this.imageProvider);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2019-09-25 11:06:36 +02:00
|
|
|
return SingleScaffold(
|
2019-09-11 13:59:47 +02:00
|
|
|
title: AppBarTitle('Image preview'),
|
2019-09-25 11:06:36 +02:00
|
|
|
body: Container(
|
2019-09-25 08:24:20 +02:00
|
|
|
child: Image(image: imageProvider),
|
|
|
|
),
|
2019-08-31 16:44:27 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|