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(), appActionButton: getAction(),
appTools: getTools(), appTools: getTools(),
appBody: getToolBody(), appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex, selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) { onIndexChange: (newValue) {
setState(() { setState(() {
@@ -145,4 +146,14 @@ class _MzansiBusinessProfileState extends State<MzansiBusinessProfile> {
]; ];
return toolBodies; 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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(context), bodyItem: getBody(context),
); );
} }
@@ -243,15 +243,6 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
return MihSingleChildScroll( return MihSingleChildScroll(
child: Column( child: Column(
children: [ children: [
const Text(
"Business Details",
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
),
),
Divider(color: MzanziInnovationHub.of(context)?.theme.secondaryColor()),
const SizedBox(height: 10),
MihCircleAvatar( MihCircleAvatar(
imageFile: widget.logoImage, imageFile: widget.logoImage,
width: 150, width: 150,

View File

@@ -92,7 +92,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(), bodyItem: getBody(),
); );
} }
@@ -109,14 +109,6 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
} }
}, },
child: Column(mainAxisSize: MainAxisSize.max, children: [ 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( MIHSearchField(
controller: searchController, controller: searchController,
hintText: "Username or Email Search", hintText: "Username or Email Search",

View File

@@ -75,7 +75,7 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(), bodyItem: getBody(),
); );
} }
@@ -83,15 +83,6 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
Widget getBody() { Widget getBody() {
return MihSingleChildScroll( return MihSingleChildScroll(
child: Column(mainAxisSize: MainAxisSize.max, children: [ 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( FutureBuilder(
future: employeeList, future: employeeList,
builder: (context, snapshot) { builder: (context, snapshot) {

View File

@@ -206,7 +206,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(), bodyItem: getBody(),
); );
} }
@@ -215,16 +215,6 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
return MihSingleChildScroll( return MihSingleChildScroll(
child: Column( child: Column(
children: [ 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( MihCircleAvatar(
imageFile: widget.userProPicImage, imageFile: widget.userProPicImage,
width: 150, width: 150,