git-touch-android-ios-app/lib/screens/image_view.dart

21 lines
448 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';
class ImageView extends StatelessWidget {
final ImageProvider imageProvider;
ImageView(this.imageProvider);
@override
Widget build(BuildContext context) {
return SimpleScaffold(
title: Text('Image preview'),
bodyBuilder: () {
return Container(
child: Image(image: imageProvider),
);
},
);
}
}