comment out unused code
This commit is contained in:
@@ -171,66 +171,66 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _launchWebsite(String urlString) async {
|
// Future<void> _launchWebsite(String urlString) async {
|
||||||
final Uri url = Uri.parse(urlString);
|
// final Uri url = Uri.parse(urlString);
|
||||||
try {
|
// try {
|
||||||
if (await canLaunchUrl(url)) {
|
// if (await canLaunchUrl(url)) {
|
||||||
await launchUrl(url);
|
// await launchUrl(url);
|
||||||
} else {
|
// } else {
|
||||||
print('Could not launch $urlString');
|
// print('Could not launch $urlString');
|
||||||
showDialog(
|
// showDialog(
|
||||||
context: context,
|
// context: context,
|
||||||
builder: (context) {
|
// builder: (context) {
|
||||||
return MihPackageAlert(
|
// return MihPackageAlert(
|
||||||
alertIcon: Icon(
|
// alertIcon: Icon(
|
||||||
Icons.warning_rounded,
|
// Icons.warning_rounded,
|
||||||
size: 100,
|
// size: 100,
|
||||||
),
|
// ),
|
||||||
alertTitle: "Error Opening Website",
|
// alertTitle: "Error Opening Website",
|
||||||
alertBody: Column(
|
// alertBody: Column(
|
||||||
children: [
|
// children: [
|
||||||
Text(
|
// Text(
|
||||||
"Unable to lauch ${widget.businessName}",
|
// "Unable to lauch ${widget.businessName}",
|
||||||
style: TextStyle(
|
// style: TextStyle(
|
||||||
color:
|
// color:
|
||||||
MzanziInnovationHub.of(context)!.theme.errorColor(),
|
// MzanziInnovationHub.of(context)!.theme.errorColor(),
|
||||||
fontSize: 15,
|
// fontSize: 15,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
alertColour:
|
// alertColour:
|
||||||
MzanziInnovationHub.of(context)!.theme.errorColor(),
|
// MzanziInnovationHub.of(context)!.theme.errorColor(),
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
showDialog(
|
// showDialog(
|
||||||
context: context,
|
// context: context,
|
||||||
builder: (context) {
|
// builder: (context) {
|
||||||
return MihPackageAlert(
|
// return MihPackageAlert(
|
||||||
alertIcon: Icon(
|
// alertIcon: Icon(
|
||||||
Icons.warning_rounded,
|
// Icons.warning_rounded,
|
||||||
size: 100,
|
// size: 100,
|
||||||
),
|
// ),
|
||||||
alertTitle: "Error Opening Website",
|
// alertTitle: "Error Opening Website",
|
||||||
alertBody: Column(
|
// alertBody: Column(
|
||||||
children: [
|
// children: [
|
||||||
Text(
|
// Text(
|
||||||
"Unable to lauch ${widget.businessName}",
|
// "Unable to lauch ${widget.businessName}",
|
||||||
style: TextStyle(
|
// style: TextStyle(
|
||||||
color:
|
// color:
|
||||||
MzanziInnovationHub.of(context)!.theme.errorColor(),
|
// MzanziInnovationHub.of(context)!.theme.errorColor(),
|
||||||
fontSize: 15,
|
// fontSize: 15,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(),
|
// alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(),
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
Widget _buildContactInfo(
|
Widget _buildContactInfo(
|
||||||
String label,
|
String label,
|
||||||
|
|||||||
Reference in New Issue
Block a user