Trying to fix image loading on dev

This commit is contained in:
verboomp
2026-02-03 16:01:31 +01:00
parent bf02f143dd
commit cb5d0de5b2
4 changed files with 1 additions and 18 deletions

View File

@@ -224,12 +224,6 @@ class _CustomerWidgetState extends State<CustomerWidget> {
headers: {cred.name: cred.value},
pictureDto.thumbnailSizeUrl,
fit: BoxFit.contain,
loadingBuilder: (context, child, loadingProgress) {
if (loadingProgress == null) return child;
return Center(
child: CircularProgressIndicator(),
);
},
),
),
),

View File

@@ -53,12 +53,6 @@ class PictureFullscreenDialog extends StatelessWidget {
child: Image.network(
headers: {cred.name: cred.value},
dto.imageUrl,
loadingBuilder: (context, child, loadingProgress) {
if (loadingProgress == null) return child;
return Center(
child: CircularProgressIndicator(),
);
},
),
),
),

View File

@@ -158,12 +158,6 @@ class _PictureWidgetState extends State<PictureWidget> {
headers: {cred.name: cred.value},
dto.normalSizeUrl,
fit: BoxFit.contain,
loadingBuilder: (context, child, loadingProgress) {
if (loadingProgress == null) return child;
return Center(
child: CircularProgressIndicator(),
);
},
),
),
),

View File

@@ -117,6 +117,7 @@ void main() {
when(mockCustomerController.getAll("", "")).thenAnswer((_) async => _list);
provideMockedNetworkImages(() async {
await pumpAppConfig(tester, "${GlobalRouter.pathHome}${GlobalRouter.pathCustomer}/1${GlobalRouter.pathPicture}/1");
await tester.pump(Duration(seconds: 10));
await tester.pumpAndSettle();
// The comment field should be empty but the label should exist