|
|
|
|
@ -60,7 +60,8 @@ class FilesList extends StatelessWidget {
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
InteractiveViewer(child: Image(image: getImageObject(itemIndex))).center,
|
|
|
|
|
// InteractiveViewer(child: Image(image: getImageObject(itemIndex))).center,
|
|
|
|
|
InteractiveViewer(child: getImageWidget(itemIndex)).center,
|
|
|
|
|
const ABackButton(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -138,6 +139,13 @@ class FilesList extends StatelessWidget {
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getImageWidget(int itemIndex) {
|
|
|
|
|
if (_isLocalUrl(images[itemIndex])) {
|
|
|
|
|
return Image.file(File(images[itemIndex]));
|
|
|
|
|
}
|
|
|
|
|
return ImageLoader(url: images[itemIndex]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ImageProvider getImageObject(int itemIndex) {
|
|
|
|
|
if (_isLocalUrl(images[itemIndex])) {
|
|
|
|
|
return FileImage(File(images[itemIndex]));
|
|
|
|
|
|