fix url for https

This commit is contained in:
verboomp
2026-02-03 14:35:02 +01:00
parent 3a1b9a3af6
commit 2e120291c7
5 changed files with 54 additions and 42 deletions

View File

@@ -224,6 +224,16 @@ 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(
value: loadingProgress.expectedTotalBytes != null
? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes!
: 0,
),
);
},
),
),
),
@@ -232,8 +242,7 @@ class _CustomerWidgetState extends State<CustomerWidget> {
flex: 3,
child: Align(
alignment: Alignment.centerLeft,
child: Text(pictureDto.thumbnailSizeUrl),
//FIXME: child: Text(pictureDto.comment ?? "", style: dataStyle),
child: Text(pictureDto.comment ?? "", style: dataStyle),
),
),
Expanded(

View File

@@ -54,6 +54,16 @@ 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(
value: loadingProgress.expectedTotalBytes != null
? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes!
: 0,
),
);
},
),
),
),

View File

@@ -158,6 +158,16 @@ 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(
value: loadingProgress.expectedTotalBytes != null
? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes!
: 0,
),
);
},
),
),
),