1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-17 02:38:39 +01:00
git-touch-android-ios-app/lib/screens/image_view.dart
2019-09-25 17:18:48 +08:00

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