-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed Open links of About page in browser #270
Closed
sainideepanshu199
wants to merge
11
commits into
CircuitVerse:master
from
sainideepanshu199:easy_fix
Closed
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a6cb87c
fixed email opening and join Slack button bug , issues #259
sainideepanshu199 0893690
removed the specific function call for mail
sainideepanshu199 8747dfc
removed the extra parameter and unused imports
sainideepanshu199 4a28014
removed the extra parameter
sainideepanshu199 992f0f4
removed the extra parameters not useful for bug fix #259
sainideepanshu199 df0e9da
added function to open mail and other links
sainideepanshu199 5a4e734
remove the extra string declaration
sainideepanshu199 3290702
formatted the code
sainideepanshu199 9500155
fixed open in app webview issue
sainideepanshu199 a95848e
added bool value to lauch in external application at all function oc…
sainideepanshu199 7c7e267
removed pubspec.lock file
sainideepanshu199 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import 'package:url_launcher/url_launcher.dart'; | ||
import 'package:url_launcher/url_launcher_string.dart'; | ||
|
||
void launchURL(String url) async { | ||
if (await canLaunchUrlString(url)) { | ||
await launchUrlString(url); | ||
void launchURL(String url, bool value) async { | ||
if (url.startsWith('mailto')) { | ||
final url = Uri.parse('mailto:[email protected]'); | ||
await launchUrl(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
if (value == true) { | ||
await launchUrlString(url, mode: LaunchMode.externalApplication); | ||
} else { | ||
await launchUrlString(url); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For mail consider to open in external application.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it opens in default mail app of smartphone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have sent you a video regarding all links on slack, please watch it , it will clear all doubts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok then it's fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall i delete the file or revert the changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just delete the file and commit. It will work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done