Merge pull request #195 from yaso-meth/BUG--full-screen-file-viewer-for-documents
full screen doc viewer
This commit is contained in:
commit
6f1b9bb8c8
1 changed files with 26 additions and 47 deletions
|
|
@ -248,6 +248,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
menuList.add(
|
||||
SpeedDialChild(
|
||||
child: Icon(
|
||||
|
|
@ -261,29 +262,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
backgroundColor:
|
||||
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(),
|
||||
backgroundColor: MzanziInnovationHub.of(context)!.theme.successColor(),
|
||||
onTap: () {
|
||||
Navigator.of(context).pushNamed(
|
||||
'/file-veiwer',
|
||||
|
|
@ -295,7 +274,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
// }
|
||||
if (hasAccessToDelete) {
|
||||
menuList.add(
|
||||
SpeedDialChild(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue