1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-18 11:19:28 +01:00
git-touch-android-ios-app/lib/screens/image_view.dart

22 lines
510 B
Dart
Raw Normal View History

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),
);
},
);
}
}