mirror of
https://github.com/git-touch/git-touch
synced 2024-12-17 18:59:23 +01:00
22 lines
510 B
Dart
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),
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|