2019-08-31 16:44:27 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:git_touch/scaffolds/simple.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) {
|
|
|
|
return SimpleScaffold(
|
2019-09-11 13:59:47 +02:00
|
|
|
title: AppBarTitle('Image preview'),
|
2019-08-31 16:44:27 +02:00
|
|
|
bodyBuilder: () {
|
|
|
|
return Container(
|
|
|
|
child: Image(image: imageProvider),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|