diff --git a/README.md b/README.md
index a8f4159..08fe67b 100644
--- a/README.md
+++ b/README.md
@@ -28,11 +28,15 @@ This README would normally document whatever steps are necessary to get your app
* Repo owner or admin
* Other community or team contact
-# OPENAPI Generation cmd
+# OPENAPI Generation cmd
+
+flutter pub run build_runner build --delete-conflicting-outputs
Le fichier est dans le projet.
-flutter pub run build_runner build --delete-conflicting-outputs
+# Assets
+
+Les svg de drapeaux viennent de là https://flagicons.lipis.dev/
# Publication sur le Google PlayStore
@@ -42,4 +46,5 @@ Puis :
flutter build appbundle
-Faut pas oublier d'aller changer la version avant chaque upload de version (Puis mettre l'app bundle dans le dossier du PC, peut-être mettre sur le repos aussi ?)
\ No newline at end of file
+Faut pas oublier d'aller changer la version avant chaque upload de version (Puis mettre l'app bundle dans le dossier du PC, peut-être mettre sur le repos aussi ?)
+
diff --git a/assets/images/ar.svg b/assets/images/ar.svg
new file mode 100644
index 0000000..63d2fbf
--- /dev/null
+++ b/assets/images/ar.svg
@@ -0,0 +1,26 @@
+
\ No newline at end of file
diff --git a/assets/images/DE.png b/assets/images/old/DE.png
similarity index 100%
rename from assets/images/DE.png
rename to assets/images/old/DE.png
diff --git a/assets/images/EN.png b/assets/images/old/EN.png
similarity index 100%
rename from assets/images/EN.png
rename to assets/images/old/EN.png
diff --git a/assets/images/FR.png b/assets/images/old/FR.png
similarity index 100%
rename from assets/images/FR.png
rename to assets/images/old/FR.png
diff --git a/assets/images/NL.png b/assets/images/old/NL.png
similarity index 100%
rename from assets/images/NL.png
rename to assets/images/old/NL.png
diff --git a/assets/images/uk.svg b/assets/images/uk.svg
new file mode 100644
index 0000000..7c55d48
--- /dev/null
+++ b/assets/images/uk.svg
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/lib/Components/LanguageSelection.dart b/lib/Components/LanguageSelection.dart
index 958f1f2..fa30f9e 100644
--- a/lib/Components/LanguageSelection.dart
+++ b/lib/Components/LanguageSelection.dart
@@ -30,6 +30,10 @@ class _LanguageSelection extends State with TickerProviderSta
languagesEnable = configurationLanguages ?? languages;
selectedLanguage = visitAppContext.language;
+ if(visitAppContext.configuration != null && visitAppContext.configuration!.isOffline!) {
+ languagesEnable = [configurationLanguages!.firstWhere((element) => element == visitAppContext.language)];
+ }
+
if(!languagesEnable!.any((lg) => lg == selectedLanguage)) {
selectedLanguage = defaultLanguage;
}
diff --git a/lib/Components/SliderImages.dart b/lib/Components/SliderImages.dart
index dada49c..40af43c 100644
--- a/lib/Components/SliderImages.dart
+++ b/lib/Components/SliderImages.dart
@@ -65,7 +65,7 @@ class _SliderImagesWidget extends State {
items: resourcesInWidget.map((i) {
return Builder(
builder: (BuildContext context) {
- print(widget.imagesDTO[currentIndex-1]);
+ //print(widget.imagesDTO[currentIndex-1]);
return InkWell(
onTap: () {
showImagePopup(widget.imagesDTO[currentIndex-1]!, i!, appContext, context, size);
diff --git a/lib/Screens/Article/article.dart b/lib/Screens/Article/article.dart
index 368175e..2be8dfb 100644
--- a/lib/Screens/Article/article.dart
+++ b/lib/Screens/Article/article.dart
@@ -231,7 +231,6 @@ class _ArticlePageState extends State {
Future getArticle(AppContext appContext, Client client, String articleId) async {
try {
if(sectionDTO == null || articleDTO == null) {
- print("ARTCILE DTO GET ARTICLE");
bool isConfigOffline = (appContext.getContext() as VisitAppContext).configuration!.isOffline!;
if(isConfigOffline)
@@ -256,19 +255,17 @@ class _ArticlePageState extends State {
}
if(sectionDTO!.type == SectionType.Article) {
- print("set article __ !!");
- print(sectionDTO!.data!);
articleDTO = ArticleDTO.fromJson(jsonDecode(sectionDTO!.data!));
}
-
if(articleDTO != null) {
- if(articleDTO!.audioId != null) {
+ var audioIdArticle = articleDTO!.audioIds!.where((audioId) => audioId.language == (appContext.getContext() as VisitAppContext).language);
+ if(audioIdArticle.isNotEmpty && audioIdArticle.first.value != null) {
if(isConfigOffline)
{
// OFFLINE
List