Skip to content

Commit

Permalink
added files
Browse files Browse the repository at this point in the history
  • Loading branch information
jaivsh committed Aug 9, 2023
1 parent 4936b4c commit 7a0fed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class _MyAppState extends State<MyApp> {
Locale('ru'),
Locale('en'), // English
Locale('hi'),
Locale('gu')// Hindi
Locale('gu'),// Hindi
Locale('mr')// Hindi
],
debugShowCheckedModeBanner: false,
Expand Down
8 changes: 5 additions & 3 deletions lib/screens/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,12 @@ class _SettingsScreenState extends State<SettingsScreen> {
onPressed: (s) async {
//js.context.callMethod('open', ['https://github.com/avinashkranjan/Friday']);
final result = await openUrl('https://github.com/avinashkranjan/Friday');
if (result.exitCode == 0) {
print('URL opened!');
int a = result.exitCode;
if (a == 0) {
print('URL opened in your system!');
print('\n');
} else {
print('Something went wrong (exit code = ${result.exitCode}): '
print('Something went wrong with exit code = ${result.exitCode}: '
'${result.stderr}');
}

Expand Down

0 comments on commit 7a0fed3

Please sign in to comment.