add tool title to MIH Home

This commit is contained in:
2025-05-29 14:51:59 +02:00
parent 4c4f2f5e28
commit 17e24782ac
3 changed files with 9 additions and 96 deletions

View File

@@ -72,12 +72,21 @@ class _MihHomeState extends State<MihHome> {
}
}
List<String> getToolTitle() {
List<String> toolTitles = [
"Personal",
"Business",
];
return toolTitles;
}
@override
Widget build(BuildContext context) {
return MihPackage(
appActionButton: getAction(),
appTools: getTools(),
appBody: getToolBody(),
appToolTitles: getToolTitle(),
actionDrawer: getActionDrawer(),
selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) {

View File

@@ -199,54 +199,6 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
return MihSingleChildScroll(
child: Column(
children: [
// Container(
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(10),
// color: MzanziInnovationHub.of(context)!.theme.errorColor(),
// ),
// height: 40,
// child: Row(
// children: [
// Icon(
// Icons.warning_amber_rounded,
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
// size: 40,
// ),
// const SizedBox(
// width: 5,
// ),
// Expanded(
// child: SingleChildScrollView(
// controller: _scrollController,
// scrollDirection: Axis.horizontal,
// child: Text(
// maintenanceMsg,
// style: TextStyle(
// color: MzanziInnovationHub.of(context)!
// .theme
// .primaryColor(),
// fontSize: 20,
// fontWeight: FontWeight.bold,
// ),
// ),
// ),
// ),
// ],
// ),
// ),
const SizedBox(
height: 5,
),
const Text(
"Business Home",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 25,
),
),
const SizedBox(
height: 10,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,

View File

@@ -244,54 +244,6 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
return MihSingleChildScroll(
child: Column(
children: [
// Container(
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(10),
// color: MzanziInnovationHub.of(context)!.theme.errorColor(),
// ),
// height: 40,
// child: Row(
// children: [
// Icon(
// Icons.warning_amber_rounded,
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
// size: 40,
// ),
// const SizedBox(
// width: 5,
// ),
// Expanded(
// child: SingleChildScrollView(
// controller: _scrollController,
// scrollDirection: Axis.horizontal,
// child: Text(
// maintenanceMsg,
// style: TextStyle(
// color: MzanziInnovationHub.of(context)!
// .theme
// .primaryColor(),
// fontSize: 20,
// fontWeight: FontWeight.bold,
// ),
// ),
// ),
// ),
// ],
// ),
// ),
const SizedBox(
height: 5,
),
const Text(
"Personal Home",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 25,
),
),
const SizedBox(
height: 10,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,