From 63d40be56dce59be482edafff75e4debfffdb034 Mon Sep 17 00:00:00 2001 From: 24bartixx Date: Wed, 11 Dec 2024 17:34:09 +0100 Subject: [PATCH] feat: add good amenities section icons --- assets/svg/digital_guide/assistance_dog.svg | 8 ++++++ assets/svg/digital_guide/braille.svg | 18 +++++++++++++ assets/svg/digital_guide/emergency_chairs.svg | 12 +++++++++ assets/svg/digital_guide/induction_loop.svg | 10 +++++++ assets/svg/digital_guide/large_font.svg | 10 +++++++ assets/svg/digital_guide/micronavigation.svg | 11 ++++++++ .../svg/digital_guide/orientation_paths.svg | 27 +++++++++++++++++++ assets/svg/digital_guide/sign_language.svg | 4 +++ assets/svg/digital_guide/storey.svg | 4 ++- .../amenities_expansion_tile_content.dart | 18 ++++++------- .../widgets/science_clubs_section.dart | 2 +- lib/l10n/app_pl.arb | 2 +- pubspec.yaml | 8 ++++++ 13 files changed, 122 insertions(+), 12 deletions(-) create mode 100644 assets/svg/digital_guide/assistance_dog.svg create mode 100644 assets/svg/digital_guide/braille.svg create mode 100644 assets/svg/digital_guide/emergency_chairs.svg create mode 100644 assets/svg/digital_guide/induction_loop.svg create mode 100644 assets/svg/digital_guide/large_font.svg create mode 100644 assets/svg/digital_guide/micronavigation.svg create mode 100644 assets/svg/digital_guide/orientation_paths.svg create mode 100644 assets/svg/digital_guide/sign_language.svg diff --git a/assets/svg/digital_guide/assistance_dog.svg b/assets/svg/digital_guide/assistance_dog.svg new file mode 100644 index 00000000..954b00b2 --- /dev/null +++ b/assets/svg/digital_guide/assistance_dog.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/assets/svg/digital_guide/braille.svg b/assets/svg/digital_guide/braille.svg new file mode 100644 index 00000000..ce26d75a --- /dev/null +++ b/assets/svg/digital_guide/braille.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/assets/svg/digital_guide/emergency_chairs.svg b/assets/svg/digital_guide/emergency_chairs.svg new file mode 100644 index 00000000..d4af9a23 --- /dev/null +++ b/assets/svg/digital_guide/emergency_chairs.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/svg/digital_guide/induction_loop.svg b/assets/svg/digital_guide/induction_loop.svg new file mode 100644 index 00000000..90e1ba51 --- /dev/null +++ b/assets/svg/digital_guide/induction_loop.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/svg/digital_guide/large_font.svg b/assets/svg/digital_guide/large_font.svg new file mode 100644 index 00000000..47b86381 --- /dev/null +++ b/assets/svg/digital_guide/large_font.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/svg/digital_guide/micronavigation.svg b/assets/svg/digital_guide/micronavigation.svg new file mode 100644 index 00000000..d9b0cf0b --- /dev/null +++ b/assets/svg/digital_guide/micronavigation.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/assets/svg/digital_guide/orientation_paths.svg b/assets/svg/digital_guide/orientation_paths.svg new file mode 100644 index 00000000..8d5b24bb --- /dev/null +++ b/assets/svg/digital_guide/orientation_paths.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/svg/digital_guide/sign_language.svg b/assets/svg/digital_guide/sign_language.svg new file mode 100644 index 00000000..06afddc5 --- /dev/null +++ b/assets/svg/digital_guide/sign_language.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/assets/svg/digital_guide/storey.svg b/assets/svg/digital_guide/storey.svg index 5d715829..2f23acc9 100644 --- a/assets/svg/digital_guide/storey.svg +++ b/assets/svg/digital_guide/storey.svg @@ -1 +1,3 @@ - \ No newline at end of file + + + diff --git a/lib/features/digital_guide_view/amenities/presentation/amenities_expansion_tile_content.dart b/lib/features/digital_guide_view/amenities/presentation/amenities_expansion_tile_content.dart index e0fc7ede..2ddff9a9 100644 --- a/lib/features/digital_guide_view/amenities/presentation/amenities_expansion_tile_content.dart +++ b/lib/features/digital_guide_view/amenities/presentation/amenities_expansion_tile_content.dart @@ -21,42 +21,42 @@ class AmenitiesExpansionTileContent extends StatelessWidget { if (digitalGuideResponseExtended.canAssistanceDog) ContactIconsModel( text: context.localize.assistance_dog, - icon: Assets.svg.contactIcons.compass, + icon: Assets.svg.digitalGuide.assistanceDog, ), if (digitalGuideResponseExtended.isInductionLoop) ContactIconsModel( text: context.localize.induction_loop, - icon: Assets.svg.contactIcons.compass, + icon: Assets.svg.digitalGuide.inductionLoop, ), if (digitalGuideResponseExtended.isMicroNavigationSystem) ContactIconsModel( text: context.localize.micronavigation_system, - icon: Assets.svg.contactIcons.compass, + icon: Assets.svg.digitalGuide.micronavigation, ), if (digitalGuideResponseExtended.areGuidancePaths) ContactIconsModel( - text: context.localize.guidance_paths, - icon: Assets.svg.contactIcons.compass, + text: context.localize.orientation_paths, + icon: Assets.svg.digitalGuide.orientationPaths, ), if (digitalGuideResponseExtended.areBrailleBoards) ContactIconsModel( text: context.localize.information_boards_with_braille_description, - icon: Assets.svg.contactIcons.compass, + icon: Assets.svg.digitalGuide.braille, ), if (digitalGuideResponseExtended.areLargeFontBoards) ContactIconsModel( text: context.localize.information_boards_with_large_font, - icon: Assets.svg.contactIcons.compass, + icon: Assets.svg.digitalGuide.largeFont, ), if (digitalGuideResponseExtended.isSignLanguageInterpreter) ContactIconsModel( text: context.localize.sign_language_interpreter, - icon: Assets.svg.contactIcons.compass, + icon: Assets.svg.digitalGuide.signLanguage, ), if (digitalGuideResponseExtended.areEmergencyChairs) ContactIconsModel( text: context.localize.emergency_chairs, - icon: Assets.svg.contactIcons.compass, + icon: Assets.svg.digitalGuide.emergencyChairs, ), ].lock, ); diff --git a/lib/features/home_view/widgets/science_clubs_section.dart b/lib/features/home_view/widgets/science_clubs_section.dart index b7b57859..ea30b7da 100644 --- a/lib/features/home_view/widgets/science_clubs_section.dart +++ b/lib/features/home_view/widgets/science_clubs_section.dart @@ -28,7 +28,7 @@ class ScienceClubsSection extends ConsumerWidget { ), FilledButton( onPressed: () { - unawaited(ref.navigateDigitalGuide(101)); + unawaited(ref.navigateDigitalGuide(313)); }, child: const Text("Navigate to digital guide screen!"), ), diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index d167e43c..e007c11e 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -177,7 +177,7 @@ "assistance_dog" : "Do budynku i wszystkich jego pomieszczeń można wejść z psem asystującym i psem przewodnikiem", "induction_loop": "W budynku jest/są pętle indukcyjne", "micronavigation_system": "W budynku zostały zainstalowane urządzenia systemu nawigacyjno-informacyjnego", - "guidance_paths": "W budynku zastosowane zostały ścieżki naprowadzające (dotykowe)", + "orientation_paths": "W budynku zastosowane zostały ścieżki naprowadzające (dotykowe)", "information_boards_with_braille_description": "W budynku znajdują się czytelne tablice informacyjne zawierające opisy w alfabecie Braille'a", "information_boards_with_large_font": "W budynku znajdują się czytelne tablice informacyjne zawierające napisy w dużej czcionce", "sign_language_interpreter": "W budynku zapewniona jest możliwość skorzystania z usług tłumacza języka migowego", diff --git a/pubspec.yaml b/pubspec.yaml index b2dea573..97aa05a4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -146,6 +146,14 @@ flutter: - assets/svg/contact_icons/tiktok.svg - assets/svg/contact_icons/discord.svg - assets/svg/digital_guide/storey.svg + - assets/svg/digital_guide/assistance_dog.svg + - assets/svg/digital_guide/braille.svg + - assets/svg/digital_guide/emergency_chairs.svg + - assets/svg/digital_guide/induction_loop.svg + - assets/svg/digital_guide/large_font.svg + - assets/svg/digital_guide/micronavigation.svg + - assets/svg/digital_guide/orientation_paths.svg + - assets/svg/digital_guide/sign_language.svg - assets/animations/error.json - assets/animations/search.json - assets/animations/offline.json