1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-17 18:59:23 +01:00
git-touch-android-ios-app/lib/screens/image_view.dart
2019-09-11 19:59:47 +08:00

22 lines
510 B
Dart

import 'package:flutter/material.dart';
import 'package:git_touch/scaffolds/simple.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 SimpleScaffold(
title: AppBarTitle('Image preview'),
bodyBuilder: () {
return Container(
child: Image(image: imageProvider),
);
},
);
}
}