diff --git a/.flutter-plugins b/.flutter-plugins index d338a78..bae1236 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -1,15 +1,15 @@ # This is a generated file; do not edit or check into version control. -audioplayers=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-1.1.1/ -audioplayers_android=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_android-1.1.1/ -audioplayers_darwin=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_darwin-1.0.3/ -audioplayers_linux=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_linux-1.0.1/ -audioplayers_web=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_web-2.0.1/ -audioplayers_windows=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_windows-1.1.0/ -path_provider=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.11/ -path_provider_android=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.20/ -path_provider_ios=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.11/ -path_provider_linux=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/ -path_provider_macos=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/ -path_provider_windows=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.1.3/ -qr_code_scanner=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-1.0.1/ -sqflite=/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.3+1/ +audioplayers=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\audioplayers-1.1.1\\ +audioplayers_android=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\audioplayers_android-1.1.1\\ +audioplayers_darwin=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\audioplayers_darwin-1.0.3\\ +audioplayers_linux=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\audioplayers_linux-1.0.1\\ +audioplayers_web=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\audioplayers_web-2.0.1\\ +audioplayers_windows=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\audioplayers_windows-1.1.0\\ +path_provider=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\path_provider-2.0.11\\ +path_provider_android=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\path_provider_android-2.0.20\\ +path_provider_ios=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\path_provider_ios-2.0.11\\ +path_provider_linux=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\path_provider_linux-2.1.7\\ +path_provider_macos=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\path_provider_macos-2.0.6\\ +path_provider_windows=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\path_provider_windows-2.1.3\\ +qr_code_scanner=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\qr_code_scanner-1.0.1\\ +sqflite=C:\\Users\\thoma\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\sqflite-2.0.3+1\\ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 5fb9d6b..70731ba 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"audioplayers_darwin","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_darwin-1.0.3/","native_build":true,"dependencies":[]},{"name":"path_provider_ios","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.11/","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-1.0.1/","native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.3+1/","native_build":true,"dependencies":[]}],"android":[{"name":"audioplayers_android","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_android-1.1.1/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.20/","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-1.0.1/","native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.3+1/","native_build":true,"dependencies":[]}],"macos":[{"name":"audioplayers_darwin","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_darwin-1.0.3/","native_build":true,"dependencies":[]},{"name":"path_provider_macos","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/","native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.3+1/","native_build":true,"dependencies":[]}],"linux":[{"name":"audioplayers_linux","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_linux-1.0.1/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/","native_build":false,"dependencies":[]}],"windows":[{"name":"audioplayers_windows","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_windows-1.1.0/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.1.3/","native_build":false,"dependencies":[]}],"web":[{"name":"audioplayers_web","path":"/Users/kiwixdevteam/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers_web-2.0.1/","dependencies":[]}]},"dependencyGraph":[{"name":"audioplayers","dependencies":["audioplayers_android","audioplayers_darwin","audioplayers_linux","audioplayers_web","audioplayers_windows","path_provider"]},{"name":"audioplayers_android","dependencies":[]},{"name":"audioplayers_darwin","dependencies":[]},{"name":"audioplayers_linux","dependencies":[]},{"name":"audioplayers_web","dependencies":[]},{"name":"audioplayers_windows","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_ios","path_provider_linux","path_provider_macos","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_ios","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"qr_code_scanner","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2022-12-05 21:59:11.929581","version":"3.3.9"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"audioplayers_darwin","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\audioplayers_darwin-1.0.3\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_ios","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_ios-2.0.11\\\\","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\qr_code_scanner-1.0.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-2.0.3+1\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"audioplayers_android","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\audioplayers_android-1.1.1\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_android-2.0.20\\\\","native_build":true,"dependencies":[]},{"name":"qr_code_scanner","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\qr_code_scanner-1.0.1\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-2.0.3+1\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"audioplayers_darwin","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\audioplayers_darwin-1.0.3\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_macos","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.6\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-2.0.3+1\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"audioplayers_linux","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\audioplayers_linux-1.0.1\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.1.7\\\\","native_build":false,"dependencies":[]}],"windows":[{"name":"audioplayers_windows","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\audioplayers_windows-1.1.0\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.1.3\\\\","native_build":false,"dependencies":[]}],"web":[{"name":"audioplayers_web","path":"C:\\\\Users\\\\thoma\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\audioplayers_web-2.0.1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"audioplayers","dependencies":["audioplayers_android","audioplayers_darwin","audioplayers_linux","audioplayers_web","audioplayers_windows","path_provider"]},{"name":"audioplayers_android","dependencies":[]},{"name":"audioplayers_darwin","dependencies":[]},{"name":"audioplayers_linux","dependencies":[]},{"name":"audioplayers_web","dependencies":[]},{"name":"audioplayers_windows","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_ios","path_provider_linux","path_provider_macos","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_ios","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"qr_code_scanner","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2022-12-07 17:56:41.470312","version":"3.0.3"} \ No newline at end of file diff --git a/lib/Components/SearchBox.dart b/lib/Components/SearchBox.dart index c987dd8..17f3ce9 100644 --- a/lib/Components/SearchBox.dart +++ b/lib/Components/SearchBox.dart @@ -1,4 +1,7 @@ import 'package:flutter/material.dart'; +import 'package:mymuseum_visitapp/Helpers/translationHelper.dart'; +import 'package:mymuseum_visitapp/app_context.dart'; +import 'package:provider/provider.dart'; import '../constants.dart'; class SearchBox extends StatefulWidget { @@ -19,6 +22,8 @@ class _SearchBoxState extends State { @override Widget build(BuildContext context) { Size size = MediaQuery.of(context).size; + final appContext = Provider.of(context); + return Container( width: size.width*0.65, margin: const EdgeInsets.all(kDefaultPadding), @@ -38,7 +43,7 @@ class _SearchBoxState extends State { enabledBorder: InputBorder.none, focusedBorder: InputBorder.none, icon: const Icon(Icons.search, color: Colors.white), - hintText: 'Search', + hintText: TranslationHelper.getFromLocale("search", appContext), hintStyle: const TextStyle(color: Colors.white), suffixIcon: _controller.value.text.isNotEmpty ? InkWell( onTap: () { diff --git a/lib/translations.dart b/lib/translations.dart index b8624e2..765398f 100644 --- a/lib/translations.dart +++ b/lib/translations.dart @@ -8,7 +8,8 @@ List translations = [ "invalidQRCode": "Code QR invalide", "languageNotSupported": "Cette visite ne prend pas en charge votre langue", "downloadConfiguration": "Chargement de la visite en cours...", - "noInternet": "Aucune connexion internet détectée" + "noInternet": "Aucune connexion internet détectée", + "search": "Rechercher" }), Translation(language: "EN", data: { "visitTitle": "List of tours", @@ -17,7 +18,8 @@ List translations = [ "invalidQRCode": "Invalid QR code", "languageNotSupported": "This tour doesn't support your language", "downloadConfiguration": "Loading tour...", - "noInternet": "No internet connection detected" + "noInternet": "No internet connection detected", + "search": "Search" }), Translation(language: "DE", data: { "visitTitle": "Liste der Touren", @@ -26,7 +28,8 @@ List translations = [ "invalidQRCode": "Ungültiger QR-Code", "languageNotSupported": "Diese Tour unterstützt Ihre Sprache nicht", "downloadConfiguration": "Tour laden...", - "noInternet": "Keine Internetverbindung erkannt" + "noInternet": "Keine Internetverbindung erkannt", + "search": "Suche" }), Translation(language: "NL", data: { "visitTitle": "Lijst met rondleidingen", @@ -35,7 +38,8 @@ List translations = [ "invalidQRCode": "Ongeldige QR-code", "languageNotSupported": "Deze tour ondersteunt je taal niet", "downloadConfiguration": "De rondleiding laden...", - "noInternet": "Geen internetverbinding gedetecteerd" + "noInternet": "Geen internetverbinding gedetecteerd", + "search": "Zoeken" }), Translation(language: "IT", data: { "visitTitle": "Elenco dei tour", @@ -44,7 +48,8 @@ List translations = [ "invalidQRCode": "Codice QR non valido", "languageNotSupported": "Questo tour non supporta la tua lingua", "downloadConfiguration": "Caricamento del tour...", - "noInternet": "Nessuna connessione Internet rilevata" + "noInternet": "Nessuna connessione Internet rilevata", + "search": "Ricerca" }), Translation(language: "ES", data: { "visitTitle": "Lista de recorridos", @@ -53,7 +58,8 @@ List translations = [ "invalidQRCode": "Código QR no válido", "languageNotSupported": "Este tour no es compatible con tu idioma", "downloadConfiguration": "Cargando el recorrido...", - "noInternet": "No se detectó conexión a Internet" + "noInternet": "No se detectó conexión a Internet", + "search": "Búsqueda" }), Translation(language: "PL", data: { "visitTitle": "Lista wycieczek", @@ -62,7 +68,8 @@ List translations = [ "invalidQRCode": "Nieprawidłowy kod QR", "languageNotSupported": "Ta wycieczka nie obsługuje Twojego języka", "downloadConfiguration": "Wczytuję prezentację...", - "noInternet": "Nie wykryto połączenia internetowego" + "noInternet": "Nie wykryto połączenia internetowego", + "search": "Szukaj" }), Translation(language: "CN", data: { "visitTitle": "旅游清单", @@ -71,6 +78,7 @@ List translations = [ "invalidQRCode": "二维码无效", "languageNotSupported": "此导览不支持您的语言", "downloadConfiguration": "正在加载导览...", - "noInternet": "未检测到互联网连接" + "noInternet": "未检测到互联网连接", + "search": "搜索" }), ]; \ No newline at end of file diff --git a/mymuseum_visitapp.iml b/mymuseum_visitapp.iml index 0cb2c93..c629fc0 100644 --- a/mymuseum_visitapp.iml +++ b/mymuseum_visitapp.iml @@ -15,6 +15,15 @@ + + + + + + + + +