fix loading indicator alignment for business QR code

This commit is contained in:
2026-02-18 10:41:49 +02:00
parent a7effa3576
commit f137ea41ac
3 changed files with 16 additions and 18 deletions

View File

@@ -368,8 +368,8 @@ class _MihBusinessCardV2State extends State<MihBusinessCardV2> {
"Dark"),
fontSize: 20,
),
),
).redacted(context: context, redact: true),
).redacted(context: context, redact: true),
),
],
);
} else {
@@ -450,8 +450,8 @@ class _MihBusinessCardV2State extends State<MihBusinessCardV2> {
"Dark"),
fontSize: 20,
),
),
).redacted(context: context, redact: true),
).redacted(context: context, redact: true),
),
],
);
} else {

View File

@@ -19,9 +19,6 @@ class _MihloadingcircleState extends State<Mihloadingcircle>
late AnimationController _controller;
late Animation<double> _animation;
late double width;
late double height;
@override
void initState() {
super.initState();
@@ -82,16 +79,15 @@ class _MihloadingcircleState extends State<Mihloadingcircle>
},
),
),
widget.message != null
? Text(
widget.message!,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
)
: SizedBox(),
if (widget.message != null)
Text(
widget.message!,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
),
],
)),
),

View File

@@ -298,7 +298,9 @@ class _MihBusinessQrCodeState extends State<MihBusinessQrCode> {
height: 300,
child: CachedNetworkImage(
imageUrl: getQrCodeData(qrSize.toInt()),
placeholder: (context, url) => const Mihloadingcircle(),
placeholder: (context, url) => FittedBox(
child: const Mihloadingcircle(),
),
errorWidget: (context, url, error) =>
const Icon(Icons.error),
),