add title to Business Profile

This commit is contained in:
2025-05-29 15:46:27 +02:00
parent 7c6d0d0650
commit e538af2565
5 changed files with 15 additions and 40 deletions

View File

@@ -50,6 +50,7 @@ class _MzansiBusinessProfileState extends State<MzansiBusinessProfile> {
appActionButton: getAction(),
appTools: getTools(),
appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) {
setState(() {
@@ -145,4 +146,14 @@ class _MzansiBusinessProfileState extends State<MzansiBusinessProfile> {
];
return toolBodies;
}
List<String> getToolTitle() {
List<String> toolTitles = [
"Profile",
"User",
"Team",
"Add Member",
];
return toolTitles;
}
}

View File

@@ -234,7 +234,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(context),
);
}
@@ -243,15 +243,6 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
return MihSingleChildScroll(
child: Column(
children: [
const Text(
"Business Details",
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
),
),
Divider(color: MzanziInnovationHub.of(context)?.theme.secondaryColor()),
const SizedBox(height: 10),
MihCircleAvatar(
imageFile: widget.logoImage,
width: 150,

View File

@@ -92,7 +92,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(),
);
}
@@ -109,14 +109,6 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
}
},
child: Column(mainAxisSize: MainAxisSize.max, children: [
const Text(
"User Search",
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
),
//spacer
Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
const SizedBox(height: 10),
MIHSearchField(
controller: searchController,
hintText: "Username or Email Search",

View File

@@ -75,7 +75,7 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(),
);
}
@@ -83,15 +83,6 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
Widget getBody() {
return MihSingleChildScroll(
child: Column(mainAxisSize: MainAxisSize.max, children: [
const Text(
"Business Team",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 25,
),
),
Divider(color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
const SizedBox(height: 10),
FutureBuilder(
future: employeeList,
builder: (context, snapshot) {

View File

@@ -206,7 +206,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(),
);
}
@@ -215,16 +215,6 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
return MihSingleChildScroll(
child: Column(
children: [
const Text(
"My Business User",
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
),
),
Divider(
color: MzanziInnovationHub.of(context)?.theme.secondaryColor()),
const SizedBox(height: 10),
MihCircleAvatar(
imageFile: widget.userProPicImage,
width: 150,