search mzansi

This commit is contained in:
2025-07-09 16:13:41 +02:00
parent dd78fab259
commit a7a2577a4f
7 changed files with 336 additions and 26 deletions

View File

@@ -40,22 +40,33 @@ class _MihPersonalProfilePreviewState extends State<MihPersonalProfilePreview> {
builder: (context, asyncSnapshot) {
if (asyncSnapshot.connectionState == ConnectionState.done &&
asyncSnapshot.hasData) {
return MihCircleAvatar(
imageFile: NetworkImage(asyncSnapshot.requireData),
width: profilePictureWidth,
editable: false,
fileNameController: TextEditingController(),
userSelectedfile: file,
frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
onChange: () {},
);
if (asyncSnapshot.requireData != "") {
return MihCircleAvatar(
imageFile: NetworkImage(asyncSnapshot.requireData),
width: profilePictureWidth,
editable: false,
fileNameController: TextEditingController(),
userSelectedfile: file,
frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
onChange: () {},
);
} else {
return Icon(
MihIcons.iDontKnow,
size: profilePictureWidth,
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
);
}
} else {
return Icon(
MihIcons.mihLogo,
MihIcons.mihRing,
size: profilePictureWidth,
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
);
}
}),

View File

@@ -3,7 +3,8 @@ import '../../main.dart';
import 'package:gif_view/gif_view.dart';
class Mihloadingcircle extends StatefulWidget {
const Mihloadingcircle({super.key});
final String? message;
const Mihloadingcircle({super.key, this.message});
@override
State<Mihloadingcircle> createState() => _MihloadingcircleState();
@@ -53,7 +54,7 @@ class _MihloadingcircleState extends State<Mihloadingcircle> {
child: Container(
padding: EdgeInsets.all(popUpPaddingSize),
width: 250,
height: 250,
height: 275,
decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0),
@@ -61,11 +62,24 @@ class _MihloadingcircleState extends State<Mihloadingcircle> {
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
width: 5.0),
),
child: GifView.asset(
MzanziInnovationHub.of(context)!.theme.loadingImageLocation(),
height: 200,
width: 200,
frameRate: 30,
child: Column(
children: [
GifView.asset(
MzanziInnovationHub.of(context)!.theme.loadingImageLocation(),
height: 200,
width: 200,
frameRate: 30,
),
widget.message != null
? Text(
widget.message!,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,
),
)
: SizedBox(),
],
)),
);
}