This commit is contained in:
2024-10-02 15:06:31 +02:00
parent 4419a3f866
commit fe4d3d1fd6

View File

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