v=0.0.0.7 & move position of delete button & premove useless prints

This commit is contained in:
2024-08-01 14:46:07 +02:00
parent 48b0d284f9
commit 685b6dbb4a
3 changed files with 30 additions and 31 deletions

View File

@@ -24,8 +24,6 @@ class _BuildFileViewState extends State<BuildFileView> {
@override
Widget build(BuildContext context) {
print(
"${widget.link} ================================================================");
if (getExtType(widget.path).toLowerCase() == "pdf") {
//print(widget.pdfLink);
return SizedBox(
@@ -42,7 +40,6 @@ class _BuildFileViewState extends State<BuildFileView> {
),
);
} else {
print("Image");
return InteractiveViewer(
maxScale: 5.0,
//minScale: 0.,

View File

@@ -174,33 +174,19 @@ class _BuildFilesListState extends State<BuildFilesList> {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
fileName,
textAlign: TextAlign.center,
style: TextStyle(
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
fontSize: 35.0,
fontWeight: FontWeight.bold,
),
),
IconButton(
onPressed: () {
deleteFilePopUp(filePath, fileID);
},
icon: Icon(
Icons.delete,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
),
],
const SizedBox(
height: 25,
),
Text(
fileName,
textAlign: TextAlign.center,
style: TextStyle(
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
fontSize: 35.0,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 25.0),
Expanded(
@@ -246,6 +232,22 @@ class _BuildFilesListState extends State<BuildFilesList> {
),
),
),
Positioned(
top: 5,
left: 5,
width: 50,
height: 50,
child: IconButton(
onPressed: () {
deleteFilePopUp(filePath, fileID);
},
icon: Icon(
Icons.delete,
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
),
),
),
],
),
),

View File

@@ -68,7 +68,7 @@
<script type="text/javascript">
pdfjsLib.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.worker.min.js";
</script>
<script src="flutter_bootstrap.js?v=0.0.0.6" async></script>
<script src="flutter_bootstrap.js?v=0.0.0.7" async></script>
<div id="loading_indicator" class="main">
<div><img class="indicator" src="Logo-loading.gif" /></div>