full screen doc viewer

This commit is contained in:
2025-06-03 10:46:04 +02:00
parent aa13308fd2
commit 54d6a41341

View File

@@ -248,6 +248,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
}, },
), ),
); );
}
menuList.add( menuList.add(
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
@@ -261,29 +262,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor: MzanziInnovationHub.of(context)!.theme.successColor(),
MzanziInnovationHub.of(context)!.theme.successColor(),
onTap: () {
printDocument(url, filePath);
},
),
);
} else {
menuList.add(
SpeedDialChild(
child: Icon(
Icons.fullscreen,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
),
label: "Full Screen",
labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold,
),
backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
'/file-veiwer', '/file-veiwer',
@@ -295,7 +274,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
}, },
), ),
); );
} // }
if (hasAccessToDelete) { if (hasAccessToDelete) {
menuList.add( menuList.add(
SpeedDialChild( SpeedDialChild(