From cb5d0de5b2748d139144eb80a4ef7842a39c36e3 Mon Sep 17 00:00:00 2001
From: verboomp
Date: Tue, 3 Feb 2026 16:01:31 +0100
Subject: [PATCH] Trying to fix image loading on dev
---
.../lib/pages/customer/customer_widget.dart | 6 ------
.../lib/pages/customer/picture_fullscreen_dialog.dart | 6 ------
.../lib/pages/customer/picture_widget.dart | 6 ------
.../test/pages/picture_widget_test.dart | 1 +
4 files changed, 1 insertion(+), 18 deletions(-)
diff --git a/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart b/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart
index e47c517..c530121 100644
--- a/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart
+++ b/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart
@@ -224,12 +224,6 @@ class _CustomerWidgetState extends State {
headers: {cred.name: cred.value},
pictureDto.thumbnailSizeUrl,
fit: BoxFit.contain,
- loadingBuilder: (context, child, loadingProgress) {
- if (loadingProgress == null) return child;
- return Center(
- child: CircularProgressIndicator(),
- );
- },
),
),
),
diff --git a/hartmann-foto-documentation-frontend/lib/pages/customer/picture_fullscreen_dialog.dart b/hartmann-foto-documentation-frontend/lib/pages/customer/picture_fullscreen_dialog.dart
index c9095cb..0b4b3ff 100644
--- a/hartmann-foto-documentation-frontend/lib/pages/customer/picture_fullscreen_dialog.dart
+++ b/hartmann-foto-documentation-frontend/lib/pages/customer/picture_fullscreen_dialog.dart
@@ -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(),
- );
- },
),
),
),
diff --git a/hartmann-foto-documentation-frontend/lib/pages/customer/picture_widget.dart b/hartmann-foto-documentation-frontend/lib/pages/customer/picture_widget.dart
index 6d99212..da65db3 100644
--- a/hartmann-foto-documentation-frontend/lib/pages/customer/picture_widget.dart
+++ b/hartmann-foto-documentation-frontend/lib/pages/customer/picture_widget.dart
@@ -158,12 +158,6 @@ class _PictureWidgetState extends State {
headers: {cred.name: cred.value},
dto.normalSizeUrl,
fit: BoxFit.contain,
- loadingBuilder: (context, child, loadingProgress) {
- if (loadingProgress == null) return child;
- return Center(
- child: CircularProgressIndicator(),
- );
- },
),
),
),
diff --git a/hartmann-foto-documentation-frontend/test/pages/picture_widget_test.dart b/hartmann-foto-documentation-frontend/test/pages/picture_widget_test.dart
index e271513..710410e 100644
--- a/hartmann-foto-documentation-frontend/test/pages/picture_widget_test.dart
+++ b/hartmann-foto-documentation-frontend/test/pages/picture_widget_test.dart
@@ -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