mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 12:58:51 +00:00
30 lines
780 B
Dart
30 lines
780 B
Dart
import 'package:cached_network_image/cached_network_image.dart';
|
|
import 'package:comunic/utils/intl_utils.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:photo_view/photo_view.dart';
|
|
|
|
/// Full screen image details
|
|
///
|
|
/// @author Pierre Hubert
|
|
|
|
class FullScreenImageRoute extends StatefulWidget {
|
|
final String url;
|
|
|
|
FullScreenImageRoute(this.url) : assert(url != null);
|
|
|
|
@override
|
|
_FullScreenImageRouteState createState() => _FullScreenImageRouteState();
|
|
}
|
|
|
|
class _FullScreenImageRouteState extends State<FullScreenImageRoute> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text(tr("Image")),
|
|
),
|
|
body: PhotoView(imageProvider: CachedNetworkImageProvider(widget.url)),
|
|
);
|
|
}
|
|
}
|