1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-20 20:13:55 +01:00
git-touch-android-ios-app/lib/screens/image_view.dart

20 lines
470 B
Dart
Raw Normal View History

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