Merge pull request #195 from yaso-meth/BUG--full-screen-file-viewer-for-documents

full screen doc viewer
This commit is contained in:
yaso-meth 2025-06-03 10:47:14 +02:00 committed by GitHub
commit 6f1b9bb8c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(