fix error with test package

This commit is contained in:
2025-07-10 10:17:16 +02:00
parent ab8b722e5e
commit c2f064de74

View File

@@ -227,19 +227,19 @@ class _PackageToolOneState extends State<PackageToolOne> {
// print(asyncSnapshot.connectionState); // print(asyncSnapshot.connectionState);
if (asyncSnapshot.connectionState == if (asyncSnapshot.connectionState ==
ConnectionState.waiting) { ConnectionState.waiting) {
return MihBusinessProfilePreview( // return MihBusinessProfilePreview(
business: widget.business, // business: widget.business,
myLocation: null, // myLocation: null,
).redacted( // ).redacted(
context: context, // context: context,
redact: true, // redact: true,
);
// return Container(
// width: 150,
// height: 50,
// // color: Colors.black,
// child: Center(child: CircularProgressIndicator()),
// ); // );
return Container(
width: 150,
height: 50,
// color: Colors.black,
child: Center(child: CircularProgressIndicator()),
);
} else if (asyncSnapshot.hasError || } else if (asyncSnapshot.hasError ||
!asyncSnapshot.hasData || !asyncSnapshot.hasData ||
asyncSnapshot.data == null) { asyncSnapshot.data == null) {