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 dialogHeight = screenSize.height * 0.9 - 50;
|
||||
Header cred = HeaderUtils().getAuthHeader();
|
||||
|
||||
|
||||
return Dialog(
|
||||
backgroundColor: Colors.black,
|
||||
clipBehavior: Clip.hardEdge,
|
||||
@@ -56,13 +56,7 @@ class PictureFullscreenDialog extends StatelessWidget {
|
||||
dto.imageUrl,
|
||||
loadingBuilder: (context, child, loadingProgress) {
|
||||
if (loadingProgress == null) return child;
|
||||
return Center(
|
||||
child: CircularProgressIndicator(
|
||||
value: loadingProgress.expectedTotalBytes != null
|
||||
? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes!
|
||||
: 0,
|
||||
),
|
||||
);
|
||||
return Text("Loading...");
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user