Release 0.0.3 Main Merge #3
1 changed files with 12 additions and 6 deletions
|
@ -193,11 +193,17 @@ class _InventoryBrowserState extends State<InventoryBrowser> with AutomaticKeepA
|
||||||
await Navigator.push(
|
await Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => PhotoView(
|
builder: (context) => Scaffold(
|
||||||
minScale: PhotoViewComputedScale.contained,
|
appBar: AppBar(
|
||||||
imageProvider:
|
title: Text(record.formattedName.toString()),
|
||||||
CachedNetworkImageProvider(Aux.resdbToHttp(record.thumbnailUri)),
|
),
|
||||||
heroAttributes: PhotoViewHeroAttributes(tag: record.id),
|
body: Center (
|
||||||
|
child: CachedNetworkImage(
|
||||||
|
imageUrl: (Aux.resdbToHttp(record.thumbnailUri)),
|
||||||
|
placeholder: (context, url) => const CircularProgressIndicator(),
|
||||||
|
errorWidget: (context, url, error) => const Icon(Icons.error),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue