This commit is contained in:
2024-10-02 14:59:54 +02:00
parent 198bd6b21b
commit 4419a3f866

View File

@@ -260,33 +260,34 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
} }
return MIHBody( return MIHBody(
borderOn: false, borderOn: false,
bodyItems: [ bodyItems: [fileViewer],
Stack( // [
children: [ // Stack(
Expanded(child: fileViewer), // children: [
Positioned( // Expanded(child: fileViewer),
bottom: 5, // Positioned(
right: 5, // bottom: 5,
width: 50, // right: 5,
height: 50, // width: 50,
child: IconButton.filled( // height: 50,
iconSize: 35, // child: IconButton.filled(
padding: const EdgeInsets.all(0), // iconSize: 35,
onPressed: () { // padding: const EdgeInsets.all(0),
html.window.open( // onPressed: () {
widget.arguments.link, // html.window.open(
// '${AppEnviroment.baseFileUrl}/mih/$filePath', // widget.arguments.link,
'download'); // // '${AppEnviroment.baseFileUrl}/mih/$filePath',
}, // 'download');
icon: Icon( // },
Icons.download, // icon: Icon(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // Icons.download,
), // color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
), // ),
), // ),
], // ),
), // ],
], // ),
// ],
); );
} }