mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +00:00
Create scaffold for full screen image
This commit is contained in:
parent
c65d87dacc
commit
4b0b41a902
@ -69,8 +69,13 @@ Widget buildErrorCard(String message,
|
||||
/// Show an image with a given [url] in full screen
|
||||
void showImageFullScreen(BuildContext context, String url) {
|
||||
Navigator.of(context).push(MaterialPageRoute(builder: (c) {
|
||||
return PhotoView(
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(tr("Image")),
|
||||
),
|
||||
body: PhotoView(
|
||||
imageProvider: CachedNetworkImageProvider(url),
|
||||
),
|
||||
);
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user