mirror of
https://github.com/git-touch/git-touch
synced 2025-01-04 11:59:58 +01:00
21 lines
482 B
Dart
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),
|
|
),
|
|
);
|
|
}
|
|
}
|