Trying to fix image loading on dev
This commit is contained in:
@@ -17,7 +17,7 @@ class PictureFullscreenDialog extends StatelessWidget {
|
|||||||
final dialogWidth = screenSize.width * 0.9;
|
final dialogWidth = screenSize.width * 0.9;
|
||||||
final dialogHeight = screenSize.height * 0.9 - 50;
|
final dialogHeight = screenSize.height * 0.9 - 50;
|
||||||
Header cred = HeaderUtils().getAuthHeader();
|
Header cred = HeaderUtils().getAuthHeader();
|
||||||
|
|
||||||
return Dialog(
|
return Dialog(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
@@ -56,13 +56,7 @@ class PictureFullscreenDialog extends StatelessWidget {
|
|||||||
dto.imageUrl,
|
dto.imageUrl,
|
||||||
loadingBuilder: (context, child, loadingProgress) {
|
loadingBuilder: (context, child, loadingProgress) {
|
||||||
if (loadingProgress == null) return child;
|
if (loadingProgress == null) return child;
|
||||||
return Center(
|
return Text("Loading...");
|
||||||
child: CircularProgressIndicator(
|
|
||||||
value: loadingProgress.expectedTotalBytes != null
|
|
||||||
? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes!
|
|
||||||
: 0,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user