V.1.2.6 #16
File diff suppressed because one or more lines are too long
@@ -2,9 +2,11 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
class MihSingleChildScroll extends StatefulWidget {
|
class MihSingleChildScroll extends StatefulWidget {
|
||||||
final Widget child;
|
final Widget child;
|
||||||
|
final bool? scrollbarOn;
|
||||||
const MihSingleChildScroll({
|
const MihSingleChildScroll({
|
||||||
super.key,
|
super.key,
|
||||||
required this.child,
|
required this.child,
|
||||||
|
this.scrollbarOn,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -18,7 +20,8 @@ class _MihSingleChildScrollState extends State<MihSingleChildScroll> {
|
|||||||
bottom: false,
|
bottom: false,
|
||||||
minimum: EdgeInsets.only(bottom: 5),
|
minimum: EdgeInsets.only(bottom: 5),
|
||||||
child: ScrollConfiguration(
|
child: ScrollConfiguration(
|
||||||
behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
|
behavior: ScrollConfiguration.of(context)
|
||||||
|
.copyWith(scrollbars: widget.scrollbarOn ?? false),
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: widget.child,
|
child: widget.child,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ class _MihAttributesState extends State<MihAttributes> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MihPackageToolBody(
|
return MihPackageToolBody(
|
||||||
borderOn: false,
|
borderOn: false,
|
||||||
innerHorizontalPadding: 10,
|
|
||||||
bodyItem: getBody(),
|
bodyItem: getBody(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -108,179 +107,184 @@ class _MihAttributesState extends State<MihAttributes> {
|
|||||||
"As per the terms for free use for these third party providers, the following assets require attribution";
|
"As per the terms for free use for these third party providers, the following assets require attribution";
|
||||||
|
|
||||||
return MihSingleChildScroll(
|
return MihSingleChildScroll(
|
||||||
child: Column(
|
scrollbarOn: true,
|
||||||
children: [
|
child: Padding(
|
||||||
Icon(
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
MihIcons.mihLogo,
|
child: Column(
|
||||||
color: MihColors.getSecondaryColor(
|
children: [
|
||||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
Icon(
|
||||||
size: 165,
|
MihIcons.mihLogo,
|
||||||
),
|
color: MihColors.getSecondaryColor(
|
||||||
const SizedBox(
|
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
||||||
height: 10,
|
size: 165,
|
||||||
),
|
|
||||||
SelectableText(
|
|
||||||
message,
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 15,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(
|
||||||
const SizedBox(
|
height: 10,
|
||||||
height: 10,
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
width: 700,
|
|
||||||
child: Table(
|
|
||||||
defaultVerticalAlignment: TableCellVerticalAlignment.middle,
|
|
||||||
columnWidths: const {
|
|
||||||
0: FlexColumnWidth(1),
|
|
||||||
1: FlexColumnWidth(1),
|
|
||||||
2: FlexColumnWidth(1),
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
const TableRow(
|
|
||||||
children: [
|
|
||||||
TableCell(
|
|
||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.only(bottom: 15.0),
|
|
||||||
child: Center(
|
|
||||||
child: Text(
|
|
||||||
"Resources",
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 25,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
TableCell(
|
|
||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.only(bottom: 15.0),
|
|
||||||
child: Center(
|
|
||||||
child: Text(
|
|
||||||
"Creator",
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 25,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
TableCell(
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.only(bottom: 15.0),
|
|
||||||
child: Center(
|
|
||||||
child: Text(
|
|
||||||
"Link",
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 25,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
displayIcon(MihIcons.mihRing, "Tarah Meth",
|
|
||||||
"https://www.linkedin.com/in/tarah-meth-3b6309254/"),
|
|
||||||
displayIcon(MihIcons.mihLogo, "Tarah Meth",
|
|
||||||
"https://www.linkedin.com/in/tarah-meth-3b6309254/"),
|
|
||||||
displayIcon(MihIcons.mzansiAi, "Ollama", "https://ollama.com/"),
|
|
||||||
displayIcon(MihIcons.mzansiWallet, "Freepik",
|
|
||||||
"https://www.flaticon.com/free-icon/wallet-passes-app_3884407?term=wallet&page=1&position=21&origin=search&related_id=3884407"),
|
|
||||||
displayIcon(MihIcons.patientProfile, "RaftelDesign",
|
|
||||||
"https://www.flaticon.com/free-icon/patient_2376100?term=medication&page=1&position=6&origin=search&related_id=2376100"),
|
|
||||||
displayIcon(MihIcons.patientProfile, "Srip",
|
|
||||||
"https://www.flaticon.com/free-icon/hospital_1233930?term=medical+snake&page=1&position=7&origin=search&related_id=1233930"),
|
|
||||||
displayIcon(MihIcons.calendar, "Freepik",
|
|
||||||
"https://www.flaticon.com/free-icon/calendar_2278049?term=calendar&page=1&position=5&origin=search&related_id=2278049"),
|
|
||||||
displayIcon(MihIcons.calculator, "Freepik",
|
|
||||||
"https://www.flaticon.com/free-icon/calculator_2374409?term=calculator&page=1&position=20&origin=search&related_id=2374409"),
|
|
||||||
displayIcon(MihIcons.aboutMih, "Chanut",
|
|
||||||
"https://www.flaticon.com/free-icon/info_151776?term=about&page=1&position=8&origin=search&related_id=151776"),
|
|
||||||
displayIcon(MihIcons.personalProfile, "Freepik",
|
|
||||||
"https://www.flaticon.com/free-icon/user_1077063?term=profile&page=1&position=6&origin=search&related_id=1077063"),
|
|
||||||
displayIcon(MihIcons.businessProfile, "Gravisio",
|
|
||||||
"https://www.flaticon.com/free-icon/contractor_11813336?term=company+profile&page=1&position=2&origin=search&related_id=11813336"),
|
|
||||||
displayIcon(MihIcons.patientManager, "Vector Tank",
|
|
||||||
"https://www.flaticon.com/free-icon/doctor_10215061?term=doctor&page=1&position=73&origin=search&related_id=10215061"),
|
|
||||||
displayIcon(MihIcons.profileSetup, "Freepik",
|
|
||||||
"https://www.flaticon.com/free-icon/add-user_748137?term=profile+add&page=1&position=1&origin=search&related_id=748137"),
|
|
||||||
displayIcon(MihIcons.businessSetup, "kerismaker",
|
|
||||||
"https://www.flaticon.com/free-icon/business_13569850?term=company+add&page=1&position=25&origin=search&related_id=13569850"),
|
|
||||||
displayIcon(MihIcons.calculator, "fawazahmed0",
|
|
||||||
"https://github.com/fawazahmed0/exchange-api"),
|
|
||||||
displayIcon(MihIcons.iDontKnow, "Freepik",
|
|
||||||
"https://www.flaticon.com/free-icon/i-dont-know_5359909?term=i+dont+know&page=1&position=7&origin=search&related_id=5359909"),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
SelectableText(
|
||||||
// SizedBox(
|
message,
|
||||||
// width: 500,
|
style: const TextStyle(
|
||||||
// child: Column(
|
fontSize: 15,
|
||||||
// children: [
|
fontWeight: FontWeight.bold,
|
||||||
// const SizedBox(
|
),
|
||||||
// width: double.infinity,
|
),
|
||||||
// child: Row(
|
const SizedBox(
|
||||||
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
height: 10,
|
||||||
// mainAxisSize: MainAxisSize.max,
|
),
|
||||||
// children: [
|
SizedBox(
|
||||||
// Flexible(
|
width: 700,
|
||||||
// child: Text(
|
child: Table(
|
||||||
// "Icon",
|
defaultVerticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
// style: TextStyle(
|
columnWidths: const {
|
||||||
// fontSize: 25,
|
0: FlexColumnWidth(1),
|
||||||
// fontWeight: FontWeight.bold,
|
1: FlexColumnWidth(1),
|
||||||
// ),
|
2: FlexColumnWidth(1),
|
||||||
// ),
|
},
|
||||||
// ),
|
children: [
|
||||||
// Flexible(
|
const TableRow(
|
||||||
// child: Text(
|
children: [
|
||||||
// "Creator",
|
TableCell(
|
||||||
// style: TextStyle(
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
// fontSize: 25,
|
child: Padding(
|
||||||
// fontWeight: FontWeight.bold,
|
padding: const EdgeInsets.only(bottom: 15.0),
|
||||||
// ),
|
child: Center(
|
||||||
// ),
|
child: Text(
|
||||||
// ),
|
"Resources",
|
||||||
// Flexible(
|
style: TextStyle(
|
||||||
// child: Text(
|
fontSize: 25,
|
||||||
// "Link",
|
fontWeight: FontWeight.bold,
|
||||||
// style: TextStyle(
|
),
|
||||||
// fontSize: 25,
|
),
|
||||||
// fontWeight: FontWeight.bold,
|
),
|
||||||
// ),
|
),
|
||||||
// ),
|
),
|
||||||
// ),
|
TableCell(
|
||||||
// ],
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
// ),
|
child: Padding(
|
||||||
// ),
|
padding: const EdgeInsets.only(bottom: 15.0),
|
||||||
// const Padding(
|
child: Center(
|
||||||
// padding: EdgeInsets.symmetric(vertical: 10.0),
|
child: Text(
|
||||||
// child: Divider(),
|
"Creator",
|
||||||
// ),
|
style: TextStyle(
|
||||||
// displayIcon(MihIcons.mihLogo, "Tarah Meth",
|
fontSize: 25,
|
||||||
// "https://app.mzansi-innovation-hub.co.za/"),
|
fontWeight: FontWeight.bold,
|
||||||
// const SizedBox(height: 10),
|
),
|
||||||
// displayIcon(MihIcons.mihLogo, "Test",
|
),
|
||||||
// "https://www.flaticon.com/free-icons/mih"),
|
),
|
||||||
// const SizedBox(height: 10),
|
),
|
||||||
// displayIcon(MihIcons.mihLogo, "Test",
|
),
|
||||||
// "https://www.flaticon.com/free-icons/mih"),
|
TableCell(
|
||||||
// const SizedBox(height: 10),
|
child: Padding(
|
||||||
// displayIcon(MihIcons.mihLogo, "Test",
|
padding: const EdgeInsets.only(bottom: 15.0),
|
||||||
// "https://www.flaticon.com/free-icons/mih"),
|
child: Center(
|
||||||
// const SizedBox(height: 10),
|
child: Text(
|
||||||
// ],
|
"Link",
|
||||||
// ),
|
style: TextStyle(
|
||||||
// )
|
fontSize: 25,
|
||||||
],
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
displayIcon(MihIcons.mihRing, "Tarah Meth",
|
||||||
|
"https://www.linkedin.com/in/tarah-meth-3b6309254/"),
|
||||||
|
displayIcon(MihIcons.mihLogo, "Tarah Meth",
|
||||||
|
"https://www.linkedin.com/in/tarah-meth-3b6309254/"),
|
||||||
|
displayIcon(
|
||||||
|
MihIcons.mzansiAi, "Ollama", "https://ollama.com/"),
|
||||||
|
displayIcon(MihIcons.mzansiWallet, "Freepik",
|
||||||
|
"https://www.flaticon.com/free-icon/wallet-passes-app_3884407?term=wallet&page=1&position=21&origin=search&related_id=3884407"),
|
||||||
|
displayIcon(MihIcons.patientProfile, "RaftelDesign",
|
||||||
|
"https://www.flaticon.com/free-icon/patient_2376100?term=medication&page=1&position=6&origin=search&related_id=2376100"),
|
||||||
|
displayIcon(MihIcons.patientProfile, "Srip",
|
||||||
|
"https://www.flaticon.com/free-icon/hospital_1233930?term=medical+snake&page=1&position=7&origin=search&related_id=1233930"),
|
||||||
|
displayIcon(MihIcons.calendar, "Freepik",
|
||||||
|
"https://www.flaticon.com/free-icon/calendar_2278049?term=calendar&page=1&position=5&origin=search&related_id=2278049"),
|
||||||
|
displayIcon(MihIcons.calculator, "Freepik",
|
||||||
|
"https://www.flaticon.com/free-icon/calculator_2374409?term=calculator&page=1&position=20&origin=search&related_id=2374409"),
|
||||||
|
displayIcon(MihIcons.aboutMih, "Chanut",
|
||||||
|
"https://www.flaticon.com/free-icon/info_151776?term=about&page=1&position=8&origin=search&related_id=151776"),
|
||||||
|
displayIcon(MihIcons.personalProfile, "Freepik",
|
||||||
|
"https://www.flaticon.com/free-icon/user_1077063?term=profile&page=1&position=6&origin=search&related_id=1077063"),
|
||||||
|
displayIcon(MihIcons.businessProfile, "Gravisio",
|
||||||
|
"https://www.flaticon.com/free-icon/contractor_11813336?term=company+profile&page=1&position=2&origin=search&related_id=11813336"),
|
||||||
|
displayIcon(MihIcons.patientManager, "Vector Tank",
|
||||||
|
"https://www.flaticon.com/free-icon/doctor_10215061?term=doctor&page=1&position=73&origin=search&related_id=10215061"),
|
||||||
|
displayIcon(MihIcons.profileSetup, "Freepik",
|
||||||
|
"https://www.flaticon.com/free-icon/add-user_748137?term=profile+add&page=1&position=1&origin=search&related_id=748137"),
|
||||||
|
displayIcon(MihIcons.businessSetup, "kerismaker",
|
||||||
|
"https://www.flaticon.com/free-icon/business_13569850?term=company+add&page=1&position=25&origin=search&related_id=13569850"),
|
||||||
|
displayIcon(MihIcons.calculator, "fawazahmed0",
|
||||||
|
"https://github.com/fawazahmed0/exchange-api"),
|
||||||
|
displayIcon(MihIcons.iDontKnow, "Freepik",
|
||||||
|
"https://www.flaticon.com/free-icon/i-dont-know_5359909?term=i+dont+know&page=1&position=7&origin=search&related_id=5359909"),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// SizedBox(
|
||||||
|
// width: 500,
|
||||||
|
// child: Column(
|
||||||
|
// children: [
|
||||||
|
// const SizedBox(
|
||||||
|
// width: double.infinity,
|
||||||
|
// child: Row(
|
||||||
|
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
|
// mainAxisSize: MainAxisSize.max,
|
||||||
|
// children: [
|
||||||
|
// Flexible(
|
||||||
|
// child: Text(
|
||||||
|
// "Icon",
|
||||||
|
// style: TextStyle(
|
||||||
|
// fontSize: 25,
|
||||||
|
// fontWeight: FontWeight.bold,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// Flexible(
|
||||||
|
// child: Text(
|
||||||
|
// "Creator",
|
||||||
|
// style: TextStyle(
|
||||||
|
// fontSize: 25,
|
||||||
|
// fontWeight: FontWeight.bold,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// Flexible(
|
||||||
|
// child: Text(
|
||||||
|
// "Link",
|
||||||
|
// style: TextStyle(
|
||||||
|
// fontSize: 25,
|
||||||
|
// fontWeight: FontWeight.bold,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// const Padding(
|
||||||
|
// padding: EdgeInsets.symmetric(vertical: 10.0),
|
||||||
|
// child: Divider(),
|
||||||
|
// ),
|
||||||
|
// displayIcon(MihIcons.mihLogo, "Tarah Meth",
|
||||||
|
// "https://app.mzansi-innovation-hub.co.za/"),
|
||||||
|
// const SizedBox(height: 10),
|
||||||
|
// displayIcon(MihIcons.mihLogo, "Test",
|
||||||
|
// "https://www.flaticon.com/free-icons/mih"),
|
||||||
|
// const SizedBox(height: 10),
|
||||||
|
// displayIcon(MihIcons.mihLogo, "Test",
|
||||||
|
// "https://www.flaticon.com/free-icons/mih"),
|
||||||
|
// const SizedBox(height: 10),
|
||||||
|
// displayIcon(MihIcons.mihLogo, "Test",
|
||||||
|
// "https://www.flaticon.com/free-icons/mih"),
|
||||||
|
// const SizedBox(height: 10),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// )
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -777,6 +777,7 @@ class _MihInfoState extends State<MihInfo> {
|
|||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
MihSingleChildScroll(
|
MihSingleChildScroll(
|
||||||
|
scrollbarOn: true,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
aboutHeadings(),
|
aboutHeadings(),
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ class _MihPrivacyPolicyState extends State<MihPrivacyPolicy> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MihPackageToolBody(
|
return MihPackageToolBody(
|
||||||
borderOn: false,
|
borderOn: false,
|
||||||
innerHorizontalPadding: 10,
|
|
||||||
bodyItem: getBody(context),
|
bodyItem: getBody(context),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -55,9 +54,13 @@ class _MihPrivacyPolicyState extends State<MihPrivacyPolicy> {
|
|||||||
children
|
children
|
||||||
.addAll(PolicyAndTermsText().getPrivacyPolicyText(context, englishOn));
|
.addAll(PolicyAndTermsText().getPrivacyPolicyText(context, englishOn));
|
||||||
return MihSingleChildScroll(
|
return MihSingleChildScroll(
|
||||||
child: Column(
|
scrollbarOn: true,
|
||||||
mainAxisSize: MainAxisSize.max,
|
child: Padding(
|
||||||
children: children,
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
children: children,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ class _MIHTermsOfServiceState extends State<MIHTermsOfService> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MihPackageToolBody(
|
return MihPackageToolBody(
|
||||||
borderOn: false,
|
borderOn: false,
|
||||||
innerHorizontalPadding: 10,
|
|
||||||
bodyItem: getBody(context),
|
bodyItem: getBody(context),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -55,8 +54,12 @@ class _MIHTermsOfServiceState extends State<MIHTermsOfService> {
|
|||||||
children
|
children
|
||||||
.addAll(PolicyAndTermsText().getTermsOfServiceText(context, englishOn));
|
.addAll(PolicyAndTermsText().getTermsOfServiceText(context, englishOn));
|
||||||
return MihSingleChildScroll(
|
return MihSingleChildScroll(
|
||||||
child: Column(
|
scrollbarOn: true,
|
||||||
children: children,
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
|
child: Column(
|
||||||
|
children: children,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user