1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-04 11:59:58 +01:00
git-touch-android-ios-app/lib/widgets/image_view.dart
2019-11-02 21:44:26 +08:00

21 lines
482 B
Dart

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