12345678910111213141516171819202122 |
- import 'package:flutter/material.dart';
- import 'package:photo_view/photo_view.dart';
- class ImagePreviewPage extends StatelessWidget {
- final String imageUrl;
- ImagePreviewPage(this.imageUrl);
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text(''),
- ),
- body: Container(
- child: PhotoView(
- imageProvider: NetworkImage(imageUrl),
- ),
- ),
- );
- }
- }
|