fix expanded image view
This commit is contained in:
@@ -253,7 +253,7 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
|||||||
} else {
|
} else {
|
||||||
fileViewer = SizedBox(
|
fileViewer = SizedBox(
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height - 70,
|
||||||
child: InteractiveViewer(
|
child: InteractiveViewer(
|
||||||
maxScale: 5.0,
|
maxScale: 5.0,
|
||||||
//minScale: 0.,
|
//minScale: 0.,
|
||||||
@@ -264,31 +264,7 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
|||||||
return MIHBody(
|
return MIHBody(
|
||||||
borderOn: false,
|
borderOn: false,
|
||||||
bodyItems: [
|
bodyItems: [
|
||||||
Stack(
|
fileViewer,
|
||||||
children: [
|
|
||||||
fileViewer,
|
|
||||||
Positioned(
|
|
||||||
bottom: 5,
|
|
||||||
right: 5,
|
|
||||||
width: 50,
|
|
||||||
height: 50,
|
|
||||||
child: IconButton.filled(
|
|
||||||
iconSize: 35,
|
|
||||||
padding: const EdgeInsets.all(0),
|
|
||||||
onPressed: () {
|
|
||||||
html.window.open(
|
|
||||||
widget.arguments.link,
|
|
||||||
// '${AppEnviroment.baseFileUrl}/mih/$filePath',
|
|
||||||
'download');
|
|
||||||
},
|
|
||||||
icon: Icon(
|
|
||||||
Icons.download,
|
|
||||||
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user