QOL: Align fonsize of text

This commit is contained in:
2025-09-29 10:56:44 +02:00
parent 0f0e19b6f3
commit de4b6e8fcc

View File

@@ -92,7 +92,7 @@ class _MihInfoState extends State<MihInfo> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: const TextStyle(
//fontWeight: FontWeight.bold, //fontWeight: FontWeight.bold,
fontSize: 15, fontSize: 17,
), ),
), ),
), ),
@@ -512,9 +512,7 @@ class _MihInfoState extends State<MihInfo> {
} }
Widget displayBusinessCount() { Widget displayBusinessCount() {
return SizedBox( return Column(
// width: 300,
child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@@ -564,14 +562,11 @@ class _MihInfoState extends State<MihInfo> {
), ),
), ),
], ],
),
); );
} }
Widget displayUserCount() { Widget displayUserCount() {
return SizedBox( return Row(
// width: 300,
child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@@ -612,6 +607,7 @@ class _MihInfoState extends State<MihInfo> {
); );
}, },
), ),
const SizedBox(width: 10),
Text( Text(
"Users", "Users",
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -621,7 +617,6 @@ class _MihInfoState extends State<MihInfo> {
), ),
), ),
], ],
),
); );
} }
@@ -675,29 +670,22 @@ class _MihInfoState extends State<MihInfo> {
), ),
), ),
// ===================== Divider // ===================== Divider
Padding( // Padding(
padding: EdgeInsets.symmetric( // padding: EdgeInsets.symmetric(
vertical: 10.0, // vertical: 10.0,
horizontal: 25, // horizontal: 25,
),
child: Divider(
thickness: 1,
color: MihColors.getGreenColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
),
),
// const SizedBox(
// height: 10,
// ), // ),
Text( // child: Divider(
"The MIH Family", // thickness: 1,
style: TextStyle( // color: MihColors.getGreyColor(
fontWeight: FontWeight.bold, // MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
fontSize: 25, // ),
), // ),
const SizedBox(
height: 10,
), ),
Wrap( Wrap(
alignment: WrapAlignment.spaceEvenly, alignment: WrapAlignment.spaceAround,
crossAxisAlignment: WrapCrossAlignment.center, crossAxisAlignment: WrapCrossAlignment.center,
spacing: 25, spacing: 25,
runSpacing: 10, runSpacing: 10,
@@ -706,6 +694,13 @@ class _MihInfoState extends State<MihInfo> {
displayBusinessCount(), displayBusinessCount(),
], ],
), ),
Text(
"The MIH Family",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 25,
),
),
// ===================== Divider // ===================== Divider
Padding( Padding(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
@@ -714,7 +709,7 @@ class _MihInfoState extends State<MihInfo> {
), ),
child: Divider( child: Divider(
thickness: 1, thickness: 1,
color: MihColors.getGreenColor( color: MihColors.getGreyColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
), ),
), ),
@@ -835,7 +830,7 @@ class _MihInfoState extends State<MihInfo> {
), ),
child: Divider( child: Divider(
thickness: 1, thickness: 1,
color: MihColors.getGreenColor( color: MihColors.getGreyColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
), ),
), ),
@@ -858,7 +853,7 @@ class _MihInfoState extends State<MihInfo> {
), ),
child: Divider( child: Divider(
thickness: 1, thickness: 1,
color: MihColors.getGreenColor( color: MihColors.getGreyColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
), ),
), ),