Trying to fix image loading on dev

This commit is contained in:
verboomp
2026-02-03 15:46:43 +01:00
parent 51a05ea372
commit bf02f143dd
3 changed files with 4 additions and 21 deletions

View File

@@ -158,15 +158,10 @@ class _PictureWidgetState extends State<PictureWidget> {
headers: {cred.name: cred.value},
dto.normalSizeUrl,
fit: BoxFit.contain,
frameBuilder: (context, child, frame, wasSynchronouslyLoaded) {
return child;
},
loadingBuilder: (context, child, loadingProgress) {
if (loadingProgress == null) return child;
return Center(
child: CircularProgressIndicator(
value: loadingProgress.expectedTotalBytes != null ? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes! : 0,
),
child: CircularProgressIndicator(),
);
},
),