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

View File

@@ -174,33 +174,19 @@ class _BuildFilesListState extends State<BuildFilesList> {
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Row( const SizedBox(
mainAxisAlignment: MainAxisAlignment.center, height: 25,
crossAxisAlignment: CrossAxisAlignment.center, ),
children: [ Text(
Text( fileName,
fileName, textAlign: TextAlign.center,
textAlign: TextAlign.center, style: TextStyle(
style: TextStyle( color: MzanziInnovationHub.of(context)!
color: MzanziInnovationHub.of(context)! .theme
.theme .secondaryColor(),
.secondaryColor(), fontSize: 35.0,
fontSize: 35.0, fontWeight: FontWeight.bold,
fontWeight: FontWeight.bold, ),
),
),
IconButton(
onPressed: () {
deleteFilePopUp(filePath, fileID);
},
icon: Icon(
Icons.delete,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
),
],
), ),
const SizedBox(height: 25.0), const SizedBox(height: 25.0),
Expanded( 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"> <script type="text/javascript">
pdfjsLib.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.worker.min.js"; pdfjsLib.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.worker.min.js";
</script> </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 id="loading_indicator" class="main">
<div><img class="indicator" src="Logo-loading.gif" /></div> <div><img class="indicator" src="Logo-loading.gif" /></div>