Trying to fix image loading on dev
This commit is contained in:
@@ -224,12 +224,6 @@ class _CustomerWidgetState extends State<CustomerWidget> {
|
|||||||
headers: {cred.name: cred.value},
|
headers: {cred.name: cred.value},
|
||||||
pictureDto.thumbnailSizeUrl,
|
pictureDto.thumbnailSizeUrl,
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
loadingBuilder: (context, child, loadingProgress) {
|
|
||||||
if (loadingProgress == null) return child;
|
|
||||||
return Center(
|
|
||||||
child: CircularProgressIndicator(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -53,12 +53,6 @@ class PictureFullscreenDialog extends StatelessWidget {
|
|||||||
child: Image.network(
|
child: Image.network(
|
||||||
headers: {cred.name: cred.value},
|
headers: {cred.name: cred.value},
|
||||||
dto.imageUrl,
|
dto.imageUrl,
|
||||||
loadingBuilder: (context, child, loadingProgress) {
|
|
||||||
if (loadingProgress == null) return child;
|
|
||||||
return Center(
|
|
||||||
child: CircularProgressIndicator(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -158,12 +158,6 @@ class _PictureWidgetState extends State<PictureWidget> {
|
|||||||
headers: {cred.name: cred.value},
|
headers: {cred.name: cred.value},
|
||||||
dto.normalSizeUrl,
|
dto.normalSizeUrl,
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
loadingBuilder: (context, child, loadingProgress) {
|
|
||||||
if (loadingProgress == null) return child;
|
|
||||||
return Center(
|
|
||||||
child: CircularProgressIndicator(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ void main() {
|
|||||||
when(mockCustomerController.getAll("", "")).thenAnswer((_) async => _list);
|
when(mockCustomerController.getAll("", "")).thenAnswer((_) async => _list);
|
||||||
provideMockedNetworkImages(() async {
|
provideMockedNetworkImages(() async {
|
||||||
await pumpAppConfig(tester, "${GlobalRouter.pathHome}${GlobalRouter.pathCustomer}/1${GlobalRouter.pathPicture}/1");
|
await pumpAppConfig(tester, "${GlobalRouter.pathHome}${GlobalRouter.pathCustomer}/1${GlobalRouter.pathPicture}/1");
|
||||||
|
await tester.pump(Duration(seconds: 10));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
// The comment field should be empty but the label should exist
|
// The comment field should be empty but the label should exist
|
||||||
|
|||||||
Reference in New Issue
Block a user