From e851929dbc0f3acae6c1537adfbb5eeacadca3d2 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Tue, 14 Jul 2026 17:20:30 +0200 Subject: [PATCH] misc --- ...ti_select_dropdown_language_container.dart | 2 +- .../app_configuration_link_screen.dart | 12 +++++----- lib/l10n/app_en.arb | 4 ++++ lib/l10n/app_fr.arb | 4 ++++ lib/l10n/app_localizations.dart | 24 +++++++++++++++++++ lib/l10n/app_localizations_en.dart | 12 ++++++++++ lib/l10n/app_localizations_fr.dart | 12 ++++++++++ lib/l10n/app_localizations_nl.dart | 12 ++++++++++ lib/l10n/app_nl.arb | 4 ++++ 9 files changed, 79 insertions(+), 7 deletions(-) diff --git a/lib/Components/multi_select_dropdown_language_container.dart b/lib/Components/multi_select_dropdown_language_container.dart index 250d42d..1b3384f 100644 --- a/lib/Components/multi_select_dropdown_language_container.dart +++ b/lib/Components/multi_select_dropdown_language_container.dart @@ -65,7 +65,7 @@ class _MultiSelectDropdownLanguageContainerState ), const SizedBox(height: 8, width: 10), Container( - padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 35), + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), /*decoration: BoxDecoration( borderRadius: BorderRadius.circular(12), border: Border.all(color: Colors.grey.shade400, width: 1.2), diff --git a/lib/Screens/Applications/app_configuration_link_screen.dart b/lib/Screens/Applications/app_configuration_link_screen.dart index 4598a8a..1efe6a2 100644 --- a/lib/Screens/Applications/app_configuration_link_screen.dart +++ b/lib/Screens/Applications/app_configuration_link_screen.dart @@ -129,7 +129,7 @@ class _AppConfigurationLinkScreenState extends State _generalInfoCard() { - const elementHeight = 125.0; + const elementHeight = 116.0; return Card( margin: const EdgeInsets.symmetric(vertical: 8), @@ -152,8 +152,8 @@ class _AppConfigurationLinkScreenState extends State alignment: WrapAlignment.center, crossAxisAlignment: WrapCrossAlignment.center, runAlignment: WrapAlignment.center, - spacing: 16, - runSpacing: 16, + spacing: 12, + runSpacing: 12, children: [ // Image principale Container( @@ -737,7 +737,7 @@ class _AppConfigurationLinkScreenState extends State children: [ Row( children: [ - Text(isWeb ? 'Aperçu — Web' : 'Aperçu — Mobile', style: TextStyle(fontWeight: FontWeight.w500, fontSize: 21)), + Text(isWeb ? AppLocalizations.of(context)!.previewWebTitle : AppLocalizations.of(context)!.previewMobileTitle, style: TextStyle(fontWeight: FontWeight.w500, fontSize: 21)), const Spacer(), if (isWeb) Container( @@ -749,8 +749,8 @@ class _AppConfigurationLinkScreenState extends State child: Row( mainAxisSize: MainAxisSize.min, children: [ - _previewWidthChip('Desktop', !_webPreviewMobileWidth, () => setState(() => _webPreviewMobileWidth = false)), - _previewWidthChip('Mobile', _webPreviewMobileWidth, () => setState(() => _webPreviewMobileWidth = true)), + _previewWidthChip(AppLocalizations.of(context)!.previewDesktop, !_webPreviewMobileWidth, () => setState(() => _webPreviewMobileWidth = false)), + _previewWidthChip(AppLocalizations.of(context)!.previewMobile, _webPreviewMobileWidth, () => setState(() => _webPreviewMobileWidth = true)), ], ), ), diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 539cfba..344bf7a 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -367,6 +367,10 @@ "languagesLabel": "Languages:", "featuredEventLabel": "Featured event:", "chooseEvent": "Choose an event", + "previewWebTitle": "Preview — Web", + "previewMobileTitle": "Preview — Mobile", + "previewDesktop": "Desktop", + "previewMobile": "Mobile", "noneOption": "None", "aiAssistantLabel": "AI assistant:", "appUpdatedSuccess": "Mobile application updated", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 49d47e7..9bb9dd3 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -367,6 +367,10 @@ "languagesLabel": "Langues :", "featuredEventLabel": "Evènement à l'affiche :", "chooseEvent": "Choisir un évènement", + "previewWebTitle": "Aperçu — Web", + "previewMobileTitle": "Aperçu — Mobile", + "previewDesktop": "Desktop", + "previewMobile": "Mobile", "noneOption": "Aucun", "aiAssistantLabel": "Assistant IA :", "appUpdatedSuccess": "Application mobile mise à jour", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 440ea0f..2558db5 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -1894,6 +1894,30 @@ abstract class AppLocalizations { /// **'Choisir un évènement'** String get chooseEvent; + /// No description provided for @previewWebTitle. + /// + /// In fr, this message translates to: + /// **'Aperçu — Web'** + String get previewWebTitle; + + /// No description provided for @previewMobileTitle. + /// + /// In fr, this message translates to: + /// **'Aperçu — Mobile'** + String get previewMobileTitle; + + /// No description provided for @previewDesktop. + /// + /// In fr, this message translates to: + /// **'Desktop'** + String get previewDesktop; + + /// No description provided for @previewMobile. + /// + /// In fr, this message translates to: + /// **'Mobile'** + String get previewMobile; + /// No description provided for @noneOption. /// /// In fr, this message translates to: diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 6b48263..2e94fbc 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -959,6 +959,18 @@ class AppLocalizationsEn extends AppLocalizations { @override String get chooseEvent => 'Choose an event'; + @override + String get previewWebTitle => 'Preview — Web'; + + @override + String get previewMobileTitle => 'Preview — Mobile'; + + @override + String get previewDesktop => 'Desktop'; + + @override + String get previewMobile => 'Mobile'; + @override String get noneOption => 'None'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 3ca48b7..e0d6e96 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -989,6 +989,18 @@ class AppLocalizationsFr extends AppLocalizations { @override String get chooseEvent => 'Choisir un évènement'; + @override + String get previewWebTitle => 'Aperçu — Web'; + + @override + String get previewMobileTitle => 'Aperçu — Mobile'; + + @override + String get previewDesktop => 'Desktop'; + + @override + String get previewMobile => 'Mobile'; + @override String get noneOption => 'Aucun'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 898dd9e..a7f9e26 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -970,6 +970,18 @@ class AppLocalizationsNl extends AppLocalizations { @override String get chooseEvent => 'Kies een evenement'; + @override + String get previewWebTitle => 'Voorbeeld — Web'; + + @override + String get previewMobileTitle => 'Voorbeeld — Mobiel'; + + @override + String get previewDesktop => 'Desktop'; + + @override + String get previewMobile => 'Mobiel'; + @override String get noneOption => 'Geen'; diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index 250b1df..0176081 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -367,6 +367,10 @@ "languagesLabel": "Talen:", "featuredEventLabel": "Uitgelicht evenement:", "chooseEvent": "Kies een evenement", + "previewWebTitle": "Voorbeeld — Web", + "previewMobileTitle": "Voorbeeld — Mobiel", + "previewDesktop": "Desktop", + "previewMobile": "Mobiel", "noneOption": "Geen", "aiAssistantLabel": "AI-assistent:", "appUpdatedSuccess": "Mobiele applicatie bijgewerkt",