add link to youtube install guide for iphone when button is pressed

This commit is contained in:
2025-02-05 15:25:50 +02:00
parent 4024ca7b19
commit 06c161a15a

View File

@@ -193,6 +193,7 @@ class _MIHAboutState extends State<MIHAbout> {
} else if (MzanziInnovationHub.of(context)!.theme.getPlatform() == } else if (MzanziInnovationHub.of(context)!.theme.getPlatform() ==
"Android") { "Android") {
//Installed Android App //Installed Android App
// _showIOSInstallationGuide();
launchSocialUrl( launchSocialUrl(
Uri.parse( Uri.parse(
"https://play.google.com/store/apps/details?id=za.co.mzansiinnovationhub.mih", "https://play.google.com/store/apps/details?id=za.co.mzansiinnovationhub.mih",
@@ -218,6 +219,20 @@ class _MIHAboutState extends State<MIHAbout> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
windowBody: [ windowBody: [
Align(
alignment: Alignment.centerLeft,
child: Text(
"In order to install MIH on your iPhone, please follow the below steps:- ",
textAlign: TextAlign.left,
style: TextStyle(
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: windowFontSize,
fontWeight: FontWeight.bold,
),
),
),
const SizedBox(height: 10),
Align( Align(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
@@ -249,7 +264,7 @@ class _MIHAboutState extends State<MIHAbout> {
Align( Align(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
"3. Scroll down and tap Add to Home Screen.", "3. Scroll down and tap \"Add to Home Screen\".",
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
@@ -277,7 +292,7 @@ class _MIHAboutState extends State<MIHAbout> {
Align( Align(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
"5. Tap Add", "5. Tap \"Add\".",
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
@@ -287,19 +302,52 @@ class _MIHAboutState extends State<MIHAbout> {
), ),
), ),
), ),
const SizedBox(height: 10),
Align(
alignment: Alignment.centerLeft,
child: Text(
"That's it! Now you can tap the MIH icon on your home screen to open it quickly.",
textAlign: TextAlign.left,
style: TextStyle(
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: windowFontSize,
fontWeight: FontWeight.bold,
),
),
),
const SizedBox(height: 10),
Align(
alignment: Alignment.centerLeft,
child: Text(
"If you are still having trouble, please click on the button below to view a video guide.",
textAlign: TextAlign.left,
style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(),
fontSize: windowFontSize,
fontWeight: FontWeight.bold,
),
),
),
const SizedBox(height: 15), const SizedBox(height: 15),
// SizedBox( SizedBox(
// width: 300, width: 300,
// height: 50, height: 50,
// child: MIHButton( child: MIHButton(
// onTap: () {}, onTap: () {
// buttonText: "Video Guide", launchSocialUrl(
// buttonColor: Uri.parse(
// MzanziInnovationHub.of(context)!.theme.secondaryColor(), "https://www.youtube.com/watch?v=KVK78IV28JY",
// textColor: ),
// MzanziInnovationHub.of(context)!.theme.primaryColor(), );
// ), },
// ), buttonText: "Video Guide",
buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
textColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
),
),
], ],
); );
}, },