Merge pull request #244 from yaso-meth/QOL--Padding-message-fix

fix spaces with messages
This commit is contained in:
yaso-meth
2025-08-11 11:08:33 +02:00
committed by GitHub
15 changed files with 56 additions and 40 deletions

View File

@@ -203,7 +203,7 @@ class _MihAccessRequestState extends State<MihAccessRequest> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"No Access has been granted to your MIH Profile", "No access has been granted to your MIH Profile",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(

View File

@@ -97,7 +97,7 @@ class _PatientAccessRequestState extends State<Appointments> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"No Appointments for $selectedDay", "No appointments for $selectedDay",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -106,7 +106,7 @@ class _PatientAccessRequestState extends State<Appointments> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,

View File

@@ -1,4 +1,3 @@
import 'package:flutter/services.dart';
import 'package:mzansi_innovation_hub/main.dart'; import 'package:mzansi_innovation_hub/main.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_single_child_scroll.dart'; import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_single_child_scroll.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_icons.dart'; import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_icons.dart';
@@ -259,7 +258,7 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
), ),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 20),
ValueListenableBuilder( ValueListenableBuilder(
valueListenable: searchPackageName, valueListenable: searchPackageName,
builder: (context, value, child) { builder: (context, value, child) {

View File

@@ -804,7 +804,7 @@ class _AiChatState extends State<AiChat> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
const SizedBox(height: 50), // const SizedBox(height: 50),
Icon( Icon(
MihIcons.mzansiAi, MihIcons.mzansiAi,
size: 165, size: 165,
@@ -821,7 +821,7 @@ class _AiChatState extends State<AiChat> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,

View File

@@ -152,7 +152,7 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Let's Try Refining Your Search", "Let's try refining your search",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -192,7 +192,7 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"No Businesses added to your Favourites", "No favourite businesses added to your mzansi directory",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -203,7 +203,7 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
.secondaryColor(), .secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -216,7 +216,7 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
.secondaryColor(), .secondaryColor(),
), ),
children: [ children: [
TextSpan(text: "Use the Mzansi Search"), TextSpan(text: "Use the mzansi search"),
// WidgetSpan( // WidgetSpan(
// alignment: // alignment:
// PlaceholderAlignment.middle, // PlaceholderAlignment.middle,
@@ -230,7 +230,8 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
// ), // ),
// ), // ),
TextSpan( TextSpan(
text: " to find Businesses of Mzansi"), text:
" to find your favourite businesses of mzansi"),
], ],
), ),
), ),

View File

@@ -297,7 +297,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Search for People Of Mzansi!", "Search for people of Mzansi!",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -308,7 +308,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
.secondaryColor(), .secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -332,7 +332,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
.secondaryColor(), .secondaryColor(),
), ),
), ),
TextSpan(text: " to search for Businesses of Mzansi"), TextSpan(text: " to search for businesses of Mzansi"),
], ],
), ),
), ),
@@ -380,7 +380,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Let's Try Refining Your Search", "Let's try refining your search",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -443,9 +443,9 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
color: color:
MzansiInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Text( Text(
"Let's Try Refining Your Search", "Let's try refining your search",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -473,7 +473,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Search for Business Of Mzansi!", "Search for businesses of Mzansi!",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -484,7 +484,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
.secondaryColor(), .secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -508,7 +508,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
.secondaryColor(), .secondaryColor(),
), ),
), ),
TextSpan(text: " to search for People of Mzansi"), TextSpan(text: " to search for people of Mzansi"),
], ],
), ),
), ),

View File

@@ -74,7 +74,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Let's Try Refining Your Search", "Let's try refining your search",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -100,7 +100,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Search for a Member of Mzansi to add to your team", "Search for a member of Mzansi to add to your team",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -109,7 +109,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -122,7 +122,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
), ),
children: [ children: [
TextSpan( TextSpan(
text: "You can search using their Username or Email"), text: "You can search using their username or email"),
// WidgetSpan( // WidgetSpan(
// alignment: PlaceholderAlignment.middle, // alignment: PlaceholderAlignment.middle,
// child: Icon( // child: Icon(

View File

@@ -540,7 +540,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Let's Try Refining Your Search", "Let's try refining your search",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -567,7 +567,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"No Cards added to your Mzansi Wallet", "No cards added to your Mzansi Wallet",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -577,7 +577,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
MzansiInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -624,7 +624,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"No Favourite Cards in your Mzansi Wallet", "No favourite cards in your Mzansi Wallet",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -634,7 +634,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
MzansiInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -660,7 +660,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
), ),
TextSpan( TextSpan(
text: text:
" when viewing loyalty card to add it to your favorites"), " when viewing a loyalty card to add it to your favorites"),
], ],
), ),
), ),

View File

@@ -137,7 +137,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Let's Try Refining Your Search", "Let's try refining your search",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -172,7 +172,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -186,7 +186,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
children: [ children: [
TextSpan( TextSpan(
text: text:
"You can search using their teamtient ID or Medical Aid No."), "You can search using their ID Number or Medical Aid No."),
// WidgetSpan( // WidgetSpan(
// alignment: PlaceholderAlignment.middle, // alignment: PlaceholderAlignment.middle,
// child: Icon( // child: Icon(

View File

@@ -126,7 +126,7 @@ class _MyPatientListState extends State<MyPatientList> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
"Let's Try Refining Your Search", "Let's try refining your search",
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
@@ -161,7 +161,7 @@ class _MyPatientListState extends State<MyPatientList> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,

View File

@@ -193,7 +193,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,

View File

@@ -385,7 +385,7 @@ class _BuildClaimStatementFileListState
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Visibility( Visibility(
visible: widget.business != null, visible: widget.business != null,
child: Center( child: Center(

View File

@@ -436,7 +436,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Center( Center(
child: RichText( child: RichText(
textAlign: TextAlign.center, textAlign: TextAlign.center,

View File

@@ -317,7 +317,7 @@ class _BuildNotesListState extends State<BuildNotesList> {
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 25),
Visibility( Visibility(
visible: widget.business != null, visible: widget.business != null,
child: Center( child: Center(

View File

@@ -241,6 +241,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.1.2" version: "3.1.2"
country_code_picker:
dependency: "direct main"
description:
name: country_code_picker
sha256: ee216486da1db8e3c5688f9650c99472ab6a4025ed1ea0c5a54ae6063143d90d
url: "https://pub.dev"
source: hosted
version: "3.3.0"
cross_file: cross_file:
dependency: transitive dependency: transitive
description: description:
@@ -297,6 +305,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "7.0.2" version: "7.0.2"
diacritic:
dependency: transitive
description:
name: diacritic
sha256: "12981945ec38931748836cd76f2b38773118d0baef3c68404bdfde9566147876"
url: "https://pub.dev"
source: hosted
version: "0.1.6"
diffutil_dart: diffutil_dart:
dependency: transitive dependency: transitive
description: description: