v=0.0.0.7 & move position of delete button & premove useless prints
This commit is contained in:
@@ -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.,
|
||||||
|
|||||||
@@ -174,10 +174,9 @@ 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,
|
||||||
@@ -189,19 +188,6 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||||||
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(
|
||||||
child: BuildFileView(
|
child: BuildFileView(
|
||||||
@@ -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(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user