1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-20 04:05:26 +01:00
git-touch-android-ios-app/lib/screens/image_view.dart
2019-11-02 22:30:26 +08:00

22 lines
544 B
Dart

import 'package:flutter/material.dart';
import 'package:git_touch/scaffolds/common.dart';
import 'package:photo_view/photo_view.dart';
class ImageViewScreen extends StatelessWidget {
final String url;
final Widget title;
ImageViewScreen(this.url, {this.title = const Text('Image')});
@override
Widget build(BuildContext context) {
return CommonScaffold(
title: title,
body: PhotoView(
imageProvider: NetworkImage(url),
backgroundDecoration: BoxDecoration(color: Colors.white),
),
);
}
}