add fitted box around text

This commit is contained in:
2025-07-01 16:10:12 +02:00
parent 74c9bea5ee
commit b570c17706

View File

@@ -425,41 +425,54 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
}, },
), ),
), ),
Text( FittedBox(
"@${widget.arguments.signedInUser.username}", child: Text(
style: TextStyle( "@${widget.arguments.signedInUser.username}",
fontSize: 35, style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 35,
color: fontWeight: FontWeight.bold,
MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
), ),
), ),
Text( FittedBox(
"${widget.arguments.signedInUser.fname} ${widget.arguments.signedInUser.lname}", child: Text(
style: TextStyle( "${widget.arguments.signedInUser.fname} ${widget.arguments.signedInUser.lname}",
fontSize: 25, style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 25,
color: fontWeight: FontWeight.bold,
MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
), ),
), ),
Text( FittedBox(
businessUser ? "Business" : "Personal", child: Text(
style: TextStyle( businessUser ? "Business" : "Personal",
fontSize: 15, style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 15,
color: fontWeight: FontWeight.bold,
MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
), ),
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
Text( Center(
"This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself", child: Text(
style: TextStyle( "*DEMO TEXT* This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself",
fontSize: 15, textAlign: TextAlign.center,
fontWeight: FontWeight.bold, style: TextStyle(
color: fontSize: 15,
MzanziInnovationHub.of(context)!.theme.secondaryColor(), fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
), ),
), ),
const SizedBox(height: 30.0), const SizedBox(height: 30.0),