add title to About MIH

This commit is contained in:
2025-05-29 15:37:25 +02:00
parent 87777d5435
commit 7c6d0d0650
6 changed files with 16 additions and 38 deletions

View File

@@ -35,6 +35,7 @@ class _AboutMihState extends State<AboutMih> {
appActionButton: getAction(),
appTools: getTools(),
appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) {
setState(() {
@@ -93,4 +94,14 @@ class _AboutMihState extends State<AboutMih> {
];
return toolBodies;
}
List<String> getToolTitle() {
List<String> toolTitles = [
"About",
"Privacy Policy",
"Terms of Service",
"Attributes",
];
return toolTitles;
}
}

View File

@@ -35,17 +35,6 @@ class PolicyAndTermsText {
),
),
const SizedBox(height: 10),
const Text(
"Privacy Policy",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 30,
),
),
const Padding(
padding: EdgeInsets.symmetric(vertical: 10.0),
child: Divider(),
),
//=============== Effective Date ===============
SizedBox(
width: 1250,
@@ -445,17 +434,6 @@ class PolicyAndTermsText {
const SizedBox(
height: 10,
),
const Text(
"Terms of Service",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 30,
),
),
const Padding(
padding: EdgeInsets.symmetric(vertical: 10.0),
child: Divider(),
),
//=============== Effective Date ===============
SizedBox(
width: 1250,

View File

@@ -91,7 +91,7 @@ class _MihAttributesState extends State<MihAttributes> {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(),
);
}
@@ -110,22 +110,11 @@ class _MihAttributesState extends State<MihAttributes> {
Icon(
MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
size: 125,
size: 165,
),
const SizedBox(
height: 10,
),
const Text(
'Attributions',
style: TextStyle(
fontSize: 30,
fontWeight: FontWeight.bold,
),
),
const Padding(
padding: EdgeInsets.symmetric(vertical: 10.0),
child: Divider(),
),
SelectableText(
message,
style: const TextStyle(

View File

@@ -486,7 +486,7 @@ class _MihInfoState extends State<MihInfo> {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(),
);
}

View File

@@ -9,7 +9,7 @@ class MihPrivacyPolicy extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(context),
);
}

View File

@@ -9,7 +9,7 @@ class MIHTermsOfService extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(context),
);
}