Skip to content

Commit

Permalink
issue #179
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonavichus committed Jun 8, 2024
1 parent 58dbbe5 commit da64975
Show file tree
Hide file tree
Showing 27 changed files with 145 additions and 33 deletions.
72 changes: 72 additions & 0 deletions lib/app/modules/settings/view/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,66 @@ class _SettingsPageState extends State<SettingsPage> {
);
},
),
SettingCard(
icon: const Icon(Iconsax.link_square),
text: 'groups'.tr,
onPressed: () {
showModalBottomSheet(
context: context,
builder: (BuildContext context) {
return StatefulBuilder(
builder: (BuildContext context, setState) {
return SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 20, vertical: 15),
child: Text(
'groups'.tr,
style: context.textTheme.titleLarge?.copyWith(
fontSize: 20,
),
),
),
SettingCard(
elevation: 4,
icon: const Icon(Iconsax.voice_square),
text: 'Discord',
onPressed: () async {
final Uri url =
Uri.parse('https://discord.gg/JMMa9aHh8f');
if (!await launchUrl(url,
mode: LaunchMode.externalApplication)) {
throw Exception('Could not launch $url');
}
},
),
SettingCard(
elevation: 4,
icon: const Icon(Iconsax.message_square),
text: 'Telegram',
onPressed: () async {
final Uri url =
Uri.parse('https://t.me/darkmoonightX');
if (!await launchUrl(url,
mode: LaunchMode.externalApplication)) {
throw Exception('Could not launch $url');
}
},
),
const SizedBox(height: 10),
],
),
);
},
);
},
);
},
),
SettingCard(
icon: const Icon(Iconsax.document),
text: 'license'.tr,
Expand Down Expand Up @@ -891,6 +951,18 @@ class _SettingsPageState extends State<SettingsPage> {
onPressed: () =>
urlLauncher('https://github.com/darkmoonight/Rain'),
),
Padding(
padding: const EdgeInsets.all(10),
child: GestureDetector(
child: Text(
'openMeteo'.tr,
style: context.textTheme.bodyMedium,
overflow: TextOverflow.visible,
textAlign: TextAlign.center,
),
onTap: () => urlLauncher('https://open-meteo.com/'),
),
),
const SizedBox(height: 10),
],
),
Expand Down
2 changes: 2 additions & 0 deletions lib/translation/bn_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,7 @@ class BnIn {
'roundDegree': 'ডিগ্রি রাউন্ড করুন',
'settings_full': 'সেটিংস',
'cities': 'শহর',
'groups': 'আমাদের দলগুলি',
'openMeteo': 'Open-Meteo থেকে ডেটা (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/cs_cz.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,7 @@ class CsCz {
'cities': 'Města',
'searchMethod': 'Použijte hledání nebo geolokaci',
'done': 'Hotovo',
'groups': 'Naše skupiny',
'openMeteo': 'Data z Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/da_dk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ class DaDk {
'cities': 'Byer',
'searchMethod': 'Brug søgning eller geolokation',
'done': 'Færdig',
'groups': 'Vores grupper',
'openMeteo': 'Data fra Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/de_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ class DeDe {
'cities': 'Städte',
'searchMethod': 'Verwenden Sie die Suche oder die Geolokalisierung',
'done': 'Fertig',
'groups': 'Unsere gruppen',
'openMeteo': 'Daten von Open-Meteo (CC-BY 4.0)',
};
}
4 changes: 3 additions & 1 deletion lib/translation/en_us.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class EnUs {
'timeformat': 'Time format',
'12': '12-hour',
'24': '24-hour',
'cloudcover': 'Сloudcover',
'cloudcover': 'Cloudcover',
'uvIndex': 'UV-index',
'materialColor': 'Dynamic colors',
'uvLow': 'Low',
Expand Down Expand Up @@ -125,5 +125,7 @@ class EnUs {
'cities': 'Cities',
'searchMethod': 'Use search or geolocation',
'done': 'Done',
'groups': 'Our groups',
'openMeteo': 'Data by Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/es_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ class EsEs {
'cities': 'Ciudades',
'searchMethod': 'Usa la búsqueda o la geolocalización',
'done': 'Hecho',
'groups': 'Nuestros grupos',
'openMeteo': 'Datos de Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/fa_ir.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ class FaIr {
'cities': 'شهر ها',
'searchMethod': 'از جستجو یا موقعیت جغرافیایی استفاده کنید',
'done': 'پایان',
'groups': 'گروه‌های ما',
'openMeteo': 'داده‌ها از Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/fr_fr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ class FrFr {
'cities': 'Villes',
'searchMethod': 'Utilisez la recherche ou la géolocalisation',
'done': 'Terminé',
'groups': 'Nos groupes',
'openMeteo': 'Données de Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ga_ie.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ class GaIe {
'cities': 'Cathracha',
'searchMethod': 'Úsáid ceangal nó geolocáid',
'done': 'Críochnaithe',
'groups': 'Ár ngrúpaí',
'openMeteo': 'Sonraí ó Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/hi_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,7 @@ class HiIn {
'cities': 'शहर',
'searchMethod': 'खोज या स्थानगति का उपयोग करें',
'done': 'किया',
'groups': 'हमारे समूह',
'openMeteo': 'Open-Meteo से डेटा (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/hu_hu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ class HuHu {
'cities': 'Városok',
'searchMethod': 'Használja a keresést vagy a földrajzi helyet',
'done': 'Kész',
'groups': 'Csoportjaink',
'openMeteo': 'Adatok az Open-Meteo-tól (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/it_it.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ class ItIt {
'cities': 'Città',
'searchMethod': 'Utilizza la ricerca o la geolocalizzazione',
'done': 'Fatto',
'groups': 'I nostri gruppi',
'openMeteo': 'Dati da Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ka_ge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ class KaGe {
'cities': 'ქალაქები',
'searchMethod': 'გამოიყენეთ ძებნა ან გეოლოკაცია',
'done': 'დასრულებულია',
'groups': 'ჩვენი ჯგუფები',
'openMeteo': 'მონაცემები Open-Meteo-დან (CC-BY 4.0)',
};
}
14 changes: 6 additions & 8 deletions lib/translation/ko_kr.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
class KoKr {
Map<String, String> get messages => {
'start': '시작하기',
'description':
'어떤 곳이든, 어느 순간이든, 날씨를 확인하세요.',
'description': '어떤 곳이든, 어느 순간이든, 날씨를 확인하세요.',
'name': '날씨',
'name2': '편리한 디자인',
'name3': '문의하기',
'description2':
'모든 내비게이션은 가능한 한 편리하고 빠르게 애플리케이션과 상호 작용하도록 설계되었습니다.',
'description3':
'어떤 오류가 발생했다면, 이메일 또는 앱 리뷰로 문의해주세요.',
'description2': '모든 내비게이션은 가능한 한 편리하고 빠르게 애플리케이션과 상호 작용하도록 설계되었습니다.',
'description3': '어떤 오류가 발생했다면, 이메일 또는 앱 리뷰로 문의해주세요.',
'next': '다음',
'search': '검색...',
'loading': '로딩 중...',
Expand Down Expand Up @@ -44,8 +41,7 @@ class KoKr {
'no_inter': '인터넷 없음',
'on_inter': '현재 위치에 대한 정보를 얻기 위해서는 인터넷이 필요합니다.',
'location': '위치',
'no_location':
'현재 위치에 대한 정보를 얻기 위해서는 위치 서비스를 활성화해야 합니다.',
'no_location': '현재 위치에 대한 정보를 얻기 위해서는 위치 서비스를 활성화해야 합니다.',
'theme': '테마',
'low': '낮음',
'high': '높음',
Expand Down Expand Up @@ -125,5 +121,7 @@ class KoKr {
'cities': '도시',
'searchMethod': '검색 또는 지리적 위치를 사용하세요',
'done': '완료',
'groups': '우리 그룹',
'openMeteo': 'Open-Meteo의 데이터 (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/nl_nl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ class NlNl {
'cities': 'Steden',
'searchMethod': 'Gebruik zoeken of geolocatie',
'done': 'Klaar',
'groups': 'Onze groepen',
'openMeteo': 'Gegevens van Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/pl_pl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,7 @@ class PlPl {
'cities': 'Miasta',
'searchMethod': 'Użyj wyszukiwania lub geolokalizacji',
'done': 'Gotowe',
'groups': 'Nasze grupy',
'openMeteo': 'Dane z Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/pt_br.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ class PtBr {
'cities': 'Cidades',
'searchMethod': 'Use a pesquisa ou a geolocalização',
'done': 'Concluído',
'groups': 'Nossos grupos',
'openMeteo': 'Dados do Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ro_ro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,7 @@ class RoRo {
'cities': 'Orașe',
'searchMethod': 'Folosiți căutarea sau geolocația',
'done': 'Gata',
'groups': 'Grupurile noastre',
'openMeteo': 'Date de la Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ru_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ class RuRu {
'cities': 'Города',
'searchMethod': 'Воспользуйтесь поиском или геолокацией',
'done': 'Готово',
'groups': 'Наши группы',
'openMeteo': 'Данные от Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/sk_sk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,7 @@ class SkSk {
'cities': 'Mestá',
'searchMethod': 'Použite vyhľadávanie alebo geolokáciu',
'done': 'Hotovo',
'groups': 'Naše skupiny',
'openMeteo': 'Údaje od Open-Meteo (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/tr_tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,7 @@ class TrTr {
'cities': 'Şehirler',
'searchMethod': 'Arama veya konum belirleme kullanın',
'done': 'Tamam',
'groups': 'Gruplarımız',
'openMeteo': 'Open-Meteo\'dan veriler (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ur_pk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ class UrPk {
'cities': 'شہر',
'searchMethod': 'تلاش یا جغرافیائی مقام استعمال کریں',
'done': 'ہوگیا',
'groups': 'ہماری گروپس',
'openMeteo': 'Open-Meteo سے ڈیٹا (CC-BY 4.0)',
};
}
2 changes: 2 additions & 0 deletions lib/translation/zh_ch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,7 @@ class ZhCh {
'cities': '城市',
'searchMethod': '使用搜索或地理定位',
'done': '完成',
'groups': '我们的组',
'openMeteo': '来自Open-Meteo的数据 (CC-BY 4.0)',
};
}
14 changes: 6 additions & 8 deletions lib/translation/zh_tw.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
class ZhTw {
Map<String, String> get messages => {
'start': '開始使用',
'description':
'一個提供實時天氣資訊的天氣軟體。',
'description': '一個提供實時天氣資訊的天氣軟體。',
'name': '天氣',
'name2': '方便的設計',
'name3': '聯絡我們',
'description2':
'所有導覽均設計得盡可能方便交互',
'description3':
'如遇到問題請透過電郵或軟體評論與我們聯絡',
'description2': '所有導覽均設計得盡可能方便交互',
'description3': '如遇到問題請透過電郵或軟體評論與我們聯絡',
'next': '下一步',
'search': '搜尋……',
'loading': '載入中……',
Expand Down Expand Up @@ -44,8 +41,7 @@ class ZhTw {
'no_inter': '沒有網路連線',
'on_inter': '啟用網路以獲取氣象資料。',
'location': '位置',
'no_location':
'啟用位置服務以獲取當前位置的天氣資訊。',
'no_location': '啟用位置服務以獲取當前位置的天氣資訊。',
'theme': '主題',
'low': '低',
'high': '高',
Expand Down Expand Up @@ -125,5 +121,7 @@ class ZhTw {
'cities': '城市',
'searchMethod': '使用搜尋或地理位置',
'done': '完成',
'groups': '我們的小組',
'openMeteo': '來自Open-Meteo的數據 (CC-BY 4.0)',
};
}
Loading

0 comments on commit da64975

Please sign in to comment.