Skip to content

Commit da64975

Browse files
committed
issue #179
1 parent 58dbbe5 commit da64975

27 files changed

+145
-33
lines changed

lib/app/modules/settings/view/settings.dart

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,66 @@ class _SettingsPageState extends State<SettingsPage> {
852852
);
853853
},
854854
),
855+
SettingCard(
856+
icon: const Icon(Iconsax.link_square),
857+
text: 'groups'.tr,
858+
onPressed: () {
859+
showModalBottomSheet(
860+
context: context,
861+
builder: (BuildContext context) {
862+
return StatefulBuilder(
863+
builder: (BuildContext context, setState) {
864+
return SingleChildScrollView(
865+
child: Column(
866+
crossAxisAlignment: CrossAxisAlignment.center,
867+
mainAxisSize: MainAxisSize.min,
868+
children: [
869+
Padding(
870+
padding: const EdgeInsets.symmetric(
871+
horizontal: 20, vertical: 15),
872+
child: Text(
873+
'groups'.tr,
874+
style: context.textTheme.titleLarge?.copyWith(
875+
fontSize: 20,
876+
),
877+
),
878+
),
879+
SettingCard(
880+
elevation: 4,
881+
icon: const Icon(Iconsax.voice_square),
882+
text: 'Discord',
883+
onPressed: () async {
884+
final Uri url =
885+
Uri.parse('https://discord.gg/JMMa9aHh8f');
886+
if (!await launchUrl(url,
887+
mode: LaunchMode.externalApplication)) {
888+
throw Exception('Could not launch $url');
889+
}
890+
},
891+
),
892+
SettingCard(
893+
elevation: 4,
894+
icon: const Icon(Iconsax.message_square),
895+
text: 'Telegram',
896+
onPressed: () async {
897+
final Uri url =
898+
Uri.parse('https://t.me/darkmoonightX');
899+
if (!await launchUrl(url,
900+
mode: LaunchMode.externalApplication)) {
901+
throw Exception('Could not launch $url');
902+
}
903+
},
904+
),
905+
const SizedBox(height: 10),
906+
],
907+
),
908+
);
909+
},
910+
);
911+
},
912+
);
913+
},
914+
),
855915
SettingCard(
856916
icon: const Icon(Iconsax.document),
857917
text: 'license'.tr,
@@ -891,6 +951,18 @@ class _SettingsPageState extends State<SettingsPage> {
891951
onPressed: () =>
892952
urlLauncher('https://github.com/darkmoonight/Rain'),
893953
),
954+
Padding(
955+
padding: const EdgeInsets.all(10),
956+
child: GestureDetector(
957+
child: Text(
958+
'openMeteo'.tr,
959+
style: context.textTheme.bodyMedium,
960+
overflow: TextOverflow.visible,
961+
textAlign: TextAlign.center,
962+
),
963+
onTap: () => urlLauncher('https://open-meteo.com/'),
964+
),
965+
),
894966
const SizedBox(height: 10),
895967
],
896968
),

lib/translation/bn_in.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,7 @@ class BnIn {
124124
'roundDegree': 'ডিগ্রি রাউন্ড করুন',
125125
'settings_full': 'সেটিংস',
126126
'cities': 'শহর',
127+
'groups': 'আমাদের দলগুলি',
128+
'openMeteo': 'Open-Meteo থেকে ডেটা (CC-BY 4.0)',
127129
};
128130
}

lib/translation/cs_cz.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,7 @@ class CsCz {
124124
'cities': 'Města',
125125
'searchMethod': 'Použijte hledání nebo geolokaci',
126126
'done': 'Hotovo',
127+
'groups': 'Naše skupiny',
128+
'openMeteo': 'Data z Open-Meteo (CC-BY 4.0)',
127129
};
128130
}

lib/translation/da_dk.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,7 @@ class DaDk {
125125
'cities': 'Byer',
126126
'searchMethod': 'Brug søgning eller geolokation',
127127
'done': 'Færdig',
128+
'groups': 'Vores grupper',
129+
'openMeteo': 'Data fra Open-Meteo (CC-BY 4.0)',
128130
};
129131
}

lib/translation/de_de.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,7 @@ class DeDe {
126126
'cities': 'Städte',
127127
'searchMethod': 'Verwenden Sie die Suche oder die Geolokalisierung',
128128
'done': 'Fertig',
129+
'groups': 'Unsere gruppen',
130+
'openMeteo': 'Daten von Open-Meteo (CC-BY 4.0)',
129131
};
130132
}

lib/translation/en_us.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class EnUs {
7878
'timeformat': 'Time format',
7979
'12': '12-hour',
8080
'24': '24-hour',
81-
'cloudcover': 'Сloudcover',
81+
'cloudcover': 'Cloudcover',
8282
'uvIndex': 'UV-index',
8383
'materialColor': 'Dynamic colors',
8484
'uvLow': 'Low',
@@ -125,5 +125,7 @@ class EnUs {
125125
'cities': 'Cities',
126126
'searchMethod': 'Use search or geolocation',
127127
'done': 'Done',
128+
'groups': 'Our groups',
129+
'openMeteo': 'Data by Open-Meteo (CC-BY 4.0)',
128130
};
129131
}

lib/translation/es_es.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,7 @@ class EsEs {
126126
'cities': 'Ciudades',
127127
'searchMethod': 'Usa la búsqueda o la geolocalización',
128128
'done': 'Hecho',
129+
'groups': 'Nuestros grupos',
130+
'openMeteo': 'Datos de Open-Meteo (CC-BY 4.0)',
129131
};
130132
}

lib/translation/fa_ir.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,7 @@ class FaIr {
125125
'cities': 'شهر ها',
126126
'searchMethod': 'از جستجو یا موقعیت جغرافیایی استفاده کنید',
127127
'done': 'پایان',
128+
'groups': 'گروه‌های ما',
129+
'openMeteo': 'داده‌ها از Open-Meteo (CC-BY 4.0)',
128130
};
129131
}

lib/translation/fr_fr.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,7 @@ class FrFr {
126126
'cities': 'Villes',
127127
'searchMethod': 'Utilisez la recherche ou la géolocalisation',
128128
'done': 'Terminé',
129+
'groups': 'Nos groupes',
130+
'openMeteo': 'Données de Open-Meteo (CC-BY 4.0)',
129131
};
130132
}

lib/translation/ga_ie.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,7 @@ class GaIe {
126126
'cities': 'Cathracha',
127127
'searchMethod': 'Úsáid ceangal nó geolocáid',
128128
'done': 'Críochnaithe',
129+
'groups': 'Ár ngrúpaí',
130+
'openMeteo': 'Sonraí ó Open-Meteo (CC-BY 4.0)',
129131
};
130132
}

0 commit comments

Comments
 (0)