add defualt text
This commit is contained in:
@@ -65,24 +65,28 @@ class _MihPersonalProfilePreviewState extends State<MihPersonalProfilePreview> {
|
|||||||
return Icon(
|
return Icon(
|
||||||
MihIcons.mihRing,
|
MihIcons.mihRing,
|
||||||
size: profilePictureWidth,
|
size: profilePictureWidth,
|
||||||
color:
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}),
|
},
|
||||||
|
),
|
||||||
const SizedBox(width: 15),
|
const SizedBox(width: 15),
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
widget.user.username,
|
widget.user.username.isNotEmpty
|
||||||
|
? widget.user.username
|
||||||
|
: "Username",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"${widget.user.fname} ${widget.user.lname}",
|
widget.user.fname.isNotEmpty
|
||||||
|
? "${widget.user.fname} ${widget.user.lname}"
|
||||||
|
: "Name Surname",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
|
|||||||
Reference in New Issue
Block a user