-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adds developer info, launchUrl and fix login issue
- Loading branch information
Showing
7 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:milkton_executive/utils/launch_url.dart'; | ||
|
||
class DeveloperInfoScreen extends StatelessWidget { | ||
const DeveloperInfoScreen({super.key}); | ||
|
@@ -11,8 +12,83 @@ class DeveloperInfoScreen extends StatelessWidget { | |
backgroundColor: Colors.deepPurpleAccent, | ||
title: const Text("Developer Info"), | ||
), | ||
body: const Center( | ||
child: Text("Developer Info Coming Soon..."), | ||
body: Padding( | ||
padding: const EdgeInsets.all(20), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
const Image( | ||
image: AssetImage( | ||
"assets/images/gepton.png", | ||
), | ||
width: 200, | ||
), | ||
const SizedBox( | ||
height: 20, | ||
), | ||
const Text( | ||
"Gepton is a leading technology firm specializing in creating innovative and efficient digital solutions. Our team of expert techies, are passionate about building exceptional tech solutions for your unique requirements."), | ||
const SizedBox( | ||
height: 20, | ||
), | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: [ | ||
GestureDetector( | ||
onTap: () => openUrl("tel:+919099199104"), | ||
child: const Card( | ||
semanticContainer: true, | ||
child: Padding( | ||
padding: EdgeInsets.all(8.0), | ||
child: Column( | ||
children: [ | ||
Icon( | ||
Icons.call, | ||
), | ||
Text("9099199104"), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
GestureDetector( | ||
onTap: () => openUrl("mailto:[email protected]"), | ||
child: const Card( | ||
semanticContainer: true, | ||
child: Padding( | ||
padding: EdgeInsets.all(8.0), | ||
child: Column( | ||
children: [ | ||
Icon( | ||
Icons.mail, | ||
), | ||
Text("[email protected]"), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
GestureDetector( | ||
onTap: () => openUrl("https://gepton.com"), | ||
child: const Card( | ||
semanticContainer: true, | ||
child: Padding( | ||
padding: EdgeInsets.all(8.0), | ||
child: Column( | ||
children: [ | ||
Icon( | ||
Icons.web, | ||
), | ||
Text("gepton.com"), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
], | ||
) | ||
], | ||
), | ||
), | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
Future<void> openUrl(String url) async { | ||
Uri uri = Uri.parse(url); | ||
if (!await launchUrl(uri)) { | ||
throw Exception('Could not launch $url'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters