Skip to content

Commit

Permalink
add project source code link and store page link
Browse files Browse the repository at this point in the history
  • Loading branch information
7Eltantawy committed Feb 5, 2024
1 parent 5f17faa commit 146f83a
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mudawanat_aleibadat/lib/generated/intl/messages_ar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class MessageLookup extends MessageLookupByLibrary {
"fasting": MessageLookupByLibrary.simpleMessage("الصوم"),
"general": MessageLookupByLibrary.simpleMessage("عام"),
"missedDeeds": MessageLookupByLibrary.simpleMessage("الأعمال الفائتة"),
"moreProductsFromUs":
MessageLookupByLibrary.simpleMessage("المزيد من إصداراتنا"),
"prayer_additional": MessageLookupByLibrary.simpleMessage("النوافل"),
"prayer_asr": MessageLookupByLibrary.simpleMessage("العصر"),
"prayer_asr_pre": MessageLookupByLibrary.simpleMessage("العصر القبليه"),
Expand Down Expand Up @@ -67,6 +69,8 @@ class MessageLookup extends MessageLookupByLibrary {
"select": MessageLookupByLibrary.simpleMessage("تعيين"),
"selectColor": MessageLookupByLibrary.simpleMessage("اختر لونا"),
"settings": MessageLookupByLibrary.simpleMessage("الإعدادات"),
"sourceCodeLink":
MessageLookupByLibrary.simpleMessage("الكود المصدري للتطبيق"),
"statistics": MessageLookupByLibrary.simpleMessage("إحصائيات"),
"summary": MessageLookupByLibrary.simpleMessage("ملخص"),
"timesDone": MessageLookupByLibrary.simpleMessage("مرات القضاء"),
Expand Down
3 changes: 3 additions & 0 deletions mudawanat_aleibadat/lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class MessageLookup extends MessageLookupByLibrary {
"fasting": MessageLookupByLibrary.simpleMessage("Fasting"),
"general": MessageLookupByLibrary.simpleMessage("General"),
"missedDeeds": MessageLookupByLibrary.simpleMessage("Missed Deeds"),
"moreProductsFromUs": MessageLookupByLibrary.simpleMessage("More apps"),
"prayer_additional":
MessageLookupByLibrary.simpleMessage("Additional Prayers"),
"prayer_asr": MessageLookupByLibrary.simpleMessage("Asr"),
Expand Down Expand Up @@ -67,6 +68,8 @@ class MessageLookup extends MessageLookupByLibrary {
"select": MessageLookupByLibrary.simpleMessage("Select"),
"selectColor": MessageLookupByLibrary.simpleMessage("Select Color"),
"settings": MessageLookupByLibrary.simpleMessage("Settings"),
"sourceCodeLink":
MessageLookupByLibrary.simpleMessage("App source code"),
"statistics": MessageLookupByLibrary.simpleMessage("Statistics"),
"summary": MessageLookupByLibrary.simpleMessage("Summary"),
"timesDone": MessageLookupByLibrary.simpleMessage("Done Times"),
Expand Down
20 changes: 20 additions & 0 deletions mudawanat_aleibadat/lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions mudawanat_aleibadat/lib/l10n/intl_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"fasting": "الصوم",
"general": "عام",
"missedDeeds": "الأعمال الفائتة",
"moreProductsFromUs": "المزيد من إصداراتنا",
"prayer_additional": "النوافل",
"prayer_asr": "العصر",
"prayer_asr_pre": "العصر القبليه",
Expand All @@ -37,6 +38,7 @@
"select": "تعيين",
"selectColor": "اختر لونا",
"settings": "الإعدادات",
"sourceCodeLink": "الكود المصدري للتطبيق",
"statistics": "إحصائيات",
"summary": "ملخص",
"timesDone": "مرات القضاء",
Expand Down
2 changes: 2 additions & 0 deletions mudawanat_aleibadat/lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"fasting": "Fasting",
"general": "General",
"missedDeeds": "Missed Deeds",
"moreProductsFromUs": "More apps",
"prayer_additional": "Additional Prayers",
"prayer_asr": "Asr",
"prayer_asr_pre": "Asr Pre",
Expand All @@ -37,6 +38,7 @@
"select": "Select",
"selectColor": "Select Color",
"settings": "Settings",
"sourceCodeLink": "App source code",
"statistics": "Statistics",
"summary": "Summary",
"timesDone": "Done Times",
Expand Down
13 changes: 13 additions & 0 deletions mudawanat_aleibadat/lib/src/core/utils/open_url.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import 'package:mudawanat_aleibadat/src/core/utils/print.dart';
import 'package:url_launcher/url_launcher_string.dart';

Future<void> openURL(String url) async {
if (await canLaunchUrlString(url)) {
await launchUrlString(
url,
mode: LaunchMode.externalNonBrowserApplication,
);
} else {
appPrint("cannot launch");
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_colorpicker/flutter_colorpicker.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:mudawanat_aleibadat/generated/l10n.dart';
import 'package:mudawanat_aleibadat/src/core/constants/constants.dart';
import 'package:mudawanat_aleibadat/src/core/utils/open_url.dart';
import 'package:mudawanat_aleibadat/src/features/theme/presentation/controller/cubit/theme_cubit.dart';

class ThemeScreen extends StatelessWidget {
Expand All @@ -18,6 +20,7 @@ class ThemeScreen extends StatelessWidget {
centerTitle: true,
),
body: ListView(
padding: const EdgeInsets.all(15),
children: [
ListTile(
title: Text(S.of(context).appColor),
Expand Down Expand Up @@ -86,6 +89,7 @@ class ThemeScreen extends StatelessWidget {
context.read<ThemeCubit>().changeUseOldTheme(value);
},
),
const Divider(),
ListTile(
leading: const Icon(Icons.language),
title: Text(S.of(context).appLanguage),
Expand All @@ -109,6 +113,26 @@ class ThemeScreen extends StatelessWidget {
),
),
),
const Divider(),
ListTile(
leading: const Icon(FontAwesomeIcons.googlePlay),
title: Text(S.of(context).moreProductsFromUs),
onTap: () {
openURL(
"https://play.google.com/store/apps/dev?id=4949997098744780639",
);
},
),
ListTile(
leading: const Icon(FontAwesomeIcons.github),
title: Text(S.of(context).sourceCodeLink),
onTap: () {
openURL(
"https://github.com/muslimpack/mudawanat_aleibadat",
);
},
),
const Divider(),
ListTile(
title: Text(S.of(context).appVersion),
subtitle: const Text(kAppVersion),
Expand Down

0 comments on commit 146f83a

Please sign in to comment.