Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d962b3bde | |||
| c12464e89a | |||
| aeeb1c27e0 | |||
| 46906b04f4 | |||
| 8f7a68edbc | |||
| eb9ca9299e | |||
| e15a979c0c |
@@ -1,7 +1,7 @@
|
||||
# citycards_customer
|
||||
|
||||
A new Flutter project.
|
||||
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 204 KiB |
|
Before Width: | Height: | Size: 204 KiB |
|
Before Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 141 KiB |
@@ -1,6 +1,6 @@
|
||||
# flutter pub run flutter_launcher_icons
|
||||
flutter_launcher_icons:
|
||||
image_path: "assets/icons/citycards_customer_logo.jpg"
|
||||
image_path: "assets/logo/logo_city_cards.png"
|
||||
|
||||
android: "launcher_icon"
|
||||
# image_path_android: "assets/icon/icon.png"
|
||||
|
||||
@@ -20,5 +20,7 @@
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>13.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -20,11 +20,71 @@ PODS:
|
||||
- Flutter
|
||||
- Google-Maps-iOS-Utils (< 7.0, >= 5.0)
|
||||
- GoogleMaps (< 10.0, >= 8.4)
|
||||
- google_mlkit_commons (0.11.1):
|
||||
- Flutter
|
||||
- MLKitVision (~> 10.0.0)
|
||||
- google_mlkit_translation (0.13.1):
|
||||
- Flutter
|
||||
- google_mlkit_commons
|
||||
- GoogleMLKit/Translate (~> 9.0.0)
|
||||
- GoogleDataTransport (10.1.0):
|
||||
- nanopb (~> 3.30910.0)
|
||||
- PromisesObjC (~> 2.4)
|
||||
- GoogleMaps (9.4.0):
|
||||
- GoogleMaps/Maps (= 9.4.0)
|
||||
- GoogleMaps/Maps (9.4.0)
|
||||
- GoogleMLKit/MLKitCore (9.0.0):
|
||||
- MLKitCommon (~> 14.0.0)
|
||||
- GoogleMLKit/Translate (9.0.0):
|
||||
- GoogleMLKit/MLKitCore
|
||||
- MLKitTranslate (~> 8.0.0)
|
||||
- GoogleToolboxForMac/Defines (4.2.1)
|
||||
- GoogleToolboxForMac/Logger (4.2.1):
|
||||
- GoogleToolboxForMac/Defines (= 4.2.1)
|
||||
- "GoogleToolboxForMac/NSData+zlib (4.2.1)":
|
||||
- GoogleToolboxForMac/Defines (= 4.2.1)
|
||||
- GoogleToolboxForMac/StringEncoding (4.2.1):
|
||||
- GoogleToolboxForMac/Defines (= 4.2.1)
|
||||
- GoogleUtilities/Environment (8.1.0):
|
||||
- GoogleUtilities/Privacy
|
||||
- GoogleUtilities/Logger (8.1.0):
|
||||
- GoogleUtilities/Environment
|
||||
- GoogleUtilities/Privacy
|
||||
- GoogleUtilities/Privacy (8.1.0)
|
||||
- GoogleUtilities/UserDefaults (8.1.0):
|
||||
- GoogleUtilities/Logger
|
||||
- GoogleUtilities/Privacy
|
||||
- GTMSessionFetcher/Core (3.5.0)
|
||||
- image_picker_ios (0.0.1):
|
||||
- Flutter
|
||||
- MLImage (1.0.0-beta8)
|
||||
- MLKitCommon (14.0.0):
|
||||
- GoogleDataTransport (~> 10.0)
|
||||
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
|
||||
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
|
||||
- GoogleUtilities/Logger (~> 8.0)
|
||||
- GoogleUtilities/UserDefaults (~> 8.0)
|
||||
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
|
||||
- MLKitNaturalLanguage (10.0.0):
|
||||
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
|
||||
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
|
||||
- GoogleToolboxForMac/StringEncoding (< 5.0, >= 4.2.1)
|
||||
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
|
||||
- MLKitCommon (~> 14.0)
|
||||
- MLKitTranslate (8.0.0):
|
||||
- MLKitNaturalLanguage (~> 10.0)
|
||||
- SSZipArchive (< 3.0, >= 2.5.5)
|
||||
- MLKitVision (10.0.0):
|
||||
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
|
||||
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
|
||||
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
|
||||
- MLImage (= 1.0.0-beta8)
|
||||
- MLKitCommon (~> 14.0)
|
||||
- nanopb (3.30910.0):
|
||||
- nanopb/decode (= 3.30910.0)
|
||||
- nanopb/encode (= 3.30910.0)
|
||||
- nanopb/decode (3.30910.0)
|
||||
- nanopb/encode (3.30910.0)
|
||||
- open_filex (0.0.2):
|
||||
- Flutter
|
||||
- package_info_plus (0.4.5):
|
||||
@@ -32,6 +92,7 @@ PODS:
|
||||
- path_provider_foundation (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- PromisesObjC (2.4.0)
|
||||
- share_plus (0.0.1):
|
||||
- Flutter
|
||||
- shared_preferences_foundation (0.0.1):
|
||||
@@ -40,6 +101,7 @@ PODS:
|
||||
- sqflite_darwin (0.0.4):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- SSZipArchive (2.6.0)
|
||||
- Stripe (25.0.1):
|
||||
- StripeApplePay (= 25.0.1)
|
||||
- StripeCore (= 25.0.1)
|
||||
@@ -111,6 +173,8 @@ DEPENDENCIES:
|
||||
- geocoding_ios (from `.symlinks/plugins/geocoding_ios/ios`)
|
||||
- geolocator_apple (from `.symlinks/plugins/geolocator_apple/darwin`)
|
||||
- google_maps_flutter_ios (from `.symlinks/plugins/google_maps_flutter_ios/ios`)
|
||||
- google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`)
|
||||
- google_mlkit_translation (from `.symlinks/plugins/google_mlkit_translation/ios`)
|
||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||
- open_filex (from `.symlinks/plugins/open_filex/ios`)
|
||||
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
||||
@@ -127,7 +191,20 @@ SPEC REPOS:
|
||||
trunk:
|
||||
- FlutterAngle
|
||||
- Google-Maps-iOS-Utils
|
||||
- GoogleDataTransport
|
||||
- GoogleMaps
|
||||
- GoogleMLKit
|
||||
- GoogleToolboxForMac
|
||||
- GoogleUtilities
|
||||
- GTMSessionFetcher
|
||||
- MLImage
|
||||
- MLKitCommon
|
||||
- MLKitNaturalLanguage
|
||||
- MLKitTranslate
|
||||
- MLKitVision
|
||||
- nanopb
|
||||
- PromisesObjC
|
||||
- SSZipArchive
|
||||
- Stripe
|
||||
- StripeApplePay
|
||||
- StripeCore
|
||||
@@ -152,6 +229,10 @@ EXTERNAL SOURCES:
|
||||
:path: ".symlinks/plugins/geolocator_apple/darwin"
|
||||
google_maps_flutter_ios:
|
||||
:path: ".symlinks/plugins/google_maps_flutter_ios/ios"
|
||||
google_mlkit_commons:
|
||||
:path: ".symlinks/plugins/google_mlkit_commons/ios"
|
||||
google_mlkit_translation:
|
||||
:path: ".symlinks/plugins/google_mlkit_translation/ios"
|
||||
image_picker_ios:
|
||||
:path: ".symlinks/plugins/image_picker_ios/ios"
|
||||
open_filex:
|
||||
@@ -185,14 +266,29 @@ SPEC CHECKSUMS:
|
||||
geolocator_apple: 66b711889fd333205763b83c9dcf0a57a28c7afd
|
||||
Google-Maps-iOS-Utils: 0a484b05ed21d88c9f9ebbacb007956edd508a96
|
||||
google_maps_flutter_ios: e31555a04d1986ab130f2b9f24b6cdc861acc6d3
|
||||
google_mlkit_commons: 1e6ef6605d7281f35baf2b355e6049b9984fd624
|
||||
google_mlkit_translation: 8a0e84c632121250843e9bab526cb926a2a2a7b7
|
||||
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
|
||||
GoogleMaps: 0608099d4870cac8754bdba9b6953db543432438
|
||||
GoogleMLKit: b1eee21a41c57704fe72483b15c85cb2c0cd7444
|
||||
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
|
||||
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
|
||||
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
|
||||
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
|
||||
MLImage: 0de5c6c2bf9e93b80ef752e2797f0836f03b58c0
|
||||
MLKitCommon: 47d47b50a031d00db62f1b0efe5a1d8b09a3b2e6
|
||||
MLKitNaturalLanguage: 498154f2461f97abb00eb161eb773670ffc46250
|
||||
MLKitTranslate: fcb283a2cbaaa595e1cf1d3fedffcea2e97a1168
|
||||
MLKitVision: 39a5a812db83c4a0794445088e567f3631c11961
|
||||
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
|
||||
open_filex: 6e26e659846ec990262224a12ef1c528bb4edbe4
|
||||
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
|
||||
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
|
||||
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
|
||||
share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f
|
||||
shared_preferences_foundation: 5086985c1d43c5ba4d5e69a4e8083a389e2909e6
|
||||
sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702d
|
||||
SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea
|
||||
Stripe: 4728e3e0dd8df134e4a420ab504e929a93a815f0
|
||||
stripe_ios: c552a249333c2e810e02539140dba366c7f0683f
|
||||
StripeApplePay: 43997281ace138a1c75a8f2d7be11925ea28644c
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
60A4FC1A895BADD3C1597C0B /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E2BCDF72F2D56D34CC9E967 /* Pods_RunnerTests.framework */; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
94B491F6EAAA79D2947A02BD /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BA7A98D7E1CD160163E28329 /* Pods_RunnerTests.framework */; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
B7B14C5E8DB2459D45E2AD2E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864C28F633B337B6CD7995 /* Pods_Runner.framework */; };
|
||||
C9496C6E1D2E0AEA2083C14C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D485254B2B32B84B17D20864 /* Pods_Runner.framework */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@@ -44,16 +44,15 @@
|
||||
/* Begin PBXFileReference section */
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
18E5A2491D54EBB2484B6D9E /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
|
||||
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
|
||||
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
369614DBDD277BF9018C34BC /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
62ED1D923084D6092BECB5AC /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
6997591091A0E8DA4E4776AA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
6BD7534B4533D500F969D46C /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
|
||||
5C263389B0D2FA3EC95111B1 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
6E2BCDF72F2D56D34CC9E967 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
6F51EB881CD063E2C9A71BA6 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
75864C28F633B337B6CD7995 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
@@ -62,9 +61,10 @@
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
AB77C0F975F5B780954288AA /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
|
||||
AE2DC54B7F4682B91B6259C6 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
BA7A98D7E1CD160163E28329 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
9EEFD1F245CF2AAD027ADE1E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
D485254B2B32B84B17D20864 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
D719B3676BADD267F44F4A59 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
D8B9C9F2F3A8FEF639B5A528 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@@ -72,7 +72,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B7B14C5E8DB2459D45E2AD2E /* Pods_Runner.framework in Frameworks */,
|
||||
C9496C6E1D2E0AEA2083C14C /* Pods_Runner.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -80,13 +80,22 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
94B491F6EAAA79D2947A02BD /* Pods_RunnerTests.framework in Frameworks */,
|
||||
60A4FC1A895BADD3C1597C0B /* Pods_RunnerTests.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
227A5CBF4270AAC4960A7CAF /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
D485254B2B32B84B17D20864 /* Pods_Runner.framework */,
|
||||
6E2BCDF72F2D56D34CC9E967 /* Pods_RunnerTests.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
331C8082294A63A400263BE5 /* RunnerTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -98,12 +107,12 @@
|
||||
6D4A73F1E55857ADBD000C6A /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
369614DBDD277BF9018C34BC /* Pods-Runner.debug.xcconfig */,
|
||||
6BD7534B4533D500F969D46C /* Pods-Runner.release.xcconfig */,
|
||||
6997591091A0E8DA4E4776AA /* Pods-Runner.profile.xcconfig */,
|
||||
62ED1D923084D6092BECB5AC /* Pods-RunnerTests.debug.xcconfig */,
|
||||
AB77C0F975F5B780954288AA /* Pods-RunnerTests.release.xcconfig */,
|
||||
AE2DC54B7F4682B91B6259C6 /* Pods-RunnerTests.profile.xcconfig */,
|
||||
9EEFD1F245CF2AAD027ADE1E /* Pods-Runner.debug.xcconfig */,
|
||||
D8B9C9F2F3A8FEF639B5A528 /* Pods-Runner.release.xcconfig */,
|
||||
D719B3676BADD267F44F4A59 /* Pods-Runner.profile.xcconfig */,
|
||||
6F51EB881CD063E2C9A71BA6 /* Pods-RunnerTests.debug.xcconfig */,
|
||||
18E5A2491D54EBB2484B6D9E /* Pods-RunnerTests.release.xcconfig */,
|
||||
5C263389B0D2FA3EC95111B1 /* Pods-RunnerTests.profile.xcconfig */,
|
||||
);
|
||||
path = Pods;
|
||||
sourceTree = "<group>";
|
||||
@@ -127,7 +136,7 @@
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
331C8082294A63A400263BE5 /* RunnerTests */,
|
||||
6D4A73F1E55857ADBD000C6A /* Pods */,
|
||||
F3A521C4EE6E75D0D8A88556 /* Frameworks */,
|
||||
227A5CBF4270AAC4960A7CAF /* Frameworks */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
@@ -155,15 +164,6 @@
|
||||
path = Runner;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F3A521C4EE6E75D0D8A88556 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
75864C28F633B337B6CD7995 /* Pods_Runner.framework */,
|
||||
BA7A98D7E1CD160163E28329 /* Pods_RunnerTests.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
@@ -171,7 +171,7 @@
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
|
||||
buildPhases = (
|
||||
42DBF8C3008CA78F0E130EA1 /* [CP] Check Pods Manifest.lock */,
|
||||
FCD91A1B9B088634E06F7C98 /* [CP] Check Pods Manifest.lock */,
|
||||
331C807D294A63A400263BE5 /* Sources */,
|
||||
331C807F294A63A400263BE5 /* Resources */,
|
||||
CF8A29BE993C0C902CB143AF /* Frameworks */,
|
||||
@@ -190,15 +190,15 @@
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
||||
buildPhases = (
|
||||
46DBB6E51DCB00168B7FED03 /* [CP] Check Pods Manifest.lock */,
|
||||
8B4387D9368AF1A601B17194 /* [CP] Check Pods Manifest.lock */,
|
||||
9740EEB61CF901F6004384FC /* Run Script */,
|
||||
97C146EA1CF9000F007C117D /* Sources */,
|
||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||
97C146EC1CF9000F007C117D /* Resources */,
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
E0E7566711BD38D2F6C5330A /* [CP] Embed Pods Frameworks */,
|
||||
5BB9E9D50E854F4D876D849A /* [CP] Copy Pods Resources */,
|
||||
CA082AA85EC21FFAA42CE12F /* [CP] Embed Pods Frameworks */,
|
||||
3F2F0E04CC81D63DDD8C37A9 /* [CP] Copy Pods Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
@@ -286,29 +286,24 @@
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||
};
|
||||
42DBF8C3008CA78F0E130EA1 /* [CP] Check Pods Manifest.lock */ = {
|
||||
3F2F0E04CC81D63DDD8C37A9 /* [CP] Copy Pods Resources */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||
"${PODS_ROOT}/Manifest.lock",
|
||||
);
|
||||
name = "[CP] Check Pods Manifest.lock";
|
||||
name = "[CP] Copy Pods Resources";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
46DBB6E51DCB00168B7FED03 /* [CP] Check Pods Manifest.lock */ = {
|
||||
8B4387D9368AF1A601B17194 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
@@ -330,23 +325,6 @@
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
5BB9E9D50E854F4D876D849A /* [CP] Copy Pods Resources */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
@@ -362,7 +340,7 @@
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
E0E7566711BD38D2F6C5330A /* [CP] Embed Pods Frameworks */ = {
|
||||
CA082AA85EC21FFAA42CE12F /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
@@ -379,6 +357,28 @@
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
FCD91A1B9B088634E06F7C98 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||
"${PODS_ROOT}/Manifest.lock",
|
||||
);
|
||||
name = "[CP] Check Pods Manifest.lock";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
@@ -515,7 +515,7 @@
|
||||
};
|
||||
331C8088294A63A400263BE5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 62ED1D923084D6092BECB5AC /* Pods-RunnerTests.debug.xcconfig */;
|
||||
baseConfigurationReference = 6F51EB881CD063E2C9A71BA6 /* Pods-RunnerTests.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
@@ -533,7 +533,7 @@
|
||||
};
|
||||
331C8089294A63A400263BE5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = AB77C0F975F5B780954288AA /* Pods-RunnerTests.release.xcconfig */;
|
||||
baseConfigurationReference = 18E5A2491D54EBB2484B6D9E /* Pods-RunnerTests.release.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
@@ -549,7 +549,7 @@
|
||||
};
|
||||
331C808A294A63A400263BE5 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = AE2DC54B7F4682B91B6259C6 /* Pods-RunnerTests.profile.xcconfig */;
|
||||
baseConfigurationReference = 5C263389B0D2FA3EC95111B1 /* Pods-RunnerTests.profile.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>PreviewsEnabled</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -2,15 +2,12 @@ import Flutter
|
||||
import UIKit
|
||||
|
||||
@main
|
||||
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
|
||||
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
|
||||
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 678 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 857 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 7.1 KiB |
@@ -6,6 +6,10 @@
|
||||
<true/>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Scan your card to add it automatically</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>To scan cards</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Citycards Customer</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
@@ -24,37 +28,18 @@
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>3</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string></string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>We need access to your camera for taking photos for profile and to build a postcard.</string>
|
||||
<string>To scan cards</string>
|
||||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
||||
<string>Citycard customer needs your location to find the closest place you can visit.</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string>Citycard customer needs your location to find the closest place you can visit.</string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>We need access to your camera for taking photos for profile and to build a postcard.</string>
|
||||
<key>UIApplicationSceneManifest</key>
|
||||
<dict>
|
||||
<key>UIApplicationSupportsMultipleScenes</key>
|
||||
<false/>
|
||||
<key>UISceneConfigurations</key>
|
||||
<dict>
|
||||
<key>UIWindowSceneSessionRoleApplication</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>UISceneClassName</key>
|
||||
<string>UIWindowScene</string>
|
||||
<key>UISceneConfigurationName</key>
|
||||
<string>flutter</string>
|
||||
<key>UISceneDelegateClassName</key>
|
||||
<string>FlutterSceneDelegate</string>
|
||||
<key>UISceneStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
@@ -66,10 +51,15 @@
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
arb-dir: lib/l10n
|
||||
template-arb-file: app_en.arb
|
||||
output-localization-file: app_localizations.dart
|
||||
output-class: AppLocalizations
|
||||
nullable-getter: false
|
||||
@@ -7,7 +7,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:phone_numbers_parser/phone_numbers_parser.dart'; // ✅ NEW IMPORT
|
||||
import '../l10n/app_localizations.dart';
|
||||
|
||||
import '../checkout/bloc/pass_purchase_details_bloc.dart';
|
||||
import '../checkout/bloc/pass_purchase_details_event.dart';
|
||||
@@ -69,8 +68,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
cityController.text.isEmpty ||
|
||||
countryController.text.isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppLocalizations.of(context)!.pleaseFillAllFields),
|
||||
const SnackBar(
|
||||
content: Text('Please fill all fields'),
|
||||
backgroundColor: Colors.red,
|
||||
),
|
||||
);
|
||||
@@ -79,8 +78,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
|
||||
if (!_isValidEmail(emailController.text)) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppLocalizations.of(context)!.enterValidEmail),
|
||||
const SnackBar(
|
||||
content: Text('Please enter a valid email address'),
|
||||
backgroundColor: Colors.red,
|
||||
),
|
||||
);
|
||||
@@ -91,7 +90,7 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
if (!_isValidPhone(phoneController.text)) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppLocalizations.of(context)!.enterValidPhoneForIsd(_selectedIsdCode)),
|
||||
content: Text('Enter a valid phone number for $_selectedIsdCode'),
|
||||
backgroundColor: Colors.red,
|
||||
),
|
||||
);
|
||||
@@ -126,7 +125,7 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
if (state is PurchaseDetailsError) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(state.errorMessage ?? AppLocalizations.of(context)!.failedToSubmitDetails),
|
||||
content: Text(state.errorMessage ?? 'Failed to submit details'),
|
||||
backgroundColor: Colors.red,
|
||||
),
|
||||
);
|
||||
@@ -159,7 +158,7 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.addDetailsTitle,
|
||||
"Add details",
|
||||
style: TextStyle(
|
||||
fontSize: 12.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -171,7 +170,7 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.aboutRecipient,
|
||||
text: "Tell us about the recipient",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w500,
|
||||
),
|
||||
@@ -181,8 +180,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: AppLocalizations.of(context)!.firstNameLabelWithStar,
|
||||
hint: AppLocalizations.of(context)!.firstNameHint,
|
||||
label: "First Name *",
|
||||
hint: "Enter recipient's first name",
|
||||
controller: firstNameController,
|
||||
onlyLetters: true,
|
||||
maxLength: 50,
|
||||
@@ -193,8 +192,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: AppLocalizations.of(context)!.lastNameLabelWithStar,
|
||||
hint: AppLocalizations.of(context)!.lastNameHint,
|
||||
label: "Last Name *",
|
||||
hint: "Enter recipient's last name",
|
||||
controller: lastNameController,
|
||||
onlyLetters: true,
|
||||
maxLength: 50,
|
||||
@@ -205,8 +204,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: AppLocalizations.of(context)!.emailLabelWithStar,
|
||||
hint: AppLocalizations.of(context)!.emailHint,
|
||||
label: "Email *",
|
||||
hint: "Enter recipient's email address",
|
||||
controller: emailController,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
),
|
||||
@@ -216,8 +215,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: AppLocalizations.of(context)!.phoneNumberLabelWithStar,
|
||||
hint: AppLocalizations.of(context)!.phoneNumberHint,
|
||||
label: "Phone Number *",
|
||||
hint: "Enter phone number",
|
||||
controller: phoneController,
|
||||
keyboardType: TextInputType.phone,
|
||||
maxLength: 12,
|
||||
@@ -238,9 +237,9 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
color: const Color(0xFF2D3134),
|
||||
),
|
||||
dialogTextStyle: TextStyle(fontSize: 14.sp),
|
||||
searchDecoration: InputDecoration(
|
||||
hintText: AppLocalizations.of(context)!.searchCountryHint,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
searchDecoration: const InputDecoration(
|
||||
hintText: 'Search country...',
|
||||
prefixIcon: Icon(Icons.search),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -252,8 +251,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: AppLocalizations.of(context)!.cityLabelWithStar,
|
||||
hint: AppLocalizations.of(context)!.cityHint,
|
||||
label: "City *",
|
||||
hint: "Enter the name of the city",
|
||||
controller: cityController,
|
||||
maxLength: 50,
|
||||
onlyLetters: true,
|
||||
@@ -264,8 +263,8 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: AppLocalizations.of(context)!.countryLabelWithStar,
|
||||
hint: AppLocalizations.of(context)!.countryHint,
|
||||
label: "Country *",
|
||||
hint: "Enter country name",
|
||||
controller: countryController,
|
||||
maxLength: 50,
|
||||
onlyLetters: true,
|
||||
@@ -277,7 +276,7 @@ class _AddDetailsViewState extends State<AddDetailsView> {
|
||||
|
||||
CustomFilledButton(
|
||||
onTap: () => _handleSubmit(context, isSubmitting),
|
||||
label: isSubmitting ? AppLocalizations.of(context)!.submittingLabel : AppLocalizations.of(context)!.continueTitle,
|
||||
label: isSubmitting ? "Submitting..." : "Continue",
|
||||
width: double.infinity,
|
||||
),
|
||||
|
||||
|
||||
@@ -11,39 +11,6 @@ class AttractionDetailsBloc
|
||||
required this.repository,
|
||||
}) : super(AttractionDetailsInitial()) {
|
||||
on<FetchAttractionDetails>(_onFetchAttractionDetails);
|
||||
on<ToggleDescriptionExpanded>(_onToggleDescriptionExpanded);
|
||||
on<UpdateGalleryIndex>(_onUpdateGalleryIndex);
|
||||
on<UpdateFullScreenGalleryIndex>(_onUpdateFullScreenGalleryIndex);
|
||||
}
|
||||
|
||||
void _onToggleDescriptionExpanded(
|
||||
ToggleDescriptionExpanded event,
|
||||
Emitter<AttractionDetailsState> emit,
|
||||
) {
|
||||
if (state is AttractionDetailsLoaded) {
|
||||
final currentState = state as AttractionDetailsLoaded;
|
||||
emit(currentState.copyWith(isExpanded: !currentState.isExpanded));
|
||||
}
|
||||
}
|
||||
|
||||
void _onUpdateGalleryIndex(
|
||||
UpdateGalleryIndex event,
|
||||
Emitter<AttractionDetailsState> emit,
|
||||
) {
|
||||
if (state is AttractionDetailsLoaded) {
|
||||
final currentState = state as AttractionDetailsLoaded;
|
||||
emit(currentState.copyWith(galleryIndex: event.index));
|
||||
}
|
||||
}
|
||||
|
||||
void _onUpdateFullScreenGalleryIndex(
|
||||
UpdateFullScreenGalleryIndex event,
|
||||
Emitter<AttractionDetailsState> emit,
|
||||
) {
|
||||
if (state is AttractionDetailsLoaded) {
|
||||
final currentState = state as AttractionDetailsLoaded;
|
||||
emit(currentState.copyWith(fullScreenGalleryIndex: event.index));
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _onFetchAttractionDetails(
|
||||
|
||||
@@ -17,19 +17,3 @@ class FetchAttractionDetails extends AttractionDetailsEvent {
|
||||
@override
|
||||
List<Object?> get props => [attractionId];
|
||||
}
|
||||
|
||||
class ToggleDescriptionExpanded extends AttractionDetailsEvent {}
|
||||
|
||||
class UpdateGalleryIndex extends AttractionDetailsEvent {
|
||||
final int index;
|
||||
const UpdateGalleryIndex({required this.index});
|
||||
@override
|
||||
List<Object?> get props => [index];
|
||||
}
|
||||
|
||||
class UpdateFullScreenGalleryIndex extends AttractionDetailsEvent {
|
||||
final int index;
|
||||
const UpdateFullScreenGalleryIndex({required this.index});
|
||||
@override
|
||||
List<Object?> get props => [index];
|
||||
}
|
||||
|
||||
@@ -15,33 +15,13 @@ class AttractionDetailsLoading extends AttractionDetailsState {}
|
||||
|
||||
class AttractionDetailsLoaded extends AttractionDetailsState {
|
||||
final AttractionDetailsModel attractionDetails;
|
||||
final bool isExpanded;
|
||||
final int galleryIndex;
|
||||
final int fullScreenGalleryIndex;
|
||||
|
||||
const AttractionDetailsLoaded({
|
||||
required this.attractionDetails,
|
||||
this.isExpanded = false,
|
||||
this.galleryIndex = 0,
|
||||
this.fullScreenGalleryIndex = 0,
|
||||
});
|
||||
|
||||
AttractionDetailsLoaded copyWith({
|
||||
AttractionDetailsModel? attractionDetails,
|
||||
bool? isExpanded,
|
||||
int? galleryIndex,
|
||||
int? fullScreenGalleryIndex,
|
||||
}) {
|
||||
return AttractionDetailsLoaded(
|
||||
attractionDetails: attractionDetails ?? this.attractionDetails,
|
||||
isExpanded: isExpanded ?? this.isExpanded,
|
||||
galleryIndex: galleryIndex ?? this.galleryIndex,
|
||||
fullScreenGalleryIndex: fullScreenGalleryIndex ?? this.fullScreenGalleryIndex,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [attractionDetails, isExpanded, galleryIndex, fullScreenGalleryIndex];
|
||||
List<Object?> get props => [attractionDetails];
|
||||
}
|
||||
|
||||
class AttractionDetailsError extends AttractionDetailsState {
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:citycards_customer/attraction_details/widgets/share_bottomsheet.dart';
|
||||
import 'package:citycards_customer/common_packages/app_bar.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
@@ -10,9 +7,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:latlong2/latlong.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../../core/route_constants.dart';
|
||||
import '../bloc/attraction_details_bloc.dart';
|
||||
import '../bloc/attraction_details_event.dart';
|
||||
@@ -72,156 +67,101 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// ── White app bar above the image ───────────────────────
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 20.w),
|
||||
child: CommonAppBar(
|
||||
isWhiteLogo: false,
|
||||
isProfilePage: false,
|
||||
showDivider: false,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 20.h,
|
||||
),
|
||||
|
||||
Stack(
|
||||
children: [
|
||||
// ── Hero image ──────────────────────────────────────
|
||||
CachedNetworkImage(
|
||||
imageUrl: coverImage,
|
||||
height: 280.h,
|
||||
Image.network(
|
||||
coverImage,
|
||||
height: 377.h,
|
||||
width: double.infinity,
|
||||
fit: BoxFit.cover,
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: double.infinity,
|
||||
height: 280.h,
|
||||
borderRadius: 0,
|
||||
),
|
||||
errorWidget: (context, url, error) => Image.asset(
|
||||
'assets/images/koh_rong_samloem_banner.png',
|
||||
height: 280.h,
|
||||
width: double.infinity,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
errorBuilder: (context, error, stackTrace) {
|
||||
return Image.asset(
|
||||
'assets/images/koh_rong_samloem_banner.png',
|
||||
height: 377.h,
|
||||
width: double.infinity,
|
||||
fit: BoxFit.cover,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
// ── Bottom fade gradient ─────────────────────────────
|
||||
Positioned(
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: Container(
|
||||
height: 180.h,
|
||||
decoration: const BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.bottomCenter,
|
||||
end: Alignment.topCenter,
|
||||
colors: [
|
||||
Color(0xCC000000), // ~80% black at bottom
|
||||
Colors.transparent,
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// ── Top: pill-style back button (no AppBar) ──────────
|
||||
Positioned(
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: SafeArea(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 12.h), // 🔽 reduced
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: GestureDetector(
|
||||
onTap: () => Navigator.pop(context),
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 12.w, // 🔽 smaller
|
||||
vertical: 8.h, // 🔽 smaller
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(24.r), // 🔽 slightly smaller
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.10), // 🔽 lighter shadow
|
||||
blurRadius: 6,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.arrow_back,
|
||||
size: 16.sp, // 🔽 smaller icon
|
||||
color: Colors.black,
|
||||
),
|
||||
SizedBox(width: 6.w), // 🔽 smaller spacing
|
||||
Text(
|
||||
'Back to attractions',
|
||||
style: TextStyle(
|
||||
fontSize: 13.sp, // 🔽 slightly smaller
|
||||
fontWeight: FontWeight.w600, // ✅ bold
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 20.w, vertical: 10.h),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
CommonAppBar(
|
||||
isWhiteLogo: true,
|
||||
isProfilePage: false,
|
||||
showDivider: true,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 10.h),
|
||||
Row(
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () => Navigator.pop(context),
|
||||
child: Icon(
|
||||
Icons.arrow_back,
|
||||
size: 24.sp,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
Expanded(
|
||||
child: Text(
|
||||
attraction.title,
|
||||
style: TextStyle(
|
||||
fontSize: 14.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// ── Bottom-left: attraction title (smaller, over fade) ─
|
||||
Positioned(
|
||||
bottom: 48.h,
|
||||
left: 14.w,
|
||||
right: 60.w,
|
||||
bottom: 31.h,
|
||||
left: 12.w,
|
||||
right: 60.w, // Add this - leaves space for share button
|
||||
child: Text(
|
||||
attraction.title,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
height: 1.25,
|
||||
fontSize: 44.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
height: 1.2,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
|
||||
// ── Bottom-right: share button ───────────────────────
|
||||
Positioned(
|
||||
bottom: 48.h,
|
||||
right: 14.w,
|
||||
bottom: 31.h,
|
||||
right: 17.w,
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
Share.share(
|
||||
'www.google.com',
|
||||
subject: AppLocalizations.of(context)!.checkThisOut,
|
||||
subject: 'Check this out',
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
height: 42.h,
|
||||
width: 42.w,
|
||||
height: 36.h,
|
||||
width: 36.w,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(21.r),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.15),
|
||||
blurRadius: 8,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
borderRadius: BorderRadius.circular(20.r),
|
||||
),
|
||||
child: Center(
|
||||
child: Icon(
|
||||
@@ -232,110 +172,33 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
// ── Gallery Section (All Images) ──────────────────────────
|
||||
if (attraction.attractionGalleries.length > 1)
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 20.h, left: 16.w, right: 16.w),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Gallery',
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 12.h),
|
||||
_GalleryStrip(
|
||||
galleries: attraction.attractionGalleries,
|
||||
currentIndex: state.galleryIndex,
|
||||
onTap: (index) => showFullScreenGallery(
|
||||
context,
|
||||
attraction.attractionGalleries
|
||||
.map((g) => g.filePathUrl)
|
||||
.toList(),
|
||||
index,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
// About Section
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 16.w, right: 16.w, top: 20.h),
|
||||
padding:
|
||||
EdgeInsets.only(left: 16.w, right: 16.w, top: 20.h),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.aboutTitle,
|
||||
"About",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 12.32.h),
|
||||
|
||||
LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
final textSpan = TextSpan(
|
||||
text: attraction.description,
|
||||
style: TextStyle(
|
||||
color: Color(0xFF262626),
|
||||
fontWeight: FontWeight.w400,
|
||||
fontSize: 14.sp,
|
||||
height: 1.5,
|
||||
),
|
||||
);
|
||||
|
||||
final textPainter = TextPainter(
|
||||
text: textSpan,
|
||||
maxLines: 3,
|
||||
textDirection: TextDirection.ltr,
|
||||
);
|
||||
|
||||
textPainter.layout(maxWidth: constraints.maxWidth);
|
||||
final isTextOverflowing = textPainter.didExceedMaxLines;
|
||||
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
attraction.description,
|
||||
maxLines: state.isExpanded ? null : (isTextOverflowing ? 3 : null),
|
||||
overflow: state.isExpanded ? TextOverflow.visible : (isTextOverflowing ? TextOverflow.ellipsis : TextOverflow.visible),
|
||||
style: TextStyle(
|
||||
color: Color(0xFF262626),
|
||||
fontWeight: FontWeight.w400,
|
||||
fontSize: 14.sp,
|
||||
height: 1.5,
|
||||
),
|
||||
),
|
||||
if (isTextOverflowing) ...[
|
||||
SizedBox(height: 6.h),
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
context.read<AttractionDetailsBloc>().add(ToggleDescriptionExpanded());
|
||||
},
|
||||
child: Text(
|
||||
state.isExpanded ? "See less" : "See more",
|
||||
style: TextStyle(
|
||||
color: Color(0xFFF95F62), // your theme color
|
||||
fontSize: 13.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
);
|
||||
},
|
||||
Text(
|
||||
attraction.description,
|
||||
style: TextStyle(
|
||||
color: Color(0xFF262626),
|
||||
fontWeight: FontWeight.w400,
|
||||
fontSize: 14.sp,
|
||||
height: 1.5,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -505,10 +368,10 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
Divider(color: Colors.black.withOpacity(0.2)),
|
||||
SizedBox(height: 30.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.whatIsIncluded,
|
||||
"What is included",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 24.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 4.h),
|
||||
@@ -530,17 +393,17 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 30.h),
|
||||
// Divider(color: Colors.black.withOpacity(0.2)),
|
||||
// SizedBox(height: 30.h),
|
||||
SizedBox(height: 30.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.exactLocation,
|
||||
"Exact Location",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 8.h),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.viewOnMap,
|
||||
text: "View the location on map",
|
||||
size: 12.sp,
|
||||
color: Colors.black.withOpacity(.6),
|
||||
),
|
||||
@@ -600,29 +463,28 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
color: Colors.black.withOpacity(0.6),
|
||||
),
|
||||
SizedBox(height: 30.h),
|
||||
if (attraction.attractionFaqs.isNotEmpty) ...[
|
||||
Divider(color: Colors.black.withOpacity(0.2)),
|
||||
SizedBox(height: 30.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.peopleFrequentlyAsk,
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
Divider(color: Colors.black.withOpacity(0.2)),
|
||||
SizedBox(height: 30.h),
|
||||
Text(
|
||||
"People frequently ask",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
SizedBox(height: 15.h),
|
||||
Column(
|
||||
children: attraction.attractionFaqs.map((faq) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(bottom: 15.h),
|
||||
child: faqBox(
|
||||
title: faq.faqQuestion,
|
||||
desc: faq.faqAnswer,
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 15.h),
|
||||
Column(
|
||||
children: attraction.attractionFaqs.map((faq) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(bottom: 15.h),
|
||||
child: faqBox(
|
||||
title: faq.faqQuestion,
|
||||
desc: faq.faqAnswer,
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -637,7 +499,7 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
body: Center(
|
||||
child: Text(AppLocalizations.of(context)!.somethingWentWrong),
|
||||
child: Text("Something went wrong"),
|
||||
),
|
||||
);
|
||||
},
|
||||
@@ -728,276 +590,4 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// ── Full Screen Swipeable Gallery Viewer ────────────────────────────
|
||||
void showFullScreenGallery(BuildContext context, List<String> imageUrls, int initialIndex) {
|
||||
final bloc = context.read<AttractionDetailsBloc>();
|
||||
bloc.add(UpdateFullScreenGalleryIndex(index: initialIndex));
|
||||
showDialog(
|
||||
context: context,
|
||||
barrierColor: Colors.black,
|
||||
builder: (ctx) => BlocProvider.value(
|
||||
value: bloc,
|
||||
child: _FullScreenGallery(
|
||||
imageUrls: imageUrls,
|
||||
initialIndex: initialIndex,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// ── Auto-scroll Gallery Strip with Dot Indicators ───────────────────
|
||||
class _GalleryStrip extends StatefulWidget {
|
||||
final List galleries;
|
||||
final int currentIndex;
|
||||
final void Function(int index) onTap;
|
||||
|
||||
const _GalleryStrip({required this.galleries, required this.currentIndex, required this.onTap});
|
||||
|
||||
@override
|
||||
State<_GalleryStrip> createState() => _GalleryStripState();
|
||||
}
|
||||
|
||||
class _GalleryStripState extends State<_GalleryStrip> {
|
||||
late final PageController _pageController;
|
||||
Timer? _timer;
|
||||
late int _currentPage;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
// Start at a high number divisible by length to allow infinite scrolling in both directions
|
||||
int initialPage = widget.galleries.isNotEmpty ? widget.galleries.length * 1000 : 0;
|
||||
_currentPage = initialPage;
|
||||
_pageController = PageController(
|
||||
viewportFraction: 0.38, // shows partial next/prev image
|
||||
initialPage: initialPage,
|
||||
);
|
||||
_startAutoScroll();
|
||||
}
|
||||
|
||||
void _startAutoScroll() {
|
||||
_timer = Timer.periodic(const Duration(seconds: 3), (_) {
|
||||
if (!mounted) return;
|
||||
_pageController.nextPage(
|
||||
duration: const Duration(milliseconds: 500),
|
||||
curve: Curves.easeInOut,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_timer?.cancel();
|
||||
_pageController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (widget.galleries.isEmpty) return const SizedBox.shrink();
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
height: 120.h,
|
||||
child: PageView.builder(
|
||||
controller: _pageController,
|
||||
// No itemCount to allow infinite scrolling
|
||||
onPageChanged: (i) {
|
||||
_currentPage = i;
|
||||
context.read<AttractionDetailsBloc>().add(UpdateGalleryIndex(index: i % widget.galleries.length));
|
||||
},
|
||||
itemBuilder: (context, index) {
|
||||
final realIndex = index % widget.galleries.length;
|
||||
final gallery = widget.galleries[realIndex];
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(right: 12.w),
|
||||
child: GestureDetector(
|
||||
onTap: () => widget.onTap(realIndex),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(12.r),
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: gallery.filePathUrl,
|
||||
width: 120.w,
|
||||
height: 120.h,
|
||||
fit: BoxFit.cover,
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: 120.w,
|
||||
height: 120.h,
|
||||
borderRadius: 12.r,
|
||||
),
|
||||
errorWidget: (context, url, error) => Container(
|
||||
width: 120.w,
|
||||
height: 120.h,
|
||||
color: Colors.grey[300],
|
||||
child: const Icon(Icons.broken_image, color: Colors.grey),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
SizedBox(height: 10.h),
|
||||
// Dot indicators
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: List.generate(widget.galleries.length, (index) {
|
||||
final isActive = index == widget.currentIndex;
|
||||
return AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
margin: EdgeInsets.symmetric(horizontal: 3.w),
|
||||
width: isActive ? 18.w : 6.w,
|
||||
height: 6.h,
|
||||
decoration: BoxDecoration(
|
||||
color: isActive
|
||||
? const Color(0xFFF95F62)
|
||||
: Colors.grey.shade300,
|
||||
borderRadius: BorderRadius.circular(4.r),
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// ── Full Screen Swipeable Gallery ───────────────────────────────────
|
||||
class _FullScreenGallery extends StatefulWidget {
|
||||
final List<String> imageUrls;
|
||||
final int initialIndex;
|
||||
|
||||
const _FullScreenGallery({
|
||||
required this.imageUrls,
|
||||
required this.initialIndex,
|
||||
});
|
||||
|
||||
@override
|
||||
State<_FullScreenGallery> createState() => _FullScreenGalleryState();
|
||||
}
|
||||
|
||||
class _FullScreenGalleryState extends State<_FullScreenGallery> {
|
||||
late final PageController _controller;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_controller = PageController(initialPage: widget.initialIndex);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_controller.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocBuilder<AttractionDetailsBloc, AttractionDetailsState>(
|
||||
builder: (context, state) {
|
||||
int currentIndex = widget.initialIndex;
|
||||
if (state is AttractionDetailsLoaded) {
|
||||
currentIndex = state.fullScreenGalleryIndex;
|
||||
}
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.black,
|
||||
body: Stack(
|
||||
children: [
|
||||
// Swipeable images
|
||||
PageView.builder(
|
||||
controller: _controller,
|
||||
itemCount: widget.imageUrls.length,
|
||||
onPageChanged: (i) => context.read<AttractionDetailsBloc>().add(UpdateFullScreenGalleryIndex(index: i)),
|
||||
itemBuilder: (context, index) {
|
||||
return InteractiveViewer(
|
||||
child: Center(
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: widget.imageUrls[index],
|
||||
fit: BoxFit.contain,
|
||||
placeholder: (context, url) => const Center(
|
||||
child: CircularProgressIndicator(color: Color(0xffF95F62)),
|
||||
),
|
||||
errorWidget: (context, url, error) => const Icon(
|
||||
Icons.broken_image,
|
||||
color: Colors.white,
|
||||
size: 50,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
// Close button + counter
|
||||
Positioned(
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: SafeArea(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 12.h),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () => Navigator.pop(context),
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(8.w),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.25),
|
||||
borderRadius: BorderRadius.circular(20.r),
|
||||
),
|
||||
child: Icon(Icons.close, color: Colors.white, size: 24.sp),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 14.w, vertical: 6.h),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black.withOpacity(0.5),
|
||||
borderRadius: BorderRadius.circular(20.r),
|
||||
),
|
||||
child: Text(
|
||||
'${currentIndex + 1} / ${widget.imageUrls.length}',
|
||||
style: TextStyle(color: Colors.white, fontSize: 14.sp),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Bottom dot indicators
|
||||
Positioned(
|
||||
bottom: 30.h,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: List.generate(widget.imageUrls.length, (index) {
|
||||
final isActive = index == currentIndex;
|
||||
return AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
margin: EdgeInsets.symmetric(horizontal: 3.w),
|
||||
width: isActive ? 18.w : 6.w,
|
||||
height: 6.h,
|
||||
decoration: BoxDecoration(
|
||||
color: isActive ? const Color(0xFFF95F62) : Colors.white54,
|
||||
borderRadius: BorderRadius.circular(4.r),
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,6 @@ import 'package:citycards_customer/common_packages/back_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
import '../../common_packages/custom_search_field.dart';
|
||||
import '../blocs/attractions_bloc.dart';
|
||||
@@ -38,125 +37,116 @@ class AttractionsPage extends StatelessWidget {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
body: SafeArea(
|
||||
child: RefreshIndicator(
|
||||
color: Color(0xffF95F62),
|
||||
onRefresh: () async {
|
||||
bloc.add(
|
||||
const FetchAttractionsByCategory(),
|
||||
);
|
||||
},
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// App bar
|
||||
CommonAppBar(
|
||||
isWhiteLogo: false,
|
||||
isProfilePage: false,
|
||||
showDivider: true,
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// App bar
|
||||
CommonAppBar(
|
||||
isWhiteLogo: false,
|
||||
isProfilePage: false,
|
||||
showDivider: true,
|
||||
),
|
||||
backWidget(context, "Your Attraction", Colors.black),
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// 🔍 Search field (UI kept, logic disabled)
|
||||
CommonSearchField(
|
||||
hint: "Search attractions...",
|
||||
hintColor: Colors.grey.shade500,
|
||||
onChanged: (value) {
|
||||
bloc.add(SearchAttractions(value));
|
||||
},
|
||||
),
|
||||
|
||||
const SizedBox(height: 16),
|
||||
|
||||
// 🏖️ Category chips row - DYNAMIC
|
||||
if (state is AttractionsLoaded)
|
||||
SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Row(
|
||||
children: state.categories
|
||||
.map(
|
||||
(category) => buildCategoryChip(
|
||||
category.categoryName ?? '',
|
||||
isSelected: state.selectedCategoryId == category.id,
|
||||
onTap: () {
|
||||
bloc.add(
|
||||
FetchAttractionsByCategory(
|
||||
categoryXid: category.id,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
backWidget(context, AppLocalizations.of(context)!.yourAttractionTitle, Colors.black),
|
||||
const SizedBox(height: 20),
|
||||
// else
|
||||
// // Show placeholder chips while loading
|
||||
// SingleChildScrollView(
|
||||
// scrollDirection: Axis.horizontal,
|
||||
// child: Row(
|
||||
// children: [
|
||||
// buildCategoryChip("Beach", isSelected: true, onTap: () {}),
|
||||
// buildCategoryChip("Hike", isSelected: false, onTap: () {}),
|
||||
// buildCategoryChip("Adventure", isSelected: false, onTap: () {}),
|
||||
// buildCategoryChip("Best in Summer", isSelected: false, onTap: () {}),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
|
||||
// 🔍 Search field (UI kept, logic disabled)
|
||||
CommonSearchField(
|
||||
hint: AppLocalizations.of(context)!.searchAttractionsHint,
|
||||
hintColor: Colors.grey.shade500,
|
||||
onChanged: (value) {
|
||||
bloc.add(SearchAttractions(value));
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
|
||||
const SizedBox(height: 16),
|
||||
|
||||
// 🏖️ Category chips row - DYNAMIC
|
||||
if (state is AttractionsLoaded)
|
||||
SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Row(
|
||||
children: state.categories
|
||||
.map(
|
||||
(category) => buildCategoryChip(
|
||||
category.categoryName ?? '',
|
||||
isSelected: state.selectedCategoryId == category.id,
|
||||
onTap: () {
|
||||
bloc.add(
|
||||
FetchAttractionsByCategory(
|
||||
categoryXid: category.id,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
// 🙏️ Attraction list
|
||||
if (state is AttractionsLoading)
|
||||
const Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(top: 60),
|
||||
child: CircularProgressIndicator(color: Color(0xffF95F62)),
|
||||
),
|
||||
)
|
||||
else if (state is AttractionsLoaded)
|
||||
state.attractions.isEmpty
|
||||
? Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(top: 60),
|
||||
child: Text(
|
||||
"No attractions found",
|
||||
style: TextStyle(
|
||||
color: Colors.grey,
|
||||
fontSize: 14.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
// else
|
||||
// // Show placeholder chips while loading
|
||||
// SingleChildScrollView(
|
||||
// scrollDirection: Axis.horizontal,
|
||||
// child: Row(
|
||||
// children: [
|
||||
// buildCategoryChip("Beach", isSelected: true, onTap: () {}),
|
||||
// buildCategoryChip("Hike", isSelected: false, onTap: () {}),
|
||||
// buildCategoryChip("Adventure", isSelected: false, onTap: () {}),
|
||||
// buildCategoryChip("Best in Summer", isSelected: false, onTap: () {}),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
|
||||
const SizedBox(height: 10),
|
||||
|
||||
// 🙏️ Attraction list
|
||||
if (state is AttractionsLoading)
|
||||
const Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(top: 60),
|
||||
child: CircularProgressIndicator(color: Color(0xffF95F62)),
|
||||
)
|
||||
: Column(
|
||||
children: state.attractions
|
||||
.map(
|
||||
(attraction) => AttractionCard(
|
||||
attraction: attraction,
|
||||
),
|
||||
)
|
||||
else if (state is AttractionsLoaded)
|
||||
state.attractions.isEmpty
|
||||
? Center(
|
||||
.toList(),
|
||||
)
|
||||
else if (state is AttractionsError)
|
||||
Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(top: 60),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.noAttractionsFound,
|
||||
state.message,
|
||||
style: TextStyle(
|
||||
color: Colors.grey,
|
||||
color: Colors.red,
|
||||
fontSize: 14.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: Column(
|
||||
children: state.attractions
|
||||
.map(
|
||||
(attraction) => AttractionCard(
|
||||
attraction: attraction,
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
)
|
||||
else if (state is AttractionsError)
|
||||
Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(top: 60),
|
||||
child: Text(
|
||||
state.message,
|
||||
style: TextStyle(
|
||||
color: Colors.red,
|
||||
fontSize: 14.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
else
|
||||
const SizedBox(),
|
||||
],
|
||||
),
|
||||
else
|
||||
const SizedBox(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -3,8 +3,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import '../../common_packages/common_app_texts.dart';
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
import '../../core/route_constants.dart';
|
||||
import '../models/attraction_model.dart';
|
||||
|
||||
@@ -50,11 +48,7 @@ class AttractionCard extends StatelessWidget {
|
||||
height: 94.h,
|
||||
width: 94.w,
|
||||
fit: BoxFit.cover,
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: 94.w,
|
||||
height: 94.h,
|
||||
borderRadius: 8.r,
|
||||
),
|
||||
placeholder: (context, url) => _imageFallback(),
|
||||
errorWidget: (_, __, ___) => _imageFallback(),
|
||||
)
|
||||
: _imageFallback(),
|
||||
@@ -77,18 +71,18 @@ class AttractionCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
|
||||
// SizedBox(height: 6.h),
|
||||
//
|
||||
// Text(
|
||||
// attraction.address,
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// style: GoogleFonts.poppins(
|
||||
// fontSize: 12.sp,
|
||||
// fontWeight: FontWeight.w400,
|
||||
// color: const Color(0xff464646),
|
||||
// ),
|
||||
// ),
|
||||
SizedBox(height: 6.h),
|
||||
|
||||
Text(
|
||||
attraction.address,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 12.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: const Color(0xff464646),
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 6.h),
|
||||
|
||||
@@ -104,7 +98,7 @@ class AttractionCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.perPersonSuffix,
|
||||
text: "/person",
|
||||
style: TextStyle(
|
||||
fontSize: 10.sp,
|
||||
color: Colors.black,
|
||||
|
||||
@@ -7,13 +7,11 @@ import 'package:citycards_customer/core/route_constants.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../../common_packages/back_widget.dart';
|
||||
import '../../networkApiServices/api_urls.dart';
|
||||
import '../bloc/buy_pass_bloc.dart';
|
||||
import '../bloc/buy_pass_event.dart';
|
||||
import '../bloc/buy_pass_state.dart';
|
||||
import '../repository/buy_pass_repository.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class BuyPassView extends StatelessWidget {
|
||||
const BuyPassView({super.key});
|
||||
@@ -21,8 +19,8 @@ class BuyPassView extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocProvider(
|
||||
create: (context) =>
|
||||
BuyPassBloc(repository: BuyPassRepository())..add(FetchBuyPassData()),
|
||||
create: (context) => BuyPassBloc(repository: BuyPassRepository())
|
||||
..add(FetchBuyPassData()),
|
||||
child: const BuyPassContent(),
|
||||
);
|
||||
}
|
||||
@@ -36,8 +34,7 @@ class BuyPassContent extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _BuyPassContentState extends State<BuyPassContent> {
|
||||
late PageController _pageController;
|
||||
@override
|
||||
late PageController _pageController;@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_pageController = PageController(viewportFraction: 0.85);
|
||||
@@ -48,7 +45,6 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
_pageController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
@@ -58,7 +54,9 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
builder: (context, state) {
|
||||
if (state is BuyPassLoading) {
|
||||
return const Center(
|
||||
child: CircularProgressIndicator(color: Color(0xFFF95F62)),
|
||||
child: CircularProgressIndicator(
|
||||
color: Color(0xFFF95F62),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -70,7 +68,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
Icon(Icons.error_outline, size: 60.sp, color: Colors.red),
|
||||
SizedBox(height: 16.h),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.errorLoadingDataTitle,
|
||||
text: "Error loading data",
|
||||
size: 16.sp,
|
||||
color: Colors.red,
|
||||
),
|
||||
@@ -85,9 +83,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
onPressed: () {
|
||||
context.read<BuyPassBloc>().add(FetchBuyPassData());
|
||||
},
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.retryButtonLabel,
|
||||
),
|
||||
child: const Text("Retry"),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -111,25 +107,31 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 20.w),
|
||||
child: backWidget(
|
||||
context,
|
||||
AppLocalizations.of(context)!.buyACardTitle,
|
||||
Colors.black,
|
||||
padding: EdgeInsets.symmetric(horizontal: 20.0.w),
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.arrow_back),
|
||||
SizedBox(width: 8.w),
|
||||
CustomText(text: "Buy a Card", size: 12.sp),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
// Pass Cards Horizontal List — with next-card peek + scroll hint
|
||||
SizedBox(height: 22.h),
|
||||
|
||||
// Pass Cards Horizontal List
|
||||
// Pass Cards Horizontal List
|
||||
SizedBox(
|
||||
height: 140.h,
|
||||
child: PageView.builder(
|
||||
controller: PageController(viewportFraction: 0.85),
|
||||
clipBehavior: Clip.none,
|
||||
controller: PageController(viewportFraction: 0.92),
|
||||
itemCount: data.cards.length,
|
||||
onPageChanged: (index) {
|
||||
context.read<BuyPassBloc>().add(
|
||||
ChangeSelectedCard(index),
|
||||
);
|
||||
context.read<BuyPassBloc>().add(ChangeSelectedCard(index));
|
||||
},
|
||||
itemBuilder: (context, index) {
|
||||
final card = data.cards[index];
|
||||
@@ -152,44 +154,20 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
),
|
||||
),
|
||||
|
||||
// "Scroll to reveal more" hint — only visible when there are multiple cards
|
||||
if (data.cards.length > 1) ...[
|
||||
SizedBox(height: 14.h),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.arrow_forward,
|
||||
size: 18.sp,
|
||||
color: const Color(0xFFF95F62),
|
||||
),
|
||||
SizedBox(width: 6.w),
|
||||
Text(
|
||||
'Scroll to reveal more',
|
||||
style: TextStyle(
|
||||
fontSize: 13.sp,
|
||||
color: const Color(0xFFF95F62),
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
SizedBox(height: 16.h),
|
||||
SizedBox(height: 30.h),
|
||||
|
||||
// Payment Card
|
||||
// ✅ UPDATED PAYMENT CARD SECTION IN buy_pass_view.dart
|
||||
// Replace the existing PaymentCard widget (around line 154) with this:
|
||||
// Replace the existing PaymentCard widget (around line 154) with this:
|
||||
|
||||
Center(
|
||||
child: PaymentCard(
|
||||
city: data.city.name,
|
||||
heroImage: data.city.heroBanner.image,
|
||||
cardType: selectedCard.cardType.name,
|
||||
cardDisplayName: selectedCard.cardType.displayName,
|
||||
themeColor:
|
||||
selectedCard.cardType.name == "selective_pass"
|
||||
? Color(0xFFF95FAF) // pink for flexi/selective pass
|
||||
themeColor: selectedCard.cardType.name == "selective_pass"
|
||||
? Color(0xFFF95FAF) // pink for flexi/selective pass
|
||||
: Color(0xFFF95F62),
|
||||
adultPrice: selectedCard.adultPrice.toDouble(),
|
||||
childPrice: selectedCard.childPrice.toDouble(),
|
||||
@@ -238,21 +216,14 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
CustomText(
|
||||
text: AppLocalizations.of(
|
||||
context,
|
||||
)!.memberPrivilegesTitle,
|
||||
size: 18.sp,
|
||||
),
|
||||
CustomText(text: "Member Privileges", size: 18.sp),
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
Navigator.pushNamed(
|
||||
context,
|
||||
RouteConstants.searchOffer,
|
||||
);
|
||||
context, RouteConstants.searchOffer);
|
||||
},
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.viewAll,
|
||||
text: "View All",
|
||||
size: 14.sp,
|
||||
color: Color(0xFFFF5757),
|
||||
),
|
||||
@@ -269,13 +240,12 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
padding: EdgeInsets.symmetric(horizontal: 20.w),
|
||||
child: GridView.builder(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
gridDelegate:
|
||||
SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: 2,
|
||||
crossAxisSpacing: 16.w,
|
||||
mainAxisSpacing: 22.h,
|
||||
childAspectRatio: 0.65,
|
||||
),
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: 2,
|
||||
crossAxisSpacing: 16.w,
|
||||
mainAxisSpacing: 22.h,
|
||||
childAspectRatio: 0.65,
|
||||
),
|
||||
itemCount: selectedCard.offers.length > 2
|
||||
? 2
|
||||
: selectedCard.offers.length,
|
||||
@@ -296,9 +266,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
color: const Color(
|
||||
0xFFF95F62,
|
||||
).withOpacity(.24),
|
||||
color: const Color(0xFFF95F62).withOpacity(.24),
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12.sp),
|
||||
),
|
||||
@@ -308,75 +276,62 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
/// Image
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8.sp),
|
||||
child:
|
||||
offer.mobileBannerImage != null &&
|
||||
offer
|
||||
.mobileBannerImage!
|
||||
.isNotEmpty
|
||||
child: offer.mobileBannerImage != null &&
|
||||
offer.mobileBannerImage!.isNotEmpty
|
||||
? Image.network(
|
||||
'${ApiUrls.baseUrl}/${offer.mobileBannerImage}',
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder:
|
||||
(context, error, stackTrace) {
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
color: const Color(
|
||||
0xFFFEE7E7,
|
||||
),
|
||||
child: Icon(
|
||||
Icons.local_offer,
|
||||
size: 40.sp,
|
||||
color: const Color(
|
||||
0xFFF95F62,
|
||||
).withOpacity(.6),
|
||||
),
|
||||
);
|
||||
},
|
||||
loadingBuilder: (context, child, loadingProgress) {
|
||||
if (loadingProgress == null)
|
||||
return child;
|
||||
'${ApiUrls.baseUrl}/${offer.mobileBannerImage}',
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder: (context, error, stackTrace) {
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
color: const Color(0xFFFEE7E7),
|
||||
child: Icon(
|
||||
Icons.local_offer,
|
||||
size: 40.sp,
|
||||
color:
|
||||
const Color(0xFFF95F62).withOpacity(.6),
|
||||
),
|
||||
);
|
||||
},
|
||||
loadingBuilder:
|
||||
(context, child, loadingProgress) {
|
||||
if (loadingProgress == null) return child;
|
||||
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
color: const Color(
|
||||
0xFFFEE7E7,
|
||||
),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
color: const Color(
|
||||
0xFFF95F62,
|
||||
),
|
||||
value:
|
||||
loadingProgress
|
||||
.expectedTotalBytes !=
|
||||
null
|
||||
? loadingProgress
|
||||
.cumulativeBytesLoaded /
|
||||
loadingProgress
|
||||
.expectedTotalBytes!
|
||||
: null,
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
)
|
||||
: Container(
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
color: const Color(0xFFFEE7E7),
|
||||
child: Icon(
|
||||
Icons.local_offer,
|
||||
size: 40.sp,
|
||||
color: const Color(
|
||||
0xFFF95F62,
|
||||
).withOpacity(.6),
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
color: const Color(0xFFFEE7E7),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
color: const Color(0xFFF95F62),
|
||||
value: loadingProgress
|
||||
.expectedTotalBytes !=
|
||||
null
|
||||
? loadingProgress
|
||||
.cumulativeBytesLoaded /
|
||||
loadingProgress
|
||||
.expectedTotalBytes!
|
||||
: null,
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
)
|
||||
: Container(
|
||||
width: double.infinity,
|
||||
height: 120.5.h,
|
||||
color: const Color(0xFFFEE7E7),
|
||||
child: Icon(
|
||||
Icons.local_offer,
|
||||
size: 40.sp,
|
||||
color:
|
||||
const Color(0xFFF95F62).withOpacity(.6),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 8.h),
|
||||
@@ -393,7 +348,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
|
||||
/// Offer Code
|
||||
CustomText(
|
||||
text: offer.description ?? "N/A",
|
||||
text: offer.description??"N/A",
|
||||
color: Colors.black.withOpacity(.6),
|
||||
size: 12.sp,
|
||||
maxLines: 3,
|
||||
@@ -411,7 +366,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
height: 100.h,
|
||||
alignment: Alignment.center,
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.noOffersAvailable,
|
||||
text: "No offers available",
|
||||
size: 14.sp,
|
||||
color: Colors.grey,
|
||||
),
|
||||
@@ -428,11 +383,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 20.0.w),
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(
|
||||
context,
|
||||
)!.availableAttractionsTitle,
|
||||
size: 18.sp,
|
||||
),
|
||||
text: "Available Attractions", size: 18.sp),
|
||||
),
|
||||
SizedBox(height: 12.h),
|
||||
|
||||
@@ -453,9 +404,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
width: 104.w,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.grey[200],
|
||||
borderRadius: BorderRadius.circular(
|
||||
8.r,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.r),
|
||||
),
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
@@ -465,60 +414,35 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
);
|
||||
},
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(
|
||||
8.r,
|
||||
),
|
||||
child:
|
||||
attraction.thumbnail != null &&
|
||||
attraction
|
||||
.thumbnail!
|
||||
.isNotEmpty
|
||||
borderRadius: BorderRadius.circular(8.r),
|
||||
child: attraction.thumbnail != null &&
|
||||
attraction.thumbnail!.isNotEmpty
|
||||
? Image.network(
|
||||
attraction.thumbnail!,
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder:
|
||||
(
|
||||
context,
|
||||
error,
|
||||
stackTrace,
|
||||
) {
|
||||
return Icon(
|
||||
Icons.location_on,
|
||||
size: 40.sp,
|
||||
color:
|
||||
Colors.grey[400],
|
||||
);
|
||||
},
|
||||
loadingBuilder:
|
||||
(
|
||||
context,
|
||||
child,
|
||||
loadingProgress,
|
||||
) {
|
||||
if (loadingProgress ==
|
||||
null)
|
||||
return child;
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
width: 20.w,
|
||||
height: 20.w,
|
||||
child:
|
||||
CircularProgressIndicator(
|
||||
color: Color(
|
||||
0xffF95F62,
|
||||
),
|
||||
strokeWidth:
|
||||
2,
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
)
|
||||
: Icon(
|
||||
Icons.location_on,
|
||||
size: 40.sp,
|
||||
color: Colors.grey[400],
|
||||
attraction.thumbnail!,
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder: (context, error, stackTrace) {
|
||||
return Icon(
|
||||
Icons.location_on,
|
||||
size: 40.sp,
|
||||
color: Colors.grey[400],
|
||||
);
|
||||
},
|
||||
loadingBuilder: (context, child, loadingProgress) {
|
||||
if (loadingProgress == null) return child;
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
width: 20.w,
|
||||
height: 20.w,
|
||||
child: CircularProgressIndicator(color: Color(0xffF95F62),strokeWidth: 2),
|
||||
),
|
||||
);
|
||||
},
|
||||
)
|
||||
: Icon(
|
||||
Icons.location_on,
|
||||
size: 40.sp,
|
||||
color: Colors.grey[400],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -544,9 +468,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
height: 100.h,
|
||||
alignment: Alignment.center,
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(
|
||||
context,
|
||||
)!.noAttractionsAvailable,
|
||||
text: "No attractions available",
|
||||
size: 14.sp,
|
||||
color: Colors.grey,
|
||||
),
|
||||
@@ -563,7 +485,7 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
child: Align(
|
||||
alignment: Alignment.center,
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.viewAll,
|
||||
text: "View All",
|
||||
size: 12.sp,
|
||||
color: Color(0xFFF95F62),
|
||||
),
|
||||
@@ -581,4 +503,4 @@ class _BuyPassContentState extends State<BuyPassContent> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
import '../../common_packages/common_app_texts.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class FeatureTable extends StatelessWidget {
|
||||
const FeatureTable({super.key});
|
||||
@@ -9,15 +9,15 @@ class FeatureTable extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final features = [
|
||||
FeatureModel(AppLocalizations.of(context)!.featureAccessToAttractions, true, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureEntryToAttractions, true, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureAccessToExperiences, true, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureEntryToSites, false, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureAccessToVenues, true, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureEntryToEvents, true, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureAccessToExperiences, false, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureAccessToItineraryCreation, false, true),
|
||||
FeatureModel(AppLocalizations.of(context)!.featureAccessToPostcardCreation, false, true),
|
||||
FeatureModel('Access to attractions', true, true),
|
||||
FeatureModel('Entry to attractions', true, true),
|
||||
FeatureModel('Access to experiences', true, true),
|
||||
FeatureModel('Entry to sites', false, true),
|
||||
FeatureModel('Access to venues', true, true),
|
||||
FeatureModel('Entry to events', true, true),
|
||||
FeatureModel('Access to experiences', false, true),
|
||||
FeatureModel('Access to Itinerary creation', false, true),
|
||||
FeatureModel('Access to postcard creation', false, true),
|
||||
];
|
||||
|
||||
return Center(
|
||||
@@ -44,7 +44,7 @@ class FeatureTable extends StatelessWidget {
|
||||
},
|
||||
defaultVerticalAlignment: TableCellVerticalAlignment.middle,
|
||||
children: [
|
||||
_buildHeaderRow(context),
|
||||
_buildHeaderRow(),
|
||||
...features.map(_buildFeatureRow).toList(),
|
||||
],
|
||||
),
|
||||
@@ -54,13 +54,13 @@ class FeatureTable extends StatelessWidget {
|
||||
}
|
||||
|
||||
// HEADER ROW
|
||||
TableRow _buildHeaderRow(BuildContext context) {
|
||||
TableRow _buildHeaderRow() {
|
||||
return TableRow(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.only(bottom: 12.h),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.featuresTitle,
|
||||
'Features',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 15.sp,
|
||||
@@ -68,7 +68,7 @@ class FeatureTable extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
_buildHeaderText(CommonAppText.selectiveCard),
|
||||
_buildHeaderText(AppLocalizations.of(context)!.unlimitedTitle),
|
||||
_buildHeaderText('Unlimited'),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class PassCardView extends StatelessWidget {
|
||||
final Color? themeColor;
|
||||
final String? city;
|
||||
@@ -95,7 +95,7 @@ class PassCardView extends StatelessWidget {
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.fromPrefix,
|
||||
"From ",
|
||||
style: TextStyle(
|
||||
color: Colors.black.withOpacity(0.6),
|
||||
fontSize: 11.sp,
|
||||
@@ -111,7 +111,7 @@ class PassCardView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.perAdultSuffix,
|
||||
" /Adult",
|
||||
style: TextStyle(
|
||||
color: Colors.black.withOpacity(0.8),
|
||||
fontSize: 11.sp,
|
||||
@@ -125,7 +125,7 @@ class PassCardView extends StatelessWidget {
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.andPrefix,
|
||||
"and ",
|
||||
style: TextStyle(
|
||||
color: Colors.black.withOpacity(0.6),
|
||||
fontSize: 11.sp,
|
||||
@@ -141,7 +141,7 @@ class PassCardView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.perChildSuffix,
|
||||
" /child",
|
||||
style: TextStyle(
|
||||
color: Colors.black.withOpacity(0.8),
|
||||
fontSize: 11.sp,
|
||||
@@ -153,7 +153,8 @@ class PassCardView extends StatelessWidget {
|
||||
|
||||
/// Description
|
||||
CustomText(
|
||||
text: description ?? AppLocalizations.of(context)!.diveIntoSelection,
|
||||
text: description ??
|
||||
"Dive into an extensive selection of thrilling destinations!",
|
||||
color: const Color(0xFF000000).withOpacity(0.6),
|
||||
size: 11.sp,
|
||||
maxLines: 2,
|
||||
|
||||
@@ -9,8 +9,8 @@ import '../bloc/buy_pass_event.dart';
|
||||
import '../bloc/buy_pass_state.dart';
|
||||
import '../models/checkout_model.dart';
|
||||
import '../../checkout/view/checkout_view.dart';
|
||||
import '../repository/buy_pass_repository.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
import '../repository/buy_pass_repository.dart'; // ✅ Import repository
|
||||
|
||||
class PaymentCard extends StatefulWidget {
|
||||
final String city;
|
||||
final String heroImage;
|
||||
@@ -111,19 +111,19 @@ class _PaymentCardState extends State<PaymentCard> {
|
||||
),
|
||||
),
|
||||
SizedBox(height: 16.h),
|
||||
_buildCounterRow(AppLocalizations.of(context)!.noOfAdultsLabel, widget.adults, widget.onAdultChanged, context, minValue: 1),
|
||||
_buildCounterRow("No. of Adults", widget.adults, widget.onAdultChanged, context, minValue: 1),
|
||||
SizedBox(height: 10.h),
|
||||
_buildCounterRow(AppLocalizations.of(context)!.noOfChildrenLabel, widget.children, widget.onChildChanged, context),
|
||||
_buildCounterRow("No. of Children", widget.children, widget.onChildChanged, context),
|
||||
SizedBox(height: 10.h),
|
||||
if (isUnlimitedCard)
|
||||
_buildDropdownRow(
|
||||
label: AppLocalizations.of(context)!.noOfDaysLabel,
|
||||
label: "No. of Days",
|
||||
value: widget.selectedValue,
|
||||
onChanged: widget.onValidityChanged,
|
||||
)
|
||||
else if (isSelectivePass)
|
||||
_buildDropdownRow(
|
||||
label: AppLocalizations.of(context)!.noOfAttractionsLabel,
|
||||
label: "No. of Attractions",
|
||||
value: widget.selectedValue,
|
||||
onChanged: widget.onValidityChanged,
|
||||
),
|
||||
@@ -132,7 +132,7 @@ class _PaymentCardState extends State<PaymentCard> {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.youPayLabel,
|
||||
text: "You Pay",
|
||||
size: 16.sp,
|
||||
weight: FontWeight.w500,
|
||||
),
|
||||
@@ -234,10 +234,9 @@ class _PaymentCardState extends State<PaymentCard> {
|
||||
} catch (e) {
|
||||
// ✅ Show error message
|
||||
if (context.mounted) {
|
||||
String errorMessage = e.toString().replaceFirst('Exception: ', '');
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(errorMessage),
|
||||
content: Text('Failed to proceed: ${e.toString()}'),
|
||||
backgroundColor: Colors.red,
|
||||
behavior: SnackBarBehavior.floating,
|
||||
duration: Duration(seconds: 3),
|
||||
@@ -248,7 +247,7 @@ class _PaymentCardState extends State<PaymentCard> {
|
||||
bloc.add(AddToCartDone()); // ✅ stop loading
|
||||
}
|
||||
},
|
||||
label: isLoading ? AppLocalizations.of(context)!.pleaseWaitLabel : AppLocalizations.of(context)!.proceedToPayLabel,
|
||||
label: isLoading ? "Please wait..." : "Proceed to Pay",
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -342,8 +341,8 @@ class _PaymentCardState extends State<PaymentCard> {
|
||||
SnackBar(
|
||||
content: Text(
|
||||
minValue == 1
|
||||
? AppLocalizations.of(context)!.atLeastOneAdultRequired
|
||||
: AppLocalizations.of(context)!.cannotGoBelowZero,
|
||||
? "At least 1 adult is required"
|
||||
: "Cannot go below 0",
|
||||
),
|
||||
backgroundColor: const Color(0xFFF95F62),
|
||||
behavior: SnackBarBehavior.floating,
|
||||
|
||||
@@ -8,7 +8,6 @@ import '../blocs/myPassCart/my_pass_cart_event.dart';
|
||||
import '../blocs/myPostcardsCart/my_postcards_cart_bloc.dart';
|
||||
import 'my_pass_cart_page_view.dart';
|
||||
import 'my_postcard_cart_page_view.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class MyCartPage extends StatefulWidget {
|
||||
const MyCartPage({super.key});
|
||||
@@ -46,7 +45,7 @@ class _MyCartPageState extends State<MyCartPage> {
|
||||
showCart: false,
|
||||
showDivider: true,
|
||||
),
|
||||
backWidget(context, AppLocalizations.of(context)!.yourCartTitle, Colors.black),
|
||||
backWidget(context, "Your Cart", Colors.black),
|
||||
SizedBox(height: 24.h),
|
||||
Container(
|
||||
padding: EdgeInsets.all(4.w),
|
||||
@@ -56,8 +55,8 @@ class _MyCartPageState extends State<MyCartPage> {
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
_tabButton(AppLocalizations.of(context)!.myCardsTab, 0),
|
||||
_tabButton(AppLocalizations.of(context)!.myPostCardsTab, 1),
|
||||
_tabButton("My Passes", 0),
|
||||
_tabButton("My Post Cards", 1),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -11,14 +11,12 @@ import '../../add_details/add_details_view.dart';
|
||||
import '../../buy_a_pass/models/checkout_model.dart';
|
||||
import '../../checkout/view/checkout_view.dart';
|
||||
import '../../checkout/widget/pass_purchase_details_bottomsheet.dart';
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../../login/view/login_email_bottomsheet.dart';
|
||||
import '../../common_packages/common_app_texts.dart';
|
||||
import '../../localPreference/local_preference.dart';
|
||||
import '../blocs/myPassCart/my_pass_cart_bloc.dart';
|
||||
import '../blocs/myPassCart/my_pass_cart_event.dart';
|
||||
import '../blocs/myPassCart/my_pass_cart_state.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class MyPassesCartPage extends StatefulWidget {
|
||||
const MyPassesCartPage({super.key});
|
||||
@@ -54,7 +52,7 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
final apiCartData = state.apiCartData;
|
||||
|
||||
if (apiCartData.cartItems.isEmpty) {
|
||||
return Center(child: Text(AppLocalizations.of(context)!.yourCartIsEmpty));
|
||||
return const Center(child: Text('Your cart is empty'));
|
||||
}
|
||||
|
||||
return SingleChildScrollView(
|
||||
@@ -84,8 +82,8 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
.toLowerCase()
|
||||
.contains("unlimited");
|
||||
final String validityLabel = isUnlimitedCard
|
||||
? "$validityDuration${AppLocalizations.of(context)!.daysLabelSuffix}"
|
||||
: "${cartItem.noOfAttractions}${AppLocalizations.of(context)!.attractionsLabelSuffix}";
|
||||
? "$validityDuration Days"
|
||||
: "${cartItem.noOfAttractions} Attractions";
|
||||
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(bottom: 15.h),
|
||||
@@ -94,14 +92,14 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
final checkoutData = CheckoutData(
|
||||
cityName: cityName,
|
||||
heroImage: heroImage,
|
||||
cardTypeName: isUnlimitedCard ? "unlimited_card" : "flexi_pass",
|
||||
cardTypeName: cardTypeName,
|
||||
cardDisplayName: cardDisplayName,
|
||||
themeColor: Color(themeColor),
|
||||
adultCount: adultCount,
|
||||
childCount: childCount,
|
||||
adultPrice: 0.0,
|
||||
childPrice: 0.0,
|
||||
validityDuration: isUnlimitedCard ? validityDuration : cartItem.noOfAttractions,
|
||||
validityDuration: validityDuration,
|
||||
totalPrice: cartItem.baseAmount,
|
||||
description: null,
|
||||
);
|
||||
@@ -166,8 +164,8 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
|
||||
final bool isUnlimitedCard = cardTypeName == "unlimited_card";
|
||||
final String validityLabel = isUnlimitedCard
|
||||
? "$validityDuration${AppLocalizations.of(context)!.daysLabelSuffix}"
|
||||
: "$validityDuration${AppLocalizations.of(context)!.attractionsLabelSuffix}";
|
||||
? "$validityDuration Days"
|
||||
: "$validityDuration Attractions";
|
||||
|
||||
return SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
@@ -175,43 +173,15 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
child: Column(
|
||||
children: [
|
||||
SizedBox(height: 22.h),
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
final checkoutData = CheckoutData(
|
||||
cityName: cityName,
|
||||
heroImage: heroImage,
|
||||
cardTypeName: cardTypeName,
|
||||
cardDisplayName: cardDisplayName,
|
||||
themeColor: Color(themeColor),
|
||||
adultCount: adultCount,
|
||||
childCount: childCount,
|
||||
adultPrice: adultPrice,
|
||||
childPrice: childPrice,
|
||||
validityDuration: validityDuration,
|
||||
totalPrice: totalPrice,
|
||||
description: description,
|
||||
);
|
||||
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const CheckoutView(
|
||||
bookingId: 0,
|
||||
couponId: null,
|
||||
),
|
||||
settings: RouteSettings(arguments: checkoutData),
|
||||
),
|
||||
);
|
||||
},
|
||||
child: _CartItemCard(
|
||||
heroImage: heroImage,
|
||||
cityName: cityName,
|
||||
validityLabel: validityLabel,
|
||||
adultCount: adultCount,
|
||||
childCount: childCount,
|
||||
totalPrice: totalPrice,
|
||||
themeColor: themeColor,
|
||||
cardDisplayName: cardDisplayName,
|
||||
),
|
||||
_CartItemCard(
|
||||
heroImage: heroImage,
|
||||
cityName: cityName,
|
||||
validityLabel: validityLabel,
|
||||
adultCount: adultCount,
|
||||
childCount: childCount,
|
||||
totalPrice: totalPrice,
|
||||
themeColor: themeColor,
|
||||
cardDisplayName: cardDisplayName,
|
||||
),
|
||||
SizedBox(height: 16.h),
|
||||
],
|
||||
@@ -228,14 +198,14 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
children: [
|
||||
Image.asset("assets/gif/empty_cart.gif", width: 250.w),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.youDoNotHaveAnyPasses,
|
||||
text: "You do not have any passes",
|
||||
size: 22.sp,
|
||||
color: const Color(0xFFF95F62),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
SizedBox(height: 4.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.emptyPassesDescription,
|
||||
"Get a pass and get offers and discounts and more on your trip to your favourite city",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF656565),
|
||||
fontSize: 14.sp,
|
||||
@@ -247,7 +217,7 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
label: AppLocalizations.of(context)!.buyAPassLabel,
|
||||
label: "Buy a Pass",
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -263,7 +233,7 @@ class _MyPassesCartPageState extends State<MyPassesCartPage> {
|
||||
Icon(Icons.error_outline, size: 60.sp, color: Colors.red),
|
||||
SizedBox(height: 16.h),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.errorLoadingCart,
|
||||
text: "Error loading cart",
|
||||
size: 16.sp,
|
||||
color: Colors.red,
|
||||
),
|
||||
@@ -328,30 +298,32 @@ class _CartItemCard extends StatelessWidget {
|
||||
),
|
||||
child: heroImage.isNotEmpty
|
||||
? CachedNetworkImage(
|
||||
imageUrl: heroImage,
|
||||
width: 105.w,
|
||||
height: 130.h,
|
||||
fit: BoxFit.cover,
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: 105.w,
|
||||
height: 130.h,
|
||||
borderRadius: 0,
|
||||
),
|
||||
errorWidget: (context, url, error) => Image.asset(
|
||||
"assets/images/card_banner.png",
|
||||
scale: 4,
|
||||
width: 105.w,
|
||||
height: 123.h,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
)
|
||||
imageUrl: heroImage,
|
||||
width: 105.w,
|
||||
height: 130.h,
|
||||
fit: BoxFit.cover,
|
||||
errorWidget: (context, url, error) => Image.asset(
|
||||
"assets/images/card_banner.png",
|
||||
scale: 4,
|
||||
width: 105.w,
|
||||
height: 123.h,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
placeholder: (context, url) => Image.asset(
|
||||
"assets/images/card_banner.png",
|
||||
scale: 4,
|
||||
width: 105.w,
|
||||
height: 123.h,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
)
|
||||
: Image.asset(
|
||||
"assets/images/card_banner.png",
|
||||
scale: 4,
|
||||
width: 105.w,
|
||||
height: 123.h,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
"assets/images/card_banner.png",
|
||||
scale: 4,
|
||||
width: 105.w,
|
||||
height: 123.h,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 6.66.w),
|
||||
|
||||
@@ -386,7 +358,7 @@ class _CartItemCard extends StatelessWidget {
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(
|
||||
text:
|
||||
"$adultCount ${adultCount == 1 ? AppLocalizations.of(context)!.adultLabelSingular : AppLocalizations.of(context)!.adultLabelPlural}",
|
||||
"$adultCount ${adultCount == 1 ? 'adult' : 'adults'}",
|
||||
color: const Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -407,7 +379,7 @@ class _CartItemCard extends StatelessWidget {
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(
|
||||
text:
|
||||
"$childCount ${childCount == 1 ? AppLocalizations.of(context)!.kidLabelSingular : AppLocalizations.of(context)!.kidLabelPlural}",
|
||||
"$childCount ${childCount == 1 ? 'Kid' : 'Kids'}",
|
||||
color: const Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
|
||||
@@ -20,7 +20,6 @@ import '../blocs/myPostcardsCart/my_postcards_cart_bloc.dart';
|
||||
import '../blocs/myPostcardsCart/my_postcards_cart_state.dart';
|
||||
import '../model/my_postcards_cart_model.dart';
|
||||
import '../widget/ticket_card_view.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class MyPostCardsCartPage extends StatelessWidget {
|
||||
const MyPostCardsCartPage({super.key});
|
||||
@@ -77,7 +76,7 @@ class _CartLoadedScreenState extends State<_CartLoadedScreen> {
|
||||
|
||||
// Height of one card slot (card height + bottom padding).
|
||||
// 330h card + 20h gap = 350. Adjust if your device renders differently.
|
||||
double get _cardItemHeight => 330.h + 20.h;
|
||||
static const double _cardItemHeight = 350.0;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -94,7 +93,6 @@ class _CartLoadedScreenState extends State<_CartLoadedScreen> {
|
||||
|
||||
void _onScroll() {
|
||||
final offset = _scrollController.offset;
|
||||
// Use round() but based on dynamic height, not hardcoded
|
||||
final newIndex = (offset / _cardItemHeight).round();
|
||||
final clamped = newIndex.clamp(0, widget.cartData.cartItems.length - 1);
|
||||
if (clamped != _selectedIndex) {
|
||||
@@ -175,7 +173,7 @@ class _CartLoadedScreenState extends State<_CartLoadedScreen> {
|
||||
SizedBox(width: 10.w),
|
||||
Expanded(
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.purchaseOnePostcardAtTime,
|
||||
'You can purchase one postcard at a time',
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 12.sp,
|
||||
color: const Color(0xFF212121),
|
||||
@@ -326,7 +324,7 @@ class _CartLoadedScreenState extends State<_CartLoadedScreen> {
|
||||
// Navigator.pop(context);
|
||||
_navigateToCheckout(items[_selectedIndex]);
|
||||
},
|
||||
label: AppLocalizations.of(context)!.proceedToCheckoutLabel,
|
||||
label: "Proceed to Checkout",
|
||||
),
|
||||
),
|
||||
SizedBox(height: 14.h),
|
||||
@@ -352,14 +350,14 @@ class _NotLoggedInScreen extends StatelessWidget {
|
||||
children: [
|
||||
Image.asset("assets/gif/empty_cart.gif", width: 250.w),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.notLoggedInYet,
|
||||
text: "You are not logged in yet!",
|
||||
size: 22.sp,
|
||||
color: const Color(0xFFF95F62),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
SizedBox(height: 4.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.loginToAccessPostcardsCart,
|
||||
"To access my postcards cart please login",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF656565),
|
||||
fontSize: 14.sp,
|
||||
@@ -379,7 +377,7 @@ class _NotLoggedInScreen extends StatelessWidget {
|
||||
builder: (_) => const LoginEmailBottomsheet(),
|
||||
);
|
||||
},
|
||||
label: AppLocalizations.of(context)!.loginToCheckoutLabel,
|
||||
label: "Login to Checkout",
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -406,7 +404,7 @@ class _EmptyCartScreen extends StatelessWidget {
|
||||
Image.asset('assets/gif/empty_post_card.gif', width: 200.w),
|
||||
SizedBox(height: 16.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.youDoNotHaveAnyPostcards,
|
||||
'You do not have any postcards',
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 20.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -416,7 +414,7 @@ class _EmptyCartScreen extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 8.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.emptyPostcardsDescription,
|
||||
"You do not possess any postcards yet nor have you sent to anyone",
|
||||
textAlign: TextAlign.center,
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 14.sp,
|
||||
@@ -429,7 +427,7 @@ class _EmptyCartScreen extends StatelessWidget {
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
label: AppLocalizations.of(context)!.designMyPostcardLabel,
|
||||
label: "Design my postcard",
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -461,7 +459,7 @@ class _ErrorScreen extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 16.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.somethingWentWrong,
|
||||
'Something went wrong',
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -488,7 +486,7 @@ class _ErrorScreen extends StatelessWidget {
|
||||
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 12.h),
|
||||
),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.retryLabel,
|
||||
'Retry',
|
||||
style: TextStyle(
|
||||
color: const Color(0xffF95F62),
|
||||
fontSize: 14.sp,
|
||||
|
||||
@@ -2,9 +2,7 @@ import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:citycards_customer/networkApiServices/api_urls.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../model/my_postcards_cart_model.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class TicketCard extends StatelessWidget {
|
||||
final CartItem cartItem;
|
||||
@@ -37,15 +35,27 @@ class TicketCard extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(16.r),
|
||||
child: cartItem.pcImagePath.isNotEmpty
|
||||
? CachedNetworkImage(
|
||||
imageUrl: '${ApiUrls.baseUrl}${cartItem.pcImagePath}',
|
||||
imageUrl:
|
||||
'${ApiUrls.baseUrl}${cartItem.pcImagePath}',
|
||||
width: 210.w,
|
||||
height: 170.h,
|
||||
fit: BoxFit.cover,
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: 210.w,
|
||||
height: 170.h,
|
||||
borderRadius: 16.r,
|
||||
),
|
||||
progressIndicatorBuilder:
|
||||
(context, url, progress) {
|
||||
return Container(
|
||||
width: 210.w,
|
||||
height: 170.h,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.grey.shade200,
|
||||
borderRadius: BorderRadius.circular(16.r),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: CircularProgressIndicator(
|
||||
color: const Color(0xffF95F62),
|
||||
value: progress.progress,
|
||||
),
|
||||
);
|
||||
},
|
||||
errorWidget: (_, __, ___) => _placeholderImage(),
|
||||
)
|
||||
: _placeholderImage(),
|
||||
@@ -71,7 +81,7 @@ class TicketCard extends StatelessWidget {
|
||||
|
||||
// ── Title ──
|
||||
Text(
|
||||
cartItem.pcTitle.isNotEmpty ? cartItem.pcTitle : AppLocalizations.of(context)!.noTitle,
|
||||
cartItem.pcTitle.isNotEmpty ? cartItem.pcTitle : 'No Title',
|
||||
textAlign: TextAlign.center,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -98,7 +108,7 @@ class TicketCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.editDraftLabel,
|
||||
'Edit Draft',
|
||||
style: TextStyle(
|
||||
color: const Color(0xffF95F62),
|
||||
fontSize: 12.sp,
|
||||
|
||||
@@ -13,7 +13,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../../StripePayment/view/stripe_payment.dart';
|
||||
import '../../add_details/add_details_view.dart';
|
||||
import '../../buy_a_pass/models/checkout_model.dart';
|
||||
import '../../common_packages/back_widget.dart';
|
||||
import '../../common_packages/custom_snackbar.dart';
|
||||
import '../../itinerary_creation/bloc/get_itinerary_bloc.dart';
|
||||
import '../../localPreference/local_preference.dart';
|
||||
@@ -23,7 +22,6 @@ import '../widget/pass_purchase_details_bottomsheet.dart';
|
||||
import '../repository/all_coupons_repository.dart';
|
||||
import '../repository/checkout_repository.dart';
|
||||
import '../models/all_coupons_model.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class CheckoutView extends StatefulWidget {
|
||||
final int bookingId;
|
||||
@@ -67,7 +65,7 @@ class _CheckoutViewState extends State<CheckoutView> {
|
||||
Icon(Icons.error_outline, size: 60.sp, color: Colors.red),
|
||||
SizedBox(height: 16.h),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.noCheckoutDataAvailable,
|
||||
text: "No checkout data available",
|
||||
size: 16.sp,
|
||||
color: Colors.red,
|
||||
),
|
||||
@@ -80,7 +78,7 @@ class _CheckoutViewState extends State<CheckoutView> {
|
||||
SizedBox(height: 20.h),
|
||||
ElevatedButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(AppLocalizations.of(context)!.goBackButtonLabel),
|
||||
child: const Text("Go Back"),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -145,10 +143,10 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
clientSecret: clientSecret,
|
||||
amount: finalTotal,
|
||||
currencySymbol: '\$',
|
||||
title: AppLocalizations.of(context)!.completePaymentTitle,
|
||||
loadingMessage: AppLocalizations.of(context)!.processingPaymentMessage,
|
||||
successMessage: AppLocalizations.of(context)!.paymentSuccessfulMessage,
|
||||
failureMessage: AppLocalizations.of(context)!.paymentFailedMessage,
|
||||
title: 'Complete Payment',
|
||||
loadingMessage: 'Processing your pass payment...',
|
||||
successMessage: 'Payment Successful!\nYour pass is ready.',
|
||||
failureMessage: 'Payment Failed',
|
||||
primaryColor: const Color(0xFFF95F62),
|
||||
heightRatio: 0.5,
|
||||
isDismissible: false,
|
||||
@@ -174,8 +172,8 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
onPaymentCancelled: () {
|
||||
Navigator.pop(context);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppLocalizations.of(context)!.paymentCancelledMessage),
|
||||
const SnackBar(
|
||||
content: Text('Payment cancelled'),
|
||||
backgroundColor: Colors.orange,
|
||||
),
|
||||
);
|
||||
@@ -193,8 +191,8 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
context.read<GetItineraryBloc>().add(CheckLoginAndFetchItinerary());
|
||||
context.read<MyPassesBloc>().add(CheckLoginAndFetchPasses());
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppLocalizations.of(context)!.paymentConfirmedMessage),
|
||||
const SnackBar(
|
||||
content: Text('Payment confirmed successfully!'),
|
||||
backgroundColor: Colors.green,
|
||||
),
|
||||
);
|
||||
@@ -335,19 +333,21 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
showCart: false,
|
||||
showDivider: true,
|
||||
),
|
||||
|
||||
// ✅ Back Button & Title
|
||||
// Row(
|
||||
// children: [
|
||||
// GestureDetector(
|
||||
// onTap: () => Navigator.pop(context),
|
||||
// child: const Icon(Icons.arrow_back),
|
||||
// ),
|
||||
// SizedBox(width: 8.w),
|
||||
// CustomText(text: AppLocalizations.of(context)!.checkoutTitle, size: 12.sp),
|
||||
// ],
|
||||
// ),
|
||||
backWidget(context, AppLocalizations.of(context)!.checkoutTitle, Colors.black),
|
||||
Row(
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () => Navigator.pop(context),
|
||||
child: const Icon(Icons.arrow_back),
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
CustomText(text: "Checkout", size: 12.sp),
|
||||
],
|
||||
),
|
||||
|
||||
SizedBox(height: 22.h),
|
||||
|
||||
// ✅ PASS CARD SECTION
|
||||
Container(
|
||||
height: 140.h,
|
||||
@@ -422,9 +422,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
),
|
||||
SizedBox(height: 5.h),
|
||||
CustomText(
|
||||
text: widget.checkoutData.isUnlimitedCard
|
||||
? "${widget.checkoutData.validityDuration} ${AppLocalizations.of(context)!.daysLabelSuffix}"
|
||||
: "${widget.checkoutData.validityDuration} ${AppLocalizations.of(context)!.attractionsLabelSuffix}",
|
||||
text: widget.checkoutData.validityLabel,
|
||||
color: const Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -441,7 +439,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(
|
||||
text:
|
||||
"${widget.checkoutData.adultCount} ${widget.checkoutData.adultCount > 1 ? AppLocalizations.of(context)!.adultLabelPlural : AppLocalizations.of(context)!.adultLabelSingular}",
|
||||
"${widget.checkoutData.adultCount} adult${widget.checkoutData.adultCount > 1 ? 's' : ''}",
|
||||
color: const Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -465,7 +463,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(
|
||||
text:
|
||||
"${widget.checkoutData.childCount} ${widget.checkoutData.childCount > 1 ? AppLocalizations.of(context)!.kidLabelPlural : AppLocalizations.of(context)!.kidLabelSingular}",
|
||||
"${widget.checkoutData.childCount} Kid${widget.checkoutData.childCount > 1 ? 's' : ''}",
|
||||
color: const Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -552,7 +550,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.loadingCoupons,
|
||||
text: "Loading coupons...",
|
||||
size: 12.sp,
|
||||
color: Colors.grey,
|
||||
),
|
||||
@@ -560,7 +558,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
)
|
||||
: state is CheckoutCouponsErrorState
|
||||
? CustomText(
|
||||
text: AppLocalizations.of(context)!.errorLoadingCoupons,
|
||||
text: "Error loading coupons",
|
||||
size: 12.sp,
|
||||
color: Colors.red,
|
||||
)
|
||||
@@ -575,10 +573,10 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
children: [
|
||||
CustomText(
|
||||
text: appliedCoupon != null
|
||||
? "${AppLocalizations.of(context)!.couponAppliedPrefix}${appliedCoupon.couponCode}"
|
||||
? "Coupon Applied: ${appliedCoupon.couponCode}"
|
||||
: state.coupons.isNotEmpty
|
||||
? "${state.coupons[0].discountPercent}%${AppLocalizations.of(context)!.discountOnPrefix}${state.coupons[0].title}"
|
||||
: AppLocalizations.of(context)!.noCouponsAvailable,
|
||||
? "${state.coupons[0].discountPercent}% discount on ${state.coupons[0].title}"
|
||||
: "No coupons available",
|
||||
color: const Color(0xFF262626),
|
||||
size: 14.sp,
|
||||
maxLines: 1,
|
||||
@@ -622,7 +620,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.viewAllCoupons,
|
||||
text: "View all coupons",
|
||||
color: const Color(0xFFF95F62),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -684,10 +682,10 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
),
|
||||
child: CustomText(
|
||||
text: state.isApplyingCoupon
|
||||
? AppLocalizations.of(context)!.applyingLabel
|
||||
? "Applying..."
|
||||
: (appliedCoupon != null
|
||||
? AppLocalizations.of(context)!.removeLabel
|
||||
: AppLocalizations.of(context)!.applyLabel),
|
||||
? "Remove"
|
||||
: "Apply"),
|
||||
color: const Color(0xFFF95F62),
|
||||
size: 14.sp,
|
||||
),
|
||||
@@ -713,7 +711,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
CustomText(text: AppLocalizations.of(context)!.subtotalLabel, size: 14.sp),
|
||||
CustomText(text: "Subtotal", size: 14.sp),
|
||||
CustomText(
|
||||
text: "\$${subtotal.toStringAsFixed(2)}",
|
||||
size: 14.sp,
|
||||
@@ -728,7 +726,7 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
CustomText(text: AppLocalizations.of(context)!.discountLabel, size: 14.sp),
|
||||
CustomText(text: "Discount", size: 14.sp),
|
||||
CustomText(
|
||||
text:
|
||||
"-\$${discountAmount.toStringAsFixed(2)} (${discountPercentage.toStringAsFixed(0)}%)",
|
||||
@@ -757,11 +755,11 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
CustomText(text: AppLocalizations.of(context)!.totalLabel, size: 14.sp),
|
||||
CustomText(text: 'Total', size: 14.sp),
|
||||
SizedBox(height: 4.h),
|
||||
CustomText(
|
||||
text:
|
||||
"${AppLocalizations.of(context)!.includingTaxesPrefix}\$${taxAmount.toStringAsFixed(2)}${AppLocalizations.of(context)!.inTaxesSuffix}",
|
||||
"Including \$${taxAmount.toStringAsFixed(2)} in taxes",
|
||||
size: 12.sp,
|
||||
color: Colors.black.withOpacity(0.6),
|
||||
),
|
||||
@@ -850,10 +848,10 @@ class _CheckoutContentState extends State<_CheckoutContent> {
|
||||
label: isLoggedIn
|
||||
? (widget.isPurchaseDetailsConfirmed
|
||||
? (isInitiatingPayment || isConfirmingPayment
|
||||
? AppLocalizations.of(context)!.processingLabel
|
||||
: "${AppLocalizations.of(context)!.payPrefixLabel}\$${finalTotal.toStringAsFixed(2)}")
|
||||
: AppLocalizations.of(context)!.checkoutTitle)
|
||||
: AppLocalizations.of(context)!.loginToCheckoutLabel,
|
||||
? "Processing..."
|
||||
: "Pay \$${finalTotal.toStringAsFixed(2)}")
|
||||
: "Checkout")
|
||||
: "Login to Checkout",
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
@@ -7,7 +7,6 @@ import '../bloc/allCoupons/all_coupons_bloc.dart';
|
||||
import '../bloc/allCoupons/all_coupons_event.dart';
|
||||
import '../bloc/allCoupons/all_coupons_state.dart';
|
||||
import '../repository/all_coupons_repository.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class AllCouponsBottomsheet extends StatelessWidget {
|
||||
final Function(dynamic coupon)? onCouponSelected;
|
||||
@@ -46,7 +45,7 @@ class AllCouponsBottomsheet extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 12.h),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.allCouponsTitle, size: 18.sp, weight: FontWeight.w500),
|
||||
text: "All Coupons", size: 18.sp, weight: FontWeight.w500),
|
||||
SizedBox(height: 22.h),
|
||||
|
||||
/// --- Coupon list ---
|
||||
@@ -70,7 +69,7 @@ class AllCouponsBottomsheet extends StatelessWidget {
|
||||
if (state.coupons.isEmpty) {
|
||||
return Center(
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.noCouponsAvailable,
|
||||
text: "No coupons available",
|
||||
size: 14.sp,
|
||||
),
|
||||
);
|
||||
@@ -105,7 +104,7 @@ class AllCouponsBottomsheet extends StatelessWidget {
|
||||
Expanded(
|
||||
child: CustomText(
|
||||
text:
|
||||
"${coupon.discountPercent}%${AppLocalizations.of(context)!.discountOnPrefix}${coupon.title}",
|
||||
"${coupon.discountPercent}% discount on ${coupon.title}",
|
||||
size: 12.sp,
|
||||
weight: FontWeight.w400,
|
||||
),
|
||||
@@ -130,7 +129,7 @@ class AllCouponsBottomsheet extends StatelessWidget {
|
||||
),
|
||||
child: Center(
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.applyCouponLabel,
|
||||
text: "Apply Coupon",
|
||||
size: 12.sp,
|
||||
color: Colors.white,
|
||||
),
|
||||
|
||||
@@ -8,7 +8,6 @@ import '../../profile/view/edit_profile/edit_profile_view.dart';
|
||||
import '../bloc/pass_purchase_details_bloc.dart';
|
||||
import '../bloc/pass_purchase_details_event.dart';
|
||||
import '../bloc/pass_purchase_details_state.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class PassPurchaseBottomSheet {
|
||||
static Future<String?> show(BuildContext context, {required int bookingId}) async {
|
||||
@@ -88,7 +87,7 @@ class _PassPurchaseContent extends StatelessWidget {
|
||||
const SizedBox(height: 12),
|
||||
|
||||
Text(
|
||||
AppLocalizations.of(context)!.purchaseDetailsTitle,
|
||||
"Purchase Details",
|
||||
style: TextStyle(fontSize: 16.sp, fontWeight: FontWeight.w600),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
@@ -121,7 +120,7 @@ class _PassPurchaseContent extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.buyPassForMyselfTitle,
|
||||
"Buy Pass for Myself",
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: !state.isGift
|
||||
@@ -178,9 +177,9 @@ class _PassPurchaseContent extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.editDetailsLabel,
|
||||
style: const TextStyle(fontSize: 12, color: Colors.white),
|
||||
child: const Text(
|
||||
"Edit Details",
|
||||
style: TextStyle(fontSize: 12, color: Colors.white),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -216,15 +215,15 @@ class _PassPurchaseContent extends StatelessWidget {
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
children: const [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.giftThePassTitle,
|
||||
style: const TextStyle(fontWeight: FontWeight.w600),
|
||||
"Gift the pass",
|
||||
style: TextStyle(fontWeight: FontWeight.w600),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
SizedBox(height: 4),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.giftThePassDescription,
|
||||
style: const TextStyle(
|
||||
"Gift the pass for someone else",
|
||||
style: TextStyle(
|
||||
fontSize: 13, color: Color(0xff9E9E9E)),
|
||||
),
|
||||
],
|
||||
@@ -281,7 +280,7 @@ class _PassPurchaseContent extends StatelessWidget {
|
||||
),
|
||||
)
|
||||
: Text(
|
||||
AppLocalizations.of(context)!.proceedLabel,
|
||||
"Proceed",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 14.sp,
|
||||
|
||||
@@ -1,69 +1,22 @@
|
||||
import 'package:citycards_customer/localPreference/local_preference.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
// ─── Events ────────────────────────────────────────────────────────────────
|
||||
abstract class LanguageEvent {}
|
||||
abstract class LanguageEvent{}
|
||||
|
||||
/// Dispatched on app start to restore the last saved locale.
|
||||
class LoadSavedLanguage extends LanguageEvent {}
|
||||
|
||||
/// Dispatched when the user picks a new language in the bottom sheet.
|
||||
class UpdateLanguage extends LanguageEvent {
|
||||
/// Display label shown in the bottom sheet (e.g. "Spanish / Español").
|
||||
final String label;
|
||||
|
||||
/// BCP-47 locale code (e.g. "es").
|
||||
final String code;
|
||||
|
||||
UpdateLanguage({required this.label, required this.code});
|
||||
class UpdateLanguage extends LanguageEvent{
|
||||
final String language;
|
||||
UpdateLanguage(this.language);
|
||||
}
|
||||
|
||||
// ─── State ─────────────────────────────────────────────────────────────────
|
||||
class LanguageState {
|
||||
/// BCP-47 locale code (e.g. "en", "nl", "es").
|
||||
final String code;
|
||||
|
||||
/// Display label shown in the UI (e.g. "English / English").
|
||||
final String label;
|
||||
|
||||
/// The [Locale] that MaterialApp should use.
|
||||
Locale get locale => Locale(code);
|
||||
|
||||
const LanguageState({required this.code, required this.label});
|
||||
|
||||
static const initial = LanguageState(
|
||||
code: 'en',
|
||||
label: 'English / English',
|
||||
);
|
||||
class LanguageState{
|
||||
final String selectedLanguage;
|
||||
LanguageState(this.selectedLanguage);
|
||||
}
|
||||
|
||||
// ─── BLoC ──────────────────────────────────────────────────────────────────
|
||||
class LanguageBloc extends Bloc<LanguageEvent, LanguageState> {
|
||||
LanguageBloc() : super(LanguageState.initial) {
|
||||
on<LoadSavedLanguage>(_onLoadSaved);
|
||||
on<UpdateLanguage>(_onUpdate);
|
||||
}
|
||||
|
||||
/// Map of BCP-47 code → display label (must match language_selection_bottomsheet).
|
||||
static const Map<String, String> _codeToLabel = {
|
||||
'en': 'English / English',
|
||||
'nl': 'Dutch / Nederlands',
|
||||
'es': 'Spanish / Español',
|
||||
'fr': 'French / Français',
|
||||
'ja': 'Japanese / 日本語',
|
||||
};
|
||||
|
||||
Future<void> _onLoadSaved(
|
||||
LoadSavedLanguage event,
|
||||
Emitter<LanguageState> emit,
|
||||
) async {
|
||||
final code = await LocalPreference.getLanguage();
|
||||
final label = _codeToLabel[code] ?? 'English / English';
|
||||
emit(LanguageState(code: code, label: label));
|
||||
}
|
||||
|
||||
void _onUpdate(UpdateLanguage event, Emitter<LanguageState> emit) {
|
||||
emit(LanguageState(code: event.code, label: event.label));
|
||||
}
|
||||
class LanguageBloc extends Bloc<LanguageEvent , LanguageState>{
|
||||
LanguageBloc() : super(LanguageState("English / Englis")){
|
||||
on<UpdateLanguage>((event, emit){
|
||||
emit(LanguageState(event.language));
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ Widget backWidget(BuildContext context, String title, Color? textColor){
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
fontSize: 14.sp,
|
||||
fontSize: 12.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: textColor ?? Colors.black
|
||||
),
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../common_bloc/bottom_navigation_bloc.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class CustomBottomNavBar extends StatelessWidget {
|
||||
const CustomBottomNavBar({super.key});
|
||||
@@ -36,28 +35,28 @@ class CustomBottomNavBar extends StatelessWidget {
|
||||
context,
|
||||
index: 0,
|
||||
iconPath: 'assets/icons/explore.png',
|
||||
label: AppLocalizations.of(context)!.navExplore,
|
||||
label: 'Explore',
|
||||
isActive: state.selectedIndex == 0,
|
||||
),
|
||||
_buildNavItem(
|
||||
context,
|
||||
index: 1,
|
||||
iconPath: 'assets/icons/magic.png',
|
||||
label: AppLocalizations.of(context)!.navMagicItinerary,
|
||||
label: 'Magic Itinerary',
|
||||
isActive: state.selectedIndex == 1,
|
||||
),
|
||||
_buildNavItem(
|
||||
context,
|
||||
index: 2,
|
||||
iconPath: 'assets/icons/pass_icon.png',
|
||||
label: AppLocalizations.of(context)!.navMyCards,
|
||||
label: 'My Cards',
|
||||
isActive: state.selectedIndex == 2,
|
||||
),
|
||||
_buildNavItem(
|
||||
context,
|
||||
index: 3,
|
||||
iconPath: 'assets/icons/postcard_icon.png',
|
||||
label: AppLocalizations.of(context)!.navPostcard,
|
||||
label: 'Postcard',
|
||||
isActive: state.selectedIndex == 3,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -46,15 +46,11 @@ class CustomFilledButton extends StatelessWidget {
|
||||
: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Flexible(
|
||||
child: CustomText(
|
||||
text: label,
|
||||
color: Colors.white,
|
||||
size: 16.sp,
|
||||
weight: FontWeight.w500,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
CustomText(
|
||||
text: label,
|
||||
color: Colors.white,
|
||||
size: 16.sp,
|
||||
weight: FontWeight.w500,
|
||||
),
|
||||
if (showArrow!) SizedBox(width: 8),
|
||||
if (showArrow!)
|
||||
|
||||
@@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
import '../l10n/app_localizations.dart';
|
||||
import '../localPreference/local_preference.dart';
|
||||
|
||||
class LanguageSelectionBottomsheet extends StatefulWidget {
|
||||
@@ -61,7 +60,7 @@ class _LanguageSelectionBottomsheetState
|
||||
|
||||
// Update BLoC
|
||||
if (mounted) {
|
||||
context.read<LanguageBloc>().add(UpdateLanguage(label: _pendingLabel!, code: code));
|
||||
context.read<LanguageBloc>().add(UpdateLanguage(_pendingLabel!));
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
}
|
||||
@@ -84,7 +83,7 @@ class _LanguageSelectionBottomsheetState
|
||||
child: BlocBuilder<LanguageBloc, LanguageState>(
|
||||
builder: (context, state) {
|
||||
// Seed pending selection from current BLoC state on first build
|
||||
_pendingLabel ??= state.label;
|
||||
_pendingLabel ??= state.selectedLanguage;
|
||||
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -104,7 +103,7 @@ class _LanguageSelectionBottomsheetState
|
||||
Align(
|
||||
alignment: Alignment.topLeft,
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.changeLanguageTitle,
|
||||
"Change Language",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -117,7 +116,7 @@ class _LanguageSelectionBottomsheetState
|
||||
TextField(
|
||||
controller: _searchController,
|
||||
decoration: InputDecoration(
|
||||
hintText: AppLocalizations.of(context)!.searchLanguages,
|
||||
hintText: "Search Languages",
|
||||
hintStyle: TextStyle(
|
||||
fontSize: 14.sp,
|
||||
color: const Color(0xBBC83B61).withOpacity(0.4),
|
||||
@@ -189,7 +188,7 @@ class _LanguageSelectionBottomsheetState
|
||||
width: double.infinity,
|
||||
height: 48.h,
|
||||
onTap: _onSave,
|
||||
label: AppLocalizations.of(context)!.save,
|
||||
label: "Save",
|
||||
),
|
||||
|
||||
SizedBox(height: 8.h),
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:shimmer/shimmer.dart';
|
||||
|
||||
class SkeletonWidget extends StatelessWidget {
|
||||
final double height;
|
||||
final double width;
|
||||
final double borderRadius;
|
||||
|
||||
const SkeletonWidget({
|
||||
super.key,
|
||||
required this.height,
|
||||
required this.width,
|
||||
this.borderRadius = 16,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Shimmer.fromColors(
|
||||
baseColor: Colors.grey[300]!,
|
||||
highlightColor: Colors.grey[100]!,
|
||||
child: Container(
|
||||
height: height,
|
||||
width: width,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.grey[300],
|
||||
borderRadius: BorderRadius.circular(borderRadius.r),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:phone_numbers_parser/phone_numbers_parser.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
import 'package:geocoding/geocoding.dart';
|
||||
|
||||
@@ -90,7 +89,7 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
countryController.text.trim().isEmpty ||
|
||||
postalController.text.trim().isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text(AppLocalizations.of(context)!.pleaseFillAllFields)),
|
||||
const SnackBar(content: Text('Please fill all fields')),
|
||||
);
|
||||
return;
|
||||
}
|
||||
@@ -110,7 +109,7 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
if (!isValidPhone) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppLocalizations.of(context)!.enterValidPhoneForIsd(_selectedIsdCode)),
|
||||
content: Text('Enter a valid phone number for $_selectedIsdCode'),
|
||||
backgroundColor: Colors.red,
|
||||
),
|
||||
);
|
||||
@@ -151,7 +150,6 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
emailController.text = widget.email;
|
||||
return BlocProvider(
|
||||
create: (context) =>
|
||||
@@ -213,7 +211,7 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
CustomText(
|
||||
text: l10n.createYourAccount,
|
||||
text: "Create your account",
|
||||
size: 12.sp,
|
||||
),
|
||||
],
|
||||
@@ -222,7 +220,7 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
SizedBox(height: 26.h),
|
||||
|
||||
CustomText(
|
||||
text: l10n.personalInformation,
|
||||
text: "Personal Information",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w500,
|
||||
),
|
||||
@@ -232,8 +230,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.firstNameLabelWithStar,
|
||||
hint: l10n.enterYourFirstName,
|
||||
label: "First Name *",
|
||||
hint: "Enter your first name",
|
||||
controller: firstNameController,
|
||||
onlyLetters: true,
|
||||
noSpace: true,
|
||||
@@ -245,8 +243,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.lastNameLabelWithStar,
|
||||
hint: l10n.enterYourLastName,
|
||||
label: "Last Name *",
|
||||
hint: "Enter your last name",
|
||||
controller: lastNameController,
|
||||
onlyLetters: true,
|
||||
maxLength: 50,
|
||||
@@ -258,8 +256,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.emailLabelWithStar,
|
||||
hint: l10n.enterYourEmailAddress,
|
||||
label: "Email *",
|
||||
hint: "Enter your email address",
|
||||
controller: emailController,
|
||||
enabled: false,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
@@ -270,8 +268,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.phoneNumberLabelWithStar,
|
||||
hint: l10n.phoneNumberHint,
|
||||
label: "Phone Number *",
|
||||
hint: "Enter phone number",
|
||||
controller: phoneController,
|
||||
keyboardType: TextInputType.phone,
|
||||
maxLength: 12,
|
||||
@@ -292,9 +290,9 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
color: const Color(0xFF2D3134),
|
||||
),
|
||||
dialogTextStyle: TextStyle(fontSize: 14.sp),
|
||||
searchDecoration: InputDecoration(
|
||||
hintText: l10n.searchCountryHint,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
searchDecoration: const InputDecoration(
|
||||
hintText: 'Search country...',
|
||||
prefixIcon: Icon(Icons.search),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -303,7 +301,7 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
SizedBox(height: 12.h),
|
||||
|
||||
CustomText(
|
||||
text: l10n.locationDetailsWithStar,
|
||||
text: "Location Details *",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w500,
|
||||
),
|
||||
@@ -314,8 +312,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.addressLabelWithStar,
|
||||
hint: l10n.enterYourAddress,
|
||||
label: "Address *",
|
||||
hint: "Enter your address",
|
||||
controller: addressController,
|
||||
maxLength: 50,
|
||||
),
|
||||
@@ -327,8 +325,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.cityLabelWithStar,
|
||||
hint: l10n.enterYourCity,
|
||||
label: "City *",
|
||||
hint: "Enter your city",
|
||||
maxLength: 50,
|
||||
// noSpace: true,
|
||||
controller: cityController,
|
||||
@@ -340,8 +338,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.stateLabelWithStar,
|
||||
hint: l10n.enterYourState,
|
||||
label: "State *",
|
||||
hint: "Enter your state",
|
||||
maxLength: 50,
|
||||
// noSpace: true,
|
||||
controller: stateController,
|
||||
@@ -353,8 +351,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: CustomTextField(
|
||||
label: l10n.countryLabelWithStar,
|
||||
hint: l10n.enterYourCountry,
|
||||
label: "Country *",
|
||||
hint: "Enter your country",
|
||||
maxLength: 50,
|
||||
// noSpace: true,
|
||||
controller: countryController,
|
||||
@@ -376,8 +374,8 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
keyboardType: TextInputType.number,
|
||||
maxLength: 6,
|
||||
onChanged: fetchLocationFromZip,
|
||||
label: l10n.zipCodeLabelWithStar,
|
||||
hint: l10n.zipCodeHint,
|
||||
label: 'Zip Code *',
|
||||
hint: 'Enter the zip code you reside in',
|
||||
),
|
||||
),
|
||||
if (_isZipLoading)
|
||||
@@ -397,7 +395,7 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
),
|
||||
SizedBox(height: 4.h),
|
||||
Text(
|
||||
l10n.autoFillZipNote,
|
||||
"City, State & Country will auto-fill from zip",
|
||||
style: TextStyle(
|
||||
fontSize: 10.sp,
|
||||
color: const Color(0xFF8E8E8E),
|
||||
@@ -415,13 +413,13 @@ class _CreateAccountViewState extends State<CreateAccountView> {
|
||||
return CustomFilledButton(
|
||||
width: double.infinity,
|
||||
onTap: () {},
|
||||
label: l10n.creatingLabelEllipsis,
|
||||
label: "Creating...",
|
||||
);
|
||||
}
|
||||
return CustomFilledButton(
|
||||
width: double.infinity,
|
||||
onTap: () => _submitForm(context),
|
||||
label: l10n.createAccount,
|
||||
label: "Create Account",
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
@@ -3,14 +3,12 @@ import 'package:citycards_customer/common_packages/custom_filled_button.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../l10n/app_localizations.dart';
|
||||
|
||||
class EsimOfferPage extends StatelessWidget {
|
||||
const EsimOfferPage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
body: SafeArea(
|
||||
@@ -85,7 +83,8 @@ class EsimOfferPage extends StatelessWidget {
|
||||
SizedBox(
|
||||
width: 350.w,
|
||||
child: CustomText(
|
||||
text: l10n.esimOfferTitle,
|
||||
text:
|
||||
"Connect instantly with your free eSIM",
|
||||
size: 22.sp,
|
||||
color: Color(0xFFFFFFFF),
|
||||
),
|
||||
@@ -94,7 +93,8 @@ class EsimOfferPage extends StatelessWidget {
|
||||
SizedBox(
|
||||
width: 350,
|
||||
child: CustomText(
|
||||
text: l10n.esimOfferSubtitle,
|
||||
text:
|
||||
"Every great journey begins with smooth connectivity.",
|
||||
size: 14.sp,
|
||||
color: Colors.white,
|
||||
),
|
||||
@@ -118,7 +118,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
CustomText(
|
||||
text: l10n.viewPlans,
|
||||
text: "View Plans",
|
||||
size: 16.sp,
|
||||
color: Color(0xFFF95F62),
|
||||
),
|
||||
@@ -145,14 +145,14 @@ class EsimOfferPage extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: l10n.withYour,
|
||||
text: "With your ",
|
||||
style: TextStyle(
|
||||
fontSize: 26.sp,
|
||||
fontWeight: FontWeight.w300,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.esimKeyword,
|
||||
text: "eSIM",
|
||||
style: TextStyle(
|
||||
color: Color(0xFFF95F62),
|
||||
fontSize: 26.sp,
|
||||
@@ -160,7 +160,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.youCanKeyword,
|
||||
text: ", you can:",
|
||||
style: TextStyle(
|
||||
fontSize: 26.sp,
|
||||
fontWeight: FontWeight.w300,
|
||||
@@ -172,26 +172,26 @@ class EsimOfferPage extends StatelessWidget {
|
||||
SizedBox(height: 37.h),
|
||||
ServiceCard(
|
||||
"assets/icons/esim_location.png",
|
||||
l10n.navigateCity,
|
||||
l10n.navigateCityDesc,
|
||||
"Navigate the city with ease",
|
||||
"Access real-time maps and directions wherever you go",
|
||||
),
|
||||
SizedBox(height: 28.h),
|
||||
ServiceCard(
|
||||
"assets/icons/esim_phone.png",
|
||||
l10n.bookRides,
|
||||
l10n.bookRidesDesc,
|
||||
"Book rides, access maps, and find attractions in real time",
|
||||
"Stay connected to all essential travel services",
|
||||
),
|
||||
SizedBox(height: 28.h),
|
||||
ServiceCard(
|
||||
"assets/icons/esim_camera.png",
|
||||
l10n.sharePhotos,
|
||||
l10n.sharePhotosDesc,
|
||||
"Share photos and memories instantly",
|
||||
"Upload and share your travel moments without delay",
|
||||
),
|
||||
SizedBox(height: 28.h),
|
||||
ServiceCard(
|
||||
"assets/icons/esim_people.png",
|
||||
l10n.stayConnectedFeatures,
|
||||
l10n.stayConnectedFeaturesDesc,
|
||||
"Stay connected with friends, family, and travel plans",
|
||||
"Never miss important updates or messages while traveling",
|
||||
),
|
||||
|
||||
SizedBox(height: 75.h),
|
||||
@@ -211,11 +211,11 @@ class EsimOfferPage extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: l10n.simpleKeyword,
|
||||
text: "Simple ",
|
||||
style: TextStyle(fontSize: 24.sp),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.threeStepProcess,
|
||||
text: "3-Step Process",
|
||||
style: TextStyle(
|
||||
color: Color(0xFFF95F62),
|
||||
fontSize: 24.sp,
|
||||
@@ -227,28 +227,28 @@ class EsimOfferPage extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 16.h),
|
||||
CustomText(
|
||||
text: l10n.getConnectedInSeconds,
|
||||
text: "Get connected in seconds",
|
||||
size: 16,
|
||||
color: Color(0xFF4B5563),
|
||||
),
|
||||
SizedBox(height: 56.h),
|
||||
ProcessCard(
|
||||
l10n.receiveQrCode,
|
||||
l10n.receiveQrCodeDesc,
|
||||
"Receive QR Code",
|
||||
"Get your unique eSIM QR code with your CityCard",
|
||||
"1",
|
||||
"assets/icons/process_qr.png",
|
||||
),
|
||||
SizedBox(height: 28.h),
|
||||
ProcessCard(
|
||||
l10n.scanCode,
|
||||
l10n.scanCodeDesc,
|
||||
"Scan Code",
|
||||
"Open your phone camera and scan the QR code",
|
||||
"2",
|
||||
"assets/icons/process_phone.png",
|
||||
),
|
||||
SizedBox(height: 28.h),
|
||||
ProcessCard(
|
||||
l10n.connectedStep,
|
||||
l10n.connectedStepDesc,
|
||||
"Connected",
|
||||
"You're online instantly - start exploring!",
|
||||
"3",
|
||||
"assets/icons/process_wifi.png",
|
||||
),
|
||||
@@ -277,7 +277,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: l10n.itsOneMoreWay,
|
||||
text: "It's one more way",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 21.sp,
|
||||
@@ -285,7 +285,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.cityCardsKeywordSpace,
|
||||
text: " CityCards",
|
||||
style: TextStyle(
|
||||
color: Color(0xFFF95F62),
|
||||
fontSize: 21.sp,
|
||||
@@ -302,7 +302,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: l10n.makesYourJourney,
|
||||
text: "makes your journey",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 21.sp,
|
||||
@@ -310,7 +310,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.smarterKeywordSpace,
|
||||
text: " smarter",
|
||||
style: TextStyle(
|
||||
color: Color(0xFFF95F62),
|
||||
fontSize: 21.sp,
|
||||
@@ -327,7 +327,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: l10n.andMoreSpace,
|
||||
text: "and more",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 21.sp,
|
||||
@@ -335,7 +335,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.effortlessSpace,
|
||||
text: " effortless",
|
||||
style: TextStyle(
|
||||
color: Color(0xFFF95F62),
|
||||
fontSize: 21.sp,
|
||||
@@ -350,7 +350,7 @@ class EsimOfferPage extends StatelessWidget {
|
||||
),
|
||||
CustomFilledButton(
|
||||
onTap: () {},
|
||||
label: l10n.startYourJourneyToday,
|
||||
label: "Start Your Journey Today",
|
||||
height: 60.h,
|
||||
width: 300.w,
|
||||
showArrow: true,
|
||||
|
||||
@@ -1,17 +1,14 @@
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:citycards_customer/core/route_constants.dart';
|
||||
import '../../common_packages/app_bar.dart';
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../../localPreference/local_preference.dart';
|
||||
import '../../networkApiServices/api_urls.dart';
|
||||
import '../widgets/explore_cities_card.dart';
|
||||
import '../bloc/FirstTimeUserHome/first_time_user_home_bloc.dart';
|
||||
import '../bloc/FirstTimeUserHome/first_time_user_home_event.dart';
|
||||
import '../bloc/FirstTimeUserHome/first_time_user_home_state.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class FirstTimeUserHomePage extends StatefulWidget {
|
||||
const FirstTimeUserHomePage({super.key});
|
||||
@@ -81,7 +78,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
CommonAppBar(isWhiteLogo: true, isProfilePage: false, showDivider: false),
|
||||
SizedBox(height: 120.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.homeTitle,
|
||||
"CityCards.\nSee More,\nSpend Less.",
|
||||
style: TextStyle(
|
||||
fontSize: 44.sp,
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -89,8 +86,8 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
),
|
||||
),
|
||||
SizedBox(height: 8.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.homeSubtitle,
|
||||
const Text(
|
||||
"Instant QR access to 40+ attractions,\nexclusive perks, and savings up to 30%",
|
||||
style: TextStyle(color: Colors.white),
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
@@ -113,7 +110,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.getYourCityCards,
|
||||
"Get Your CityCards",
|
||||
style: TextStyle(color: Colors.white,fontSize: 14.sp),
|
||||
),
|
||||
SizedBox(width: 10.w),
|
||||
@@ -127,7 +124,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.exploreCitiesTitleExplore,
|
||||
text: "Explore ",
|
||||
style: TextStyle(
|
||||
fontSize: 24.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -135,7 +132,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.exploreCitiesTitleCities,
|
||||
text: "Cities",
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
color: Colors.black,
|
||||
@@ -146,8 +143,8 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
),
|
||||
),
|
||||
SizedBox(height: 8.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.exploreDescription,
|
||||
const Text(
|
||||
"Explore your dream destination and experience various attractions.",
|
||||
style: TextStyle(color: Color(0xff676D75)),
|
||||
),
|
||||
SizedBox(height: 16.sp),
|
||||
@@ -171,7 +168,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
height: 270.h,
|
||||
child: Center(
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.errorMessage(state.message),
|
||||
'Error: ${state.message}',
|
||||
style: const TextStyle(color: Colors.red),
|
||||
),
|
||||
),
|
||||
@@ -184,8 +181,8 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
if (cities.isEmpty) {
|
||||
return SizedBox(
|
||||
height: 270.h,
|
||||
child: Center(
|
||||
child: Text(AppLocalizations.of(context)!.noCitiesAvailable),
|
||||
child: const Center(
|
||||
child: Text('No cities available'),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -218,8 +215,8 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
);
|
||||
},
|
||||
child: ExploreCitiesCard(
|
||||
name: city.cityName ?? AppLocalizations.of(context)!.notAvailableLabel,
|
||||
description: city.tagLine ?? AppLocalizations.of(context)!.notAvailableLabel,
|
||||
name: city.cityName ?? 'N/A',
|
||||
description: city.tagLine ?? 'N/A',
|
||||
imageUrl: imageUrl,
|
||||
individualPrice: '\$${city.indivisualTicketAmt ?? 0}+',
|
||||
cityCardPrice: '\$${city.cityCardTicketAmt ?? 0}',
|
||||
@@ -258,7 +255,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.upcomingCitiesTitleUpcoming,
|
||||
text: "Upcoming ",
|
||||
style: TextStyle(
|
||||
fontSize: 24.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -266,7 +263,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.upcomingCitiesTitleCities,
|
||||
text: "Cities",
|
||||
style: TextStyle(
|
||||
fontSize: 24.sp,
|
||||
color: Colors.black,
|
||||
@@ -278,7 +275,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
),
|
||||
SizedBox(height: 8.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.exploreDescription,
|
||||
"Explore your dream destination and experience various attractions.",
|
||||
style: TextStyle(color: Colors.grey[600]),
|
||||
),
|
||||
SizedBox(height: 16.h),
|
||||
@@ -302,7 +299,7 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
height: 80.h,
|
||||
child: Center(
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.errorMessage(state.message),
|
||||
'Error: ${state.message}',
|
||||
style: const TextStyle(color: Colors.red),
|
||||
),
|
||||
),
|
||||
@@ -330,37 +327,8 @@ class _FirstTimeUserHomePageState extends State<FirstTimeUserHomePage> {
|
||||
children: [
|
||||
CircleAvatar(
|
||||
radius: 28.r,
|
||||
backgroundImage: NetworkImage(imageUrl),
|
||||
backgroundColor: Colors.grey.shade200,
|
||||
child: ClipOval(
|
||||
child: imageUrl.isNotEmpty
|
||||
? CachedNetworkImage(
|
||||
imageUrl: imageUrl,
|
||||
width: 56.r,
|
||||
height: 56.r,
|
||||
fit: BoxFit.cover,
|
||||
|
||||
// 🔄 Skeleton Loader
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: 56.r,
|
||||
height: 56.r,
|
||||
borderRadius: 100, // fully round
|
||||
),
|
||||
|
||||
// ❌ Error fallback
|
||||
errorWidget: (_, __, ___) => Image.asset(
|
||||
'assets/images/city_sydney.png',
|
||||
width: 56.r,
|
||||
height: 56.r,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
)
|
||||
: Image.asset(
|
||||
'assets/images/city_sydney.png',
|
||||
width: 56.r,
|
||||
height: 56.r,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 6.h),
|
||||
SizedBox(
|
||||
|
||||
@@ -9,7 +9,6 @@ import '../../common_bloc/bottom_navigation_bloc.dart';
|
||||
import '../../common_packages/app_bar.dart';
|
||||
import '../../common_packages/custom_filled_button.dart';
|
||||
import '../../common_packages/custom_text.dart';
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../../core/route_constants.dart';
|
||||
import '../../localPreference/local_preference.dart';
|
||||
import '../../networkApiServices/api_urls.dart';
|
||||
@@ -26,7 +25,6 @@ import '../widgets/gradient_container_bg.dart';
|
||||
import '../widgets/itineary_animation.dart';
|
||||
import '../widgets/pass_card_list.dart';
|
||||
import '../widgets/search_city_bottomsheet.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class RegisteredUserHomePage extends StatefulWidget {
|
||||
const RegisteredUserHomePage({super.key});
|
||||
@@ -120,7 +118,7 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
SizedBox(height: 32.h),
|
||||
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.oopsSomethingWentWrong,
|
||||
text: "Oops! Something went wrong",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w600,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -142,7 +140,7 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
onTap:() {
|
||||
context.read<HomeBloc>().add(FetchHomeData());
|
||||
},
|
||||
label: AppLocalizations.of(context)!.tryAgain,
|
||||
label: "Try Again",
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -168,42 +166,33 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
: null;
|
||||
|
||||
return SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
child: Stack(
|
||||
children: [
|
||||
// ── White app bar above the image ───────────────────────
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 20.w),
|
||||
child: CommonAppBar(
|
||||
isWhiteLogo: false,
|
||||
isProfilePage: false,
|
||||
showDivider: false,
|
||||
// imageUrl: cityIconUrl,
|
||||
isSelectCity: true,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 10.h),
|
||||
|
||||
Stack(
|
||||
// Background image - use city banner if available
|
||||
_buildBannerImage(bannerImageUrl),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Background image - use city banner if available
|
||||
_buildBannerImage(bannerImageUrl),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.all(10.r),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SizedBox(height: 100.h),
|
||||
Padding(
|
||||
padding: EdgeInsets.all(10.r),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
CommonAppBar(
|
||||
isWhiteLogo: false,
|
||||
isProfilePage: false,
|
||||
showDivider: false,
|
||||
// imageUrl: cityIconUrl,
|
||||
isSelectCity: true,
|
||||
),
|
||||
SizedBox(height: 130.h),
|
||||
|
||||
// City name from API
|
||||
Text(
|
||||
city?.cityName ?? AppLocalizations.of(context)!.defaultCityName,
|
||||
city?.cityName ?? "City Name",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 44.sp,
|
||||
),
|
||||
),
|
||||
@@ -211,7 +200,7 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
|
||||
// City description from API
|
||||
Text(
|
||||
city?.description ?? AppLocalizations.of(context)!.defaultCityDescription,
|
||||
city?.description ?? "City description",
|
||||
style: TextStyle(
|
||||
color: Colors.white.withOpacity(0.9),
|
||||
fontSize: 12.sp,
|
||||
@@ -234,7 +223,7 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
child: _buildTag(highlight.title ?? ""),
|
||||
))
|
||||
.toList();
|
||||
return tags.isEmpty ? [_buildTag(AppLocalizations.of(context)!.noHighlightsAvailable)] : tags;
|
||||
return tags.isEmpty ? [_buildTag("No Highlights Available")] : tags;
|
||||
}(),
|
||||
),
|
||||
),
|
||||
@@ -248,7 +237,7 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.popular,
|
||||
text: "Popular ",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -256,7 +245,7 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.attractions,
|
||||
text: "Attractions",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
color: Colors.black,
|
||||
@@ -274,7 +263,7 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
);
|
||||
},
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.viewAll,
|
||||
"View all",
|
||||
style: TextStyle(
|
||||
fontSize: 12.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -291,101 +280,99 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
InwardCurvedContainer(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SizedBox(height: 40.h),
|
||||
const ItineraryVideo(),
|
||||
SizedBox(height: 20.h),
|
||||
InwardCurvedContainer(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SizedBox(height: 40.h),
|
||||
const ItineraryVideo(),
|
||||
SizedBox(height: 20.h),
|
||||
|
||||
// Button section
|
||||
Container(
|
||||
margin: EdgeInsets.symmetric(horizontal: 16.w),
|
||||
child: SizedBox(
|
||||
width: 290.w,
|
||||
child: ElevatedButton(
|
||||
onPressed: () {
|
||||
context.read<NavigationBloc>().add(
|
||||
NavigationTabChanged(1),
|
||||
);
|
||||
},
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: const Color(0xffF95F62),
|
||||
padding: EdgeInsets.symmetric(
|
||||
vertical: 14.h,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(
|
||||
30.r,
|
||||
),
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.createMyMagicItinerary,
|
||||
style: GoogleFonts.poppins(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.sp,
|
||||
color: Colors.white,
|
||||
// Button section
|
||||
Container(
|
||||
margin: EdgeInsets.symmetric(horizontal: 16.w),
|
||||
child: SizedBox(
|
||||
width: 240.w,
|
||||
child: ElevatedButton(
|
||||
onPressed: () {
|
||||
context.read<NavigationBloc>().add(
|
||||
NavigationTabChanged(1),
|
||||
);
|
||||
},
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: const Color(0xffF95F62),
|
||||
padding: EdgeInsets.symmetric(
|
||||
vertical: 14.h,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(
|
||||
30.r,
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(width: 4.w),
|
||||
const Icon(
|
||||
Icons.arrow_forward,
|
||||
color: Colors.white,
|
||||
child: Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
"Create My Magic Itinerary",
|
||||
style: GoogleFonts.poppins(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.sp,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 4.w),
|
||||
const Icon(
|
||||
Icons.arrow_forward,
|
||||
color: Colors.white,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
HotelOffersSection(),
|
||||
ESimOfferSection(),
|
||||
SizedBox(height: 10.h,),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.w),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context).pushNamed(
|
||||
RouteConstants.searchOffer,
|
||||
);
|
||||
},
|
||||
child: _buildFeatureCard(
|
||||
image:
|
||||
"assets/images/claim_offers_bg.jpg",
|
||||
title: AppLocalizations.of(context)!.claimOffersWithCityCards,
|
||||
subtitle: AppLocalizations.of(context)!.offerSubtitleDummy,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 24.h),
|
||||
ChooseYourPassSection(
|
||||
cards: state.homeModel.city?.cards ?? [],
|
||||
ESimOfferSection(),
|
||||
HotelOffersSection(),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.w),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context).pushNamed(
|
||||
RouteConstants.searchOffer,
|
||||
);
|
||||
},
|
||||
child: _buildFeatureCard(
|
||||
image:
|
||||
"assets/images/claim_offers_bg.jpg",
|
||||
title: "Claim offers with your City Cards",
|
||||
subtitle: "Lorem ipsum dolor sit amet...",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
SizedBox(height: 24.h),
|
||||
ChooseYourPassSection(
|
||||
cards: state.homeModel.city?.cards ?? [],
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
GetYourPassCard(),
|
||||
SizedBox(height: 20.h),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
GetYourPassCard(),
|
||||
SizedBox(height: 20.h),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -493,56 +480,32 @@ class _RegisteredUserHomePageState extends State<RegisteredUserHomePage> {
|
||||
|
||||
Widget _buildBannerImage(String? imageUrl) {
|
||||
return SizedBox(
|
||||
height: 290.h,
|
||||
height: 350.h,
|
||||
width: double.infinity,
|
||||
child: Stack(
|
||||
children: [
|
||||
// 🖼️ Image
|
||||
Positioned.fill(
|
||||
child: (imageUrl == null || imageUrl.isEmpty)
|
||||
? Image.asset(
|
||||
"assets/images/chicago.png",
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: CachedNetworkImage(
|
||||
imageUrl: imageUrl,
|
||||
fit: BoxFit.cover,
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: double.infinity,
|
||||
height: 290.h,
|
||||
borderRadius: 0,
|
||||
),
|
||||
errorWidget: (context, url, error) => Image.asset(
|
||||
"assets/images/chicago.png",
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
),
|
||||
child: (imageUrl == null || imageUrl.isEmpty)
|
||||
? Image.asset(
|
||||
"assets/images/chicago.png",
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: CachedNetworkImage(
|
||||
imageUrl: imageUrl,
|
||||
fit: BoxFit.cover,
|
||||
|
||||
// 🌑 Dark → Fade → Transparent (ends at 65%)
|
||||
Positioned.fill(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.bottomCenter,
|
||||
end: Alignment.topCenter,
|
||||
colors: [
|
||||
Colors.black.withOpacity(0.9), // 0% (bottom)
|
||||
Colors.black.withOpacity(0.5), // 50% still dark
|
||||
Colors.black.withOpacity(0.3), // start fade
|
||||
Colors.transparent, // fully transparent
|
||||
],
|
||||
stops: [
|
||||
0.0, // bottom
|
||||
0.5, // 👈 still dark till 50%
|
||||
0.6, // fade in progress
|
||||
0.65, // 👈 fade ends here
|
||||
],
|
||||
),
|
||||
),
|
||||
// 🔄 Loader (same as your loadingBuilder)
|
||||
placeholder: (context, url) => Container(
|
||||
color: Colors.grey[300],
|
||||
child: const Center(
|
||||
child: CircularProgressIndicator(
|
||||
color: Color(0xffF95F62),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
// ❌ Error fallback (same as errorBuilder)
|
||||
errorWidget: (context, url, error) => Image.asset(
|
||||
"assets/images/chicago.png",
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,9 +4,7 @@ import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
import '../../attraction_details/views/attraction_details_view.dart';
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../model/home_model.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class AttractionsListView extends StatefulWidget {
|
||||
final List<Attraction> attractions;
|
||||
@@ -64,7 +62,7 @@ class _AttractionsListViewState extends State<AttractionsListView> {
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(20.w),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.noAttractionsAvailable,
|
||||
'No attractions available',
|
||||
style: TextStyle(fontSize: 16.sp, color: Colors.grey),
|
||||
),
|
||||
),
|
||||
@@ -124,15 +122,15 @@ class _AttractionsListViewState extends State<AttractionsListView> {
|
||||
fit: BoxFit.cover,
|
||||
memCacheWidth: 400,
|
||||
memCacheHeight: 600,
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
height: 232.h,
|
||||
width: 161.w,
|
||||
placeholder: (context, url) => const Center(
|
||||
child: CircularProgressIndicator(color: Color(0xffF95F62)),
|
||||
),
|
||||
errorWidget: (context, url, error) => _buildPlaceholder(),
|
||||
),
|
||||
)
|
||||
else
|
||||
_buildPlaceholder(),
|
||||
|
||||
// Title + Description Overlay
|
||||
Positioned(
|
||||
bottom: 0,
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
import '../../core/route_constants.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class ESimOfferSection extends StatelessWidget {
|
||||
const ESimOfferSection({super.key});
|
||||
@@ -31,7 +30,7 @@ class ESimOfferSection extends StatelessWidget {
|
||||
text: TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.explore,
|
||||
text: "Explore ",
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 14,
|
||||
@@ -39,7 +38,7 @@ class ESimOfferSection extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.moreCities,
|
||||
text: "More Cities.",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white.withOpacity(0.9),
|
||||
fontSize: 14,
|
||||
@@ -61,7 +60,7 @@ class ESimOfferSection extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.stay,
|
||||
text: "Stay ",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 28,
|
||||
@@ -69,7 +68,7 @@ class ESimOfferSection extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.connected,
|
||||
text: "Connected",
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 28,
|
||||
@@ -83,7 +82,7 @@ class ESimOfferSection extends StatelessWidget {
|
||||
// Everywhere (centered)
|
||||
Center(
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.everywhere,
|
||||
"Everywhere",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 28,
|
||||
@@ -112,7 +111,7 @@ class ESimOfferSection extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.claimEsimOffers,
|
||||
"Claim e-Sim offers with\nCityCard",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 16,
|
||||
|
||||
@@ -3,9 +3,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
import '../../common_packages/shimmer_animation.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class ExploreCitiesCard extends StatelessWidget {
|
||||
final String name;
|
||||
final String description;
|
||||
@@ -45,15 +42,15 @@ class ExploreCitiesCard extends StatelessWidget {
|
||||
? CachedNetworkImage(
|
||||
imageUrl: imageUrl,
|
||||
fit: BoxFit.cover,
|
||||
|
||||
// 🔄 Skeleton Loader
|
||||
placeholder: (context, url) => SkeletonWidget(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
borderRadius: 0,
|
||||
placeholder: (context, url) => Container(
|
||||
color: Colors.grey.shade200,
|
||||
child: const Center(
|
||||
child: CircularProgressIndicator(
|
||||
color: Color(0xffF95F62),
|
||||
strokeWidth: 2,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// ❌ Error fallback
|
||||
errorWidget: (context, url, error) => Image.asset(
|
||||
'assets/images/city_sydney.png',
|
||||
fit: BoxFit.cover,
|
||||
@@ -137,7 +134,7 @@ class ExploreCitiesCard extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.individualTickets,
|
||||
"Individual tickets:",
|
||||
style: TextStyle(
|
||||
color: const Color(0xffFDCDCE),
|
||||
fontSize: 12.sp,
|
||||
@@ -158,7 +155,7 @@ class ExploreCitiesCard extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.cityCardLabel,
|
||||
"City Card:",
|
||||
style: TextStyle(
|
||||
color: const Color(0xffFDCDCE),
|
||||
fontSize: 12.sp,
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
import '../../core/route_constants.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class GetYourPassCard extends StatelessWidget {
|
||||
const GetYourPassCard({super.key});
|
||||
@@ -26,7 +25,7 @@ class GetYourPassCard extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.getYourCard,
|
||||
"Get Your Card",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -65,7 +64,7 @@ class GetYourPassCard extends StatelessWidget {
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.attractions,
|
||||
"Attractions",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 12.sp,
|
||||
color: Colors.black,
|
||||
@@ -78,7 +77,7 @@ class GetYourPassCard extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.fromLabel,
|
||||
"From",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 11.sp,
|
||||
color: Colors.black87,
|
||||
@@ -96,7 +95,7 @@ class GetYourPassCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.perAdult,
|
||||
text: " /Adult",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 12 .sp,
|
||||
color: Colors.black87,
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
import '../../core/route_constants.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class HotelOffersSection extends StatelessWidget {
|
||||
const HotelOffersSection({super.key});
|
||||
@@ -12,182 +11,171 @@ class HotelOffersSection extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
|
||||
padding: const EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
child: Stack(
|
||||
children: [
|
||||
// ===== BACKGROUND IMAGE =====
|
||||
Positioned.fill(
|
||||
child: Image.asset(
|
||||
"assets/images/hotel_offers_bg.jpg",
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
// ===== BLACK OVERLAY =====
|
||||
Positioned.fill(
|
||||
child: Container(
|
||||
color: Colors.black.withOpacity(0.42),
|
||||
),
|
||||
),
|
||||
// ===== CONTENT =====
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(14, 14, 14, 14),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
// ===== HEADER LINE =====
|
||||
RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.marriott,
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.moments,
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: ", ",
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.citycard,
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.prices,
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 10),
|
||||
|
||||
// ===== MAIN HEADING =====
|
||||
Text.rich(
|
||||
textAlign: TextAlign.center,
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.premium,
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.stays,
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Text(
|
||||
textAlign: TextAlign.center,
|
||||
AppLocalizations.of(context)!.citycardPrices,
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// ===== SUB CARD =====
|
||||
Container(
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.all(14),
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xFFF95F62),
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.claimHotelDiscountOffers,
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context, rootNavigator: true)
|
||||
.pushNamed(RouteConstants.hotelOffer);
|
||||
},
|
||||
child: Container(
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.white,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Image.asset(
|
||||
"assets/icons/arrow_angle_up.png",
|
||||
color: Color(0xFFF95F62),
|
||||
scale: 4,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
"Lorem ipsum dolor sit amet...",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white.withOpacity(0.85),
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Color(0xFFFFCA8E).withOpacity(0.24), // deep navy blue
|
||||
Color(0xFFDB00FF).withOpacity(0.24), // rich red tone
|
||||
Color(0xFFF95F62).withOpacity(0.24),
|
||||
],
|
||||
),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
// ===== HEADER LINE =====
|
||||
RichText(
|
||||
text: TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: "MARRIOTT ",
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: "MOMENTS",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.black,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: ", ",
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: "CITYCARD ",
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: "PRICES",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.black,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 10),
|
||||
|
||||
// ===== MAIN HEADING =====
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
// Stay Connected
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: "Premium ",
|
||||
style: GoogleFonts.poppins(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: "Stays",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.black,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Center(
|
||||
child: Text(
|
||||
"CityCard Prices",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.black,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// ===== SUB CARD =====
|
||||
Container(
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xFFF95F62),
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"Claim Hotel Discount offers\nwith CityCard",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
onTap: (){
|
||||
Navigator.of(context, rootNavigator: true)
|
||||
.pushNamed(RouteConstants.hotelOffer);
|
||||
},
|
||||
child: Container(
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.white,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Image.asset(
|
||||
"assets/icons/arrow_angle_up.png",
|
||||
color: Color(0xFFF95F62),
|
||||
scale: 4,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
"Lorem ipsum dolor sit amet...",
|
||||
style: GoogleFonts.poppins(
|
||||
color: Colors.white.withOpacity(0.85),
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class DreamJourneySection extends StatefulWidget {
|
||||
const DreamJourneySection({super.key});
|
||||
@@ -97,12 +96,12 @@ class _DreamJourneySectionState extends State<DreamJourneySection> {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.planYour,
|
||||
text: "Plan Your ",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 20, fontWeight: FontWeight.w600),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.dreamJourney,
|
||||
text: "Dream Journey",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -110,7 +109,7 @@ class _DreamJourneySectionState extends State<DreamJourneySection> {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.inJust3Seconds,
|
||||
text: "\nin Just 3 Seconds",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 20, fontWeight: FontWeight.w600),
|
||||
),
|
||||
|
||||
@@ -7,7 +7,6 @@ import 'package:google_fonts/google_fonts.dart';
|
||||
import '../../common_packages/common_app_texts.dart';
|
||||
import '../../core/route_constants.dart';
|
||||
import '../model/home_model.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class ChooseYourPassSection extends StatefulWidget {
|
||||
final List<CardModel> cards; // 👈 from API
|
||||
@@ -23,7 +22,7 @@ class ChooseYourPassSection extends StatefulWidget {
|
||||
|
||||
class _ChooseYourPassSectionState extends State<ChooseYourPassSection> {
|
||||
final PageController _pageController = PageController(
|
||||
viewportFraction: 0.80,
|
||||
viewportFraction: 0.92,
|
||||
);
|
||||
|
||||
int _currentPage = 0;
|
||||
@@ -53,7 +52,7 @@ class _ChooseYourPassSectionState extends State<ChooseYourPassSection> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.chooseYourCard,
|
||||
"Choose Your Card",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -61,7 +60,8 @@ class _ChooseYourPassSectionState extends State<ChooseYourPassSection> {
|
||||
),
|
||||
SizedBox(height: 8.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.diveIntoExtensiveSelection,
|
||||
"Dive into an extensive selection of thrilling destinations, "
|
||||
"thoughtfully categorized to help you find the perfect getaway.",
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 13.sp,
|
||||
color: Colors.grey[700],
|
||||
@@ -162,7 +162,7 @@ class _ChooseYourPassSectionState extends State<ChooseYourPassSection> {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.from,
|
||||
text: "From ",
|
||||
style: TextStyle(
|
||||
fontSize: 16.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
@@ -206,7 +206,7 @@ class _ChooseYourPassSectionState extends State<ChooseYourPassSection> {
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.getACard,
|
||||
"Get a Card",
|
||||
style: GoogleFonts.poppins(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.sp,
|
||||
|
||||
@@ -14,9 +14,7 @@ import '../../my_pass/blocs/myPasses/my_passes_event.dart';
|
||||
import '../../postcard/blocs/myPostCards/my_postcard_bloc.dart';
|
||||
import '../../postcard/blocs/myPostCards/my_postcard_event.dart';
|
||||
import '../../profile/bloc/profile/profile_bloc.dart';
|
||||
import '../../profile/bloc/profile/profile_bloc.dart';
|
||||
import '../../profile/bloc/profile/profile_event.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class CitySelectionBottomSheet extends StatelessWidget {
|
||||
const CitySelectionBottomSheet({super.key});
|
||||
@@ -80,14 +78,14 @@ class _CitySelectionView extends StatelessWidget {
|
||||
children: [
|
||||
const Icon(Icons.arrow_back, size: 18),
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(text: AppLocalizations.of(context)!.back, size: 12.sp),
|
||||
CustomText(text: "Back", size: 12.sp),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.selectACity,
|
||||
"Select a City",
|
||||
style: TextStyle(
|
||||
fontSize: 16.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -112,7 +110,7 @@ class _CitySelectionView extends StatelessWidget {
|
||||
}
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
hintText: AppLocalizations.of(context)!.searchCities,
|
||||
hintText: "Search Cities",
|
||||
hintStyle: TextStyle(
|
||||
fontSize: 14.sp,
|
||||
color: const Color(0xFF2B2B2B),
|
||||
@@ -167,7 +165,7 @@ class _CitySelectionView extends StatelessWidget {
|
||||
const Icon(Icons.error_outline, size: 48, color: Colors.red),
|
||||
SizedBox(height: 16.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.errorLoadingCities,
|
||||
'Error loading cities',
|
||||
style: TextStyle(
|
||||
fontSize: 16.sp,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -214,7 +212,7 @@ class _CitySelectionView extends StatelessWidget {
|
||||
color: Colors.grey[400]),
|
||||
SizedBox(height: 16.h),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.noCitiesFound,
|
||||
"No cities found",
|
||||
style: TextStyle(
|
||||
fontSize: 16.sp,
|
||||
color: Colors.grey[600],
|
||||
|
||||
@@ -2,14 +2,12 @@ import 'package:citycards_customer/common_packages/app_bar.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_filled_button.dart';
|
||||
import '../l10n/app_localizations.dart';
|
||||
|
||||
class HotelOfferView extends StatelessWidget {
|
||||
const HotelOfferView({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
body: SafeArea(
|
||||
@@ -20,11 +18,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
Container(
|
||||
color: Colors.white,
|
||||
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
child: CommonAppBar(
|
||||
isWhiteLogo: false,
|
||||
isProfilePage: false,
|
||||
showDivider: false,
|
||||
),
|
||||
child: CommonAppBar(isWhiteLogo: false, isProfilePage: false, showDivider: false),
|
||||
),
|
||||
// Banner Section
|
||||
Stack(
|
||||
@@ -59,7 +53,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
l10n.enjoy20OffMarriott,
|
||||
"Enjoy 20% Off Iconic\nMarriott Hotels -\nExclusively with CityCards",
|
||||
style: TextStyle(
|
||||
fontSize: 30.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -69,7 +63,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 21.h),
|
||||
Text(
|
||||
l10n.makeEveryStayUnforgettable,
|
||||
"Make every stay as unforgettable as the city you're exploring.",
|
||||
style: TextStyle(
|
||||
fontSize: 18.sp,
|
||||
color: Colors.white,
|
||||
@@ -81,7 +75,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
onTap: () {
|
||||
// Navigator.of(context).pushNamed(RouteConstants.uploadPhotoPage);
|
||||
},
|
||||
label: l10n.bookNow,
|
||||
label: "Book Now",
|
||||
showArrow: true,
|
||||
),
|
||||
],
|
||||
@@ -98,7 +92,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
l10n.yourCityCardsUnlocksMore,
|
||||
"Your CityCards unlocks more than just attractions — it also opens doors to exceptional stays.",
|
||||
style: TextStyle(
|
||||
fontSize: 21.sp,
|
||||
color: Color(0xFF1F2937),
|
||||
@@ -117,17 +111,22 @@ class HotelOfferView extends StatelessWidget {
|
||||
height: 1.6,
|
||||
),
|
||||
children: [
|
||||
TextSpan(text: l10n.thanksToOurExclusivePartnership),
|
||||
const TextSpan(
|
||||
text: "Thanks to our exclusive partnership with ",
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.marriottHotelsKeyword,
|
||||
text: "Marriott Hotels",
|
||||
style: TextStyle(color: const Color(0xFFF95F62)),
|
||||
),
|
||||
TextSpan(text: l10n.cityCardsHoldersEnjoy),
|
||||
const TextSpan(text: ", CityCards holders enjoy "),
|
||||
TextSpan(
|
||||
text: l10n.twentyPercentOffRates,
|
||||
text: "20% off best available rates",
|
||||
style: TextStyle(color: const Color(0xFFF95F62)),
|
||||
),
|
||||
TextSpan(text: l10n.acrossCuratedProperties),
|
||||
const TextSpan(
|
||||
text:
|
||||
" across a curated selection of properties in the city.",
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -151,9 +150,9 @@ class HotelOfferView extends StatelessWidget {
|
||||
fontSize: 26.25.sp,
|
||||
),
|
||||
children: [
|
||||
TextSpan(text: l10n.chooseFromAKeyword),
|
||||
const TextSpan(text: "Choose from a "),
|
||||
TextSpan(
|
||||
text: l10n.wideVarietyBreak,
|
||||
text: "Wide \nVariety",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -172,17 +171,20 @@ class HotelOfferView extends StatelessWidget {
|
||||
height: 1.5,
|
||||
),
|
||||
children: [
|
||||
TextSpan(text: l10n.chooseFromAWideVarietyDesc),
|
||||
const TextSpan(
|
||||
text:
|
||||
"Choose from a wide variety of Marriott hotels — from elegant urban hideaways and premium city-centre locations to luxurious five-star experiences — all designed to make your trip ",
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.effortlessComfortable,
|
||||
text: "effortless, comfortable",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(text: l10n.andMiddle),
|
||||
TextSpan(text: " and "),
|
||||
TextSpan(
|
||||
text: l10n.memorableKeyword,
|
||||
text: "memorable",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -200,7 +202,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: l10n.simplyUseYourCityCards,
|
||||
text: "Simply use your CityCards",
|
||||
style: TextStyle(
|
||||
fontSize: 26.25.sp,
|
||||
color: Color(0xFF1F2937),
|
||||
@@ -208,7 +210,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
),
|
||||
|
||||
TextSpan(
|
||||
text: l10n.bookingLinkTo,
|
||||
text: " booking link to:",
|
||||
style: TextStyle(
|
||||
fontSize: 26.25.sp,
|
||||
color: Color(0xFFF95F62),
|
||||
@@ -224,20 +226,20 @@ class HotelOfferView extends StatelessWidget {
|
||||
|
||||
_featureCard(
|
||||
icon: "assets/icons/discount_percent.png",
|
||||
title: l10n.access20OffRates,
|
||||
subtitle: l10n.saveOnYourStay,
|
||||
title: "Access 20% off best available rates",
|
||||
subtitle: "Save on your stay at premium Marriott properties",
|
||||
),
|
||||
SizedBox(height: 28.h),
|
||||
_featureCard(
|
||||
icon: "assets/icons/discount_clock.png",
|
||||
title: l10n.enjoyPriorityCheckIn,
|
||||
subtitle: l10n.subjectToAvailability,
|
||||
title: "Enjoy priority check-in and late checkout",
|
||||
subtitle: "Subject to availability for your convenience",
|
||||
),
|
||||
SizedBox(height: 28.h),
|
||||
_featureCard(
|
||||
icon: "assets/icons/discount_crown.png",
|
||||
title: l10n.receiveExclusiveSeasonalOffers,
|
||||
subtitle: l10n.designedSpeciallyForCityCards,
|
||||
title: "Receive exclusive seasonal offers",
|
||||
subtitle: "Designed specially for CityCards travellers",
|
||||
),
|
||||
|
||||
SizedBox(height: 56.h),
|
||||
@@ -246,18 +248,18 @@ class HotelOfferView extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 30.w),
|
||||
child: Text.rich(
|
||||
textAlign: TextAlign.center,
|
||||
textAlign : TextAlign.center,
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: l10n.itsJustOneMoreWay,
|
||||
text: "It's just one more way",
|
||||
style: TextStyle(
|
||||
fontSize: 21.sp,
|
||||
color: Color(0xFF1F2937),
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.cityCardsKeywordSpace,
|
||||
text: " CityCards",
|
||||
style: TextStyle(
|
||||
fontSize: 21.sp,
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -265,7 +267,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.makesExploring,
|
||||
text: " makes exploring",
|
||||
style: TextStyle(
|
||||
fontSize: 21.sp,
|
||||
fontWeight: FontWeight.w400,
|
||||
@@ -273,7 +275,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.smarterKeywordSpace,
|
||||
text: " smarter",
|
||||
style: TextStyle(
|
||||
fontSize: 21.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -289,7 +291,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.simplerKeyword,
|
||||
text: " simpler",
|
||||
style: TextStyle(
|
||||
fontSize: 21.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -305,7 +307,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: l10n.moreRewarding,
|
||||
text: " more rewarding",
|
||||
style: TextStyle(
|
||||
fontSize: 21.sp,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -329,7 +331,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
alignment: Alignment.center,
|
||||
child: CustomFilledButton(
|
||||
onTap: () {},
|
||||
label: l10n.getYourCityCardsToday,
|
||||
label: "Get your CityCards today",
|
||||
showArrow: true,
|
||||
height: 59.h,
|
||||
width: 291.w,
|
||||
@@ -361,6 +363,7 @@ class HotelOfferView extends StatelessWidget {
|
||||
children: [
|
||||
Image.asset(icon, scale: 4),
|
||||
SizedBox(height: 21.h),
|
||||
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
import 'package:citycards_customer/core/route_constants.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class ItineraryCreationStartPage extends StatelessWidget {
|
||||
const ItineraryCreationStartPage({super.key});
|
||||
@@ -34,7 +33,7 @@ class ItineraryCreationStartPage extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.createYourLabel,
|
||||
text: "Create your",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF101828),
|
||||
fontSize: 22.sp,
|
||||
@@ -42,7 +41,7 @@ class ItineraryCreationStartPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.magicItinerarySubtitle,
|
||||
text: " magic itinerary",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFFF95F62),
|
||||
fontSize: 22.sp,
|
||||
@@ -65,7 +64,7 @@ class ItineraryCreationStartPage extends StatelessWidget {
|
||||
|
||||
/// Description
|
||||
Text(
|
||||
AppLocalizations.of(context)!.itineraryCreationStartDescription,
|
||||
"Hey there! Just answer a couple of fun questions, and we’ll whip up a travel experience that’s totally tailored to you! ✈️✨",
|
||||
style: TextStyle(
|
||||
fontSize: 14.sp,
|
||||
color: const Color(0xFF4A5565),
|
||||
@@ -83,14 +82,14 @@ class ItineraryCreationStartPage extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
showArrow: true,
|
||||
label: AppLocalizations.of(context)!.letsExploreTogether,
|
||||
label: "Let’s explore together!",
|
||||
),
|
||||
|
||||
SizedBox(height: 10.h),
|
||||
|
||||
/// Footer Text
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.takesOnlyTwoMinutes,
|
||||
text: "Takes only 2 minutes ⏱️",
|
||||
color: const Color(0xFF6A7282),
|
||||
size: 14.sp,
|
||||
),
|
||||
|
||||
@@ -6,7 +6,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import '../../../../l10n/app_localizations.dart';
|
||||
|
||||
class DateSelectionView extends StatelessWidget {
|
||||
const DateSelectionView({super.key});
|
||||
@@ -18,7 +17,7 @@ class DateSelectionView extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.whenAreYouPlanningToVisitLabel,
|
||||
"Hey there! When are you planning to visit?",
|
||||
style: TextStyle(
|
||||
color: Color(0xFF101828),
|
||||
fontSize: 24.sp,
|
||||
@@ -52,7 +51,7 @@ class DateSelectionView extends StatelessWidget {
|
||||
builder: (context, state) {
|
||||
return CustomText(
|
||||
// Show the human-readable display date
|
||||
text: state.selectedDisplayDate ?? AppLocalizations.of(context)!.selectADateLabel,
|
||||
text: state.selectedDisplayDate ?? "Select a date",
|
||||
size: 14.sp,
|
||||
color: Color(0xFF101828),
|
||||
);
|
||||
@@ -80,7 +79,7 @@ class DateSelectionView extends StatelessWidget {
|
||||
ItineraryStepNavigationNextEvent(),
|
||||
);
|
||||
},
|
||||
label: AppLocalizations.of(context)!.continueTitle,
|
||||
label: "Continue",
|
||||
showArrow: true,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -4,14 +4,20 @@ import 'package:citycards_customer/itinerary_creation/bloc/itinerary_steps_selec
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../../../l10n/app_localizations.dart';
|
||||
|
||||
class DietarySelectionView extends StatelessWidget {
|
||||
const DietarySelectionView({super.key});
|
||||
|
||||
static const Color _accentColor = Color(0xFFF95F62);
|
||||
|
||||
// Options generated dynamically
|
||||
final List<Map<String, String>> options = const [
|
||||
{"icon": "assets/icons/no_restrictions_food.png", "name": "No Restrictions", "value": "no-restriction"},
|
||||
{"icon": "assets/icons/veg.png", "name": "Vegetarian", "value": "veg"},
|
||||
{"icon": "assets/icons/vegan.png", "name": "Vegan", "value": "vegan"},
|
||||
{"icon": "assets/icons/pesc.png", "name": "Pescatarian", "value": "pescatarian"},
|
||||
{"icon": "assets/icons/halal.png", "name": "Halal", "value": "halal"},
|
||||
{"icon": "assets/icons/kosher.png", "name": "Kosher", "value": "kosher"},
|
||||
];
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +27,7 @@ class DietarySelectionView extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.doYouFollowDietaryPreferenceLabel,
|
||||
"Do you follow any dietary preference?",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF101828),
|
||||
fontSize: 20.sp,
|
||||
@@ -40,16 +46,8 @@ class DietarySelectionView extends StatelessWidget {
|
||||
crossAxisCount: 2,
|
||||
childAspectRatio: 1.4,
|
||||
),
|
||||
itemCount: 6,
|
||||
itemCount: options.length,
|
||||
itemBuilder: (context, index) {
|
||||
final options = [
|
||||
{"icon": "assets/icons/no_restrictions_food.png", "name": AppLocalizations.of(context)!.noRestrictionsLabel, "value": "no-restriction"},
|
||||
{"icon": "assets/icons/veg.png", "name": AppLocalizations.of(context)!.vegetarianLabel, "value": "veg"},
|
||||
{"icon": "assets/icons/vegan.png", "name": AppLocalizations.of(context)!.veganLabel, "value": "vegan"},
|
||||
{"icon": "assets/icons/pesc.png", "name": AppLocalizations.of(context)!.pescatarianLabel, "value": "pescatarian"},
|
||||
{"icon": "assets/icons/halal.png", "name": AppLocalizations.of(context)!.halalLabel, "value": "halal"},
|
||||
{"icon": "assets/icons/kosher.png", "name": AppLocalizations.of(context)!.kosherLabel, "value": "kosher"},
|
||||
];
|
||||
final item = options[index];
|
||||
final isSelected = state.selectedDietary == item['value'];
|
||||
|
||||
|
||||
@@ -4,14 +4,18 @@ import 'package:citycards_customer/itinerary_creation/bloc/itinerary_steps_selec
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../../../l10n/app_localizations.dart';
|
||||
|
||||
class EnergySelectionView extends StatelessWidget {
|
||||
const EnergySelectionView({super.key});
|
||||
|
||||
static const Color _accentColor = Color(0xFFF95F62);
|
||||
|
||||
// Options resolved dynamically
|
||||
final List<Map<String, String>> options = const [
|
||||
{"img": "assets/icons/relaxed.png", "name": "Relaxed & Chill", "value": "relaxed"},
|
||||
{"img": "assets/icons/balanced.png", "name": "Balanced Mix", "value": "balanced"},
|
||||
{"img": "assets/icons/active.png", "name": "Active & Energetic", "value": "active"},
|
||||
{"img": "assets/icons/adventure.png", "name": "Full Adventure!", "value": "adventure"},
|
||||
];
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -22,7 +26,7 @@ class EnergySelectionView extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.whatKindOfEnergyLabel,
|
||||
"What kind of energy are you after on this trip?",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF101828),
|
||||
fontSize: 24.sp,
|
||||
@@ -37,13 +41,7 @@ class EnergySelectionView extends StatelessWidget {
|
||||
crossAxisSpacing: 12.w,
|
||||
mainAxisSpacing: 12.h,
|
||||
childAspectRatio: 1.3,
|
||||
children: List.generate(4, (index) {
|
||||
final options = [
|
||||
{"img": "assets/icons/relaxed.png", "name": AppLocalizations.of(context)!.relaxedAndChillLabel, "value": "relaxed"},
|
||||
{"img": "assets/icons/balanced.png", "name": AppLocalizations.of(context)!.balancedMixLabel, "value": "balanced"},
|
||||
{"img": "assets/icons/active.png", "name": AppLocalizations.of(context)!.activeAndEnergeticLabel, "value": "active"},
|
||||
{"img": "assets/icons/adventure.png", "name": AppLocalizations.of(context)!.fullAdventureLabel, "value": "adventure"},
|
||||
];
|
||||
children: List.generate(options.length, (index) {
|
||||
final item = options[index];
|
||||
final isSelected = state.selectedEnergy == item['value'];
|
||||
|
||||
|
||||
@@ -1,435 +1,260 @@
|
||||
import 'dart:async';
|
||||
import 'package:citycards_customer/itinerary_creation/bloc/itinerary_detail_bloc.dart';
|
||||
import 'package:citycards_customer/itinerary_creation/bloc/itinerary_steps_selection_bloc.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_filled_button.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
import '../../../core/route_constants.dart';
|
||||
import '../../bloc/createItinerary/create_itinerary_bloc.dart';
|
||||
import '../../../../l10n/app_localizations.dart';
|
||||
import 'package:citycards_customer/itinerary_creation/bloc/itinerary_detail_bloc.dart';
|
||||
import 'package:citycards_customer/itinerary_creation/bloc/itinerary_steps_selection_bloc.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_filled_button.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
import '../../../core/route_constants.dart';
|
||||
import '../../bloc/createItinerary/create_itinerary_bloc.dart';
|
||||
|
||||
final _kProgressSteps = [0.25, 0.50, 0.75, 0.90];
|
||||
class ItineraryCompletionView extends StatefulWidget {
|
||||
const ItineraryCompletionView({super.key});
|
||||
|
||||
class ItineraryCompletionView extends StatefulWidget {
|
||||
const ItineraryCompletionView({super.key});
|
||||
@override
|
||||
State<ItineraryCompletionView> createState() => _ItineraryCompletionViewState();
|
||||
}
|
||||
|
||||
@override
|
||||
State<ItineraryCompletionView> createState() => _ItineraryCompletionViewState();
|
||||
class _ItineraryCompletionViewState extends State<ItineraryCompletionView>
|
||||
with SingleTickerProviderStateMixin {
|
||||
late AnimationController _fadeController;
|
||||
late Animation<double> _fadeAnimation;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_fadeController = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(milliseconds: 700),
|
||||
);
|
||||
_fadeAnimation = CurvedAnimation(
|
||||
parent: _fadeController,
|
||||
curve: Curves.easeIn,
|
||||
);
|
||||
}
|
||||
|
||||
class _ItineraryCompletionViewState extends State<ItineraryCompletionView>
|
||||
with TickerProviderStateMixin {
|
||||
// Fade controller (content ↔ loading overlay)
|
||||
late AnimationController _fadeController;
|
||||
late Animation<double> _fadeAnimation;
|
||||
@override
|
||||
void dispose() {
|
||||
_fadeController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
// Progress bar smooth animation
|
||||
late AnimationController _barController;
|
||||
late Animation<double> _barAnimation;
|
||||
|
||||
int _stepIndex = 0;
|
||||
Timer? _stepTimer;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
||||
_fadeController = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(milliseconds: 700),
|
||||
);
|
||||
_fadeAnimation = CurvedAnimation(
|
||||
parent: _fadeController,
|
||||
curve: Curves.easeIn,
|
||||
);
|
||||
|
||||
_barController = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(milliseconds: 600),
|
||||
);
|
||||
_barAnimation = Tween<double>(begin: 0.0, end: 0.0).animate(
|
||||
CurvedAnimation(parent: _barController, curve: Curves.easeInOut),
|
||||
);
|
||||
void _triggerLoadingFade(bool isLoading) {
|
||||
if (isLoading) {
|
||||
_fadeController.forward();
|
||||
} else {
|
||||
_fadeController.reverse();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_fadeController.dispose();
|
||||
_barController.dispose();
|
||||
_stepTimer?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _animateBarTo(double target) {
|
||||
final from = _barAnimation.value;
|
||||
_barAnimation = Tween<double>(begin: from, end: target).animate(
|
||||
CurvedAnimation(parent: _barController, curve: Curves.easeInOut),
|
||||
);
|
||||
_barController.forward(from: 0.0);
|
||||
}
|
||||
|
||||
void _startSteps() {
|
||||
_stepIndex = 0;
|
||||
_animateBarTo(_kProgressSteps[0]);
|
||||
|
||||
_stepTimer = Timer.periodic(const Duration(seconds: 3), (timer) {
|
||||
if (!mounted) {
|
||||
timer.cancel();
|
||||
return;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocListener<CreateItineraryBloc, CreateItineraryState>(
|
||||
listener: (context, state) {
|
||||
if (state is CreateItinerarySuccess) {
|
||||
Navigator.of(
|
||||
context,
|
||||
).pushReplacementNamed(RouteConstants.yourItinerary, arguments: state.data['id']);
|
||||
} else if (state is CreateItineraryFailure) {
|
||||
_fadeController.reverse();
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(state.errorMessage),
|
||||
backgroundColor: Colors.red,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (_stepIndex < _kProgressSteps.length - 1) {
|
||||
setState(() => _stepIndex++);
|
||||
_animateBarTo(_kProgressSteps[_stepIndex]);
|
||||
} else {
|
||||
// Stuck at 90% — waiting for API response
|
||||
timer.cancel();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
backgroundColor: const Color(0xFFFFF5F5),
|
||||
body: BlocBuilder<CreateItineraryBloc, CreateItineraryState>(
|
||||
builder: (context, createState) {
|
||||
final isLoading = createState is CreateItineraryLoading;
|
||||
|
||||
void _resetSteps() {
|
||||
_stepTimer?.cancel();
|
||||
setState(() => _stepIndex = 0);
|
||||
_animateBarTo(0.0);
|
||||
}
|
||||
|
||||
void _completeAndNavigate(VoidCallback onDone) {
|
||||
_stepTimer?.cancel();
|
||||
_animateBarTo(1.0);
|
||||
Future.delayed(const Duration(milliseconds: 650), onDone);
|
||||
}
|
||||
|
||||
void _triggerLoadingFade(bool isLoading) {
|
||||
if (isLoading) {
|
||||
_fadeController.forward();
|
||||
_startSteps();
|
||||
} else {
|
||||
_fadeController.reverse();
|
||||
_resetSteps();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocListener<CreateItineraryBloc, CreateItineraryState>(
|
||||
listener: (context, state) {
|
||||
// ✅ START loading (ONLY once)
|
||||
if (state is CreateItineraryLoading) {
|
||||
_triggerLoadingFade(true);
|
||||
}
|
||||
|
||||
// ✅ SUCCESS
|
||||
else if (state is CreateItinerarySuccess) {
|
||||
_completeAndNavigate(() {
|
||||
Navigator.of(context).pushReplacementNamed(
|
||||
RouteConstants.yourItinerary,
|
||||
arguments: state.data['id'],
|
||||
);
|
||||
// Trigger fade animation based on loading state
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_triggerLoadingFade(isLoading);
|
||||
});
|
||||
}
|
||||
|
||||
// ❌ FAILURE
|
||||
else if (state is CreateItineraryFailure) {
|
||||
_triggerLoadingFade(false);
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(state.errorMessage),
|
||||
backgroundColor: Colors.red,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// 🔄 fallback safety
|
||||
else {
|
||||
_triggerLoadingFade(false);
|
||||
}
|
||||
},
|
||||
|
||||
child: Scaffold(
|
||||
backgroundColor: const Color(0xFFFFF5F5),
|
||||
|
||||
body: BlocBuilder<CreateItineraryBloc, CreateItineraryState>(
|
||||
builder: (context, createState) {
|
||||
final isLoading = createState is CreateItineraryLoading;
|
||||
|
||||
// ❌ REMOVE THIS (VERY IMPORTANT)
|
||||
// WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
// _triggerLoadingFade(isLoading);
|
||||
// });
|
||||
|
||||
return Stack(
|
||||
children: [
|
||||
// ── Normal content ─────────────────────────
|
||||
FadeTransition(
|
||||
opacity: Tween<double>(begin: 1.0, end: 0.0)
|
||||
.animate(_fadeAnimation),
|
||||
child: IgnorePointer(
|
||||
ignoring: isLoading,
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
SizedBox(height: 120.h),
|
||||
Column(
|
||||
children: [
|
||||
SizedBox(height: 26.h),
|
||||
|
||||
/// Title
|
||||
RichText(
|
||||
return Stack(
|
||||
children: [
|
||||
// Normal content — fades out when loading
|
||||
FadeTransition(
|
||||
opacity: Tween<double>(begin: 1.0, end: 0.0).animate(_fadeAnimation),
|
||||
child: IgnorePointer(
|
||||
ignoring: isLoading,
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
SizedBox(height: 120.h),
|
||||
Column(
|
||||
children: [
|
||||
SizedBox(height: 26.h),
|
||||
RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
style: GoogleFonts.poppins(fontSize: 20.sp),
|
||||
children: const [
|
||||
TextSpan(
|
||||
text: 'Your ',
|
||||
style: TextStyle(color: Color(0xFF787A86)),
|
||||
),
|
||||
TextSpan(
|
||||
text: 'Magic Itinerary',
|
||||
style: TextStyle(
|
||||
color: Color(0xFFE8645A),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: ' is ',
|
||||
style: TextStyle(color: Color(0xFF787A86)),
|
||||
),
|
||||
TextSpan(
|
||||
text: 'Ready ',
|
||||
style: TextStyle(
|
||||
color: Color(0xFFE8645A),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: '✨',
|
||||
style: TextStyle(color: Color(0xFFF5A623)),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
SizedBox(height: 4.h),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
||||
child: const Text(
|
||||
"We've got everything we need to plan your perfect trip",
|
||||
style: TextStyle(color: Color(0xFF6A7282), fontSize: 14),
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
style: GoogleFonts.poppins(fontSize: 20.sp),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.yourLabel,
|
||||
style: const TextStyle(color: Color(0xFF787A86)),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.magicItineraryLabel,
|
||||
style: const TextStyle(
|
||||
color: Color(0xFFE8645A),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 32.h),
|
||||
OutlinedButton(
|
||||
style: OutlinedButton.styleFrom(
|
||||
side: const BorderSide(
|
||||
color: Color(0xFFE5E7EB),
|
||||
width: 1.1,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
),
|
||||
minimumSize: Size(double.infinity, 42.h),
|
||||
),
|
||||
onPressed: () {
|
||||
context
|
||||
.read<ItineraryStepNavigationBloc>()
|
||||
.add(ItineraryStepStartOver());
|
||||
},
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image.asset(
|
||||
"assets/icons/refresh.png",
|
||||
height: 18,
|
||||
width: 18,
|
||||
color: const Color(0xFF364153),
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
CustomText(
|
||||
text: "Start Over",
|
||||
size: 16.sp,
|
||||
color: const Color(0xFF364153),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
SizedBox(height: 12.h),
|
||||
BlocBuilder<AddItineraryDetailBloc, ItineraryDetailState>(
|
||||
builder: (context, detailState) {
|
||||
return CustomFilledButton(
|
||||
width: double.infinity,
|
||||
label: "Get My Trip Plan",
|
||||
showArrow: true,
|
||||
onTap: () {
|
||||
context.read<CreateItineraryBloc>().add(
|
||||
CreateItinerarySubmitted(
|
||||
startDate: detailState.selectedApiDate ?? "",
|
||||
tripEnergy: detailState.selectedEnergy ?? "",
|
||||
travelingWithKids:
|
||||
(detailState.withKid ?? "").toLowerCase() == "yes",
|
||||
dietaryPreferences: detailState.selectedDietary != null
|
||||
? [detailState.selectedDietary!]
|
||||
: [],
|
||||
preferences: {
|
||||
if (detailState.museumRating != null)
|
||||
"artAndMuseums":
|
||||
int.tryParse(detailState.museumRating!) ?? 0,
|
||||
},
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.isLabel,
|
||||
style: const TextStyle(color: Color(0xFF787A86)),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.readyLabel,
|
||||
style: const TextStyle(
|
||||
color: Color(0xFFE8645A),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
const TextSpan(
|
||||
text: '✨',
|
||||
style: TextStyle(color: Color(0xFFF5A623)),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 32.h),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Loading overlay — fades in when loading
|
||||
FadeTransition(
|
||||
opacity: _fadeAnimation,
|
||||
child: IgnorePointer(
|
||||
ignoring: !isLoading,
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Lottie.asset(
|
||||
'assets/intro/itinerary_creating.json',
|
||||
width: 260.w,
|
||||
height: 260.w,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
SizedBox(height: 24.h),
|
||||
RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
style: GoogleFonts.poppins(fontSize: 24.sp),
|
||||
children: const [
|
||||
TextSpan(
|
||||
text: 'Creating\n',
|
||||
style: TextStyle(
|
||||
color: Color(0xFF364153),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 4.h),
|
||||
|
||||
/// Subtitle
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.weHaveGotEverythingWeNeed,
|
||||
style: TextStyle(
|
||||
color: Color(0xFF6A7282),
|
||||
fontSize: 14,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
TextSpan(
|
||||
text: 'Your Itinerary',
|
||||
style: TextStyle(
|
||||
color: Color(0xFFE8645A),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 32.h),
|
||||
|
||||
/// Start Over
|
||||
OutlinedButton(
|
||||
style: OutlinedButton.styleFrom(
|
||||
side: const BorderSide(
|
||||
color: Color(0xFFE5E7EB),
|
||||
width: 1.1,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
),
|
||||
minimumSize: Size(double.infinity, 42.h),
|
||||
),
|
||||
onPressed: () {
|
||||
context
|
||||
.read<ItineraryStepNavigationBloc>()
|
||||
.add(ItineraryStepStartOver());
|
||||
},
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image.asset(
|
||||
"assets/icons/refresh.png",
|
||||
height: 18,
|
||||
width: 18,
|
||||
color: const Color(0xFF364153),
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.startOverLabel,
|
||||
size: 16.sp,
|
||||
color: const Color(0xFF364153),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 12.h),
|
||||
|
||||
/// Button
|
||||
BlocBuilder<AddItineraryDetailBloc, ItineraryDetailState>(
|
||||
builder: (context, detailState) {
|
||||
return CustomFilledButton(
|
||||
width: double.infinity,
|
||||
label: AppLocalizations.of(context)!.getMyTripPlan,
|
||||
showArrow: true,
|
||||
onTap: () {
|
||||
context.read<CreateItineraryBloc>().add(
|
||||
CreateItinerarySubmitted(
|
||||
startDate:
|
||||
detailState.selectedApiDate ?? "",
|
||||
tripEnergy:
|
||||
detailState.selectedEnergy ?? "",
|
||||
travelingWithKids:
|
||||
(detailState.withKid ?? "")
|
||||
.toLowerCase() ==
|
||||
"yes",
|
||||
dietaryPreferences:
|
||||
detailState.selectedDietary != null
|
||||
? [detailState.selectedDietary!]
|
||||
: [],
|
||||
preferences: {
|
||||
if (detailState.museumRating != null)
|
||||
"artAndMuseums": int.tryParse(
|
||||
detailState.museumRating!) ??
|
||||
0,
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 32.h),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// ── Loading overlay ─────────────────────────
|
||||
FadeTransition(
|
||||
opacity: _fadeAnimation,
|
||||
child: IgnorePointer(
|
||||
ignoring: !isLoading,
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Lottie.asset(
|
||||
'assets/intro/itinerary_creating.json',
|
||||
width: 260.w,
|
||||
height: 260.w,
|
||||
),
|
||||
|
||||
SizedBox(height: 24.h),
|
||||
|
||||
/// Title
|
||||
RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
style: GoogleFonts.poppins(fontSize: 24.sp),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.creatingLabel,
|
||||
style: TextStyle(
|
||||
color: Color(0xFF364153),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)!.yourItineraryLabel,
|
||||
style: TextStyle(
|
||||
color: Color(0xFFE8645A),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 28.h),
|
||||
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 40.w),
|
||||
child: Column(
|
||||
children: [
|
||||
/// Step Text
|
||||
AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 400),
|
||||
child: Text(
|
||||
[
|
||||
AppLocalizations.of(context)!.gatheringPreferencesLabel,
|
||||
AppLocalizations.of(context)!.findingBestSpotsLabel,
|
||||
AppLocalizations.of(context)!.buildingScheduleLabel,
|
||||
AppLocalizations.of(context)!.almostThereLabel,
|
||||
][_stepIndex],
|
||||
key: ValueKey(_stepIndex),
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 13.sp,
|
||||
color: const Color(0xFF787A86),
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 12.h),
|
||||
|
||||
/// Progress bar
|
||||
AnimatedBuilder(
|
||||
animation: _barAnimation,
|
||||
builder: (_, __) {
|
||||
return ClipRRect(
|
||||
borderRadius: BorderRadius.circular(100),
|
||||
child: LinearProgressIndicator(
|
||||
value: _barAnimation.value,
|
||||
minHeight: 8.h,
|
||||
backgroundColor:
|
||||
const Color(0xFFE5E7EB),
|
||||
valueColor:
|
||||
const AlwaysStoppedAnimation<Color>(
|
||||
Color(0xFFE8645A),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
SizedBox(height: 10.h),
|
||||
|
||||
/// Percentage
|
||||
AnimatedBuilder(
|
||||
animation: _barAnimation,
|
||||
builder: (_, __) {
|
||||
final percent =
|
||||
(_barAnimation.value * 100).toInt();
|
||||
return Text(
|
||||
'$percent%',
|
||||
style: GoogleFonts.poppins(
|
||||
fontSize: 13.sp,
|
||||
color: const Color(0xFF787A86),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,16 @@ import 'package:citycards_customer/itinerary_creation/bloc/itinerary_steps_selec
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../../../l10n/app_localizations.dart';
|
||||
|
||||
class KidsSelectionView extends StatelessWidget {
|
||||
const KidsSelectionView({super.key});
|
||||
|
||||
static const Color _accentColor = Color(0xFFF95F62);
|
||||
|
||||
// We will build options dynamically based on context
|
||||
final List<Map<String, String>> options = const [
|
||||
{"img": "assets/icons/traveling_with_kids.png", "option": "Traveling with\n kids", "value": "with_kids"},
|
||||
{"img": "assets/icons/no_kids.png", "option": "No kids with\n me", "value": "no_kids"},
|
||||
];
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -22,7 +24,7 @@ class KidsSelectionView extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.areYouTravellingWithKidsLabel,
|
||||
"Are you travelling with kids?",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF101828),
|
||||
fontSize: 24.sp,
|
||||
@@ -31,11 +33,7 @@ class KidsSelectionView extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 32.h),
|
||||
Row(
|
||||
children: List.generate(2, (index) {
|
||||
final options = [
|
||||
{"img": "assets/icons/traveling_with_kids.png", "option": AppLocalizations.of(context)!.travelingWithKidsLabel, "value": "with_kids"},
|
||||
{"img": "assets/icons/no_kids.png", "option": AppLocalizations.of(context)!.noKidsWithMeLabel, "value": "no_kids"},
|
||||
];
|
||||
children: List.generate(options.length, (index) {
|
||||
final item = options[index];
|
||||
final isSelected = state.withKid == item['value'];
|
||||
|
||||
|
||||
@@ -4,14 +4,18 @@ import 'package:citycards_customer/itinerary_creation/bloc/itinerary_steps_selec
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../../../l10n/app_localizations.dart';
|
||||
|
||||
class ArtGallerySelectionView extends StatelessWidget {
|
||||
const ArtGallerySelectionView({super.key});
|
||||
|
||||
static const Color _accentColor = Color(0xFFF95F62);
|
||||
|
||||
// Resolving options dynamically
|
||||
final List<Map<String, String>> options = const [
|
||||
{"img": "assets/icons/not_interested.png", "name": "Not Interested", "star": "⭐"},
|
||||
{"img": "assets/icons/maybe.png", "name": "Maybe One or Two", "star": "⭐⭐"},
|
||||
{"img": "assets/icons/sounds_good.png", "name": "Yes, Sounds Good!", "star": "⭐⭐⭐"},
|
||||
{"img": "assets/icons/love_them.png", "name": "Absolutely Love Them!", "star": "⭐⭐⭐⭐"},
|
||||
];
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -22,7 +26,7 @@ class ArtGallerySelectionView extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.doYouEnjoyMuseumsLabel,
|
||||
"Do you enjoy visiting museums and art galleries?",
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF101828),
|
||||
fontSize: 24.sp,
|
||||
@@ -37,13 +41,7 @@ class ArtGallerySelectionView extends StatelessWidget {
|
||||
crossAxisSpacing: 12.w,
|
||||
mainAxisSpacing: 12.h,
|
||||
childAspectRatio: 1.3,
|
||||
children: List.generate(4, (index) {
|
||||
final options = [
|
||||
{"img": "assets/icons/not_interested.png", "name": AppLocalizations.of(context)!.notInterestedLabel, "star": "⭐"},
|
||||
{"img": "assets/icons/maybe.png", "name": AppLocalizations.of(context)!.maybeOneOrTwoLabel, "star": "⭐⭐"},
|
||||
{"img": "assets/icons/sounds_good.png", "name": AppLocalizations.of(context)!.yesSoundsGoodLabel, "star": "⭐⭐⭐"},
|
||||
{"img": "assets/icons/love_them.png", "name": AppLocalizations.of(context)!.absolutelyLoveThemLabel, "star": "⭐⭐⭐⭐"},
|
||||
];
|
||||
children: List.generate(options.length, (index) {
|
||||
final item = options[index];
|
||||
final isSelected = state.museumRating == item['star'];
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ import 'itinerary_creation_steps/kids_selection_view.dart';
|
||||
import 'itinerary_creation_steps/scenic_viewpoints_rating_view.dart';
|
||||
import 'itinerary_creation_steps/shopping_rating_view.dart';
|
||||
import 'itinerary_creation_steps/wildlife_rating_view.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class ItineraryCreationPage extends StatefulWidget {
|
||||
const ItineraryCreationPage({super.key});
|
||||
@@ -59,7 +58,7 @@ class _ItineraryCreationPageState extends State<ItineraryCreationPage> {
|
||||
Icon(Icons.arrow_back, color: Colors.black87),
|
||||
SizedBox(width: 4.w),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.backTitle,
|
||||
"Back",
|
||||
style: TextStyle(
|
||||
color: Colors.black87,
|
||||
fontSize: 14.sp,
|
||||
@@ -159,7 +158,7 @@ class _ItineraryCreationPageState extends State<ItineraryCreationPage> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
AppLocalizations.of(context)!.magicItineraryTitle,
|
||||
"Magic Itinerary ✨",
|
||||
style: TextStyle(
|
||||
color: Color(0xFFF95F62),
|
||||
fontSize: 24.sp,
|
||||
@@ -213,12 +212,12 @@ class _ItineraryCreationPageState extends State<ItineraryCreationPage> {
|
||||
fontSize: 14.sp,
|
||||
),
|
||||
children: [
|
||||
TextSpan(text: AppLocalizations.of(context)!.stepPrefix),
|
||||
TextSpan(text: "Step "),
|
||||
TextSpan(
|
||||
text: "${state.selectedIndex}",
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
TextSpan(text: AppLocalizations.of(context)!.ofSuffix),
|
||||
TextSpan(text: " of "),
|
||||
TextSpan(
|
||||
text: "5",
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
|
||||
@@ -40,13 +40,12 @@ class MagicItineraryEmptyView extends StatelessWidget {
|
||||
CustomFilledButton(onTap: (){
|
||||
Navigator.push(
|
||||
context,
|
||||
|
||||
MaterialPageRoute(
|
||||
builder: (context) => ItineraryCreationStartPage(),
|
||||
),
|
||||
);
|
||||
},
|
||||
label: "Create My Magic Itinerary", showArrow: true,)
|
||||
label: "Create My Itinerary", showArrow: true,)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -12,7 +12,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import '../../common_bloc/bottom_navigation_bloc.dart';
|
||||
import '../../login/view/login_email_bottomsheet.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
|
||||
class MagicItineraryView extends StatefulWidget {
|
||||
const MagicItineraryView({super.key});
|
||||
@@ -84,13 +83,13 @@ class _MagicItineraryViewState extends State<MagicItineraryView> {
|
||||
child: Column(
|
||||
children: [
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.planYourNextAdventure,
|
||||
text: "Plan your next adventure",
|
||||
color: Color(0xFF656565),
|
||||
size: 14.sp,
|
||||
),
|
||||
SizedBox(height: 16.h),
|
||||
CustomFilledButton(
|
||||
label: AppLocalizations.of(context)!.createMyMagicItinerary,
|
||||
label: "Create My Itinerary",
|
||||
showArrow: true,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
@@ -161,7 +160,7 @@ class NotLoggedInItineraryView extends StatelessWidget {
|
||||
SizedBox(height: 32.h),
|
||||
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.notLoggedInYet,
|
||||
text: "You have not Logged in Yet! ☹️",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w600,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -172,7 +171,7 @@ class NotLoggedInItineraryView extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 24.w),
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.loginOrPurchasePass,
|
||||
text: "Log in or purchase a pass to unlock the magic itinerary!",
|
||||
size: 14.sp,
|
||||
color: Color(0xFF656565),
|
||||
textAlign: TextAlign.center,
|
||||
@@ -193,7 +192,7 @@ class NotLoggedInItineraryView extends StatelessWidget {
|
||||
builder: (_) => const LoginEmailBottomsheet(),
|
||||
);
|
||||
},
|
||||
label: AppLocalizations.of(context)!.logInLabel,
|
||||
label: "Log In",
|
||||
showArrow: true,
|
||||
),
|
||||
],
|
||||
@@ -220,7 +219,7 @@ class RequiresUnlimitedPassView extends StatelessWidget {
|
||||
SizedBox(height: 32.h),
|
||||
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.noUnlimitedPass,
|
||||
text: "You do not possess an Unlimited Pass! 😔",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w600,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -231,7 +230,7 @@ class RequiresUnlimitedPassView extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 24.w),
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.getUnlimitedPass,
|
||||
text: "Get your Unlimited Pass and create a custom itinerary!",
|
||||
size: 14.sp,
|
||||
color: Color(0xFF656565),
|
||||
textAlign: TextAlign.center,
|
||||
@@ -244,7 +243,7 @@ class RequiresUnlimitedPassView extends StatelessWidget {
|
||||
onTap: () {
|
||||
context.read<NavigationBloc>().add(NavigationTabChanged(0));
|
||||
},
|
||||
label: AppLocalizations.of(context)!.buyUnlimitedCityCard,
|
||||
label: "Buy Unlimited CityCard",
|
||||
showArrow: true,
|
||||
),
|
||||
],
|
||||
@@ -276,7 +275,7 @@ class NoItineraryView extends StatelessWidget {
|
||||
|
||||
/// Title
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.noItineraryYet,
|
||||
text: "You Don’t have an Itinerary Yet! 😟",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w600,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -286,7 +285,8 @@ class NoItineraryView extends StatelessWidget {
|
||||
|
||||
/// Subtitle
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.createPersonalizedItinerary,
|
||||
text:
|
||||
"Create your own personalized magic itinerary that suites your travel needs",
|
||||
size: 14.sp,
|
||||
color: const Color(0xFF656565),
|
||||
textAlign: TextAlign.center,
|
||||
@@ -304,7 +304,7 @@ class NoItineraryView extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
},
|
||||
label: AppLocalizations.of(context)!.createMyMagicItinerary,
|
||||
label: "Create My Itinerary",
|
||||
showArrow: true,
|
||||
),
|
||||
|
||||
@@ -340,7 +340,7 @@ class ErrorItineraryView extends StatelessWidget {
|
||||
SizedBox(height: 32.h),
|
||||
|
||||
CustomText(
|
||||
text: AppLocalizations.of(context)!.oopsSomethingWentWrong,
|
||||
text: "Oops! Something went wrong",
|
||||
size: 18.sp,
|
||||
weight: FontWeight.w600,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -362,7 +362,7 @@ class ErrorItineraryView extends StatelessWidget {
|
||||
|
||||
CustomFilledButton(
|
||||
onTap: onRetry,
|
||||
label: AppLocalizations.of(context)!.tryAgain,
|
||||
label: "Try Again",
|
||||
showArrow: false,
|
||||
),
|
||||
],
|
||||
@@ -423,7 +423,7 @@ class ItineraryFilledCard extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: CustomText(
|
||||
text: "$cityName${AppLocalizations.of(context)!.travelPlan}",
|
||||
text: "$cityName Travel Plan",
|
||||
size: 16.sp,
|
||||
weight: FontWeight.w500,
|
||||
),
|
||||
@@ -437,9 +437,7 @@ class ItineraryFilledCard extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(100.r),
|
||||
),
|
||||
child: CustomText(
|
||||
text: itinerary.isActive
|
||||
? AppLocalizations.of(context)!.activeLabel
|
||||
: AppLocalizations.of(context)!.inactiveLabel,
|
||||
text: itinerary.isActive ? "Active" : "Inactive",
|
||||
size: 11.sp,
|
||||
color: Colors.white,
|
||||
),
|
||||
@@ -458,7 +456,7 @@ class ItineraryFilledCard extends StatelessWidget {
|
||||
Image.asset("assets/icons/calender_filled.png", width: 16.sp),
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(
|
||||
text: "${itinerary.totalDays}${AppLocalizations.of(context)!.daysLabel}",
|
||||
text: "${itinerary.totalDays} days",
|
||||
color: Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -474,7 +472,7 @@ class ItineraryFilledCard extends StatelessWidget {
|
||||
),
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(
|
||||
text: "$totalAttractions${AppLocalizations.of(context)!.attractionsCountLabel}",
|
||||
text: "$totalAttractions attractions",
|
||||
color: Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -486,7 +484,7 @@ class ItineraryFilledCard extends StatelessWidget {
|
||||
Icon(Icons.watch_later, color: Color(0xFF8E8E8E), size: 16.sp),
|
||||
SizedBox(width: 4.w),
|
||||
CustomText(
|
||||
text: "${AppLocalizations.of(context)!.createdOnLabel}${_formatDate(itinerary.createdAt)}",
|
||||
text: "Created ${_formatDate(itinerary.createdAt)}",
|
||||
color: Color(0xFF8E8E8E),
|
||||
size: 12.sp,
|
||||
),
|
||||
@@ -523,7 +521,7 @@ class ItineraryFilledCard extends StatelessWidget {
|
||||
),
|
||||
child: Center(
|
||||
child: CustomText(
|
||||
text: AppLocalizations.of(context)!.viewItineraryLabel,
|
||||
text: "View Itinerary",
|
||||
size: 16.sp,
|
||||
color: Color(0xFFF95F62),
|
||||
weight: FontWeight.w500,
|
||||
|
||||
1095
lib/l10n/app_en.arb
@@ -1,671 +0,0 @@
|
||||
{
|
||||
"@@locale": "es",
|
||||
"profileTitle": "Mi perfil",
|
||||
"supportAndLegal": "Soporte y Legal",
|
||||
"contactUs": "Contáctenos",
|
||||
"termsAndConditions": "Términos y condiciones",
|
||||
"faq": "Preguntas frecuentes",
|
||||
"privacyPolicy": "Política de privacidad",
|
||||
"logout": "Cerrar sesión",
|
||||
"signIn": "Iniciar sesión",
|
||||
"heyStranger": "¡Hola, extraño! 👋",
|
||||
"guestSubtitle1": "Estamos encantados de tenerte en nuestra app.",
|
||||
"guestSubtitle2": "¿Por qué no lo haces oficial?",
|
||||
"accountSettings": "Configuración de cuenta",
|
||||
"editProfile": "Editar perfil",
|
||||
"changeLanguage": "Cambiar idioma",
|
||||
"retry": "Reintentar",
|
||||
"failedToLoadProfile": "Error al cargar el perfil",
|
||||
"changeLanguageTitle": "Cambiar idioma",
|
||||
"searchLanguages": "Buscar idiomas",
|
||||
"save": "Guardar",
|
||||
"oopsSomethingWentWrong": "¡Ups! Algo salió mal",
|
||||
"tryAgain": "Intentar otra vez",
|
||||
"defaultCityName": "Nombre de la ciudad",
|
||||
"defaultCityDescription": "Descripción de la ciudad",
|
||||
"noHighlightsAvailable": "No hay atractivos disponibles",
|
||||
"popular": "Populares ",
|
||||
"attractions": "Atracciones",
|
||||
"viewAll": "Ver todo",
|
||||
"createMyMagicItinerary": "Crear mi itinerario mágico",
|
||||
"claimOffersWithCityCards": "Reclama ofertas con tus Tarjetas de Ciudad",
|
||||
"offerSubtitleDummy": "Lorem ipsum dolor sit amet...",
|
||||
"noAttractionsAvailable": "No hay atracciones disponibles",
|
||||
"explore": "Explorar ",
|
||||
"moreCities": "Más ciudades.",
|
||||
"stay": "Mantente ",
|
||||
"connected": "Conectado",
|
||||
"everywhere": "En todas partes",
|
||||
"claimEsimOffers": "Reclama ofertas de e-Sim con\nCityCard",
|
||||
"chooseYourCard": "Elige tu tarjeta",
|
||||
"diveIntoExtensiveSelection": "Sumérgete en una amplia selección de destinos...",
|
||||
"from": "Desde ",
|
||||
"getACard": "Obtener una Tarjeta",
|
||||
"marriott": "MARRIOTT ",
|
||||
"moments": "MOMENTOS",
|
||||
"citycard": "CITYCARD ",
|
||||
"prices": "PRECIOS",
|
||||
"premium": "Estancias ",
|
||||
"stays": "Premium",
|
||||
"citycardPrices": "Precios de CityCard",
|
||||
"claimHotelDiscountOffers": "Reclama descuentos en hoteles\ncon CityCard",
|
||||
"back": "Atrás",
|
||||
"selectACity": "Selecciona una ciudad",
|
||||
"searchCities": "Buscar ciudades",
|
||||
"errorLoadingCities": "Error al cargar ciudades",
|
||||
"noCitiesFound": "No se encontraron ciudades",
|
||||
"individualTickets": "Boletos individuales:",
|
||||
"cityCardLabel": "Tarjeta City Card:",
|
||||
"getYourCard": "Obtén tu cuenta",
|
||||
"fromLabel": "Desde",
|
||||
"perAdult": " /Adulto",
|
||||
"planYour": "Planifica tu ",
|
||||
"dreamJourney": "Viaje de Ensueño",
|
||||
"inJust3Seconds": "\nen solo 3 segundos",
|
||||
"navExplore": "Explorar",
|
||||
"navMagicItinerary": "Itinerario Mágico",
|
||||
"navMyCards": "Mis Tarjetas",
|
||||
"navPostcard": "Postal",
|
||||
"planYourNextAdventure": "Planifica tu próxima aventura",
|
||||
"createMyItinerary": "Crear Mi Itinerario",
|
||||
"notLoggedInYet": "¡Aún no has iniciado sesión!",
|
||||
"loginOrPurchasePass": "¡Inicia sesión o compra un pase para desbloquear el itinerario mágico!",
|
||||
"logInLabel": "Iniciar Sesión",
|
||||
"noUnlimitedPass": "¡No posees un Pase Ilimitado! ὡ4",
|
||||
"getUnlimitedPass": "¡Obtén tu Pase Ilimitado y crea un itinerario personalizado!",
|
||||
"buyUnlimitedCityCard": "Comprar CityCard Ilimitada",
|
||||
"noItineraryYet": "¡Aún no tienes un Itinerario! ὡF",
|
||||
"createPersonalizedItinerary": "Crea tu propio itinerario mágico personalizado que se adapte a tus necesidades de viaje",
|
||||
"travelPlan": " Plan de Viaje",
|
||||
"activeLabel": "Activo",
|
||||
"inactiveLabel": "Inactivo",
|
||||
"daysLabel": " días",
|
||||
"attractionsCountLabel": " atracciones",
|
||||
"createdOnLabel": "Creado ",
|
||||
"viewItineraryLabel": "Ver Itinerario",
|
||||
"allFilter": "Todo",
|
||||
"latestFilter": "Más reciente",
|
||||
"oldestFilter": "Más antiguo",
|
||||
"flexiCardFilter": "Tarjeta Flexi",
|
||||
"unlimitedCardFilter": "Tarjeta Ilimitada",
|
||||
"sortByLabel": "Ordenar por",
|
||||
"pleaseLogInToViewPasses": "Inicia sesión para ver tus pases",
|
||||
"logInAccessPasses": "Inicia sesión para acceder a tus pases, ofertas exclusivas y descuentos en tu viaje.",
|
||||
"noPassYet": "¡Aún no tienes un pase! 😕",
|
||||
"getAPassUnlockOffers": "Obtén un pase y desbloquea ofertas exclusivas, descuentos y más.",
|
||||
"buyAPass": "Comprar un Pase",
|
||||
"attractionSingular": "Atracción",
|
||||
"attractionsPlural": "Atracciones",
|
||||
"daySingular": "Día",
|
||||
"daysPlural": "Días",
|
||||
"cardSuffixLabel": " Tarjeta",
|
||||
"adultsPrefix": "Adultos-",
|
||||
"kidsPrefix": " • Niños-",
|
||||
"validTillPrefix": "Válido hasta: ",
|
||||
"noPostcardOrdersYet": "¡Parece que aún no has pedido\nninguna postal!",
|
||||
"whipUpFunPostcardOrders": "¿Qué tal si preparamos una postal divertida para enviarla a tus seres queridos? ¡Comencemos con eso!",
|
||||
"searchOrdersHint": "Buscar pedidos...",
|
||||
"foundPrefix": "Encontrado ",
|
||||
"ofMiddle": " de ",
|
||||
"ordersSuffix": " pedidos",
|
||||
"noOrdersFound": "No se encontraron pedidos",
|
||||
"tryAdjustingSearchQuery": "Intenta ajustar tu búsqueda",
|
||||
"errorLoadingOrders": "Error al cargar los pedidos",
|
||||
"retryButtonLabel": "Reintentar",
|
||||
"statusLabel": "Estado:",
|
||||
"previewButtonLabel": "Vista previa",
|
||||
"noPostcardDraftsYet": "¡Parece que aún no has creado\nninguna postal!",
|
||||
"whipUpFunPostcardDrafts": "¿Por qué no preparas una postal y se la envías a alguien especial que esté lejos?",
|
||||
"searchDraftsHint": "Buscar borradores...",
|
||||
"draftsSuffix": " borradores",
|
||||
"noSearchAvailable": "Búsqueda no disponible",
|
||||
"tryDifferentKeywords": "Intenta buscar con diferentes palabras clave",
|
||||
"errorLoadingDrafts": "Error al cargar los borradores",
|
||||
"deleteButtonLabel": "Eliminar",
|
||||
"editButtonLabel": "Editar",
|
||||
"sendButtonLabel": "Enviar",
|
||||
"myDraftsTab": "Mis borradores",
|
||||
"myOrdersTab": "Mis pedidos",
|
||||
"createPostcardButton": "Crear postal",
|
||||
"makeMostOfTrip": "Aprovecha al máximo tu viaje",
|
||||
"designUniquePostcards": "Diseña tus propias postales únicas para\natesorar tus momentos inolvidables.",
|
||||
"letsCreateButton": "Vamos a crear ",
|
||||
"notLoggedInPostCards": "¡Aún no has iniciado sesión!",
|
||||
"loginToDesignPostcards": "Para diseñar tus propias postales únicas, inicia\nsesión y compra un pase ilimitado",
|
||||
"errorLoadingDataTitle": "Error al cargar datos",
|
||||
"buyACardTitle": "Comprar una tarjeta",
|
||||
"memberPrivilegesTitle": "Privilegios para miembros",
|
||||
"noOffersAvailable": "No hay ofertas disponibles",
|
||||
"availableAttractionsTitle": "Atracciones disponibles",
|
||||
"featureAccessToAttractions": "Acceso a atracciones",
|
||||
"featureEntryToAttractions": "Entrada a atracciones",
|
||||
"featureAccessToExperiences": "Acceso a experiencias",
|
||||
"featureEntryToSites": "Entrada a sitios",
|
||||
"featureAccessToVenues": "Acceso a lugares",
|
||||
"featureEntryToEvents": "Entrada a eventos",
|
||||
"featureAccessToItineraryCreation": "Acceso a la creación de itinerarios",
|
||||
"featureAccessToPostcardCreation": "Acceso a la creación de postales",
|
||||
"featuresTitle": "Características",
|
||||
"unlimitedTitle": "Ilimitado",
|
||||
"fromPrefix": "Desde ",
|
||||
"perAdultSuffix": " /Adulto",
|
||||
"andPrefix": "y ",
|
||||
"perChildSuffix": " /niño",
|
||||
"diveIntoSelection": "¡Sumérgete en una amplia selección de destinos emocionantes!",
|
||||
"noOfAdultsLabel": "No. de adultos",
|
||||
"noOfChildrenLabel": "No. de niños",
|
||||
"noOfDaysLabel": "No. de días",
|
||||
"noOfAttractionsLabel": "No. de atracciones",
|
||||
"youPayLabel": "Tú pagas",
|
||||
"pleaseWaitLabel": "Por favor espera...",
|
||||
"proceedToPayLabel": "Proceder al pago",
|
||||
"atLeastOneAdultRequired": "Se requiere al menos 1 adulto",
|
||||
"cannotGoBelowZero": "No puede ser menor que 0",
|
||||
"noCheckoutDataAvailable": "No hay datos de pago disponibles",
|
||||
"goBackButtonLabel": "Regresar",
|
||||
"completePaymentTitle": "Completar pago",
|
||||
"processingPaymentMessage": "Procesando el pago de tu pase...",
|
||||
"paymentSuccessfulMessage": "¡Pago exitoso!\nTu pase está listo.",
|
||||
"paymentFailedMessage": "Pago fallido",
|
||||
"paymentCancelledMessage": "Pago cancelado",
|
||||
"paymentConfirmedMessage": "¡Pago confirmado con éxito!",
|
||||
"checkoutTitle": "Caja",
|
||||
"adultLabelSingular": "adulto",
|
||||
"adultLabelPlural": "adultos",
|
||||
"kidLabelSingular": "Niño",
|
||||
"kidLabelPlural": "Niños",
|
||||
"loadingCoupons": "Cargando cupones...",
|
||||
"errorLoadingCoupons": "Error al cargar los cupones",
|
||||
"couponAppliedPrefix": "Cupón aplicado: ",
|
||||
"discountOnPrefix": " descuento en ",
|
||||
"noCouponsAvailable": "No hay cupones disponibles",
|
||||
"viewAllCoupons": "Ver todos los cupones",
|
||||
"pleaseLoginToApplyCoupon": "Por favor, inicia sesión para aplicar el cupón",
|
||||
"applyingLabel": "Aplicando...",
|
||||
"removeLabel": "Eliminar",
|
||||
"applyLabel": "Aplicar",
|
||||
"subtotalLabel": "Subtotal",
|
||||
"discountLabel": "Descuento",
|
||||
"totalLabel": "Total",
|
||||
"includingTaxesPrefix": "Incluyendo ",
|
||||
"inTaxesSuffix": " en impuestos",
|
||||
"allCouponsTitle": "Todos los cupones",
|
||||
"applyCouponLabel": "Aplicar cupón",
|
||||
"purchaseDetailsTitle": "Detalles de compra",
|
||||
"buyPassForMyselfTitle": "Comprar pase para mí",
|
||||
"editDetailsLabel": "Editar detalles",
|
||||
"giftThePassTitle": "Regalar el pase",
|
||||
"giftThePassDescription": "Regalar el pase a otra persona",
|
||||
"proceedLabel": "Proceder",
|
||||
"processingLabel": "Procesando...",
|
||||
"payPrefixLabel": "Pagar ",
|
||||
"loginToCheckoutLabel": "Iniciar sesión para Pagar",
|
||||
"yourCartTitle": "Tu carrito",
|
||||
"myCardsTab": "Mis tarjetas",
|
||||
"myPostCardsTab": "Mis postales",
|
||||
"yourCartIsEmpty": "Tu carrito está vacío",
|
||||
"attractionsLabelSuffix": " Atracciones",
|
||||
"daysLabelSuffix": " Días",
|
||||
"youDoNotHaveAnyPasses": "No tienes pases",
|
||||
"emptyPassesDescription": "Obtén un pase y disfruta de ofertas, descuentos y más en tu viaje a tu ciudad favorita",
|
||||
"buyAPassLabel": "Comprar un Pase",
|
||||
"errorLoadingCart": "Error al cargar el carrito",
|
||||
"purchaseOnePostcardAtTime": "Puedes comprar una postal a la vez",
|
||||
"proceedToCheckoutLabel": "Proceder al pago",
|
||||
"loginToAccessPostcardsCart": "Por favor, inicia sesión para acceder a tu carrito de postales",
|
||||
"youDoNotHaveAnyPostcards": "No tienes postales",
|
||||
"emptyPostcardsDescription": "Aún no posees postales ni has enviado a nadie",
|
||||
"designMyPostcardLabel": "Diseñar mi postal",
|
||||
"somethingWentWrong": "Algo salió mal",
|
||||
"retryLabel": "Reintentar",
|
||||
"editDraftLabel": "Editar borrador",
|
||||
"backTitle": "Atrás",
|
||||
"magicItineraryTitle": "Itinerario Mágico ✨",
|
||||
"stepPrefix": "Paso ",
|
||||
"ofSuffix": " de ",
|
||||
"createYourLabel": "Crea tu",
|
||||
"magicItinerarySubtitle": " itinerario mágico",
|
||||
"itineraryCreationStartDescription": "¡Hola! Solo responde algunas preguntas divertidas y crearemos una experiencia de viaje totalmente adaptada a ti. ✈️✨",
|
||||
"letsExploreTogether": "¡Exploremos juntos!",
|
||||
"takesOnlyTwoMinutes": "Toma solo 2 minutos ⏱️",
|
||||
"gatheringPreferencesLabel": "Recopilando tus preferencias...",
|
||||
"findingBestSpotsLabel": "Buscando los mejores lugares...",
|
||||
"buildingScheduleLabel": "Armando tu horario...",
|
||||
"almostThereLabel": "Casi listo...",
|
||||
"yourLabel": "Tu ",
|
||||
"magicItineraryLabel": "Itinerario Mágico",
|
||||
"isLabel": " está ",
|
||||
"readyLabel": "Listo ",
|
||||
"weHaveGotEverythingWeNeed": "Tenemos todo lo que necesitamos para planear tu viaje perfecto",
|
||||
"startOverLabel": "Empezar de nuevo",
|
||||
"getMyTripPlan": "Obtener mi plan de viaje",
|
||||
"creatingLabel": "Creando\n",
|
||||
"yourItineraryLabel": "Tu itinerario",
|
||||
"travelingWithKidsLabel": "Viajando con\n niños",
|
||||
"noKidsWithMeLabel": "Sin niños",
|
||||
"areYouTravellingWithKidsLabel": "¿Viajas con niños?",
|
||||
"noRestrictionsLabel": "Sin restricciones",
|
||||
"vegetarianLabel": "Vegetariano",
|
||||
"veganLabel": "Vegano",
|
||||
"pescatarianLabel": "Pescetariano",
|
||||
"halalLabel": "Halal",
|
||||
"kosherLabel": "Kosher",
|
||||
"doYouFollowDietaryPreferenceLabel": "¿Sigues alguna preferencia dietética?",
|
||||
"whenAreYouPlanningToVisitLabel": "¡Hola! ¿Cuándo planeas visitar?",
|
||||
"selectADateLabel": "Selecciona una fecha",
|
||||
"continueTitle": "Continuar",
|
||||
"relaxedAndChillLabel": "Relajado y tranquilo",
|
||||
"balancedMixLabel": "Mezcla equilibrada",
|
||||
"activeAndEnergeticLabel": "Activo y enérgico",
|
||||
"fullAdventureLabel": "¡Aventura total!",
|
||||
"whatKindOfEnergyLabel": "¿Qué tipo de energía buscas en este viaje?",
|
||||
"notInterestedLabel": "No me interesa",
|
||||
"maybeOneOrTwoLabel": "Tal vez uno o dos",
|
||||
"yesSoundsGoodLabel": "¡Sí, suena bien!",
|
||||
"absolutelyLoveThemLabel": "¡Me encantan!",
|
||||
"doYouEnjoyMuseumsLabel": "¿Disfrutas visitando museos y galerías de arte?",
|
||||
"@esimOfferTitle": {},
|
||||
"esimOfferTitle": "Conéctate al instante con tu eSIM gratuita",
|
||||
"@esimOfferSubtitle": {},
|
||||
"esimOfferSubtitle": "Cada gran viaje comienza con una conectividad fluida.",
|
||||
"@viewPlans": {},
|
||||
"viewPlans": "Ver planes",
|
||||
"@withYour": {},
|
||||
"withYour": "Con tu ",
|
||||
"@esimKeyword": {},
|
||||
"esimKeyword": "eSIM",
|
||||
"@youCanKeyword": {},
|
||||
"youCanKeyword": ", puedes:",
|
||||
"@navigateCity": {},
|
||||
"navigateCity": "Navega por la ciudad con facilidad",
|
||||
"@navigateCityDesc": {},
|
||||
"navigateCityDesc": "Accede a mapas y direcciones en tiempo real dondequiera que vayas",
|
||||
"@bookRides": {},
|
||||
"bookRides": "Reserva viajes, accede a mapas y encuentra atracciones en tiempo real",
|
||||
"@bookRidesDesc": {},
|
||||
"bookRidesDesc": "Mantente conectado a todos los servicios de viaje esenciales",
|
||||
"@sharePhotos": {},
|
||||
"sharePhotos": "Comparte fotos y recuerdos al instante",
|
||||
"@sharePhotosDesc": {},
|
||||
"sharePhotosDesc": "Sube y comparte tus momentos de viaje sin demora",
|
||||
"@stayConnectedFeatures": {},
|
||||
"stayConnectedFeatures": "Mantente conectado con amigos, familiares y planes de viaje",
|
||||
"@stayConnectedFeaturesDesc": {},
|
||||
"stayConnectedFeaturesDesc": "No te pierdas nunca actualizaciones o mensajes importantes mientras viajas",
|
||||
"@simpleKeyword": {},
|
||||
"simpleKeyword": "Simple ",
|
||||
"@threeStepProcess": {},
|
||||
"threeStepProcess": "Proceso de 3 pasos",
|
||||
"@getConnectedInSeconds": {},
|
||||
"getConnectedInSeconds": "Conéctate en segundos",
|
||||
"@receiveQrCode": {},
|
||||
"receiveQrCode": "Recibir código QR",
|
||||
"@receiveQrCodeDesc": {},
|
||||
"receiveQrCodeDesc": "Obtén tu código QR de eSIM único con tu CityCard",
|
||||
"@scanCode": {},
|
||||
"scanCode": "Escanear código",
|
||||
"@scanCodeDesc": {},
|
||||
"scanCodeDesc": "Abre la cámara de tu teléfono y escanea el código QR",
|
||||
"@connectedStep": {},
|
||||
"connectedStep": "Conectado",
|
||||
"@connectedStepDesc": {},
|
||||
"connectedStepDesc": "Estás en línea al instante - ¡empieza a explorar!",
|
||||
"@itsOneMoreWay": {},
|
||||
"itsOneMoreWay": "Es una forma más",
|
||||
"@cityCardsKeywordSpace": {},
|
||||
"cityCardsKeywordSpace": " CityCards",
|
||||
"@makesYourJourney": {},
|
||||
"makesYourJourney": "hace que tu viaje sea",
|
||||
"@smarterKeywordSpace": {},
|
||||
"smarterKeywordSpace": " más inteligente",
|
||||
"@andMoreSpace": {},
|
||||
"andMoreSpace": "y más",
|
||||
"@effortlessSpace": {},
|
||||
"effortlessSpace": " sin esfuerzo",
|
||||
"@startYourJourneyToday": {},
|
||||
"startYourJourneyToday": "Comienza tu viaje hoy",
|
||||
"@enjoy20OffMarriott": {},
|
||||
"enjoy20OffMarriott": "Disfruta de un 20% de descuento en hoteles icónicos de Marriott - Exclusivo con CityCards",
|
||||
"@makeEveryStayUnforgettable": {},
|
||||
"makeEveryStayUnforgettable": "Haz que cada estancia sea tan inolvidable como la ciudad que estás explorando.",
|
||||
"@bookNow": {},
|
||||
"bookNow": "Reserva ahora",
|
||||
"@yourCityCardsUnlocksMore": {},
|
||||
"yourCityCardsUnlocksMore": "Tu CityCard desbloquea más que solo atracciones: también abre las puertas a estancias excepcionales.",
|
||||
"@thanksToOurExclusivePartnership": {},
|
||||
"thanksToOurExclusivePartnership": "Gracias a nuestra asociación exclusiva con ",
|
||||
"@marriottHotelsKeyword": {},
|
||||
"marriottHotelsKeyword": "Marriott Hotels",
|
||||
"@cityCardsHoldersEnjoy": {},
|
||||
"cityCardsHoldersEnjoy": ", los titulares de CityCards disfrutan de un ",
|
||||
"@twentyPercentOffRates": {},
|
||||
"twentyPercentOffRates": "20% de descuento en las mejores tarifas disponibles",
|
||||
"@acrossCuratedProperties": {},
|
||||
"acrossCuratedProperties": " en una cuidada selección de propiedades en la ciudad.",
|
||||
"@chooseFromAKeyword": {},
|
||||
"chooseFromAKeyword": "Elige entre una ",
|
||||
"@wideVarietyBreak": {},
|
||||
"wideVarietyBreak": "Gran \nVariedad",
|
||||
"@chooseFromAWideVarietyDesc": {},
|
||||
"chooseFromAWideVarietyDesc": "Elige entre una gran variedad de hoteles Marriott, desde elegantes refugios urbanos y ubicaciones premium en el centro de la ciudad hasta lujosas experiencias de cinco estrellas, todo diseñado para que tu viaje sea ",
|
||||
"@effortlessComfortable": {},
|
||||
"effortlessComfortable": "sencillo, cómodo",
|
||||
"@andMiddle": {},
|
||||
"andMiddle": " y ",
|
||||
"@memorableKeyword": {},
|
||||
"memorableKeyword": "memorable",
|
||||
"@simplyUseYourCityCards": {},
|
||||
"simplyUseYourCityCards": "Simplemente usa tu ",
|
||||
"@bookingLinkTo": {},
|
||||
"bookingLinkTo": " enlace de reserva de CityCards para:",
|
||||
"@access20OffRates": {},
|
||||
"access20OffRates": "Accede a un 20% de descuento en las mejores tarifas disponibles",
|
||||
"@saveOnYourStay": {},
|
||||
"saveOnYourStay": "Ahorra en tu estancia en propiedades premium de Marriott",
|
||||
"@enjoyPriorityCheckIn": {},
|
||||
"enjoyPriorityCheckIn": "Disfruta de check-in prioritario y late checkout",
|
||||
"@subjectToAvailability": {},
|
||||
"subjectToAvailability": "Sujeto a disponibilidad para tu comodidad",
|
||||
"@receiveExclusiveSeasonalOffers": {},
|
||||
"receiveExclusiveSeasonalOffers": "Recibe ofertas de temporada exclusivas",
|
||||
"@designedSpeciallyForCityCards": {},
|
||||
"designedSpeciallyForCityCards": "Diseñado especialmente para los viajeros de CityCards",
|
||||
"@itsJustOneMoreWay": {},
|
||||
"itsJustOneMoreWay": "Es solo una forma más en la que",
|
||||
"@makesExploring": {},
|
||||
"makesExploring": " hace que explorar sea",
|
||||
"@simplerKeyword": {},
|
||||
"simplerKeyword": " más sencillo",
|
||||
"@moreRewarding": {},
|
||||
"moreRewarding": " más gratificante",
|
||||
"@getYourCityCardsToday": {},
|
||||
"getYourCityCardsToday": "Obtén tu CityCard hoy mismo",
|
||||
"shareSubject": "Mira esto",
|
||||
"scanAtAttractionSite": "Escanea esto en el sitio de la atracción",
|
||||
"codeCopied": "Código copiado al portapapeles",
|
||||
"checkedIn": "Registrado",
|
||||
"checkIn": "Registrarse",
|
||||
"problemsRedeemingPass": "¿Tienes problemas para canjear el pase? ",
|
||||
"clickHere": "Haz clic aquí",
|
||||
"about": "Acerca de",
|
||||
"howToMakeBooking": "¿Cómo hacer una reserva?",
|
||||
"contactNumber": "Número de contacto",
|
||||
"tapToCall": "Toca para llamar",
|
||||
"email": "Correo electrónico",
|
||||
"tapToEmail": "Toca para enviar un correo",
|
||||
"datesNotAvailable": "Fechas no disponibles",
|
||||
"viaCityCards": "Vía CityCards",
|
||||
"createBookingViaApp": "Crear una reserva vía la aplicación",
|
||||
"whatIsIncluded": "Qué está incluido",
|
||||
"exactLocation": "Ubicación exacta",
|
||||
"viewLocationOnMap": "Ver la ubicación en el mapa",
|
||||
"peopleFrequentlyAsk": "La gente pregunta con frecuencia",
|
||||
"errorMessage": "Error: {message}",
|
||||
"suggestedAttractions": "Atracciones sugeridas",
|
||||
"viewAllAttractions": "Ver todas las atracciones",
|
||||
"recommendedOffers": "Ofertas recomendadas",
|
||||
"viewAllOffers": "Ver todas las ofertas",
|
||||
"learnAboutPolicies": "Más información sobre las políticas",
|
||||
"pricePerPerson": "{price}$/persona",
|
||||
"priceNotAvailable": "Precio no disponible",
|
||||
"bookingRequired": "Reserva obligatoria",
|
||||
"adultsLabel": "Adultos",
|
||||
"kidsLabel": "Niños",
|
||||
"checkedInSuccessful": "Registro exitoso",
|
||||
"readyToCheckIn": "¿Listo para registrarte?",
|
||||
"entranceActivationNote": "Actívalo solo cuando estés en la entrada de ",
|
||||
"minuteTimer": "Temporizador de {minutes} minutos",
|
||||
"timerActivationWarning": "Una vez activado, el pase es válido por {minutes} minutos. Esta acción no se puede deshacer",
|
||||
"activatePassNow": "Activar pase ahora",
|
||||
"notAtEntranceYet": "Aún no estoy en la entrada",
|
||||
"howToRedeemTitle": "¿Cómo canjeo mi pase de atracción?",
|
||||
"howToRedeemDescription": "Para canjear su pase de atracción, presente el código QR en la entrada. Nuestro personal lo escaneará, otorgándole acceso a las maravillas del interior. Disfrute de su aventura en ",
|
||||
"contactSupport": "Contactar con soporte",
|
||||
"passAttractionsTitle": "Atracciones del pase",
|
||||
"searchAttractionsHint": "Buscar atracciones...",
|
||||
"noAttractionsFound": "No se encontraron atracciones",
|
||||
"noAttractionsMatchSearch": "No hay atracciones que coincidan con su búsqueda",
|
||||
"selectiveCardFilter": "Tarjeta Selectiva",
|
||||
"offersWithCardTitle": "Ofertas con {cardName}",
|
||||
"searchOffersHint": "Buscar ofertas",
|
||||
"noOffersFound": "No se encontraron ofertas",
|
||||
"codeCopiedMessage": "Código copiado: {code}",
|
||||
"noDataAvailable": "No hay datos disponibles",
|
||||
"userPossessive": "De {firstName}",
|
||||
"tripDetails": "DETALLES DEL VIAJE:",
|
||||
"daysCount": "{count} Días",
|
||||
"stopsCount": "{count} paradas",
|
||||
"adultsCount": "{count} adultos",
|
||||
"kidsCount": "{count} niños",
|
||||
"shareLabel": "Compartir",
|
||||
"preparingPdfToShare": "Preparando PDF para compartir...",
|
||||
"myItinerarySubject": "Mi itinerario - {title}",
|
||||
"failedToShare": "Error al compartir: {error}",
|
||||
"downloadLabel": "Descargar",
|
||||
"downloadingLabel": "Descargando...",
|
||||
"downloadingPdf": "Descargando PDF...",
|
||||
"dailyView": "Vista diaria",
|
||||
"summary": "Resumen",
|
||||
"dayNumberLabel": "Día {number}",
|
||||
"pleaseFillAllFields": "Por favor llene todos los campos",
|
||||
"enterValidEmail": "Por favor ingrese un correo electrónico válido",
|
||||
"enterValidPhoneForIsd": "Ingrese un número de teléfono válido para {isdCode}",
|
||||
"failedToSubmitDetails": "Error al enviar los detalles",
|
||||
"addDetailsTitle": "Añadir detalles",
|
||||
"aboutRecipient": "Cuéntanos sobre el destinatario",
|
||||
"firstNameLabelWithStar": "Nombre *",
|
||||
"firstNameHint": "Ingrese el nombre del destinatario",
|
||||
"lastNameLabelWithStar": "Apellido *",
|
||||
"lastNameHint": "Ingrese el apellido del destinatario",
|
||||
"emailLabelWithStar": "Correo electrónico *",
|
||||
"emailHint": "Ingrese el correo electrónico del destinatario",
|
||||
"phoneNumberLabelWithStar": "Número de teléfono *",
|
||||
"phoneNumberHint": "Ingrese el número de teléfono",
|
||||
"searchCountryHint": "Buscar país...",
|
||||
"cityLabelWithStar": "Ciudad *",
|
||||
"cityHint": "Ingrese el nombre de la ciudad",
|
||||
"countryLabelWithStar": "País *",
|
||||
"countryHint": "Ingrese el nombre del país",
|
||||
"submittingLabel": "Enviando...",
|
||||
"yourAttractionTitle": "Tu atracción",
|
||||
"perPersonSuffix": "/persona",
|
||||
"checkThisOut": "Mira esto",
|
||||
"whatIsIncluded": "Qué está incluido",
|
||||
"peopleFrequentlyAsk": "Preguntas frecuentes",
|
||||
"aboutTitle": "Acerca de",
|
||||
"exactLocation": "Ubicación exacta",
|
||||
"viewOnMap": "Ver la ubicación en el mapa",
|
||||
"selectImageSource": "Seleccionar fuente de imagen",
|
||||
"cameraLabel": "Cámara",
|
||||
"galleryLabel": "Galería",
|
||||
"failedToPickImage": "Error al seleccionar la imagen: {error}",
|
||||
"userIdNotFound": "ID de usuario no encontrado",
|
||||
"changeProfilePicture": "Cambiar foto de perfil",
|
||||
"enterYourFirstName": "Ingrese su nombre",
|
||||
"firstNameRequired": "El nombre es obligatorio",
|
||||
"enterYourLastName": "Ingrese su apellido",
|
||||
"lastNameRequired": "El apellido es obligatorio",
|
||||
"enterYourEmail": "Ingrese su correo electrónico",
|
||||
"enterYourPhoneNumber": "Ingrese su número de teléfono",
|
||||
"addressLabelWithStar": "Dirección *",
|
||||
"addressHint": "Ingrese la dirección manualmente o toque para buscar",
|
||||
"address2Optional": "Dirección 2 (Opcional)",
|
||||
"address2Hint": "Ingrese detalles adicionales de la dirección",
|
||||
"zipCodeLabelWithStar": "Código postal *",
|
||||
"zipCodeHint": "Ingrese el código postal donde reside",
|
||||
"enterYourCity": "Ingrese el nombre de su ciudad",
|
||||
"stateLabelWithStar": "Estado *",
|
||||
"enterYourState": "Ingrese su estado",
|
||||
"enterYourCountry": "Ingrese su país",
|
||||
"editProfileTitle": "Editar perfil",
|
||||
"personalDetails": "Detalles personales",
|
||||
"locationDetails": "Detalles de ubicación",
|
||||
"cancelTitle": "Cancelar",
|
||||
"saveTitle": "Guardar",
|
||||
"contactUsTitle": "Contáctenos",
|
||||
"contactUsMessage": "Puede ponerse en contacto con nosotros a través de las siguientes plataformas. Nuestro equipo se pondrá en contacto con usted en breve",
|
||||
"customerSupport": "Atención al cliente",
|
||||
"contactNumberLabel": "Número de contacto",
|
||||
"tapToCall": "Toca para llamar",
|
||||
"emailLabel": "Correo electrónico",
|
||||
"tapToEmail": "Toca para enviar correo",
|
||||
"locationLabel": "Ubicación",
|
||||
"enterYourEmailAddress": "Ingrese su dirección de correo electrónico",
|
||||
"emailRequired": "El correo electrónico es obligatorio",
|
||||
"enterValidEmail": "Ingrese una dirección de correo electrónico válida",
|
||||
"phoneNumberRequired": "El número de teléfono es obligatorio",
|
||||
"descriptionLabelWithStar": "Descripción *",
|
||||
"writeMessageHint": "Escribe tu mensaje aquí",
|
||||
"submitTicket": "Enviar ticket",
|
||||
"termsAndConditionsTitle": "Términos y condiciones",
|
||||
"privacyPolicyTitle": "Política de privacidad",
|
||||
"faqTitle": "FAQ",
|
||||
"noTermsContent": "No hay contenido de términos y condiciones disponible.",
|
||||
"noPrivacyContent": "No hay contenido de política de privacidad disponible.",
|
||||
"retryLabel": "Reintentar",
|
||||
"errorLabel": "Error",
|
||||
"offersWithCard": "Ofertas con tarjeta {cardName}",
|
||||
"@offersWithCard": {
|
||||
"placeholders": {
|
||||
"cardName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"searchOffersHint": "Buscar ofertas",
|
||||
"noOffersFound": "No se encontraron ofertas",
|
||||
"aboutPartner": "Acerca de {partnerName}",
|
||||
"@aboutPartner": {
|
||||
"placeholders": {
|
||||
"partnerName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"howToMakeBooking": "¿Cómo hacer una reserva?",
|
||||
"bookingStep1": "Verifique la fecha de vencimiento de su cupón para asegurarse de que aún sea válido.",
|
||||
"bookingStep2": "Visite la tienda o el sitio web donde se puede canjear el cupón.",
|
||||
"bookingStep3": "Si compra en línea, agregue artículos a su carrito y proceda al pago.",
|
||||
"bookingStep4": "Busque un campo con la etiqueta 'Código de cupón' o 'Código de promoción' durante el pago.",
|
||||
"bookingStep5": "Ingrese su código de cupón exactamente como aparece, incluidos los caracteres especiales.",
|
||||
"couponCodeCopied": "¡Código de cupón copiado!",
|
||||
"createYourAccount": "Crea tu cuenta",
|
||||
"personalInformation": "Información personal",
|
||||
"locationDetailsWithStar": "Detalles de ubicación *",
|
||||
"enterYourAddress": "Ingrese su dirección",
|
||||
"autoFillZipNote": "La ciudad, el estado y el país se completarán automáticamente a partir del código postal",
|
||||
"creatingLabelEllipsis": "Creando...",
|
||||
"createAccount": "Crear cuenta",
|
||||
"getStarted": "Empezar",
|
||||
"enterEmailToBegin": "Ingrese su correo electrónico para comenzar su viaje CityCards",
|
||||
"emailExampleHint": "john.doe@gmail.com",
|
||||
"pleaseEnterEmail": "Por favor ingrese su dirección de correo electrónico",
|
||||
"sendingLabel": "Enviando...",
|
||||
"otpVerifiedSuccess": "¡OTP verificado con éxito!",
|
||||
"completeProfileNote": "Por favor complete su perfil",
|
||||
"otpResentSuccess": "¡OTP reenviado con éxito!",
|
||||
"verifyYourPhone": "Verifica tu teléfono",
|
||||
"enterVerificationCodeNote": "Ingrese el código de verificación enviado a su correo electrónico",
|
||||
"resendingLabel": "Reenviando...",
|
||||
"resendOtpLabel": "Reenviar OTP",
|
||||
"resendOtpWithTimer": "Reenviar OTP ({seconds}s)",
|
||||
"pleaseEnterCompleteOtp": "Por favor ingrese el OTP completo",
|
||||
"verifyingLabel": "Verificando...",
|
||||
"ok": "OK",
|
||||
"uploadAPhoto": "Subir una foto",
|
||||
"orLabel": "O",
|
||||
"takeAPhoto": "Tomar una foto",
|
||||
"uploadAgain": "Subir de nuevo",
|
||||
"nextTitle": "Siguiente",
|
||||
"addImage": "Añadir imagen",
|
||||
"addAFilter": "Añadir un filtro",
|
||||
"chooseFavoriteFilter": "Elige tu filtro favorito y mejora tu postal.",
|
||||
"filterOriginal": "Original",
|
||||
"filterBW": "Blanco y negro",
|
||||
"filterSepia": "Sepia",
|
||||
"filterVintage": "Vintage",
|
||||
"filterCoolTone": "Tono frío",
|
||||
"filterContrast": "Contraste",
|
||||
"filterSoftGlow": "Resplandor suave",
|
||||
"writeYourMessage": "Escribe tu mensaje",
|
||||
"failedToFetchEditDetails": "Error al recuperar los detalles de la edición",
|
||||
"saveChanges": "Guardar cambios",
|
||||
"writeAMessage": "Escribe un mensaje",
|
||||
"addYourMessageHere": "Añade tu mensaje aquí",
|
||||
"fontDefault": "Predeterminado",
|
||||
"previewYourPostcard": "Vista previa de tu postal",
|
||||
"flipLabel": "Voltear",
|
||||
"buyPostcardForMyself": "Comprar postal para mí",
|
||||
"editDetailsLabel": "Editar detalles",
|
||||
"giftPostcardForSomeoneElse": "Regalar la postal a otra persona",
|
||||
"addTitleLabel": "Añadir título",
|
||||
"enterTitleHint": "Ingresar título",
|
||||
"pleaseEnterTitle": "Por favor ingrese un título",
|
||||
"yourDetailsTitle": "Tus detalles",
|
||||
"senderDetailsDescription": "Ingresa tus datos como remitente de esta postal",
|
||||
"fullNameLabel": "Nombre completo",
|
||||
"enterFullNameHint": "Ingresa el nombre completo",
|
||||
"cityLabel": "Ciudad",
|
||||
"enterCityHint": "Ingresa el nombre de tu ciudad",
|
||||
"countryLabel": "País",
|
||||
"enterCountryHint": "Ingresa tu país",
|
||||
"recipientDetailsTitle": "Detalles del destinatario",
|
||||
"recipientDetailsDescription": "Ingresa la dirección de la persona que recibirá esta postal",
|
||||
"selfDetailsDescription": "Ingresa tus datos de contacto para esta postal.",
|
||||
"recipientNameLabel": "Nombre del destinatario",
|
||||
"enterRecipientNameHint": "Ingresa el nombre del destinatario",
|
||||
"addressLabel": "Dirección",
|
||||
"enterRecipientAddressHint": "Ingresa la dirección del destinatario",
|
||||
"zipCodeLabel": "Código postal",
|
||||
"enterZipCodeHint": "Ingresa el código postal donde resides",
|
||||
"pleaseEnterZipCode": "Por favor ingrese el código postal",
|
||||
"stateLabel": "Estado/Provincia",
|
||||
"enterStateHint": "Ingresa tu estado",
|
||||
"pleaseEnterField": "Por favor ingrese {fieldName}",
|
||||
"invalidEmailError": "Por favor ingrese una dirección de correo electrónico válida",
|
||||
"onlyNumbersAllowed": "Solo se permiten números",
|
||||
"mobileNumberLengthError": "El número de móvil debe tener {length} dígitos",
|
||||
"onlyLettersAllowed": "Solo se permiten letras",
|
||||
"spacesNotAllowed": "No se permiten espacios",
|
||||
"specialCharsNotAllowed": "No se permiten caracteres especiales",
|
||||
"saveAsDraftLabel": "Guardar como borrador",
|
||||
"deliveryAddressLabel": "Dirección de entrega",
|
||||
"paymentSummaryLabel": "Resumen de pago",
|
||||
"grandTotalLabel": "Total general",
|
||||
"paymentFailedError": "Pago fallido: {error}",
|
||||
"paymentInitializationFailedError": "Error: falló la inicialización del pago",
|
||||
"draftSavedSuccess": "¡Borrador guardado exitosamente!",
|
||||
"payAmountLabel": "Pagar ${amount}",
|
||||
"orderPlacedSuccess": "¡Pedido realizado con éxito!",
|
||||
"orderPlacedDescription": "Tu pedido ha sido realizado. Tu ID de pedido es {orderId}",
|
||||
"deliveryTimelineNote": "Será entregado en 2-3 días hábiles.",
|
||||
"goToMyOrdersLabel": "Ir a Mis Pedidos",
|
||||
"messagePreviewLabel": "Vista previa del mensaje",
|
||||
"postcardLabel": "Postal",
|
||||
"homeTitle": "CityCards.\nVer más,\nGastar menos.",
|
||||
"homeSubtitle": "Acceso QR instantáneo a más de 40 atracciones,\nbeneficios exclusivos y ahorros de hasta el 30%",
|
||||
"getYourCityCards": "Obtén tus CityCards",
|
||||
"exploreCitiesTitleExplore": "Explorar ",
|
||||
"exploreCitiesTitleCities": "Ciudades",
|
||||
"upcomingCitiesTitleUpcoming": "Próximas ",
|
||||
"upcomingCitiesTitleCities": "Ciudades",
|
||||
"exploreDescription": "Explora tu destino de ensueño y experimenta diversas atracciones.",
|
||||
"noCitiesAvailable": "No hay ciudades disponibles",
|
||||
"notAvailableLabel": "N/A",
|
||||
"editPostcardTitle": "Editar postal",
|
||||
"uploadImageTitle": "Subir imagen",
|
||||
"editPostcardUploadDescription": "Edita tus propias postales únicas subiendo imágenes que capturen tus momentos inolvidables.",
|
||||
"editFiltersLabel": "Editar filtros",
|
||||
"editTitleLabel": "Editar título ",
|
||||
"editTitleDescription": "Dale otro título a tu postal",
|
||||
"titleMaxLengthError": "El título puede tener un máximo de 10 letras",
|
||||
"editMessageLabel": "Editar mensaje ",
|
||||
"editMessageDescription": "Edita tus propias postales únicas para atesorar tus momentos inolvidables.",
|
||||
"fullNameLabelWithStar": "Nombre completo *",
|
||||
"recipientLabelWithStar": "Destinatario *",
|
||||
"pleaseEnterMessage": "Por favor ingrese un mensaje",
|
||||
"messageMaxLengthError": "El mensaje puede tener un máximo de 400 caracteres",
|
||||
"fontPatrickHand": "Patrick Hand",
|
||||
"fontIndieFlower": "Indie Flower",
|
||||
"fontGloriaHallelujah": "Gloria Hallelujah"
|
||||
}
|
||||
@@ -1,671 +0,0 @@
|
||||
{
|
||||
"@@locale": "fr",
|
||||
"profileTitle": "Mon profil",
|
||||
"supportAndLegal": "Support & Juridique",
|
||||
"contactUs": "Contactez-nous",
|
||||
"termsAndConditions": "Conditions générales",
|
||||
"faq": "FAQ",
|
||||
"privacyPolicy": "Politique de confidentialité",
|
||||
"logout": "Se déconnecter",
|
||||
"signIn": "Se connecter",
|
||||
"heyStranger": "Salut, étranger ! 👋",
|
||||
"guestSubtitle1": "Nous sommes ravis de vous avoir sur notre application.",
|
||||
"guestSubtitle2": "Pourquoi ne pas le rendre officiel ?",
|
||||
"accountSettings": "Paramètres du compte",
|
||||
"editProfile": "Modifier le profil",
|
||||
"changeLanguage": "Changer de langue",
|
||||
"retry": "Réessayer",
|
||||
"failedToLoadProfile": "Échec du chargement du profil",
|
||||
"changeLanguageTitle": "Changer de langue",
|
||||
"searchLanguages": "Rechercher des langues",
|
||||
"save": "Enregistrer",
|
||||
"oopsSomethingWentWrong": "Oups ! Quelque chose s'est mal passé",
|
||||
"tryAgain": "Réessayer",
|
||||
"defaultCityName": "Nom de la ville",
|
||||
"defaultCityDescription": "Description de la ville",
|
||||
"noHighlightsAvailable": "Aucun point fort disponible",
|
||||
"popular": "Populaires ",
|
||||
"attractions": "Attractions",
|
||||
"viewAll": "Voir tout",
|
||||
"createMyMagicItinerary": "Créer mon itinéraire magique",
|
||||
"claimOffersWithCityCards": "Réclamez des offres avec vos City Cards",
|
||||
"offerSubtitleDummy": "Lorem ipsum dolor sit amet...",
|
||||
"noAttractionsAvailable": "Aucune attraction disponible",
|
||||
"explore": "Explorer ",
|
||||
"moreCities": "Plus de villes.",
|
||||
"stay": "Restez ",
|
||||
"connected": "Connecté",
|
||||
"everywhere": "Partout",
|
||||
"claimEsimOffers": "Réclamez des offres e-Sim avec\nCityCard",
|
||||
"chooseYourCard": "Choisissez votre carte",
|
||||
"diveIntoExtensiveSelection": "Plongez dans une vaste sélection...",
|
||||
"from": "À partir de ",
|
||||
"getACard": "Obtenir une carte",
|
||||
"marriott": "MARRIOTT ",
|
||||
"moments": "MOMENTS",
|
||||
"citycard": "CITYCARD ",
|
||||
"prices": "PRIX",
|
||||
"premium": "Séjours ",
|
||||
"stays": "Premium",
|
||||
"citycardPrices": "Prix CityCard",
|
||||
"claimHotelDiscountOffers": "Réclamez des réductions d'hôtel\navec CityCard",
|
||||
"back": "Retour",
|
||||
"selectACity": "Sélectionnez une ville",
|
||||
"searchCities": "Rechercher des villes",
|
||||
"errorLoadingCities": "Erreur de chargement des villes",
|
||||
"noCitiesFound": "Aucune ville trouvée",
|
||||
"individualTickets": "Billets individuels:",
|
||||
"cityCardLabel": "City Card :",
|
||||
"getYourCard": "Obtenez votre carte",
|
||||
"fromLabel": "De",
|
||||
"perAdult": " /Adulte",
|
||||
"planYour": "Planifiez votre ",
|
||||
"dreamJourney": "Voyage de Rêve",
|
||||
"inJust3Seconds": "\nen seulement 3 secondes",
|
||||
"navExplore": "Explorer",
|
||||
"navMagicItinerary": "Itinéraire Magique",
|
||||
"navMyCards": "Mes Cartes",
|
||||
"navPostcard": "Carte Postale",
|
||||
"planYourNextAdventure": "Planifiez votre prochaine aventure",
|
||||
"createMyItinerary": "Créer Mon Itinéraire",
|
||||
"notLoggedInYet": "Vous n'êtes pas encore connecté !",
|
||||
"loginOrPurchasePass": "Connectez-vous ou achetez un pass pour débloquer l'itinéraire magique !",
|
||||
"logInLabel": "Connexion",
|
||||
"noUnlimitedPass": "Vous ne possédez pas de Pass Illimité ! ὡ4",
|
||||
"getUnlimitedPass": "Obtenez votre Pass Illimité et créez un itinéraire personnalisé !",
|
||||
"buyUnlimitedCityCard": "Acheter une CityCard Illimitée",
|
||||
"noItineraryYet": "Vous n'avez pas d'Itinéraire pour le moment ! ὡF",
|
||||
"createPersonalizedItinerary": "Créez votre itinéraire magique personnalisé qui répond à vos besoins de voyage",
|
||||
"travelPlan": " Plan de Voyage",
|
||||
"activeLabel": "Actif",
|
||||
"inactiveLabel": "Inactif",
|
||||
"daysLabel": " jours",
|
||||
"attractionsCountLabel": " attractions",
|
||||
"createdOnLabel": "Créé le ",
|
||||
"viewItineraryLabel": "Voir l'Itinéraire",
|
||||
"allFilter": "Tout",
|
||||
"latestFilter": "Plus récent",
|
||||
"oldestFilter": "Plus ancien",
|
||||
"flexiCardFilter": "Carte Flexi",
|
||||
"unlimitedCardFilter": "Carte Illimitée",
|
||||
"sortByLabel": "Trier par",
|
||||
"pleaseLogInToViewPasses": "Veuillez vous connecter pour voir vos pass",
|
||||
"logInAccessPasses": "Connectez-vous pour accéder à vos pass, offres exclusives et réductions.",
|
||||
"noPassYet": "Vous n'avez pas encore de Pass ! 😕",
|
||||
"getAPassUnlockOffers": "Obtenez un pass et débloquez des offres exclusives, des réductions et plus.",
|
||||
"buyAPass": "Acheter un Pass",
|
||||
"attractionSingular": "Attraction",
|
||||
"attractionsPlural": "Attractions",
|
||||
"daySingular": "Jour",
|
||||
"daysPlural": "Jours",
|
||||
"cardSuffixLabel": " Carte",
|
||||
"adultsPrefix": "Adultes-",
|
||||
"kidsPrefix": " • Enfants-",
|
||||
"validTillPrefix": "Valable jusqu'au : ",
|
||||
"noPostcardOrdersYet": "On dirait que vous n'avez pas encore commandé\nde cartes postales !",
|
||||
"whipUpFunPostcardOrders": "Que diriez-vous de préparer une carte postale amusante à envoyer à vos proches ? Commençons !",
|
||||
"searchOrdersHint": "Rechercher des commandes...",
|
||||
"foundPrefix": "Trouvé ",
|
||||
"ofMiddle": " sur ",
|
||||
"ordersSuffix": " commandes",
|
||||
"noOrdersFound": "Aucune commande trouvée",
|
||||
"tryAdjustingSearchQuery": "Essayez d'ajuster votre requête de recherche",
|
||||
"errorLoadingOrders": "Erreur lors du chargement des commandes",
|
||||
"retryButtonLabel": "Réessayer",
|
||||
"statusLabel": "Statut :",
|
||||
"previewButtonLabel": "Aperçu",
|
||||
"noPostcardDraftsYet": "On dirait que vous n'avez encore\ncréé aucune carte postale !",
|
||||
"whipUpFunPostcardDrafts": "Pourquoi ne pas préparer une carte postale et l'envoyer à quelqu'un de spécial qui est loin ?",
|
||||
"searchDraftsHint": "Rechercher des brouillons...",
|
||||
"draftsSuffix": " brouillons",
|
||||
"noSearchAvailable": "Aucune recherche disponible",
|
||||
"tryDifferentKeywords": "Essayez de rechercher avec d'autres mots-clés",
|
||||
"errorLoadingDrafts": "Erreur lors du chargement des brouillons",
|
||||
"deleteButtonLabel": "Supprimer",
|
||||
"editButtonLabel": "Modifier",
|
||||
"sendButtonLabel": "Envoyer",
|
||||
"myDraftsTab": "Mes brouillons",
|
||||
"myOrdersTab": "Mes commandes",
|
||||
"createPostcardButton": "Créer une carte postale",
|
||||
"makeMostOfTrip": "Profitez au maximum de votre voyage",
|
||||
"designUniquePostcards": "Concevez vos propres cartes postales uniques pour\nchérir vos moments inoubliables.",
|
||||
"letsCreateButton": "Créons ",
|
||||
"notLoggedInPostCards": "Vous n'êtes pas encore connecté !",
|
||||
"loginToDesignPostcards": "Pour concevoir vos propres cartes postales uniques, connectez-vous\net achetez un pass illimité",
|
||||
"errorLoadingDataTitle": "Erreur de chargement des données",
|
||||
"buyACardTitle": "Acheter une carte",
|
||||
"memberPrivilegesTitle": "Privilèges de membre",
|
||||
"noOffersAvailable": "Aucune offre disponible",
|
||||
"availableAttractionsTitle": "Attractions disponibles",
|
||||
"featureAccessToAttractions": "Accès aux attractions",
|
||||
"featureEntryToAttractions": "Entrée aux attractions",
|
||||
"featureAccessToExperiences": "Accès aux expériences",
|
||||
"featureEntryToSites": "Entrée aux sites",
|
||||
"featureAccessToVenues": "Accès aux lieux",
|
||||
"featureEntryToEvents": "Entrée aux événements",
|
||||
"featureAccessToItineraryCreation": "Accès à la création d'itinéraires",
|
||||
"featureAccessToPostcardCreation": "Accès à la création de cartes postales",
|
||||
"featuresTitle": "Caractéristiques",
|
||||
"unlimitedTitle": "Illimité",
|
||||
"fromPrefix": "À partir de ",
|
||||
"perAdultSuffix": " /Adulte",
|
||||
"andPrefix": "et ",
|
||||
"perChildSuffix": " /enfant",
|
||||
"diveIntoSelection": "Plongez dans une vaste sélection de destinations passionnantes !",
|
||||
"noOfAdultsLabel": "Nb. d'adultes",
|
||||
"noOfChildrenLabel": "Nb. d'enfants",
|
||||
"noOfDaysLabel": "Nb. de jours",
|
||||
"noOfAttractionsLabel": "Nb. d'attractions",
|
||||
"youPayLabel": "Vous payez",
|
||||
"pleaseWaitLabel": "Veuillez patienter...",
|
||||
"proceedToPayLabel": "Procéder au paiement",
|
||||
"atLeastOneAdultRequired": "Au moins 1 adulte est requis",
|
||||
"cannotGoBelowZero": "Ne peut pas être inférieur à 0",
|
||||
"noCheckoutDataAvailable": "Aucune donnée de paiement disponible",
|
||||
"goBackButtonLabel": "Retourner",
|
||||
"completePaymentTitle": "Completar paiement",
|
||||
"processingPaymentMessage": "Traitement du paiement de votre pass...",
|
||||
"paymentSuccessfulMessage": "Paiement réussi !\nVotre pass est prêt.",
|
||||
"paymentFailedMessage": "Échec du paiement",
|
||||
"paymentCancelledMessage": "Paiement annulé",
|
||||
"paymentConfirmedMessage": "Paiement confirmé avec succès !",
|
||||
"checkoutTitle": "Caisse",
|
||||
"adultLabelSingular": "adulte",
|
||||
"adultLabelPlural": "adultes",
|
||||
"kidLabelSingular": "Enfant",
|
||||
"kidLabelPlural": "Enfants",
|
||||
"loadingCoupons": "Chargement des coupons...",
|
||||
"errorLoadingCoupons": "Erreur lors du chargement des coupons",
|
||||
"couponAppliedPrefix": "Coupon appliqué : ",
|
||||
"discountOnPrefix": " remise sur ",
|
||||
"noCouponsAvailable": "Aucun coupon disponible",
|
||||
"viewAllCoupons": "Voir tous les coupons",
|
||||
"pleaseLoginToApplyCoupon": "Veuillez vous connecter pour appliquer le coupon",
|
||||
"applyingLabel": "Application...",
|
||||
"removeLabel": "Retirer",
|
||||
"applyLabel": "Appliquer",
|
||||
"subtotalLabel": "Sous-total",
|
||||
"discountLabel": "Remise",
|
||||
"totalLabel": "Total",
|
||||
"includingTaxesPrefix": "Dont ",
|
||||
"inTaxesSuffix": " de taxes",
|
||||
"allCouponsTitle": "Tous les coupons",
|
||||
"applyCouponLabel": "Appliquer le coupon",
|
||||
"purchaseDetailsTitle": "Détails de l'achat",
|
||||
"buyPassForMyselfTitle": "Acheter un pass pour moi",
|
||||
"editDetailsLabel": "Modifier les détails",
|
||||
"giftThePassTitle": "Offrir le pass",
|
||||
"giftThePassDescription": "Offrir le pass à quelqu'un",
|
||||
"proceedLabel": "Procéder",
|
||||
"processingLabel": "Traitement...",
|
||||
"payPrefixLabel": "Payer ",
|
||||
"loginToCheckoutLabel": "Connectez-vous pour payer",
|
||||
"yourCartTitle": "Votre panier",
|
||||
"myCardsTab": "Mes cartes",
|
||||
"myPostCardsTab": "Mes cartes postales",
|
||||
"yourCartIsEmpty": "Votre panier est vide",
|
||||
"attractionsLabelSuffix": " Attractions",
|
||||
"daysLabelSuffix": " Jours",
|
||||
"youDoNotHaveAnyPasses": "Vous n'avez aucun pass",
|
||||
"emptyPassesDescription": "Obtenez un pass et profitez d'offres, de réductions et plus encore lors de votre voyage dans votre ville préférée",
|
||||
"buyAPassLabel": "Acheter un Pass",
|
||||
"errorLoadingCart": "Erreur lors du chargement du panier",
|
||||
"purchaseOnePostcardAtTime": "Vous pouvez acheter une carte postale à la fois",
|
||||
"proceedToCheckoutLabel": "Procéder au paiement",
|
||||
"loginToAccessPostcardsCart": "Pour accéder à votre panier de cartes postales, veuillez vous connecter",
|
||||
"youDoNotHaveAnyPostcards": "Vous n'avez pas de cartes postales",
|
||||
"emptyPostcardsDescription": "Vous ne possédez encore aucune carte postale et n'en avez envoyé à personne",
|
||||
"designMyPostcardLabel": "Concevoir ma carte postale",
|
||||
"somethingWentWrong": "Un problème est survenu",
|
||||
"retryLabel": "Réessayer",
|
||||
"editDraftLabel": "Modifier le brouillon",
|
||||
"backTitle": "Retour",
|
||||
"magicItineraryTitle": "Itinéraire Magique ✨",
|
||||
"stepPrefix": "Étape ",
|
||||
"ofSuffix": " sur ",
|
||||
"createYourLabel": "Créez votre",
|
||||
"magicItinerarySubtitle": " itinéraire magique",
|
||||
"itineraryCreationStartDescription": "Salut ! Répondez juste à quelques questions amusantes et nous vous préparerons un voyage totalement adapté à vous ! ✈️✨",
|
||||
"letsExploreTogether": "Explorons ensemble !",
|
||||
"takesOnlyTwoMinutes": "Prend seulement 2 minutes ⏱️",
|
||||
"gatheringPreferencesLabel": "Collecte de vos préférences...",
|
||||
"findingBestSpotsLabel": "Recherche des meilleurs endroits...",
|
||||
"buildingScheduleLabel": "Création de votre programme...",
|
||||
"almostThereLabel": "Presque là...",
|
||||
"yourLabel": "Votre ",
|
||||
"magicItineraryLabel": "Itinéraire Magique",
|
||||
"isLabel": " est ",
|
||||
"readyLabel": "Prêt ",
|
||||
"weHaveGotEverythingWeNeed": "Nous avons tout ce qu'il faut pour planifier votre voyage parfait",
|
||||
"startOverLabel": "Recommencer",
|
||||
"getMyTripPlan": "Obtenir mon plan de voyage",
|
||||
"creatingLabel": "Création\n",
|
||||
"yourItineraryLabel": "Votre Itinéraire",
|
||||
"travelingWithKidsLabel": "Voyage avec\n enfants",
|
||||
"noKidsWithMeLabel": "Pas d'enfants",
|
||||
"areYouTravellingWithKidsLabel": "Voyagez-vous avec des enfants ?",
|
||||
"noRestrictionsLabel": "Aucune restriction",
|
||||
"vegetarianLabel": "Végétarien",
|
||||
"veganLabel": "Vététalien",
|
||||
"pescatarianLabel": "Pescétarien",
|
||||
"halalLabel": "Halal",
|
||||
"kosherLabel": "Casher",
|
||||
"doYouFollowDietaryPreferenceLabel": "Suivez-vous un régime alimentaire particulier ?",
|
||||
"whenAreYouPlanningToVisitLabel": "Salut ! Quand prévoyez-vous de visiter ?",
|
||||
"selectADateLabel": "Sélectionner une date",
|
||||
"continueTitle": "Continuer",
|
||||
"relaxedAndChillLabel": "Détendu et calme",
|
||||
"balancedMixLabel": "Mélange équilibré",
|
||||
"activeAndEnergeticLabel": "Actif et énergique",
|
||||
"fullAdventureLabel": "Aventure totale !",
|
||||
"whatKindOfEnergyLabel": "Quelle énergie recherchez-vous pour ce voyage ?",
|
||||
"notInterestedLabel": "Pas intéressé",
|
||||
"maybeOneOrTwoLabel": "Peut-être un ou deux",
|
||||
"yesSoundsGoodLabel": "Oui, ça a l'air bien !",
|
||||
"absolutelyLoveThemLabel": "J'adore absolument !",
|
||||
"doYouEnjoyMuseumsLabel": "Aimez-vous visiter les musées et galeries d'art ?",
|
||||
"@esimOfferTitle": {},
|
||||
"esimOfferTitle": "Connectez-vous instantanément avec votre eSIM gratuite",
|
||||
"@esimOfferSubtitle": {},
|
||||
"esimOfferSubtitle": "Chaque grand voyage commence par une connectivité fluide.",
|
||||
"@viewPlans": {},
|
||||
"viewPlans": "Voir les plans",
|
||||
"@withYour": {},
|
||||
"withYour": "Avec votre ",
|
||||
"@esimKeyword": {},
|
||||
"esimKeyword": "eSIM",
|
||||
"@youCanKeyword": {},
|
||||
"youCanKeyword": ", vous pouvez :",
|
||||
"@navigateCity": {},
|
||||
"navigateCity": "Naviguez dans la ville en toute simplicité",
|
||||
"@navigateCityDesc": {},
|
||||
"navigateCityDesc": "Accédez à des cartes et des directions en temps réel partout où vous allez",
|
||||
"@bookRides": {},
|
||||
"bookRides": "Réservez des trajets, accédez à des cartes et trouvez des attractions en temps réel",
|
||||
"@bookRidesDesc": {},
|
||||
"bookRidesDesc": "Restez connecté à tous les services de voyage essentiels",
|
||||
"@sharePhotos": {},
|
||||
"sharePhotos": "Partagez instantanément photos et souvenirs",
|
||||
"@sharePhotosDesc": {},
|
||||
"sharePhotosDesc": "Téléchargez et partagez vos moments de voyage sans attendre",
|
||||
"@stayConnectedFeatures": {},
|
||||
"stayConnectedFeatures": "Restez connecté avec vos amis, votre famille et vos projets de voyage",
|
||||
"@stayConnectedFeaturesDesc": {},
|
||||
"stayConnectedFeaturesDesc": "Ne manquez jamais les mises à jour ou les messages importants pendant votre voyage",
|
||||
"@simpleKeyword": {},
|
||||
"simpleKeyword": "Simple ",
|
||||
"@threeStepProcess": {},
|
||||
"threeStepProcess": "Processus en 3 étapes",
|
||||
"@getConnectedInSeconds": {},
|
||||
"getConnectedInSeconds": "Connectez-vous en quelques secondes",
|
||||
"@receiveQrCode": {},
|
||||
"receiveQrCode": "Recevoir le code QR",
|
||||
"@receiveQrCodeDesc": {},
|
||||
"receiveQrCodeDesc": "Obtenez votre code QR eSIM unique avec votre CityCard",
|
||||
"@scanCode": {},
|
||||
"scanCode": "Scanner le code",
|
||||
"@scanCodeDesc": {},
|
||||
"scanCodeDesc": "Ouvrez l'appareil photo de votre téléphone et scannez le code QR",
|
||||
"@connectedStep": {},
|
||||
"connectedStep": "Connecté",
|
||||
"@connectedStepDesc": {},
|
||||
"connectedStepDesc": "Vous êtes en ligne instantanément - commencez à explorer !",
|
||||
"@itsOneMoreWay": {},
|
||||
"itsOneMoreWay": "C'est une façon de plus",
|
||||
"@cityCardsKeywordSpace": {},
|
||||
"cityCardsKeywordSpace": " CityCards",
|
||||
"@makesYourJourney": {},
|
||||
"makesYourJourney": "rend votre voyage",
|
||||
"@smarterKeywordSpace": {},
|
||||
"smarterKeywordSpace": " plus intelligent",
|
||||
"@andMoreSpace": {},
|
||||
"andMoreSpace": "et plus",
|
||||
"@effortlessSpace": {},
|
||||
"effortlessSpace": " sans effort",
|
||||
"@startYourJourneyToday": {},
|
||||
"startYourJourneyToday": "Commencez votre voyage aujourd'hui",
|
||||
"@enjoy20OffMarriott": {},
|
||||
"enjoy20OffMarriott": "Profitez de -20 % sur les hôtels Marriott emblématiques - exclusivement avec CityCards",
|
||||
"@makeEveryStayUnforgettable": {},
|
||||
"makeEveryStayUnforgettable": "Faites de chaque séjour un moment aussi inoubliable que la ville que vous explorez.",
|
||||
"@bookNow": {},
|
||||
"bookNow": "Réserver maintenant",
|
||||
"@yourCityCardsUnlocksMore": {},
|
||||
"yourCityCardsUnlocksMore": "Votre CityCards débloque plus que de simples attractions — elle ouvre également les portes de séjours exceptionnels.",
|
||||
"@thanksToOurExclusivePartnership": {},
|
||||
"thanksToOurExclusivePartnership": "Grâce à notre partenariat exclusif avec ",
|
||||
"@marriottHotelsKeyword": {},
|
||||
"marriottHotelsKeyword": "Marriott Hotels",
|
||||
"@cityCardsHoldersEnjoy": {},
|
||||
"cityCardsHoldersEnjoy": ", les détenteurs de CityCards bénéficient de ",
|
||||
"@twentyPercentOffRates": {},
|
||||
"twentyPercentOffRates": "-20 % sur les meilleurs tarifs disponibles",
|
||||
"@acrossCuratedProperties": {},
|
||||
"acrossCuratedProperties": " dans une sélection d'établissements de la ville.",
|
||||
"@chooseFromAKeyword": {},
|
||||
"chooseFromAKeyword": "Choisissez parmi une ",
|
||||
"@wideVarietyBreak": {},
|
||||
"wideVarietyBreak": "Grande \nVariété",
|
||||
"@chooseFromAWideVarietyDesc": {},
|
||||
"chooseFromAWideVarietyDesc": "Choisissez parmi une grande variété d'hôtels Marriott — des retraites urbaines élégantes aux emplacements premium en centre-ville, en passant par des expériences luxueuses cinq étoiles — tous conçus pour rendre votre voyage ",
|
||||
"@effortlessComfortable": {},
|
||||
"effortlessComfortable": "facile, confortable",
|
||||
"@andMiddle": {},
|
||||
"andMiddle": " et ",
|
||||
"@memorableKeyword": {},
|
||||
"memorableKeyword": "mémorable",
|
||||
"@simplyUseYourCityCards": {},
|
||||
"simplyUseYourCityCards": "Utilisez simplement votre ",
|
||||
"@bookingLinkTo": {},
|
||||
"bookingLinkTo": " lien de réservation CityCards pour :",
|
||||
"@access20OffRates": {},
|
||||
"access20OffRates": "Accédez à -20 % sur les meilleurs tarifs disponibles",
|
||||
"@saveOnYourStay": {},
|
||||
"saveOnYourStay": "Économisez sur votre séjour dans les établissements Marriott premium",
|
||||
"@enjoyPriorityCheckIn": {},
|
||||
"enjoyPriorityCheckIn": "Profitez d'un enregistrement prioritaire et d'un départ tardif",
|
||||
"@subjectToAvailability": {},
|
||||
"subjectToAvailability": "Sous réserve de disponibilité pour votre confort",
|
||||
"@receiveExclusiveSeasonalOffers": {},
|
||||
"receiveExclusiveSeasonalOffers": "Recevez des offres saisonnières exclusives",
|
||||
"@designedSpeciallyForCityCards": {},
|
||||
"designedSpeciallyForCityCards": "Conçu spécialement pour les voyageurs CityCards",
|
||||
"@itsJustOneMoreWay": {},
|
||||
"itsJustOneMoreWay": "C'est une façon de plus dont",
|
||||
"@makesExploring": {},
|
||||
"makesExploring": " rend l'exploration",
|
||||
"@simplerKeyword": {},
|
||||
"simplerKeyword": " plus simple",
|
||||
"@moreRewarding": {},
|
||||
"moreRewarding": " plus gratifiante",
|
||||
"@getYourCityCardsToday": {},
|
||||
"getYourCityCardsToday": "Obtenez votre CityCards aujourd'hui",
|
||||
"shareSubject": "Regardez ça",
|
||||
"scanAtAttractionSite": "Scannez ceci sur le site de l'attraction",
|
||||
"codeCopied": "Code copié dans le presse-papiers",
|
||||
"checkedIn": "Enregistré",
|
||||
"checkIn": "S'enregistrer",
|
||||
"problemsRedeemingPass": "Vous avez des problèmes pour utiliser le pass ? ",
|
||||
"clickHere": "Cliquez ici",
|
||||
"about": "À propos",
|
||||
"howToMakeBooking": "Comment faire une réservation ?",
|
||||
"contactNumber": "Numéro de contact",
|
||||
"tapToCall": "Appuyez pour appeler",
|
||||
"email": "E-mail",
|
||||
"tapToEmail": "Appuyez pour envoyer un e-mail",
|
||||
"datesNotAvailable": "Dates non disponibles",
|
||||
"viaCityCards": "Via CityCards",
|
||||
"createBookingViaApp": "Créer une réservation via l'application",
|
||||
"whatIsIncluded": "Ce qui est inclus",
|
||||
"exactLocation": "Emplacement exact",
|
||||
"viewLocationOnMap": "Voir l'emplacement sur la carte",
|
||||
"peopleFrequentlyAsk": "Les gens demandent souvent",
|
||||
"errorMessage": "Erreur : {message}",
|
||||
"suggestedAttractions": "Attractions suggérées",
|
||||
"viewAllAttractions": "Voir toutes les attractions",
|
||||
"recommendedOffers": "Offres recommandées",
|
||||
"viewAllOffers": "Voir toutes les offres",
|
||||
"learnAboutPolicies": "En savoir plus sur les politiques",
|
||||
"pricePerPerson": "{price}$/personne",
|
||||
"priceNotAvailable": "Prix non disponible",
|
||||
"bookingRequired": "Réservation obligatoire",
|
||||
"adultsLabel": "Adultes",
|
||||
"kidsLabel": "Enfants",
|
||||
"checkedInSuccessful": "Enregistrement réussi",
|
||||
"readyToCheckIn": "Prêt à s'enregistrer ?",
|
||||
"entranceActivationNote": "N'activez que lorsque vous êtes à l'entrée de ",
|
||||
"minuteTimer": "Minuteur de {minutes} minutes",
|
||||
"timerActivationWarning": "Une fois activé, le pass est valable pendant {minutes} minutes. Cette action est irréversible",
|
||||
"activatePassNow": "Activer le pass maintenant",
|
||||
"notAtEntranceYet": "Je ne suis pas encore à l'entrée",
|
||||
"howToRedeemTitle": "Comment échanger mon pass attraction ?",
|
||||
"howToRedeemDescription": "Pour échanger votre pass attraction, présentez le code QR à l'entrée. Notre personnel le scannera, vous donnant accès aux merveilles à l'intérieur. Profitez de votre aventure à ",
|
||||
"contactSupport": "Contacter le support",
|
||||
"passAttractionsTitle": "Attractions du pass",
|
||||
"searchAttractionsHint": "Rechercher des attractions...",
|
||||
"noAttractionsFound": "Aucune attraction trouvée",
|
||||
"noAttractionsMatchSearch": "Aucune attraction ne correspond à votre recherche",
|
||||
"selectiveCardFilter": "Carte Sélective",
|
||||
"offersWithCardTitle": "Offres avec {cardName}",
|
||||
"searchOffersHint": "Rechercher des offres",
|
||||
"noOffersFound": "Aucune offre trouvée",
|
||||
"codeCopiedMessage": "Code copié : {code}",
|
||||
"noDataAvailable": "Aucune donnée disponible",
|
||||
"userPossessive": "{firstName}",
|
||||
"tripDetails": "DÉTAILS DU VOYAGE :",
|
||||
"daysCount": "{count} Jours",
|
||||
"stopsCount": "{count} arrêts",
|
||||
"adultsCount": "{count} adultes",
|
||||
"kidsCount": "{count} enfants",
|
||||
"shareLabel": "Partager",
|
||||
"preparingPdfToShare": "Préparation du PDF à partager...",
|
||||
"myItinerarySubject": "Mon itinéraire - {title}",
|
||||
"failedToShare": "Échec du partage : {error}",
|
||||
"downloadLabel": "Télécharger",
|
||||
"downloadingLabel": "Téléchargement...",
|
||||
"downloadingPdf": "Téléchargement du PDF...",
|
||||
"dailyView": "Vue par jour",
|
||||
"summary": "Résumé",
|
||||
"dayNumberLabel": "Jour {number}",
|
||||
"pleaseFillAllFields": "Veuillez remplir tous les champs",
|
||||
"enterValidEmail": "Veuillez saisir une adresse e-mail valide",
|
||||
"enterValidPhoneForIsd": "Saisissez un numéro de téléphone valide pour {isdCode}",
|
||||
"failedToSubmitDetails": "Échec de l'envoi des détails",
|
||||
"addDetailsTitle": "Ajouter des détails",
|
||||
"aboutRecipient": "Parlez-nous du destinataire",
|
||||
"firstNameLabelWithStar": "Prénom *",
|
||||
"firstNameHint": "Saisissez le prénom du destinataire",
|
||||
"lastNameLabelWithStar": "Nom *",
|
||||
"lastNameHint": "Saisissez le nom du destinataire",
|
||||
"emailLabelWithStar": "E-mail *",
|
||||
"emailHint": "Saisissez l'adresse e-mail du destinataire",
|
||||
"phoneNumberLabelWithStar": "Numéro de téléphone *",
|
||||
"phoneNumberHint": "Saisissez le numéro de téléphone",
|
||||
"searchCountryHint": "Rechercher un pays...",
|
||||
"cityLabelWithStar": "Ville *",
|
||||
"cityHint": "Saisissez le nom de la ville",
|
||||
"countryLabelWithStar": "Pays *",
|
||||
"countryHint": "Saisissez le nom du pays",
|
||||
"submittingLabel": "Envoi en cours...",
|
||||
"yourAttractionTitle": "Votre attraction",
|
||||
"perPersonSuffix": "/personne",
|
||||
"checkThisOut": "Regardez ça",
|
||||
"whatIsIncluded": "Ce qui est inclus",
|
||||
"peopleFrequentlyAsk": "Les gens demandent souvent",
|
||||
"aboutTitle": "À propos",
|
||||
"exactLocation": "Emplacement exact",
|
||||
"viewOnMap": "Voir l'emplacement sur la carte",
|
||||
"selectImageSource": "Sélectionner la source de l'image",
|
||||
"cameraLabel": "Appareil photo",
|
||||
"galleryLabel": "Galerie",
|
||||
"failedToPickImage": "Échec de la sélection de l'image : {error}",
|
||||
"userIdNotFound": "ID utilisateur non trouvé",
|
||||
"changeProfilePicture": "Changer la photo de profil",
|
||||
"enterYourFirstName": "Saisissez votre prénom",
|
||||
"firstNameRequired": "Le prénom est obligatoire",
|
||||
"enterYourLastName": "Saisissez votre nom",
|
||||
"lastNameRequired": "Le nom est obligatoire",
|
||||
"enterYourEmail": "Saisissez votre e-mail",
|
||||
"enterYourPhoneNumber": "Saisissez votre numéro de téléphone",
|
||||
"addressLabelWithStar": "Adresse *",
|
||||
"addressHint": "Saisissez l'adresse manuellement ou appuyez pour rechercher",
|
||||
"address2Optional": "Adresse 2 (Facultatif)",
|
||||
"address2Hint": "Saisissez des détails d'adresse supplémentaires",
|
||||
"zipCodeLabelWithStar": "Code postal *",
|
||||
"zipCodeHint": "Saisissez le code postal de votre résidence",
|
||||
"enterYourCity": "Saisissez le nom de votre ville",
|
||||
"stateLabelWithStar": "État *",
|
||||
"enterYourState": "Saisissez votre état",
|
||||
"enterYourCountry": "Saisissez votre pays",
|
||||
"editProfileTitle": "Modifier le profil",
|
||||
"personalDetails": "Détails personnels",
|
||||
"locationDetails": "Détails de l'emplacement",
|
||||
"cancelTitle": "Annuler",
|
||||
"saveTitle": "Enregistrer",
|
||||
"contactUsTitle": "Contactez-nous",
|
||||
"contactUsMessage": "Vous pouvez nous contacter via les plateformes ci-dessous. Notre équipe vous contactera sous peu",
|
||||
"customerSupport": "Service client",
|
||||
"contactNumberLabel": "Numéro de contact",
|
||||
"tapToCall": "Appuyez pour appeler",
|
||||
"emailLabel": "E-mail",
|
||||
"tapToEmail": "Appuyez pour envoyer un e-mail",
|
||||
"locationLabel": "Emplacement",
|
||||
"enterYourEmailAddress": "Saisissez votre adresse e-mail",
|
||||
"emailRequired": "L'e-mail est obligatoire",
|
||||
"enterValidEmail": "Saisissez une adresse e-mail valide",
|
||||
"phoneNumberRequired": "Le numéro de téléphone est obligatoire",
|
||||
"descriptionLabelWithStar": "Description *",
|
||||
"writeMessageHint": "Écrivez votre message ici",
|
||||
"submitTicket": "Envoyer le ticket",
|
||||
"termsAndConditionsTitle": "Termes et conditions",
|
||||
"privacyPolicyTitle": "Politique de confidentialité",
|
||||
"faqTitle": "FAQ",
|
||||
"noTermsContent": "Aucun contenu des termes et conditions disponible.",
|
||||
"noPrivacyContent": "Aucun contenu de politique de confidentialité disponible.",
|
||||
"retryLabel": "Réessayer",
|
||||
"errorLabel": "Erreur",
|
||||
"offersWithCard": "Offres avec carte {cardName}",
|
||||
"@offersWithCard": {
|
||||
"placeholders": {
|
||||
"cardName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"searchOffersHint": "Rechercher des offres",
|
||||
"noOffersFound": "Aucune offre trouvée",
|
||||
"aboutPartner": "À propos de {partnerName}",
|
||||
"@aboutPartner": {
|
||||
"placeholders": {
|
||||
"partnerName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"howToMakeBooking": "Comment faire une réservation ?",
|
||||
"bookingStep1": "Vérifiez la date d'expiration de votre coupon pour vous assurer qu'il est toujours valide.",
|
||||
"bookingStep2": "Visitez le magasin ou le site Web où le coupon peut être utilisé.",
|
||||
"bookingStep3": "Si vous achetez en ligne, ajoutez des articles à votre panier et passez à la caisse.",
|
||||
"bookingStep4": "Recherchez un champ intitulé 'Code promo' ou 'Code de réduction' lors du paiement.",
|
||||
"bookingStep5": "Saisissez votre code promo exactement tel qu'il apparaît, y compris les caractères spéciaux.",
|
||||
"couponCodeCopied": "Code promo copié !",
|
||||
"createYourAccount": "Créez votre compte",
|
||||
"personalInformation": "Informations personnelles",
|
||||
"locationDetailsWithStar": "Détails de l'emplacement *",
|
||||
"enterYourAddress": "Entrez votre adresse",
|
||||
"autoFillZipNote": "La ville, l'état et le pays seront remplis automatiquement à partir du code postal",
|
||||
"creatingLabelEllipsis": "Création...",
|
||||
"createAccount": "Créer un compte",
|
||||
"getStarted": "Commencer",
|
||||
"enterEmailToBegin": "Entrez votre e-mail pour commencer votre voyage CityCards",
|
||||
"emailExampleHint": "john.doe@gmail.com",
|
||||
"pleaseEnterEmail": "Veuillez entrer votre adresse e-mail",
|
||||
"sendingLabel": "Envoi en cours...",
|
||||
"otpVerifiedSuccess": "OTP vérifié avec succès !",
|
||||
"completeProfileNote": "Veuillez compléter votre profil",
|
||||
"otpResentSuccess": "OTP renvoyé avec succès !",
|
||||
"verifyYourPhone": "Vérifiez votre téléphone",
|
||||
"enterVerificationCodeNote": "Entrez le code de vérification envoyé à votre adresse e-mail",
|
||||
"resendingLabel": "Renvoi en cours...",
|
||||
"resendOtpLabel": "Renvoyer l'OTP",
|
||||
"resendOtpWithTimer": "Renvoyer l'OTP ({seconds}s)",
|
||||
"pleaseEnterCompleteOtp": "Veuillez entrer l'OTP complet",
|
||||
"verifyingLabel": "Vérification...",
|
||||
"ok": "OK",
|
||||
"uploadAPhoto": "Télécharger une photo",
|
||||
"orLabel": "OU",
|
||||
"takeAPhoto": "Prendre une photo",
|
||||
"uploadAgain": "Télécharger à nouveau",
|
||||
"nextTitle": "Suivant",
|
||||
"addImage": "Ajouter une image",
|
||||
"addAFilter": "Ajouter un filtre",
|
||||
"chooseFavoriteFilter": "Choisissez votre filtre préféré et améliorez votre carte postale.",
|
||||
"filterOriginal": "Original",
|
||||
"filterBW": "Noir et blanc",
|
||||
"filterSepia": "Sépia",
|
||||
"filterVintage": "Vintage",
|
||||
"filterCoolTone": "Ton froid",
|
||||
"filterContrast": "Contraste",
|
||||
"filterSoftGlow": "Lueur douce",
|
||||
"writeYourMessage": "Écrivez votre message",
|
||||
"failedToFetchEditDetails": "Échec de la récupération des détails de l'édition",
|
||||
"saveChanges": "Enregistrer les modifications",
|
||||
"writeAMessage": "Écrire un message",
|
||||
"addYourMessageHere": "Ajoutez votre message ici",
|
||||
"fontDefault": "Par défaut",
|
||||
"previewYourPostcard": "Aperçu de votre carte postale",
|
||||
"flipLabel": "Retourner",
|
||||
"buyPostcardForMyself": "Acheter une carte postale pour moi-même",
|
||||
"editDetailsLabel": "Modifier les détails",
|
||||
"giftPostcardForSomeoneElse": "Offrir la carte postale à quelqu'un d'autre",
|
||||
"addTitleLabel": "Ajouter un titre",
|
||||
"enterTitleHint": "Entrer le titre",
|
||||
"pleaseEnterTitle": "Veuillez entrer un titre",
|
||||
"yourDetailsTitle": "Vos coordonnées",
|
||||
"senderDetailsDescription": "Entrez vos coordonnées en tant qu'expéditeur de cette carte postale",
|
||||
"fullNameLabel": "Nom complet",
|
||||
"enterFullNameHint": "Entrez le nom complet",
|
||||
"cityLabel": "Ville",
|
||||
"enterCityHint": "Entrez le nom de votre ville",
|
||||
"countryLabel": "Pays",
|
||||
"enterCountryHint": "Entrez votre pays",
|
||||
"recipientDetailsTitle": "Coordonnées du destinataire",
|
||||
"recipientDetailsDescription": "Entrez l'adresse de la personne qui recevra cette carte postale",
|
||||
"selfDetailsDescription": "Entrez vos coordonnées pour cette carte postale.",
|
||||
"recipientNameLabel": "Nom du destinataire",
|
||||
"enterRecipientNameHint": "Entrez le nom du destinataire",
|
||||
"addressLabel": "Adresse",
|
||||
"enterRecipientAddressHint": "Entrez l'adresse du destinataire",
|
||||
"zipCodeLabel": "Code postal",
|
||||
"enterZipCodeHint": "Entrez le code postal où vous résidez",
|
||||
"pleaseEnterZipCode": "Veuillez entrer le code postal",
|
||||
"stateLabel": "État/Province",
|
||||
"enterStateHint": "Entrer votre état",
|
||||
"pleaseEnterField": "Veuillez entrer {fieldName}",
|
||||
"invalidEmailError": "Veuillez entrer une adresse e-mail valide",
|
||||
"onlyNumbersAllowed": "Seuls les chiffres sont autorisés",
|
||||
"mobileNumberLengthError": "Le numéro de mobile doit comporter {length} chiffres",
|
||||
"onlyLettersAllowed": "Seules les lettres sont autorisées",
|
||||
"spacesNotAllowed": "Les espaces ne sont pas autorisés",
|
||||
"specialCharsNotAllowed": "Les caractères spéciaux ne sont pas autorisés",
|
||||
"saveAsDraftLabel": "Enregistrer comme brouillon",
|
||||
"deliveryAddressLabel": "Adresse de livraison",
|
||||
"paymentSummaryLabel": "Résumé du paiement",
|
||||
"grandTotalLabel": "Total général",
|
||||
"paymentFailedError": "Échec du paiement : {error}",
|
||||
"paymentInitializationFailedError": "Erreur : Échec de l'initialisation du paiement",
|
||||
"draftSavedSuccess": "Brouillon enregistré avec succès !",
|
||||
"payAmountLabel": "Payer ${amount}",
|
||||
"orderPlacedSuccess": "Commande passée avec succès !",
|
||||
"orderPlacedDescription": "Votre commande a été passée. Votre numéro de commande est {orderId}",
|
||||
"deliveryTimelineNote": "Elle sera livrée sous 2 à 3 jours ouvrables.",
|
||||
"goToMyOrdersLabel": "Aller à Mes Commandes",
|
||||
"messagePreviewLabel": "Aperçu du message",
|
||||
"postcardLabel": "Carte postale",
|
||||
"homeTitle": "CityCards.\nVoir plus,\nDépenser moins.",
|
||||
"homeSubtitle": "Accès QR instantané à plus de 40 attractions,\navantages exclusifs et jusqu'à 30% d'économie",
|
||||
"getYourCityCards": "Obtenez vos CityCards",
|
||||
"exploreCitiesTitleExplore": "Explorer ",
|
||||
"exploreCitiesTitleCities": "Villes",
|
||||
"upcomingCitiesTitleUpcoming": "Prochainement ",
|
||||
"upcomingCitiesTitleCities": "Villes",
|
||||
"exploreDescription": "Explorez votre destination de rêve et découvrez diverses attractions.",
|
||||
"noCitiesAvailable": "Aucune ville disponible",
|
||||
"notAvailableLabel": "N/A",
|
||||
"editPostcardTitle": "Modifier la carte postale",
|
||||
"uploadImageTitle": "Charger une image",
|
||||
"editPostcardUploadDescription": "Concevez vos propres cartes postales uniques en téléchargeant des images qui capturent vos moments inoubliables.",
|
||||
"editFiltersLabel": "Modifier les filtres",
|
||||
"editTitleLabel": "Modifier le titre ",
|
||||
"editTitleDescription": "Donnez un autre titre à votre carte postale",
|
||||
"titleMaxLengthError": "Le titre peut comporter au maximum 10 lettres",
|
||||
"editMessageLabel": "Modifier le message ",
|
||||
"editMessageDescription": "Concevez vos propres cartes postales uniques pour chérir vos moments inoubliables.",
|
||||
"fullNameLabelWithStar": "Nom complet *",
|
||||
"recipientLabelWithStar": "Destinataire *",
|
||||
"pleaseEnterMessage": "Veuillez saisir un message",
|
||||
"messageMaxLengthError": "Le message peut comporter au maximum 400 caractères",
|
||||
"fontPatrickHand": "Patrick Hand",
|
||||
"fontIndieFlower": "Indie Flower",
|
||||
"fontGloriaHallelujah": "Gloria Hallelujah"
|
||||
}
|
||||
@@ -1,671 +0,0 @@
|
||||
{
|
||||
"@@locale": "ja",
|
||||
"profileTitle": "マイプロフィール",
|
||||
"supportAndLegal": "サポートと法律",
|
||||
"contactUs": "お問い合わせ",
|
||||
"termsAndConditions": "利用規約",
|
||||
"faq": "よくある質問",
|
||||
"privacyPolicy": "プライバシーポリシー",
|
||||
"logout": "ログアウト",
|
||||
"signIn": "サインイン",
|
||||
"heyStranger": "こんにちは! 👋",
|
||||
"guestSubtitle1": "アプリをご利用いただきありがとうございます。",
|
||||
"guestSubtitle2": "登録してみませんか?",
|
||||
"accountSettings": "アカウント設定",
|
||||
"editProfile": "プロフィール編集",
|
||||
"changeLanguage": "言語を変更",
|
||||
"retry": "再試行",
|
||||
"failedToLoadProfile": "プロフィールの読み込みに失敗しました",
|
||||
"changeLanguageTitle": "言語を変更",
|
||||
"searchLanguages": "言語を検索",
|
||||
"save": "保存",
|
||||
"oopsSomethingWentWrong": "おっと!何かが間違っていました",
|
||||
"tryAgain": "やり直す",
|
||||
"defaultCityName": "都市名",
|
||||
"defaultCityDescription": "都市の説明",
|
||||
"noHighlightsAvailable": "ハイライトはありません",
|
||||
"popular": "人気の ",
|
||||
"attractions": "アトラクション",
|
||||
"viewAll": "すべて見る",
|
||||
"createMyMagicItinerary": "魔法の旅程を作成",
|
||||
"claimOffersWithCityCards": "シティカードでオファーを請求する",
|
||||
"offerSubtitleDummy": "Lorem ipsum dolor sit amet...",
|
||||
"noAttractionsAvailable": "利用可能なアトラクションはありません",
|
||||
"explore": "探検 ",
|
||||
"moreCities": "もっと都市を。",
|
||||
"stay": "滞在 ",
|
||||
"connected": "接続中",
|
||||
"everywhere": "どこでも",
|
||||
"claimEsimOffers": "CityCardでe-Simオファーを\n受け取る",
|
||||
"chooseYourCard": "カードを選ぶ",
|
||||
"diveIntoExtensiveSelection": "完璧な休暇を見つけるために...",
|
||||
"from": "から ",
|
||||
"getACard": "カードを取得",
|
||||
"marriott": "MARRIOTT ",
|
||||
"moments": "MOMENTS",
|
||||
"citycard": "CITYCARD ",
|
||||
"prices": "PRICES",
|
||||
"premium": "プレミアム",
|
||||
"stays": "ステイ",
|
||||
"citycardPrices": "CityCard料金",
|
||||
"claimHotelDiscountOffers": "CityCardでホテルの\n割引オファーを受け取る",
|
||||
"back": "戻る",
|
||||
"selectACity": "都市を選択",
|
||||
"searchCities": "都市を検索",
|
||||
"errorLoadingCities": "都市の読み込みエラー",
|
||||
"noCitiesFound": "都市が見つかりません",
|
||||
"individualTickets": "個別チケット:",
|
||||
"cityCardLabel": "City Card:",
|
||||
"getYourCard": "カードを取得する",
|
||||
"fromLabel": "から",
|
||||
"perAdult": " /大人",
|
||||
"planYour": "あなたの ",
|
||||
"dreamJourney": "夢の旅を計画する",
|
||||
"inJust3Seconds": "\nたった3秒で",
|
||||
"navExplore": "探す",
|
||||
"navMagicItinerary": "魔法の旅程",
|
||||
"navMyCards": "マイカード",
|
||||
"navPostcard": "ポストカード",
|
||||
"planYourNextAdventure": "次の冒険を計画する",
|
||||
"createMyItinerary": "私の旅程を作成する",
|
||||
"notLoggedInYet": "まだログインしていません!",
|
||||
"loginOrPurchasePass": "魔法の旅程のロックを解除するには、ログインするかパスを購入してください!",
|
||||
"logInLabel": "ログイン",
|
||||
"noUnlimitedPass": "アンリミテッドパスを持っていません!ὡ4",
|
||||
"getUnlimitedPass": "アンリミテッドパスを取得してカスタム旅程を作成しましょう!",
|
||||
"buyUnlimitedCityCard": "無制限のシティカードを購入する",
|
||||
"noItineraryYet": "まだ旅程がありません!ὡF",
|
||||
"createPersonalizedItinerary": "旅行のニーズに合ったパーソナライズされた魔法の旅程を作成する",
|
||||
"travelPlan": " 旅行プラン",
|
||||
"activeLabel": "アクティブ",
|
||||
"inactiveLabel": "非アクティブ",
|
||||
"daysLabel": " 日間",
|
||||
"attractionsCountLabel": " アトラクション",
|
||||
"createdOnLabel": "作成日 ",
|
||||
"viewItineraryLabel": "旅程を見る",
|
||||
"allFilter": "すべて",
|
||||
"latestFilter": "最新",
|
||||
"oldestFilter": "最も古い",
|
||||
"flexiCardFilter": "フレキシカード",
|
||||
"unlimitedCardFilter": "無制限カード",
|
||||
"sortByLabel": "並び替え",
|
||||
"pleaseLogInToViewPasses": "パスを表示するにはログインしてください",
|
||||
"logInAccessPasses": "ログインしてパス、限定オファー、割引にアクセスしてください。",
|
||||
"noPassYet": "まだパスがありません!😕",
|
||||
"getAPassUnlockOffers": "パスを取得して、限定オファー、割引などのロックを解除しましょう。",
|
||||
"buyAPass": "パスを購入する",
|
||||
"attractionSingular": "アトラクション",
|
||||
"attractionsPlural": "アトラクション",
|
||||
"daySingular": "日",
|
||||
"daysPlural": "日",
|
||||
"cardSuffixLabel": "カード",
|
||||
"adultsPrefix": "大人-",
|
||||
"kidsPrefix": " • 子供-",
|
||||
"validTillPrefix": "有効期限: ",
|
||||
"noPostcardOrdersYet": "まだポストカードを注文していないようです!",
|
||||
"whipUpFunPostcardOrders": "遠く離れた特別な人に送るための楽しいポストカードを作ってみませんか? さっそく始めましょう!",
|
||||
"searchOrdersHint": "注文を検索...",
|
||||
"foundPrefix": "見つかった数 ",
|
||||
"ofMiddle": " / ",
|
||||
"ordersSuffix": " 注文",
|
||||
"noOrdersFound": "注文が見つかりません",
|
||||
"tryAdjustingSearchQuery": "検索クエリを調整してみてください",
|
||||
"errorLoadingOrders": "注文の読み込みエラー",
|
||||
"retryButtonLabel": "再試行",
|
||||
"statusLabel": "ステータス:",
|
||||
"previewButtonLabel": "プレビュー",
|
||||
"noPostcardDraftsYet": "まだポストカードを作成していないようです!",
|
||||
"whipUpFunPostcardDrafts": "遠く離れた特別な人に送るポストカードを作ってみませんか?",
|
||||
"searchDraftsHint": "下書きを検索...",
|
||||
"draftsSuffix": " 下書き",
|
||||
"noSearchAvailable": "検索できません",
|
||||
"tryDifferentKeywords": "別のキーワードで検索してみてください",
|
||||
"errorLoadingDrafts": "下書きの読み込みエラー",
|
||||
"deleteButtonLabel": "削除",
|
||||
"editButtonLabel": "編集",
|
||||
"sendButtonLabel": "送信",
|
||||
"myDraftsTab": "マイ ドラフト",
|
||||
"myOrdersTab": "マイ オーダー",
|
||||
"createPostcardButton": "ポストカードを作成",
|
||||
"makeMostOfTrip": "旅を最大限に楽しむ",
|
||||
"designUniquePostcards": "忘れられない瞬間を大切にするための\n独自のポストカードをデザインしてください。",
|
||||
"letsCreateButton": "作成しましょう",
|
||||
"notLoggedInPostCards": "まだログインしていません!",
|
||||
"loginToDesignPostcards": "独自のポストカードをデザインするには、ログインして\n無制限パスを購入してください",
|
||||
"errorLoadingDataTitle": "データの読み込みエラー",
|
||||
"buyACardTitle": "カードを購入",
|
||||
"memberPrivilegesTitle": "会員特典",
|
||||
"noOffersAvailable": "利用可能なオファーはありません",
|
||||
"availableAttractionsTitle": "利用可能なアトラクション",
|
||||
"featureAccessToAttractions": "アトラクションへのアクセス",
|
||||
"featureEntryToAttractions": "アトラクションへの入場",
|
||||
"featureAccessToExperiences": "体験へのアクセス",
|
||||
"featureEntryToSites": "サイトへの入場",
|
||||
"featureAccessToVenues": "会場へのアクセス",
|
||||
"featureEntryToEvents": "イベントへの入場",
|
||||
"featureAccessToItineraryCreation": "旅程作成へのアクセス",
|
||||
"featureAccessToPostcardCreation": "ポストカード作成へのアクセス",
|
||||
"featuresTitle": "特徴",
|
||||
"unlimitedTitle": "無制限",
|
||||
"fromPrefix": "から ",
|
||||
"perAdultSuffix": " /大人",
|
||||
"andPrefix": "そして ",
|
||||
"perChildSuffix": " /子供",
|
||||
"diveIntoSelection": "スリリングな目的地を幅広くご紹介します!",
|
||||
"noOfAdultsLabel": "大人の数",
|
||||
"noOfChildrenLabel": "子供の数",
|
||||
"noOfDaysLabel": "日数",
|
||||
"noOfAttractionsLabel": "アトラクションの数",
|
||||
"youPayLabel": "お支払い額",
|
||||
"pleaseWaitLabel": "お待ちください...",
|
||||
"proceedToPayLabel": "支払いに進む",
|
||||
"atLeastOneAdultRequired": "最低1人の大人が必要です",
|
||||
"cannotGoBelowZero": "0未満にはできません",
|
||||
"noCheckoutDataAvailable": "チェックアウトデータはありません",
|
||||
"goBackButtonLabel": "戻る",
|
||||
"completePaymentTitle": "支払いを完了する",
|
||||
"processingPaymentMessage": "パスの支払いを処理しています...",
|
||||
"paymentSuccessfulMessage": "支払い成功!\nパスの準備ができました。",
|
||||
"paymentFailedMessage": "支払いに失敗しました",
|
||||
"paymentCancelledMessage": "支払いがキャンセルされました",
|
||||
"paymentConfirmedMessage": "支払いが正常に確認されました!",
|
||||
"checkoutTitle": "チェックアウト",
|
||||
"adultLabelSingular": "大人",
|
||||
"adultLabelPlural": "大人",
|
||||
"kidLabelSingular": "子供",
|
||||
"kidLabelPlural": "子供",
|
||||
"loadingCoupons": "クーポンを読み込み中...",
|
||||
"errorLoadingCoupons": "クーポンの読み込みエラー",
|
||||
"couponAppliedPrefix": "適用されたクーポン: ",
|
||||
"discountOnPrefix": " 割引 ",
|
||||
"noCouponsAvailable": "利用可能なクーポンはありません",
|
||||
"viewAllCoupons": "すべてのクーポンを見る",
|
||||
"pleaseLoginToApplyCoupon": "クーポンを適用するにはログインしてください",
|
||||
"applyingLabel": "適用中...",
|
||||
"removeLabel": "削除",
|
||||
"applyLabel": "適用",
|
||||
"subtotalLabel": "小計",
|
||||
"discountLabel": "割引",
|
||||
"totalLabel": "合計",
|
||||
"includingTaxesPrefix": "税込み ",
|
||||
"inTaxesSuffix": " ",
|
||||
"allCouponsTitle": "すべてのクーポン",
|
||||
"applyCouponLabel": "クーポンを適用",
|
||||
"purchaseDetailsTitle": "購入の詳細",
|
||||
"buyPassForMyselfTitle": "自分用にパスを購入",
|
||||
"editDetailsLabel": "詳細を編集",
|
||||
"giftThePassTitle": "パスを贈る",
|
||||
"giftThePassDescription": "他の人にパスを贈る",
|
||||
"proceedLabel": "進む",
|
||||
"processingLabel": "処理中...",
|
||||
"payPrefixLabel": "支払う ",
|
||||
"loginToCheckoutLabel": "ログインしてチェックアウト",
|
||||
"yourCartTitle": "あなたのカート",
|
||||
"myCardsTab": "マイカード",
|
||||
"myPostCardsTab": "マイポストカード",
|
||||
"yourCartIsEmpty": "カートは空です",
|
||||
"attractionsLabelSuffix": " アトラクション",
|
||||
"daysLabelSuffix": " 日間",
|
||||
"youDoNotHaveAnyPasses": "パスを持っていません",
|
||||
"emptyPassesDescription": "パスを入手して、お気に入りの都市への旅行でオファーや割引などを手に入れましょう",
|
||||
"buyAPassLabel": "パスを購入",
|
||||
"errorLoadingCart": "カートの読み込みエラー",
|
||||
"purchaseOnePostcardAtTime": "ポストカードは一度に1枚ずつ購入できます",
|
||||
"proceedToCheckoutLabel": "チェックアウトに進む",
|
||||
"loginToAccessPostcardsCart": "ポストカードカートにアクセスするにはログインしてください",
|
||||
"youDoNotHaveAnyPostcards": "ポストカードがありません",
|
||||
"emptyPostcardsDescription": "まだポストカードを所有しておらず、誰にも送信していません",
|
||||
"designMyPostcardLabel": "ポストカードをデザイン",
|
||||
"somethingWentWrong": "問題が発生しました",
|
||||
"retryLabel": "再試行",
|
||||
"editDraftLabel": "下書きを編集",
|
||||
"backTitle": "戻る",
|
||||
"magicItineraryTitle": "魔法の旅程 ✨",
|
||||
"stepPrefix": "ステップ ",
|
||||
"ofSuffix": " / ",
|
||||
"createYourLabel": "あなたの",
|
||||
"magicItinerarySubtitle": " 魔法の旅程を作成",
|
||||
"itineraryCreationStartDescription": "こんにちは!いくつかの楽しい質問に答えるだけで、完全にあなたに合わせた旅行体験を作成します! ✈️✨",
|
||||
"letsExploreTogether": "一緒に探検しましょう!",
|
||||
"takesOnlyTwoMinutes": "わずか2分で完了 ⏱️",
|
||||
"gatheringPreferencesLabel": "設定を収集しています...",
|
||||
"findingBestSpotsLabel": "最高のスポットを探しています...",
|
||||
"buildingScheduleLabel": "スケジュールを構築しています...",
|
||||
"almostThereLabel": "あともう少し...",
|
||||
"yourLabel": "あなたの ",
|
||||
"magicItineraryLabel": "魔法の旅程",
|
||||
"isLabel": " の ",
|
||||
"readyLabel": "準備完了 ",
|
||||
"weHaveGotEverythingWeNeed": "完璧な旅行を計画するために必要なものはすべて揃いました",
|
||||
"startOverLabel": "最初からやり直す",
|
||||
"getMyTripPlan": "旅行プランを取得",
|
||||
"creatingLabel": "作成中\n",
|
||||
"yourItineraryLabel": "あなたの旅程",
|
||||
"travelingWithKidsLabel": "子供と一緒に\n旅行",
|
||||
"noKidsWithMeLabel": "子供はいません",
|
||||
"areYouTravellingWithKidsLabel": "子供と一緒に旅行しますか?",
|
||||
"noRestrictionsLabel": "制限なし",
|
||||
"vegetarianLabel": "ベジタリアン",
|
||||
"veganLabel": "ビーガン",
|
||||
"pescatarianLabel": "ペスカタリアン",
|
||||
"halalLabel": "ハラール",
|
||||
"kosherLabel": "コーシャ",
|
||||
"doYouFollowDietaryPreferenceLabel": "食事に関する希望はありますか?",
|
||||
"whenAreYouPlanningToVisitLabel": "こんにちは!いつ訪問する予定ですか?",
|
||||
"selectADateLabel": "日付を選択",
|
||||
"continueTitle": "続ける",
|
||||
"relaxedAndChillLabel": "リラックス&チル",
|
||||
"balancedMixLabel": "バランスの取れたミックス",
|
||||
"activeAndEnergeticLabel": "アクティブ&エネルギッシュ",
|
||||
"fullAdventureLabel": "フルアドベンチャー!",
|
||||
"whatKindOfEnergyLabel": "この旅行にはどのようなエネルギーを求めていますか?",
|
||||
"notInterestedLabel": "興味なし",
|
||||
"maybeOneOrTwoLabel": "1つか2つなら",
|
||||
"yesSoundsGoodLabel": "はい、良さそうです!",
|
||||
"absolutelyLoveThemLabel": "絶対に大好き!",
|
||||
"doYouEnjoyMuseumsLabel": "博物館や美術館を訪れるのは好きですか?",
|
||||
"@esimOfferTitle": {},
|
||||
"esimOfferTitle": "無料のeSIMで瞬時に接続",
|
||||
"@esimOfferSubtitle": {},
|
||||
"esimOfferSubtitle": "素晴らしい旅は、スムーズな接続から始まります。",
|
||||
"@viewPlans": {},
|
||||
"viewPlans": "プランを見る",
|
||||
"@withYour": {},
|
||||
"withYour": "あなたの ",
|
||||
"@esimKeyword": {},
|
||||
"esimKeyword": "eSIM",
|
||||
"@youCanKeyword": {},
|
||||
"youCanKeyword": " で、できること:",
|
||||
"@navigateCity": {},
|
||||
"navigateCity": "街を簡単にナビゲート",
|
||||
"@navigateCityDesc": {},
|
||||
"navigateCityDesc": "どこにいてもリアルタイムの地図とルート案内にアクセス",
|
||||
"@bookRides": {},
|
||||
"bookRides": "配車予約、地図へのアクセス、アトラクションの検索をリアルタイムで",
|
||||
"@bookRidesDesc": {},
|
||||
"bookRidesDesc": "すべての必須旅行サービスに接続したまま",
|
||||
"@sharePhotos": {},
|
||||
"sharePhotos": "写真や思い出を瞬時に共有",
|
||||
"@sharePhotosDesc": {},
|
||||
"sharePhotosDesc": "旅行の瞬間を遅延なくアップロードして共有",
|
||||
"@stayConnectedFeatures": {},
|
||||
"stayConnectedFeatures": "友人、家族、旅行プランとの接続を維持",
|
||||
"@stayConnectedFeaturesDesc": {},
|
||||
"stayConnectedFeaturesDesc": "旅行中の重要な更新やメッセージを見逃さない",
|
||||
"@simpleKeyword": {},
|
||||
"simpleKeyword": "簡単な ",
|
||||
"@threeStepProcess": {},
|
||||
"threeStepProcess": "3ステップのプロセス",
|
||||
"@getConnectedInSeconds": {},
|
||||
"getConnectedInSeconds": "数秒で接続完了",
|
||||
"@receiveQrCode": {},
|
||||
"receiveQrCode": "QRコードを受け取る",
|
||||
"@receiveQrCodeDesc": {},
|
||||
"receiveQrCodeDesc": "CityCardで独自のeSIM QRコードを取得",
|
||||
"@scanCode": {},
|
||||
"scanCode": "コードをスキャン",
|
||||
"@scanCodeDesc": {},
|
||||
"scanCodeDesc": "スマートフォンのカメラを開いてQRコードをスキャン",
|
||||
"@connectedStep": {},
|
||||
"connectedStep": "接続完了",
|
||||
"@connectedStepDesc": {},
|
||||
"connectedStepDesc": "瞬時にオンラインに - 探索を始めましょう!",
|
||||
"@itsOneMoreWay": {},
|
||||
"itsOneMoreWay": "CityCardがあなたの旅を",
|
||||
"@cityCardsKeywordSpace": {},
|
||||
"cityCardsKeywordSpace": " CityCards",
|
||||
"@makesYourJourney": {},
|
||||
"makesYourJourney": "",
|
||||
"@smarterKeywordSpace": {},
|
||||
"smarterKeywordSpace": "よりスマートに",
|
||||
"@andMoreSpace": {},
|
||||
"andMoreSpace": "そして",
|
||||
"@effortlessSpace": {},
|
||||
"effortlessSpace": " 快適にするもう一つの方法です",
|
||||
"@startYourJourneyToday": {},
|
||||
"startYourJourneyToday": "今日から旅を始めましょう",
|
||||
"@enjoy20OffMarriott": {},
|
||||
"enjoy20OffMarriott": "アイコニックなマリオット ホテルが 20% オフ - CityCard 限定",
|
||||
"@makeEveryStayUnforgettable": {},
|
||||
"makeEveryStayUnforgettable": "すべての滞在を、探索している街と同じくらい忘れられないものにしてください。",
|
||||
"@bookNow": {},
|
||||
"bookNow": "今すぐ予約",
|
||||
"@yourCityCardsUnlocksMore": {},
|
||||
"yourCityCardsUnlocksMore": "CityCard はアトラクションだけでなく、特別な滞在への扉も開きます。",
|
||||
"@thanksToOurExclusivePartnership": {},
|
||||
"thanksToOurExclusivePartnership": "との独占的なパートナーシップにより、",
|
||||
"@marriottHotelsKeyword": {},
|
||||
"marriottHotelsKeyword": "マリオット ホテル",
|
||||
"@cityCardsHoldersEnjoy": {},
|
||||
"cityCardsHoldersEnjoy": "CityCard 所有者は ",
|
||||
"@twentyPercentOffRates": {},
|
||||
"twentyPercentOffRates": "各都市のプロパティのベスト料金から 20% オフ",
|
||||
"@acrossCuratedProperties": {},
|
||||
"acrossCuratedProperties": " をお楽しみいただけます。",
|
||||
"@chooseFromAKeyword": {},
|
||||
"chooseFromAKeyword": "",
|
||||
"@wideVarietyBreak": {},
|
||||
"wideVarietyBreak": "多彩なラインナップ\nから選ぶ",
|
||||
"@chooseFromAWideVarietyDesc": {},
|
||||
"chooseFromAWideVarietyDesc": "エレガントな都会の隠れ家やプレミアムな市内中心部のロケーションから、豪華な5つ星の体験まで、旅を ",
|
||||
"@effortlessComfortable": {},
|
||||
"effortlessComfortable": "よりスムーズで快適、",
|
||||
"@andMiddle": {},
|
||||
"andMiddle": "そして",
|
||||
"@memorableKeyword": {},
|
||||
"memorableKeyword": "思い出深いものにするための多彩なマリオット ホテルからお選びいただけます。",
|
||||
"@simplyUseYourCityCards": {},
|
||||
"simplyUseYourCityCards": "CityCard の",
|
||||
"@bookingLinkTo": {},
|
||||
"bookingLinkTo": " 予約リンクを使用するだけで:",
|
||||
"@access20OffRates": {},
|
||||
"access20OffRates": "ベスト料金から 20% オフで利用可能",
|
||||
"@saveOnYourStay": {},
|
||||
"saveOnYourStay": "プレミアムなマリオット プロパティでの滞在がお得に",
|
||||
"@enjoyPriorityCheckIn": {},
|
||||
"enjoyPriorityCheckIn": "優先チェックインとレイトチェックアウトをお楽しみください",
|
||||
"@subjectToAvailability": {},
|
||||
"subjectToAvailability": "空室状況によりご利用いただけない場合があります",
|
||||
"@receiveExclusiveSeasonalOffers": {},
|
||||
"receiveExclusiveSeasonalOffers": "限定の季節限定オファーを受け取る",
|
||||
"@designedSpeciallyForCityCards": {},
|
||||
"designedSpeciallyForCityCards": "CityCard 利用者向けに特別に用意されたオファー",
|
||||
"@itsJustOneMoreWay": {},
|
||||
"itsJustOneMoreWay": "CityCard が旅を",
|
||||
"@makesExploring": {},
|
||||
"makesExploring": "よりスマートに、",
|
||||
"@simplerKeyword": {},
|
||||
"simplerKeyword": "よりシンプルに、",
|
||||
"@moreRewarding": {},
|
||||
"moreRewarding": "そしてより魅力的にするもう一つの方法です。",
|
||||
"@getYourCityCardsToday": {},
|
||||
"getYourCityCardsToday": "今すぐ CityCard を手に入れましょう",
|
||||
"shareSubject": "これを見てください",
|
||||
"scanAtAttractionSite": "アトラクションの場所でこれをスキャンしてください",
|
||||
"codeCopied": "コードをクリップボードにコピーしました",
|
||||
"checkedIn": "チェックイン済み",
|
||||
"checkIn": "チェックイン",
|
||||
"problemsRedeemingPass": "パスの利用に問題がありますか? ",
|
||||
"clickHere": "ここをクリック",
|
||||
"about": "について",
|
||||
"howToMakeBooking": "予約方法は?",
|
||||
"contactNumber": "連絡先電話番号",
|
||||
"tapToCall": "タップして電話する",
|
||||
"email": "メール",
|
||||
"tapToEmail": "タップしてメールを送る",
|
||||
"datesNotAvailable": "利用可能な日付がありません",
|
||||
"viaCityCards": "CityCards 経由",
|
||||
"createBookingViaApp": "アプリで予約を作成する",
|
||||
"whatIsIncluded": "含まれるもの",
|
||||
"exactLocation": "正確な場所",
|
||||
"viewLocationOnMap": "地図で場所を見る",
|
||||
"peopleFrequentlyAsk": "よくある質問",
|
||||
"errorMessage": "エラー: {message}",
|
||||
"suggestedAttractions": "おすすめのアトラクション",
|
||||
"viewAllAttractions": "すべてのアトラクションを見る",
|
||||
"recommendedOffers": "おすすめのオファー",
|
||||
"viewAllOffers": "すべてのオファーを見る",
|
||||
"learnAboutPolicies": "ポリシーについて",
|
||||
"pricePerPerson": "${price}/名様",
|
||||
"priceNotAvailable": "価格はご利用いただけません",
|
||||
"bookingRequired": "要予約",
|
||||
"adultsLabel": "大人",
|
||||
"kidsLabel": "子供",
|
||||
"checkedInSuccessful": "チェックインに成功しました",
|
||||
"readyToCheckIn": "チェックインの準備はできましたか?",
|
||||
"entranceActivationNote": "アトラクションの入り口にいるときだけ有効にしてください:",
|
||||
"minuteTimer": "{minutes}分タイマー",
|
||||
"timerActivationWarning": "一度有効にすると、パスは{minutes}分間有効です。この操作は取り消せません",
|
||||
"activatePassNow": "今すぐパスを有効にする",
|
||||
"notAtEntranceYet": "まだ入り口にいません",
|
||||
"howToRedeemTitle": "アトラクションパスの使い方は?",
|
||||
"howToRedeemDescription": "アトラクションパスを使用するには、入り口でQRコードを提示してください。スタッフがスキャンし、中の素晴らしい体験へのアクセスを許可します。次での冒険をお楽しみください:",
|
||||
"contactSupport": "サポートに連絡",
|
||||
"passAttractionsTitle": "パスのアトラクション",
|
||||
"searchAttractionsHint": "アトラクションを検索...",
|
||||
"noAttractionsFound": "アトラクションが見つかりません",
|
||||
"noAttractionsMatchSearch": "検索条件に一致するアトラクションはありません",
|
||||
"selectiveCardFilter": "セレクティブ・カード",
|
||||
"offersWithCardTitle": "{cardName}のオファー",
|
||||
"searchOffersHint": "オファーを検索",
|
||||
"noOffersFound": "オファーが見つかりません",
|
||||
"codeCopiedMessage": "コードをコピーしました:{code}",
|
||||
"noDataAvailable": "データがありません",
|
||||
"userPossessive": "{firstName}さんの",
|
||||
"tripDetails": "旅行の詳細:",
|
||||
"daysCount": "{count}日間",
|
||||
"stopsCount": "{count}ヶ所",
|
||||
"adultsCount": "大人{count}名",
|
||||
"kidsCount": "子供{count}名",
|
||||
"shareLabel": "共有",
|
||||
"preparingPdfToShare": "共有用のPDFを準備中...",
|
||||
"myItinerarySubject": "私の旅程 - {title}",
|
||||
"failedToShare": "共有に失敗しました: {error}",
|
||||
"downloadLabel": "ダウンロード",
|
||||
"downloadingLabel": "ダウンロード中...",
|
||||
"downloadingPdf": "PDFをダウンロード中...",
|
||||
"dailyView": "デイリービュー",
|
||||
"summary": "概要",
|
||||
"dayNumberLabel": "{number}日目",
|
||||
"pleaseFillAllFields": "すべての項目を入力してください",
|
||||
"enterValidEmail": "有効なメールアドレスを入力してください",
|
||||
"enterValidPhoneForIsd": "{isdCode}の有効な電話番号を入力してください",
|
||||
"failedToSubmitDetails": "詳細の送信に失敗しました",
|
||||
"addDetailsTitle": "詳細を追加",
|
||||
"aboutRecipient": "受取人について教えてください",
|
||||
"firstNameLabelWithStar": "名前 *",
|
||||
"firstNameHint": "受取人の名前を入力してください",
|
||||
"lastNameLabelWithStar": "苗字 *",
|
||||
"lastNameHint": "受取人の苗字を入力してください",
|
||||
"emailLabelWithStar": "メールアドレス *",
|
||||
"emailHint": "受取人のメールアドレスを入力してください",
|
||||
"phoneNumberLabelWithStar": "電話番号 *",
|
||||
"phoneNumberHint": "電話番号を入力してください",
|
||||
"searchCountryHint": "国を検索...",
|
||||
"cityLabelWithStar": "市区町村 *",
|
||||
"cityHint": "市区町村名を入力してください",
|
||||
"countryLabelWithStar": "国 *",
|
||||
"countryHint": "国名を入力してください",
|
||||
"submittingLabel": "送信中...",
|
||||
"yourAttractionTitle": "あなたのアトラクション",
|
||||
"perPersonSuffix": "/名",
|
||||
"checkThisOut": "これを見てください",
|
||||
"whatIsIncluded": "含まれるもの",
|
||||
"peopleFrequentlyAsk": "よくある質問",
|
||||
"aboutTitle": "概要",
|
||||
"exactLocation": "正確な場所",
|
||||
"viewOnMap": "地図で場所を確認する",
|
||||
"selectImageSource": "画像ソースを選択",
|
||||
"cameraLabel": "カメラ",
|
||||
"galleryLabel": "ギャラリー",
|
||||
"failedToPickImage": "画像の取得に失敗しました: {error}",
|
||||
"userIdNotFound": "ユーザーIDが見つかりません",
|
||||
"changeProfilePicture": "プロフィール写真を変更",
|
||||
"enterYourFirstName": "名前を入力してください",
|
||||
"firstNameRequired": "名前は必須です",
|
||||
"enterYourLastName": "苗字を入力してください",
|
||||
"lastNameRequired": "苗字は必須です",
|
||||
"enterYourEmail": "メールアドレスを入力してください",
|
||||
"enterYourPhoneNumber": "電話番号を入力してください",
|
||||
"addressLabelWithStar": "住所 *",
|
||||
"addressHint": "住所を手動で入力するか、タップして検索してください",
|
||||
"address2Optional": "住所2(任意)",
|
||||
"address2Hint": "詳細な住所を入力してください",
|
||||
"zipCodeLabelWithStar": "郵便番号 *",
|
||||
"zipCodeHint": "お住まいの地域の郵便番号を入力してください",
|
||||
"enterYourCity": "市区町村名を入力してください",
|
||||
"stateLabelWithStar": "都道府県 *",
|
||||
"enterYourState": "都道府県を入力してください",
|
||||
"enterYourCountry": "国を入力してください",
|
||||
"editProfileTitle": "プロフィールを編集",
|
||||
"personalDetails": "個人詳細",
|
||||
"locationDetails": "場所の詳細",
|
||||
"cancelTitle": "キャンセル",
|
||||
"saveTitle": "保存",
|
||||
"contactUsTitle": "お問い合わせ",
|
||||
"contactUsMessage": "以下のプラットフォームからお問い合わせいただけます。担当チームより折り返しご連絡いたします",
|
||||
"customerSupport": "カスタマーサポート",
|
||||
"contactNumberLabel": "電話番号",
|
||||
"tapToCall": "タップして電話をかける",
|
||||
"emailLabel": "メールアドレス",
|
||||
"tapToEmail": "タップしてメールを送信",
|
||||
"locationLabel": "所在地",
|
||||
"enterYourEmailAddress": "メールアドレスを入力してください",
|
||||
"emailRequired": "メールアドレスは必須です",
|
||||
"enterValidEmail": "有効なメールアドレスを入力してください",
|
||||
"phoneNumberRequired": "電話番号は必須です",
|
||||
"descriptionLabelWithStar": "詳細 *",
|
||||
"writeMessageHint": "ここにメッセージを入力してください",
|
||||
"submitTicket": "チケットを送信",
|
||||
"termsAndConditionsTitle": "利用規約",
|
||||
"privacyPolicyTitle": "プライバシーポリシー",
|
||||
"faqTitle": "よくある質問",
|
||||
"noTermsContent": "利用規約の内容はありません。",
|
||||
"noPrivacyContent": "プライバシーポリシーの内容はありません。",
|
||||
"retryLabel": "リトライ",
|
||||
"errorLabel": "エラー",
|
||||
"offersWithCard": "{cardName}カードの特典",
|
||||
"@offersWithCard": {
|
||||
"placeholders": {
|
||||
"cardName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"searchOffersHint": "特典を検索",
|
||||
"noOffersFound": "特典が見つかりません",
|
||||
"aboutPartner": "{partnerName}について",
|
||||
"@aboutPartner": {
|
||||
"placeholders": {
|
||||
"partnerName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"howToMakeBooking": "予約方法は?",
|
||||
"bookingStep1": "クーポンの有効期限を確認して、まだ有効であることを確かめてください。",
|
||||
"bookingStep2": "クーポンが利用できる店舗またはウェブサイトにアクセスしてください。",
|
||||
"bookingStep3": "オンラインでショッピングをする場合は、商品をカートに追加してチェックアウトに進みます。",
|
||||
"bookingStep4": "チェックアウト時に「クーポンコード」または「プロモーションコード」というラベルのフィールドを探してください。",
|
||||
"bookingStep5": "特殊文字を含め、クーポンコードを表示されている通りに入力してください。",
|
||||
"couponCodeCopied": "クーポンコードをコピーしました!",
|
||||
"createYourAccount": "アカウントを作成",
|
||||
"personalInformation": "個人情報",
|
||||
"locationDetailsWithStar": "場所の詳細 *",
|
||||
"enterYourAddress": "住所を入力してください",
|
||||
"autoFillZipNote": "市区町村、都道府県、国は郵便番号から自動入力されます",
|
||||
"creatingLabelEllipsis": "作成中...",
|
||||
"createAccount": "アカウントを作成",
|
||||
"getStarted": "始める",
|
||||
"enterEmailToBegin": "メールアドレスを入力して、CityCardsの旅を始めましょう",
|
||||
"emailExampleHint": "john.doe@gmail.com",
|
||||
"pleaseEnterEmail": "メールアドレスを入力してください",
|
||||
"sendingLabel": "送信中...",
|
||||
"otpVerifiedSuccess": "OTPの認証に成功しました!",
|
||||
"completeProfileNote": "プロフィールを完成させてください",
|
||||
"otpResentSuccess": "OTPを再送信しました!",
|
||||
"verifyYourPhone": "電話番号の確認",
|
||||
"enterVerificationCodeNote": "メールアドレスに送信された確認コードを入力してください",
|
||||
"resendingLabel": "再送信中...",
|
||||
"resendOtpLabel": "OTPを再送信",
|
||||
"resendOtpWithTimer": "OTPを再送信 ({seconds}s)",
|
||||
"pleaseEnterCompleteOtp": "OTPをすべて入力してください",
|
||||
"verifyingLabel": "認証中...",
|
||||
"ok": "OK",
|
||||
"uploadAPhoto": "写真をアップロード",
|
||||
"orLabel": "または",
|
||||
"takeAPhoto": "写真を撮る",
|
||||
"uploadAgain": "もう一度アップロード",
|
||||
"nextTitle": "次へ",
|
||||
"addImage": "画像を追加",
|
||||
"addAFilter": "フィルターを追加",
|
||||
"chooseFavoriteFilter": "お気に入りのフィルターを選んで、ポストカードをより良くしましょう。",
|
||||
"filterOriginal": "オリジナル",
|
||||
"filterBW": "モノクロ",
|
||||
"filterSepia": "セピア",
|
||||
"filterVintage": "ビンテージ",
|
||||
"filterCoolTone": "クールトーン",
|
||||
"filterContrast": "コントラスト",
|
||||
"filterSoftGlow": "ソフトグロー",
|
||||
"writeYourMessage": "メッセージを書く",
|
||||
"failedToFetchEditDetails": "編集内容の取得に失敗しました",
|
||||
"saveChanges": "変更を保存",
|
||||
"writeAMessage": "メッセージを書く",
|
||||
"addYourMessageHere": "ここにメッセージを追加",
|
||||
"fontDefault": "デフォルト",
|
||||
"previewYourPostcard": "ポストカードのプレビュー",
|
||||
"flipLabel": "裏返す",
|
||||
"buyPostcardForMyself": "自分のためにポストカードを購入",
|
||||
"editDetailsLabel": "詳細を編集",
|
||||
"giftPostcardForSomeoneElse": "他の人にポストカードを贈る",
|
||||
"addTitleLabel": "タイトルを追加",
|
||||
"enterTitleHint": "タイトルを入力",
|
||||
"pleaseEnterTitle": "タイトルを入力してください",
|
||||
"yourDetailsTitle": "お客様の詳細",
|
||||
"senderDetailsDescription": "このポストカードの送り主としての詳細情報を入力してください",
|
||||
"fullNameLabel": "氏名",
|
||||
"enterFullNameHint": "氏名を入力してください",
|
||||
"cityLabel": "市区町村",
|
||||
"enterCityHint": "市区町村名を入力してください",
|
||||
"countryLabel": "国",
|
||||
"enterCountryHint": "国名を入力してください",
|
||||
"recipientDetailsTitle": "受取人の詳細",
|
||||
"recipientDetailsDescription": "ポストカードを受け取る人の住所を入力してください",
|
||||
"selfDetailsDescription": "このポストカードの連絡先詳細を入力してください。",
|
||||
"recipientNameLabel": "受取人名",
|
||||
"enterRecipientNameHint": "受取人の名前を入力してください",
|
||||
"addressLabel": "住所",
|
||||
"enterRecipientAddressHint": "受取人の住所を入力してください",
|
||||
"zipCodeLabel": "郵便番号",
|
||||
"enterZipCodeHint": "お住まいの郵便番号を入力してください",
|
||||
"pleaseEnterZipCode": "郵便番号を入力してください",
|
||||
"stateLabel": "都道府県",
|
||||
"enterStateHint": "都道府県を入力してください",
|
||||
"pleaseEnterField": "{fieldName}を入力してください",
|
||||
"invalidEmailError": "有効なメールアドレスを入力してください",
|
||||
"onlyNumbersAllowed": "数字のみ入力可能です",
|
||||
"mobileNumberLengthError": "携帯電話番号は{length}桁である必要があります",
|
||||
"onlyLettersAllowed": "文字のみ入力可能です",
|
||||
"spacesNotAllowed": "スペースは使用できません",
|
||||
"specialCharsNotAllowed": "特殊文字は使用できません",
|
||||
"saveAsDraftLabel": "下書きとして保存",
|
||||
"deliveryAddressLabel": "お届け先住所",
|
||||
"paymentSummaryLabel": "お支払い内容",
|
||||
"grandTotalLabel": "総計",
|
||||
"paymentFailedError": "決済に失敗しました: {error}",
|
||||
"paymentInitializationFailedError": "エラー:決済の初期化に失敗しました",
|
||||
"draftSavedSuccess": "下書きを保存しました。",
|
||||
"payAmountLabel": "支払い ${amount}",
|
||||
"orderPlacedSuccess": "注文が完了しました!",
|
||||
"orderPlacedDescription": "ご注文を承りました。注文番号は {orderId} です。",
|
||||
"deliveryTimelineNote": "2〜3営業日以内にお届けします。",
|
||||
"goToMyOrdersLabel": "注文履歴へ",
|
||||
"messagePreviewLabel": "メッセージのプレビュー",
|
||||
"postcardLabel": "ポストカード",
|
||||
"homeTitle": "CityCards.\nもっと見て、\nもっと節約。",
|
||||
"homeSubtitle": "40以上のアトラクションへの即時QRアクセス、\n限定特典、最大30%の節約",
|
||||
"getYourCityCards": "CityCardsを手に入れる",
|
||||
"exploreCitiesTitleExplore": "探索 ",
|
||||
"exploreCitiesTitleCities": "都市",
|
||||
"upcomingCitiesTitleUpcoming": "今後の ",
|
||||
"upcomingCitiesTitleCities": "都市",
|
||||
"exploreDescription": "夢の目的地を探索し、さまざまなアトラクションを体験してください。",
|
||||
"noCitiesAvailable": "利用可能な都市はありません",
|
||||
"notAvailableLabel": "N/A",
|
||||
"editPostcardTitle": "ポストカードを編集",
|
||||
"uploadImageTitle": "画像をアップロード",
|
||||
"editPostcardUploadDescription": "忘れられない瞬間を捉えた画像をアップロードして、独自のポストカードを編集してください。",
|
||||
"editFiltersLabel": "フィルターを編集",
|
||||
"editTitleLabel": "タイトルを編集 ",
|
||||
"editTitleDescription": "ポストカードに別のタイトルを付けてください",
|
||||
"titleMaxLengthError": "タイトルは最大10文字です",
|
||||
"editMessageLabel": "メッセージを編集 ",
|
||||
"editMessageDescription": "忘れられない瞬間を大切にするために、独自のポストカードを編集してください。",
|
||||
"fullNameLabelWithStar": "氏名 *",
|
||||
"recipientLabelWithStar": "受取人 *",
|
||||
"pleaseEnterMessage": "メッセージを入力してください",
|
||||
"messageMaxLengthError": "メッセージは最大400文字です",
|
||||
"fontPatrickHand": "Patrick Hand",
|
||||
"fontIndieFlower": "Indie Flower",
|
||||
"fontGloriaHallelujah": "Gloria Hallelujah"
|
||||
}
|
||||
@@ -1,671 +0,0 @@
|
||||
{
|
||||
"@@locale": "nl",
|
||||
"profileTitle": "Mijn Profiel",
|
||||
"supportAndLegal": "Ondersteuning & Juridisch",
|
||||
"contactUs": "Neem contact op",
|
||||
"termsAndConditions": "Algemene voorwaarden",
|
||||
"faq": "FAQ",
|
||||
"privacyPolicy": "Privacybeleid",
|
||||
"logout": "Uitloggen",
|
||||
"signIn": "Inloggen",
|
||||
"heyStranger": "Hé, vreemdeling! 👋",
|
||||
"guestSubtitle1": "We zijn blij dat je onze app gebruikt.",
|
||||
"guestSubtitle2": "Waarom maak je het niet officieel?",
|
||||
"accountSettings": "Accountinstellingen",
|
||||
"editProfile": "Profiel bewerken",
|
||||
"changeLanguage": "Taal wijzigen",
|
||||
"retry": "Opnieuw proberen",
|
||||
"failedToLoadProfile": "Profiel laden mislukt",
|
||||
"changeLanguageTitle": "Taal wijzigen",
|
||||
"searchLanguages": "Talen zoeken",
|
||||
"save": "Opslaan",
|
||||
"oopsSomethingWentWrong": "Oeps! Er is iets misgegaan",
|
||||
"tryAgain": "Probeer opnieuw",
|
||||
"defaultCityName": "Stadsnaam",
|
||||
"defaultCityDescription": "Stadsbeschrijving",
|
||||
"noHighlightsAvailable": "Geen hoogtepunten beschikbaar",
|
||||
"popular": "Populaire ",
|
||||
"attractions": "Attracties",
|
||||
"viewAll": "Bekijk alles",
|
||||
"createMyMagicItinerary": "Maak mijn magische reisschema",
|
||||
"claimOffersWithCityCards": "Claim aanbiedingen met uw City Cards",
|
||||
"offerSubtitleDummy": "Lorem ipsum dolor sit amet...",
|
||||
"noAttractionsAvailable": "Geen attracties beschikbaar",
|
||||
"explore": "Ontdek ",
|
||||
"moreCities": "Meer steden.",
|
||||
"stay": "Blijf ",
|
||||
"connected": "Verbonden",
|
||||
"everywhere": "Overal",
|
||||
"claimEsimOffers": "Claim e-Sim aanbiedingen met\nCityCard",
|
||||
"chooseYourCard": "Kies je kaart",
|
||||
"diveIntoExtensiveSelection": "Duik in een uitgebreide selectie...",
|
||||
"from": "Vanaf ",
|
||||
"getACard": "Koop een kaart",
|
||||
"marriott": "MARRIOTT ",
|
||||
"moments": "MOMENTEN",
|
||||
"citycard": "CITYCARD ",
|
||||
"prices": "PRIJZEN",
|
||||
"premium": "Premium ",
|
||||
"stays": "Verblijven",
|
||||
"citycardPrices": "CityCard Prijzen",
|
||||
"claimHotelDiscountOffers": "Claim Hotel Korting aanbiedingen\nmet CityCard",
|
||||
"back": "Terug",
|
||||
"selectACity": "Selecteer een stad",
|
||||
"searchCities": "Zoek steden",
|
||||
"errorLoadingCities": "Fout bij laden van steden",
|
||||
"noCitiesFound": "Geen steden gevonden",
|
||||
"individualTickets": "Individuele tickets:",
|
||||
"cityCardLabel": "City Card:",
|
||||
"getYourCard": "Haal je kaart",
|
||||
"fromLabel": "Vanaf",
|
||||
"perAdult": " /Volwassene",
|
||||
"planYour": "Plan uw ",
|
||||
"dreamJourney": "Droomreis",
|
||||
"inJust3Seconds": "\nin slechts 3 seconden",
|
||||
"navExplore": "Ontdekken",
|
||||
"navMagicItinerary": "Magisch Reisschema",
|
||||
"navMyCards": "Mijn Kaarten",
|
||||
"navPostcard": "Ansichtkaart",
|
||||
"planYourNextAdventure": "Plan je volgende avontuur",
|
||||
"createMyItinerary": "Maak Mijn Reisschema",
|
||||
"notLoggedInYet": "Je bent nog niet ingelogd!",
|
||||
"loginOrPurchasePass": "Log in of koop een pas om het magische reisschema te ontgrendelen!",
|
||||
"logInLabel": "Inloggen",
|
||||
"noUnlimitedPass": "Je hebt geen Onbeperkte Pas! ὡ4",
|
||||
"getUnlimitedPass": "Haal je Onbeperkte Pas en maak een aangepast reisschema!",
|
||||
"buyUnlimitedCityCard": "Koop Onbeperkte CityCard",
|
||||
"noItineraryYet": "Je hebt nog geen Reisschema! ὡF",
|
||||
"createPersonalizedItinerary": "Maak je eigen gepersonaliseerde magische reisschema dat past bij je reisbehoeften",
|
||||
"travelPlan": " Reisplan",
|
||||
"activeLabel": "Actief",
|
||||
"inactiveLabel": "Inactief",
|
||||
"daysLabel": " dagen",
|
||||
"attractionsCountLabel": " attracties",
|
||||
"createdOnLabel": "Gemaakt ",
|
||||
"viewItineraryLabel": "Bekijk Reisschema",
|
||||
"allFilter": "Alles",
|
||||
"latestFilter": "Nieuwste",
|
||||
"oldestFilter": "Oudste",
|
||||
"flexiCardFilter": "Flexibele Kaart",
|
||||
"unlimitedCardFilter": "Onbeperkte Kaart",
|
||||
"sortByLabel": "Sorteer op",
|
||||
"pleaseLogInToViewPasses": "Log in om je passen te bekijken",
|
||||
"logInAccessPasses": "Log in voor toegang tot je passen, exclusieve aanbiedingen en kortingen.",
|
||||
"noPassYet": "Je hebt nog geen pas! 😕",
|
||||
"getAPassUnlockOffers": "Koop een pas en ontgrendel exclusieve aanbiedingen, kortingen en meer.",
|
||||
"buyAPass": "Koop een Pas",
|
||||
"attractionSingular": "Attractie",
|
||||
"attractionsPlural": "Attracties",
|
||||
"daySingular": "Dag",
|
||||
"daysPlural": "Dagen",
|
||||
"cardSuffixLabel": " Kaart",
|
||||
"adultsPrefix": "Volwassenen-",
|
||||
"kidsPrefix": " • Kinderen-",
|
||||
"validTillPrefix": "Geldig tot: ",
|
||||
"noPostcardOrdersYet": "Het lijkt erop dat je nog geen\nansichtkaarten hebt besteld!",
|
||||
"whipUpFunPostcardOrders": "Wat dacht je ervan we een leuke ansichtkaart maken om naar je geliefden te sturen? Laten we beginnen!",
|
||||
"searchOrdersHint": "Zoek bestellingen...",
|
||||
"foundPrefix": "Gevonden ",
|
||||
"ofMiddle": " van ",
|
||||
"ordersSuffix": " bestellingen",
|
||||
"noOrdersFound": "Geen bestellingen gevonden",
|
||||
"tryAdjustingSearchQuery": "Probeer je zoekopdracht aan te passen",
|
||||
"errorLoadingOrders": "Fout bij laden bestellingen",
|
||||
"retryButtonLabel": "Opnieuw proberen",
|
||||
"statusLabel": "Status:",
|
||||
"previewButtonLabel": "Voorbeeld",
|
||||
"noPostcardDraftsYet": "Het lijkt erop dat je nog geen\nansichtkaarten hebt gemaakt!",
|
||||
"whipUpFunPostcardDrafts": "Waarom maak je niet een ansichtkaart en stuur je die naar een speciaal iemand ver weg?",
|
||||
"searchDraftsHint": "Zoek concepten...",
|
||||
"draftsSuffix": " concepten",
|
||||
"noSearchAvailable": "Geen zoekopdracht beschikbaar",
|
||||
"tryDifferentKeywords": "Probeer te zoeken met andere trefwoorden",
|
||||
"errorLoadingDrafts": "Fout bij laden concepten",
|
||||
"deleteButtonLabel": "Verwijderen",
|
||||
"editButtonLabel": "Bewerken",
|
||||
"sendButtonLabel": "Verzenden",
|
||||
"myDraftsTab": "Mijn concepten",
|
||||
"myOrdersTab": "Mijn bestellingen",
|
||||
"createPostcardButton": "Maak ansichtkaart",
|
||||
"makeMostOfTrip": "Haal het meeste uit je reis",
|
||||
"designUniquePostcards": "Ontwerp je eigen unieke ansichtkaarten om\nje onvergetelijke momenten te koesteren.",
|
||||
"letsCreateButton": "Laten we maken ",
|
||||
"notLoggedInPostCards": "Je bent nog niet ingelogd!",
|
||||
"loginToDesignPostcards": "Om je eigen unieke ansichtkaarten te ontwerpen, log\nje in en koop je een onbeperkte pas",
|
||||
"errorLoadingDataTitle": "Fout bij laden gegevens",
|
||||
"buyACardTitle": "Koop een kaart",
|
||||
"memberPrivilegesTitle": "Ledenprivileges",
|
||||
"noOffersAvailable": "Geen aanbiedingen beschikbaar",
|
||||
"availableAttractionsTitle": "Beschikbare attracties",
|
||||
"featureAccessToAttractions": "Toegang tot attracties",
|
||||
"featureEntryToAttractions": "Toegang tot bezienswaardigheden",
|
||||
"featureAccessToExperiences": "Toegang tot ervaringen",
|
||||
"featureEntryToSites": "Toegang tot locaties",
|
||||
"featureAccessToVenues": "Toegang tot locaties",
|
||||
"featureEntryToEvents": "Toegang tot evenementen",
|
||||
"featureAccessToItineraryCreation": "Toegang tot het maken van reisroutes",
|
||||
"featureAccessToPostcardCreation": "Toegang tot het maken van ansichtkaarten",
|
||||
"featuresTitle": "Functies",
|
||||
"unlimitedTitle": "Onbeperkt",
|
||||
"fromPrefix": "Vanaf ",
|
||||
"perAdultSuffix": " /Volwassene",
|
||||
"andPrefix": "en ",
|
||||
"perChildSuffix": " /kind",
|
||||
"diveIntoSelection": "Duik in een uitgebreide selectie spannende bestemmingen!",
|
||||
"noOfAdultsLabel": "Aantal volwassenen",
|
||||
"noOfChildrenLabel": "Aantal kinderen",
|
||||
"noOfDaysLabel": "Aantal dagen",
|
||||
"noOfAttractionsLabel": "Aantal attracties",
|
||||
"youPayLabel": "Je betaalt",
|
||||
"pleaseWaitLabel": "Even geduld...",
|
||||
"proceedToPayLabel": "Ga naar betalen",
|
||||
"atLeastOneAdultRequired": "Minimaal 1 volwassene vereist",
|
||||
"cannotGoBelowZero": "Kan niet onder de 0 zijn",
|
||||
"noCheckoutDataAvailable": "Geen afrekengegevens beschikbaar",
|
||||
"goBackButtonLabel": "Ga Terug",
|
||||
"completePaymentTitle": "Voltooi Betaling",
|
||||
"processingPaymentMessage": "Verwerken van uw pasbetaling...",
|
||||
"paymentSuccessfulMessage": "Betaling Succesvol!\nUw pas is klaar.",
|
||||
"paymentFailedMessage": "Betaling Mislukt",
|
||||
"paymentCancelledMessage": "Betaling geannuleerd",
|
||||
"paymentConfirmedMessage": "Betaling succesvol bevestigd!",
|
||||
"checkoutTitle": "Afrekenen",
|
||||
"adultLabelSingular": "volwassene",
|
||||
"adultLabelPlural": "volwassenen",
|
||||
"kidLabelSingular": "Kind",
|
||||
"kidLabelPlural": "Kinderen",
|
||||
"loadingCoupons": "Coupons laden...",
|
||||
"errorLoadingCoupons": "Fout bij laden van coupons",
|
||||
"couponAppliedPrefix": "Coupon Toegepast: ",
|
||||
"discountOnPrefix": " korting op ",
|
||||
"noCouponsAvailable": "Geen coupons beschikbaar",
|
||||
"viewAllCoupons": "Bekijk alle coupons",
|
||||
"pleaseLoginToApplyCoupon": "Log in om coupon toe te passen",
|
||||
"applyingLabel": "Toepassen...",
|
||||
"removeLabel": "Verwijderen",
|
||||
"applyLabel": "Toepassen",
|
||||
"subtotalLabel": "Subtotaal",
|
||||
"discountLabel": "Korting",
|
||||
"totalLabel": "Totaal",
|
||||
"includingTaxesPrefix": "Inclusief ",
|
||||
"inTaxesSuffix": " aan belastingen",
|
||||
"allCouponsTitle": "Alle Coupons",
|
||||
"applyCouponLabel": "Coupon Toepassen",
|
||||
"purchaseDetailsTitle": "Aankoopdetails",
|
||||
"buyPassForMyselfTitle": "Koop Pas voor Mezelf",
|
||||
"editDetailsLabel": "Bewerk Details",
|
||||
"giftThePassTitle": "Geef de pas cadeau",
|
||||
"giftThePassDescription": "Geef de pas aan iemand anders cadeau",
|
||||
"proceedLabel": "Doorgaan",
|
||||
"processingLabel": "Verwerken...",
|
||||
"payPrefixLabel": "Betalen ",
|
||||
"loginToCheckoutLabel": "Log in om af te rekenen",
|
||||
"yourCartTitle": "Jouw winkelwagen",
|
||||
"myCardsTab": "Mijn Kaarten",
|
||||
"myPostCardsTab": "Mijn Ansichtkaarten",
|
||||
"yourCartIsEmpty": "Je winkelwagen is leeg",
|
||||
"attractionsLabelSuffix": " Attracties",
|
||||
"daysLabelSuffix": " Dagen",
|
||||
"youDoNotHaveAnyPasses": "Je hebt geen passen",
|
||||
"emptyPassesDescription": "Krijg een pas en ontvang aanbiedingen, kortingen en meer tijdens je reis naar je favoriete stad",
|
||||
"buyAPassLabel": "Koop een Pas",
|
||||
"errorLoadingCart": "Fout bij laden winkelwagen",
|
||||
"purchaseOnePostcardAtTime": "Je kunt één ansichtkaart tegelijk kopen",
|
||||
"proceedToCheckoutLabel": "Ga naar afrekenen",
|
||||
"loginToAccessPostcardsCart": "Log in om toegang te krijgen tot je ansichtkaartenwinkelwagen",
|
||||
"youDoNotHaveAnyPostcards": "Je hebt geen ansichtkaarten",
|
||||
"emptyPostcardsDescription": "Je bezit nog geen ansichtkaarten en hebt er geen naar iemand verzonden",
|
||||
"designMyPostcardLabel": "Ontwerp mijn ansichtkaart",
|
||||
"somethingWentWrong": "Er is iets misgegaan",
|
||||
"retryLabel": "Opnieuw proberen",
|
||||
"editDraftLabel": "Bewerk concept",
|
||||
"backTitle": "Terug",
|
||||
"magicItineraryTitle": "Magische Reisroute ✨",
|
||||
"stepPrefix": "Stap ",
|
||||
"ofSuffix": " van ",
|
||||
"createYourLabel": "Creëer jouw",
|
||||
"magicItinerarySubtitle": " magische reisroute",
|
||||
"itineraryCreationStartDescription": "Hallo! Beantwoord een paar leuke vragen en we stellen een reiservaring samen die perfect bij je past! ✈️✨",
|
||||
"letsExploreTogether": "Laten we samen verkennen!",
|
||||
"takesOnlyTwoMinutes": "Duurt slechts 2 minuten ⏱️",
|
||||
"gatheringPreferencesLabel": "Jouw voorkeuren verzamelen...",
|
||||
"findingBestSpotsLabel": "De beste plekken vinden...",
|
||||
"buildingScheduleLabel": "Jouw schema opbouwen...",
|
||||
"almostThereLabel": "Bijna daar...",
|
||||
"yourLabel": "Jouw ",
|
||||
"magicItineraryLabel": "Magische Reisroute",
|
||||
"isLabel": " is ",
|
||||
"readyLabel": "Klaar ",
|
||||
"weHaveGotEverythingWeNeed": "We hebben alles wat we nodig hebben om je perfecte reis te plannen",
|
||||
"startOverLabel": "Begin opnieuw",
|
||||
"getMyTripPlan": "Ontvang Mijn Reisplan",
|
||||
"creatingLabel": "Creëren\n",
|
||||
"yourItineraryLabel": "Jouw Reisroute",
|
||||
"travelingWithKidsLabel": "Reizen met\n kinderen",
|
||||
"noKidsWithMeLabel": "Geen kinderen",
|
||||
"areYouTravellingWithKidsLabel": "Reis je met kinderen?",
|
||||
"noRestrictionsLabel": "Geen beperkingen",
|
||||
"vegetarianLabel": "Vegetarisch",
|
||||
"veganLabel": "Veganistisch",
|
||||
"pescatarianLabel": "Pescotariër",
|
||||
"halalLabel": "Halal",
|
||||
"kosherLabel": "Koosjer",
|
||||
"doYouFollowDietaryPreferenceLabel": "Volg je een specifiek dieet?",
|
||||
"whenAreYouPlanningToVisitLabel": "Hallo! Wanneer ben je van plan om te bezoeken?",
|
||||
"selectADateLabel": "Selecteer een datum",
|
||||
"continueTitle": "Doorgaan",
|
||||
"relaxedAndChillLabel": "Ontspannen",
|
||||
"balancedMixLabel": "Gebalanceerde mix",
|
||||
"activeAndEnergeticLabel": "Actief en energiek",
|
||||
"fullAdventureLabel": "Volledig avontuur!",
|
||||
"whatKindOfEnergyLabel": "Wat voor energie zoek je tijdens deze reis?",
|
||||
"notInterestedLabel": "Niet geïnteresseerd",
|
||||
"maybeOneOrTwoLabel": "Misschien een of twee",
|
||||
"yesSoundsGoodLabel": "Ja, klinkt goed!",
|
||||
"absolutelyLoveThemLabel": "Ik hou er helemaal van!",
|
||||
"doYouEnjoyMuseumsLabel": "Geniet je van een bezoek aan musea en kunstgalerijen?",
|
||||
"@esimOfferTitle": {},
|
||||
"esimOfferTitle": "Maak direct verbinding met uw gratis eSIM",
|
||||
"@esimOfferSubtitle": {},
|
||||
"esimOfferSubtitle": "Elke geweldige reis begint met een soepele verbinding.",
|
||||
"@viewPlans": {},
|
||||
"viewPlans": "Bekijk plannen",
|
||||
"@withYour": {},
|
||||
"withYour": "Met uw ",
|
||||
"@esimKeyword": {},
|
||||
"esimKeyword": "eSIM",
|
||||
"@youCanKeyword": {},
|
||||
"youCanKeyword": ", kunt u:",
|
||||
"@navigateCity": {},
|
||||
"navigateCity": "Navigeer met gemak door de stad",
|
||||
"@navigateCityDesc": {},
|
||||
"navigateCityDesc": "Krijg overal toegang tot realtime kaarten en routebeschrijvingen",
|
||||
"@bookRides": {},
|
||||
"bookRides": "Boek ritten, bekijk kaarten en vind attracties in realtime",
|
||||
"@bookRidesDesc": {},
|
||||
"bookRidesDesc": "Blijf verbonden met alle essentiële reisdiensten",
|
||||
"@sharePhotos": {},
|
||||
"sharePhotos": "Deel foto's en herinneringen direct",
|
||||
"@sharePhotosDesc": {},
|
||||
"sharePhotosDesc": "Upload and deel uw reismomenten zonder vertraging",
|
||||
"@stayConnectedFeatures": {},
|
||||
"stayConnectedFeatures": "Blijf verbonden met vrienden, familie en reisplannen",
|
||||
"@stayConnectedFeaturesDesc": {},
|
||||
"stayConnectedFeaturesDesc": "Mis nooit belangrijke updates of berichten tijdens het reizen",
|
||||
"@simpleKeyword": {},
|
||||
"simpleKeyword": "Eenvoudig ",
|
||||
"@threeStepProcess": {},
|
||||
"threeStepProcess": "3-stappenproces",
|
||||
"@getConnectedInSeconds": {},
|
||||
"getConnectedInSeconds": "Binnen enkele seconden verbonden",
|
||||
"@receiveQrCode": {},
|
||||
"receiveQrCode": "QR-code ontvangen",
|
||||
"@receiveQrCodeDesc": {},
|
||||
"receiveQrCodeDesc": "Ontvang uw unieke eSIM QR-code bij uw CityCard",
|
||||
"@scanCode": {},
|
||||
"scanCode": "Code scannen",
|
||||
"@scanCodeDesc": {},
|
||||
"scanCodeDesc": "Open uw telefooncamera en scan de QR-code",
|
||||
"@connectedStep": {},
|
||||
"connectedStep": "Verbonden",
|
||||
"@connectedStepDesc": {},
|
||||
"connectedStepDesc": "Je bent direct online - begin met ontdekken!",
|
||||
"@itsOneMoreWay": {},
|
||||
"itsOneMoreWay": "Het is nog een manier waarop",
|
||||
"@cityCardsKeywordSpace": {},
|
||||
"cityCardsKeywordSpace": " CityCards",
|
||||
"@makesYourJourney": {},
|
||||
"makesYourJourney": "uw reis",
|
||||
"@smarterKeywordSpace": {},
|
||||
"smarterKeywordSpace": " slimmer",
|
||||
"@andMoreSpace": {},
|
||||
"andMoreSpace": "en",
|
||||
"@effortlessSpace": {},
|
||||
"effortlessSpace": " moeitelozer maakt",
|
||||
"@startYourJourneyToday": {},
|
||||
"startYourJourneyToday": "Begin vandaag nog aan uw reis",
|
||||
"@enjoy20OffMarriott": {},
|
||||
"enjoy20OffMarriott": "Geniet van 20% korting op iconische Marriott hotels - Exclusief met CityCards",
|
||||
"@makeEveryStayUnforgettable": {},
|
||||
"makeEveryStayUnforgettable": "Maak elk verblijf even onvergetelijk als de stad die u verkent.",
|
||||
"@bookNow": {},
|
||||
"bookNow": "Boek nu",
|
||||
"@yourCityCardsUnlocksMore": {},
|
||||
"yourCityCardsUnlocksMore": "Uw CityCards ontgrendelt meer dan alleen attracties — het opent ook deuren naar uitzonderlijke verblijven.",
|
||||
"@thanksToOurExclusivePartnership": {},
|
||||
"thanksToOurExclusivePartnership": "Dankzij onze exclusieve samenwerking met ",
|
||||
"@marriottHotelsKeyword": {},
|
||||
"marriottHotelsKeyword": "Marriott Hotels",
|
||||
"@cityCardsHoldersEnjoy": {},
|
||||
"cityCardsHoldersEnjoy": ", genieten CityCards-houders van ",
|
||||
"@twentyPercentOffRates": {},
|
||||
"twentyPercentOffRates": "20% korting op de best beschikbare tarieven",
|
||||
"@acrossCuratedProperties": {},
|
||||
"acrossCuratedProperties": " in een zorgvuldig geselecteerd aantal hotels in de stad.",
|
||||
"@chooseFromAKeyword": {},
|
||||
"chooseFromAKeyword": "Kies uit een ",
|
||||
"@wideVarietyBreak": {},
|
||||
"wideVarietyBreak": "Grote \nVariëteit",
|
||||
"@chooseFromAWideVarietyDesc": {},
|
||||
"chooseFromAWideVarietyDesc": "Kies uit een grote variëteit aan Marriott hotels — van elegante stedelijke schuilplaatsen en premium locaties in het stadscentrum tot luxueuze vijfsterrenervaringen — allemaal ontworpen om uw reis ",
|
||||
"@effortlessComfortable": {},
|
||||
"effortlessComfortable": "moeiteloos, comfortabel",
|
||||
"@andMiddle": {},
|
||||
"andMiddle": " en ",
|
||||
"@memorableKeyword": {},
|
||||
"memorableKeyword": "onvergetelijk te maken",
|
||||
"@simplyUseYourCityCards": {},
|
||||
"simplyUseYourCityCards": "Gebruik gewoon uw ",
|
||||
"@bookingLinkTo": {},
|
||||
"bookingLinkTo": " CityCards-boekingslink om:",
|
||||
"@access20OffRates": {},
|
||||
"access20OffRates": "Toegang te krijgen tot 20% korting op de best beschikbare tarieven",
|
||||
"@saveOnYourStay": {},
|
||||
"saveOnYourStay": "Bespaar op uw verblijf bij premium Marriott hotels",
|
||||
"@enjoyPriorityCheckIn": {},
|
||||
"enjoyPriorityCheckIn": "Geniet van prioriteit bij het inchecken en late check-out",
|
||||
"@subjectToAvailability": {},
|
||||
"subjectToAvailability": "Onder voorbehoud van beschikbaarheid voor uw gemak",
|
||||
"@receiveExclusiveSeasonalOffers": {},
|
||||
"receiveExclusiveSeasonalOffers": "Ontvang exclusieve seizoensaanbiedingen",
|
||||
"@designedSpeciallyForCityCards": {},
|
||||
"designedSpeciallyForCityCards": "Speciaal ontworpen voor CityCards-reizigers",
|
||||
"@itsJustOneMoreWay": {},
|
||||
"itsJustOneMoreWay": "Het is nog een andere manier waarop",
|
||||
"@makesExploring": {},
|
||||
"makesExploring": " verkennen",
|
||||
"@simplerKeyword": {},
|
||||
"simplerKeyword": " eenvoudiger",
|
||||
"@moreRewarding": {},
|
||||
"moreRewarding": " lonender maakt",
|
||||
"@getYourCityCardsToday": {},
|
||||
"getYourCityCardsToday": "Ontvang vandaag nog uw CityCards",
|
||||
"shareSubject": "Bekijk dit",
|
||||
"scanAtAttractionSite": "Scan dit op de locatie van de attractie",
|
||||
"codeCopied": "Code gekopieerd naar klembord",
|
||||
"checkedIn": "Ingecheckt",
|
||||
"checkIn": "Inchecken",
|
||||
"problemsRedeemingPass": "Problemen met het inwisselen van de pas? ",
|
||||
"clickHere": "Klik hier",
|
||||
"about": "Over",
|
||||
"howToMakeBooking": "Hoe maak je een boeking?",
|
||||
"contactNumber": "Contactnummer",
|
||||
"tapToCall": "Tik om te bellen",
|
||||
"email": "E-mail",
|
||||
"tapToEmail": "Tik om te e-mailen",
|
||||
"datesNotAvailable": "Data niet beschikbaar",
|
||||
"viaCityCards": "Via CityCards",
|
||||
"createBookingViaApp": "Maak een boeking via de app",
|
||||
"whatIsIncluded": "Wat is inbegrepen",
|
||||
"exactLocation": "Exacte locatie",
|
||||
"viewLocationOnMap": "Bekijk de locatie op de kaart",
|
||||
"peopleFrequentlyAsk": "Veelgestelde vragen",
|
||||
"errorMessage": "Fout: {message}",
|
||||
"suggestedAttractions": "Voorgestelde attracties",
|
||||
"viewAllAttractions": "Bekijk alle attracties",
|
||||
"recommendedOffers": "Aanbevolen aanbiedingen",
|
||||
"viewAllOffers": "Bekijk alle aanbiedingen",
|
||||
"learnAboutPolicies": "Meer informatie over het beleid",
|
||||
"pricePerPerson": "${price}/persoon",
|
||||
"priceNotAvailable": "Prijs niet beschikbaar",
|
||||
"bookingRequired": "Reservering verplicht",
|
||||
"adultsLabel": "Volwassenen",
|
||||
"kidsLabel": "Kinderen",
|
||||
"checkedInSuccessful": "Inchecken geslaagd",
|
||||
"readyToCheckIn": "Klaar om in te checken?",
|
||||
"entranceActivationNote": "Alleen activeren als u bij de ingang bent van ",
|
||||
"minuteTimer": "{minutes} minuten timer",
|
||||
"timerActivationWarning": "Eenmaal geactiveerd, is de pas {minutes} minuten geldig. Deze actie kan niet ongedaan worden gemaakt",
|
||||
"activatePassNow": "Pas nu activeren",
|
||||
"notAtEntranceYet": "Ik ben nog niet bij de ingang",
|
||||
"howToRedeemTitle": "Hoe wissel ik mijn attractiepas in?",
|
||||
"howToRedeemDescription": "Om uw attractiepas in te wisselen, toont u de QR-code bij de ingang. Onze medewerkers zullen deze scannen, zodat u toegang krijgt tot de wonderen binnenin. Geniet van uw avontuur bij ",
|
||||
"contactSupport": "Contact opnemen met ondersteuning",
|
||||
"passAttractionsTitle": "Pas Attracties",
|
||||
"searchAttractionsHint": "Attracties zoeken...",
|
||||
"noAttractionsFound": "Geen attracties gevonden",
|
||||
"noAttractionsMatchSearch": "Geen attracties gevonden die overeenkomen met uw zoekopdracht",
|
||||
"selectiveCardFilter": "Selectieve Kaart",
|
||||
"offersWithCardTitle": "Aanbiedingen met {cardName}",
|
||||
"searchOffersHint": "Aanbiedingen zoeken",
|
||||
"noOffersFound": "Geen aanbiedingen gevonden",
|
||||
"codeCopiedMessage": "Code gekopieerd: {code}",
|
||||
"noDataAvailable": "Geen gegevens beschikbaar",
|
||||
"userPossessive": "{firstName}'s",
|
||||
"tripDetails": "REISDETAILS:",
|
||||
"daysCount": "{count} Dagen",
|
||||
"stopsCount": "{count} stops",
|
||||
"adultsCount": "{count} volwassenen",
|
||||
"kidsCount": "{count} kinderen",
|
||||
"shareLabel": "Delen",
|
||||
"preparingPdfToShare": "PDF voorbereiden om te delen...",
|
||||
"myItinerarySubject": "Mijn reisschema - {title}",
|
||||
"failedToShare": "Delen mislukt: {error}",
|
||||
"downloadLabel": "Downloaden",
|
||||
"downloadingLabel": "Downloaden...",
|
||||
"downloadingPdf": "PDF downloaden...",
|
||||
"dailyView": "Dagoverzicht",
|
||||
"summary": "Samenvatting",
|
||||
"dayNumberLabel": "Dag {number}",
|
||||
"pleaseFillAllFields": "Vul alle velden in",
|
||||
"enterValidEmail": "Voer een geldig e-mailadres in",
|
||||
"enterValidPhoneForIsd": "Voer een geldig telefoonnummer in voor {isdCode}",
|
||||
"failedToSubmitDetails": "Details verzenden mislukt",
|
||||
"addDetailsTitle": "Details toevoegen",
|
||||
"aboutRecipient": "Vertel ons over de ontvanger",
|
||||
"firstNameLabelWithStar": "Voornaam *",
|
||||
"firstNameHint": "Voer de voornaam van de ontvanger in",
|
||||
"lastNameLabelWithStar": "Achternaam *",
|
||||
"lastNameHint": "Voer de achternaam van de ontvanger in",
|
||||
"emailLabelWithStar": "E-mail *",
|
||||
"emailHint": "Voer het e-mailadres van de ontvanger in",
|
||||
"phoneNumberLabelWithStar": "Telefoonnummer *",
|
||||
"phoneNumberHint": "Voer telefoonnummer in",
|
||||
"searchCountryHint": "Zoek land...",
|
||||
"cityLabelWithStar": "Stad *",
|
||||
"cityHint": "Voer de naam van de stad in",
|
||||
"countryLabelWithStar": "Land *",
|
||||
"countryHint": "Voer landnaam in",
|
||||
"submittingLabel": "Verzenden...",
|
||||
"yourAttractionTitle": "Uw attractie",
|
||||
"perPersonSuffix": "/persoon",
|
||||
"checkThisOut": "Bekijk dit eens",
|
||||
"whatIsIncluded": "Wat is inbegrepen",
|
||||
"peopleFrequentlyAsk": "Veelgestelde vragen",
|
||||
"aboutTitle": "Over",
|
||||
"exactLocation": "Exacte locatie",
|
||||
"viewOnMap": "Bekijk de locatie op de kaart",
|
||||
"selectImageSource": "Selecteer afbeeldingsbron",
|
||||
"cameraLabel": "Camera",
|
||||
"galleryLabel": "Galerij",
|
||||
"failedToPickImage": "Afbeelding kiezen mislukt: {error}",
|
||||
"userIdNotFound": "Gebruikers-ID niet gevonden",
|
||||
"changeProfilePicture": "Profielfoto wijzigen",
|
||||
"enterYourFirstName": "Voer uw voornaam in",
|
||||
"firstNameRequired": "Voornaam is verplicht",
|
||||
"enterYourLastName": "Voer uw achternaam in",
|
||||
"lastNameRequired": "Achternaam is verplicht",
|
||||
"enterYourEmail": "Voer uw e-mail in",
|
||||
"enterYourPhoneNumber": "Voer uw telefoonnummer in",
|
||||
"addressLabelWithStar": "Adres *",
|
||||
"addressHint": "Voer adres handmatig in of tik om te zoeken",
|
||||
"address2Optional": "Adres 2 (Optioneel)",
|
||||
"address2Hint": "Voer aanvullende adresgegevens in",
|
||||
"zipCodeLabelWithStar": "Postcode *",
|
||||
"zipCodeHint": "Voer de postcode in waar u woont",
|
||||
"enterYourCity": "Voer de naam van uw stad in",
|
||||
"stateLabelWithStar": "Provincie *",
|
||||
"enterYourState": "Voer uw provincie in",
|
||||
"enterYourCountry": "Voer uw land in",
|
||||
"editProfileTitle": "Profiel bewerken",
|
||||
"personalDetails": "Persoonlijke gegevens",
|
||||
"locationDetails": "Locatiegegevens",
|
||||
"cancelTitle": "Annuleren",
|
||||
"saveTitle": "Opslaan",
|
||||
"contactUsTitle": "Contact",
|
||||
"contactUsMessage": "U kunt contact met ons opnemen via de onderstaande platforms. Ons team neemt spoedig contact met u op",
|
||||
"customerSupport": "Klantenservice",
|
||||
"contactNumberLabel": "Telefoonnummer",
|
||||
"tapToCall": "Tik om te bellen",
|
||||
"emailLabel": "E-mail",
|
||||
"tapToEmail": "Tik om te mailen",
|
||||
"locationLabel": "Locatie",
|
||||
"enterYourEmailAddress": "Voer uw e-mailadres in",
|
||||
"emailRequired": "E-mail is verplicht",
|
||||
"enterValidEmail": "Voer een geldig e-mailadres in",
|
||||
"phoneNumberRequired": "Telefoonnummer is verplicht",
|
||||
"descriptionLabelWithStar": "Beschrijving *",
|
||||
"writeMessageHint": "Schrijf hier uw bericht",
|
||||
"submitTicket": "Ticket indienen",
|
||||
"termsAndConditionsTitle": "Algemene voorwaarden",
|
||||
"privacyPolicyTitle": "Privacybeleid",
|
||||
"faqTitle": "Veelgestelde vragen",
|
||||
"noTermsContent": "Geen inhoud voor algemene voorwaarden beschikbaar.",
|
||||
"noPrivacyContent": "Geen inhoud voor privacybeleid beschikbaar.",
|
||||
"retryLabel": "Opnieuw proberen",
|
||||
"errorLabel": "Fout",
|
||||
"offersWithCard": "Aanbiedingen met {cardName} Card",
|
||||
"@offersWithCard": {
|
||||
"placeholders": {
|
||||
"cardName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"searchOffersHint": "Zoek aanbiedingen",
|
||||
"noOffersFound": "Geen aanbiedingen gevonden",
|
||||
"aboutPartner": "Over {partnerName}",
|
||||
"@aboutPartner": {
|
||||
"placeholders": {
|
||||
"partnerName": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"howToMakeBooking": "Hoe maak je een boeking?",
|
||||
"bookingStep1": "Controleer de vervaldatum van uw kortingsbon om er zeker van te zijn dat deze nog geldig is.",
|
||||
"bookingStep2": "Bezoek de winkel of website waar de kortingsbon kan worden verzilverd.",
|
||||
"bookingStep3": "Voeg bij online winkelen artikelen toe aan uw winkelwagentje en ga naar de kassa.",
|
||||
"bookingStep4": "Zoek tijdens het afrekenen naar een veld met de tekst 'Kortingscode' of 'Promotiecode'.",
|
||||
"bookingStep5": "Voer uw kortingscode exact in zoals deze verschijnt, inclusief eventuele speciale tekens.",
|
||||
"couponCodeCopied": "Kortingscode gekopieerd!",
|
||||
"createYourAccount": "Maak uw account aan",
|
||||
"personalInformation": "Persoonlijke informatie",
|
||||
"locationDetailsWithStar": "Locatiegegevens *",
|
||||
"enterYourAddress": "Voer uw adres in",
|
||||
"autoFillZipNote": "Stad, provincie en land worden automatisch ingevuld op basis van de postcode",
|
||||
"creatingLabelEllipsis": "Bezig met maken...",
|
||||
"createAccount": "Account aanmaken",
|
||||
"getStarted": "Aan de slag",
|
||||
"enterEmailToBegin": "Voer uw e-mailadres in om uw CityCards-reis te beginnen",
|
||||
"emailExampleHint": "john.doe@gmail.com",
|
||||
"pleaseEnterEmail": "Voer uw e-mailadres in",
|
||||
"sendingLabel": "Verzenden...",
|
||||
"otpVerifiedSuccess": "OTP succesvol geverifieerd!",
|
||||
"completeProfileNote": "Vul uw profiel aan",
|
||||
"otpResentSuccess": "OTP succesvol opnieuw verzonden!",
|
||||
"verifyYourPhone": "Verifieer uw telefoon",
|
||||
"enterVerificationCodeNote": "Voer de verificatiecode in die naar uw e-mailadres is verzonden",
|
||||
"resendingLabel": "Opnieuw verzenden...",
|
||||
"resendOtpLabel": "OTP opnieuw verzenden",
|
||||
"resendOtpWithTimer": "OTP opnieuw verzenden ({seconds}s)",
|
||||
"pleaseEnterCompleteOtp": "Voer de volledige OTP in",
|
||||
"verifyingLabel": "Verifiëren...",
|
||||
"ok": "OK",
|
||||
"uploadAPhoto": "Upload een foto",
|
||||
"orLabel": "OF",
|
||||
"takeAPhoto": "Neem een foto",
|
||||
"uploadAgain": "Opnieuw uploaden",
|
||||
"nextTitle": "Volgende",
|
||||
"addImage": "Afbeelding toevoegen",
|
||||
"addAFilter": "Filter toevoegen",
|
||||
"chooseFavoriteFilter": "Kies je favoriete filter en verbeter je ansichtkaart.",
|
||||
"filterOriginal": "Origineel",
|
||||
"filterBW": "Zwart-wit",
|
||||
"filterSepia": "Sepia",
|
||||
"filterVintage": "Vintage",
|
||||
"filterCoolTone": "Koele tint",
|
||||
"filterContrast": "Contrast",
|
||||
"filterSoftGlow": "Zachte gloed",
|
||||
"writeYourMessage": "Schrijf je bericht",
|
||||
"failedToFetchEditDetails": "Fout bij ophalen van bewerkingsgegevens",
|
||||
"saveChanges": "Wijzigingen opslaan",
|
||||
"writeAMessage": "Schrijf een bericht",
|
||||
"addYourMessageHere": "Voeg hier je bericht toe",
|
||||
"fontDefault": "Standaard",
|
||||
"previewYourPostcard": "Bekijk je ansichtkaart",
|
||||
"flipLabel": "Omdraaien",
|
||||
"buyPostcardForMyself": "Ansichtkaart voor mezelf kopen",
|
||||
"editDetailsLabel": "Gegevens bewerken",
|
||||
"giftPostcardForSomeoneElse": "Ansichtkaart cadeau doen aan iemand anders",
|
||||
"addTitleLabel": "Titel toevoegen",
|
||||
"enterTitleHint": "Voer titel in",
|
||||
"pleaseEnterTitle": "Voer een titel in",
|
||||
"yourDetailsTitle": "Jouw gegevens",
|
||||
"senderDetailsDescription": "Voer je gegevens in als afzender van deze ansichtkaart",
|
||||
"fullNameLabel": "Volledige naam",
|
||||
"enterFullNameHint": "Voer de volledige naam in",
|
||||
"cityLabel": "Stad",
|
||||
"enterCityHint": "Voer de naam van je stad in",
|
||||
"countryLabel": "Land",
|
||||
"enterCountryHint": "Voer je land in",
|
||||
"recipientDetailsTitle": "Gegevens ontvanger",
|
||||
"recipientDetailsDescription": "Voer het adres in van de persoon die deze ansichtkaart zal ontvangen",
|
||||
"selfDetailsDescription": "Voer je contactgegevens in voor deze ansichtkaart.",
|
||||
"recipientNameLabel": "Naam ontvanger",
|
||||
"enterRecipientNameHint": "Voer de naam van de ontvanger in",
|
||||
"addressLabel": "Adres",
|
||||
"enterRecipientAddressHint": "Voer het adres van de ontvanger in",
|
||||
"zipCodeLabel": "Postcode",
|
||||
"enterZipCodeHint": "Voer de postcode in waar je woont",
|
||||
"pleaseEnterZipCode": "Voer de postcode in",
|
||||
"stateLabel": "Provincie",
|
||||
"enterStateHint": "Voer je provincie in",
|
||||
"pleaseEnterField": "Voer {fieldName} in",
|
||||
"invalidEmailError": "Voer een geldig e-mailadres in",
|
||||
"onlyNumbersAllowed": "Alleen cijfers zijn toegestaan",
|
||||
"mobileNumberLengthError": "Mobiel nummer moet {length} cijfers bevatten",
|
||||
"onlyLettersAllowed": "Alleen letters zijn toegestaan",
|
||||
"spacesNotAllowed": "Spaties zijn niet toegestaan",
|
||||
"specialCharsNotAllowed": "Speciale tekens zijn niet toegestaan",
|
||||
"saveAsDraftLabel": "Opslaan als concept",
|
||||
"deliveryAddressLabel": "Bezorgadres",
|
||||
"paymentSummaryLabel": "Overzicht betaling",
|
||||
"grandTotalLabel": "Eindtotaal",
|
||||
"paymentFailedError": "Betaling mislukt: {error}",
|
||||
"paymentInitializationFailedError": "Fout: Initialisatie van betaling mislukt",
|
||||
"draftSavedSuccess": "Concept succesvol opgeslagen!",
|
||||
"payAmountLabel": "Betaal ${amount}",
|
||||
"orderPlacedSuccess": "Bestelling succesvol geplaatst!",
|
||||
"orderPlacedDescription": "Je bestelling is geplaatst. Je bestellingsnummer is {orderId}",
|
||||
"deliveryTimelineNote": "Het wordt binnen 2-3 werkdagen bezorgd.",
|
||||
"goToMyOrdersLabel": "Ga naar Mijn Bestellingen",
|
||||
"messagePreviewLabel": "Voorbeeld Bericht",
|
||||
"postcardLabel": "Ansichtkaart",
|
||||
"homeTitle": "CityCards.\nZie meer,\nBesteed minder.",
|
||||
"homeSubtitle": "Directe QR-toegang tot 40+ attracties,\nexclusieve voordelen en besparingen tot 30%",
|
||||
"getYourCityCards": "Haal je CityCards",
|
||||
"exploreCitiesTitleExplore": "Ontdek ",
|
||||
"exploreCitiesTitleCities": "Steden",
|
||||
"upcomingCitiesTitleUpcoming": "Komende ",
|
||||
"upcomingCitiesTitleCities": "Steden",
|
||||
"exploreDescription": "Verken je droombestemming en ervaar diverse attracties.",
|
||||
"noCitiesAvailable": "Geen steden beschikbaar",
|
||||
"notAvailableLabel": "N/A",
|
||||
"editPostcardTitle": "Ansichtkaart bewerken",
|
||||
"uploadImageTitle": "Afbeelding uploaden",
|
||||
"editPostcardUploadDescription": "Bewerk je eigen unieke ansichtkaarten door afbeeldingen te uploaden die je onvergetelijke momenten vastleggen.",
|
||||
"editFiltersLabel": "Filters bewerken",
|
||||
"editTitleLabel": "Titel bewerken ",
|
||||
"editTitleDescription": "Geef een andere titel aan je ansichtkaart",
|
||||
"titleMaxLengthError": "Titel mag maximaal 10 letters bevatten",
|
||||
"editMessageLabel": "Bericht bewerken ",
|
||||
"editMessageDescription": "Bewerk je eigen unieke ansichtkaarten om je onvergetelijke momenten te koesteren.",
|
||||
"fullNameLabelWithStar": "Volledige naam *",
|
||||
"recipientLabelWithStar": "Ontvanger *",
|
||||
"pleaseEnterMessage": "Voer een bericht in",
|
||||
"messageMaxLengthError": "Bericht mag maximaal 400 tekens bevatten",
|
||||
"fontPatrickHand": "Patrick Hand",
|
||||
"fontIndieFlower": "Indie Flower",
|
||||
"fontGloriaHallelujah": "Gloria Hallelujah"
|
||||
}
|
||||
@@ -88,9 +88,9 @@ class LocalPreference {
|
||||
}
|
||||
|
||||
/// Reset onboarding (for logout / testing)
|
||||
// static Future<void> resetOnboarding() async {
|
||||
// await updateOnboardingPage(0);
|
||||
// }
|
||||
static Future<void> resetOnboarding() async {
|
||||
await updateOnboardingPage(0);
|
||||
}
|
||||
|
||||
/// Set login state
|
||||
static Future<void> setLogin(bool value) async {
|
||||
@@ -182,22 +182,6 @@ class LocalPreference {
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Clear only access token (keep refresh token)
|
||||
static Future<void> clearAccessToken() async {
|
||||
final db = await LocalDatabase().database;
|
||||
|
||||
await db.update(
|
||||
'user_tokens',
|
||||
{'access_token': ''}, // ← empty string, not null
|
||||
where: 'id = ?',
|
||||
whereArgs: [1],
|
||||
);
|
||||
|
||||
if (kDebugMode) {
|
||||
print('🧹 [LOCAL_PREF] Access token cleared');
|
||||
}
|
||||
}
|
||||
|
||||
/// Get refresh token
|
||||
static Future<String?> getRefreshToken() async {
|
||||
final db = await LocalDatabase().database;
|
||||
@@ -538,7 +522,8 @@ class LocalPreference {
|
||||
await clearTokens();
|
||||
await clearUserDetails();
|
||||
await clearPassCart();// optional
|
||||
await clearProfileImage();
|
||||
await clearProfileImage();// optional
|
||||
await clearPassCart();// optional
|
||||
}
|
||||
|
||||
static Future<void> clearAllData() async {
|
||||
|
||||
@@ -1,33 +1,18 @@
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:citycards_customer/login/repository/login_repository.dart';
|
||||
import '../../../create_account/models/create_account_model.dart';
|
||||
import '../../../localPreference/local_preference.dart';
|
||||
import 'verify_event.dart';
|
||||
import 'verify_state.dart';
|
||||
import 'dart:async';
|
||||
|
||||
class VerifyOtpBloc extends Bloc<VerifyOtpEvent, VerifyOtpState> {
|
||||
final LoginRepository _loginRepository;
|
||||
|
||||
VerifyOtpBloc({required LoginRepository loginRepository})
|
||||
: _loginRepository = loginRepository,
|
||||
super(ResendOtpCooldown(secondsRemaining: 60)) { // start with cooldown
|
||||
super(VerifyOtpInitial()) {
|
||||
on<VerifyEmailOtpEvent>(_onVerifyEmailOtp);
|
||||
on<ResendOtpEvent>(_onResendOtp);
|
||||
on<StartResendTimerEvent>(_onStartResendTimer);
|
||||
|
||||
add(StartResendTimerEvent()); // auto-start on bloc creation
|
||||
}
|
||||
|
||||
Future<void> _onStartResendTimer(
|
||||
StartResendTimerEvent event,
|
||||
Emitter<VerifyOtpState> emit,
|
||||
) async {
|
||||
for (int i = 60; i >= 0; i--) {
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
if (isClosed) return;
|
||||
emit(ResendOtpCooldown(secondsRemaining: i));
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _onVerifyEmailOtp(
|
||||
@@ -40,6 +25,7 @@ class VerifyOtpBloc extends Bloc<VerifyOtpEvent, VerifyOtpState> {
|
||||
emailAddress: event.emailAddress,
|
||||
otp: event.otp,
|
||||
);
|
||||
|
||||
final userModel = UserRegisteredModel.fromJson(response);
|
||||
await LocalPreference.setTokens(
|
||||
accessToken: userModel.accessToken,
|
||||
@@ -72,7 +58,6 @@ class VerifyOtpBloc extends Bloc<VerifyOtpEvent, VerifyOtpState> {
|
||||
emailAddress: event.emailAddress,
|
||||
);
|
||||
emit(ResendOtpSuccess(response: response));
|
||||
add(StartResendTimerEvent()); // restart countdown after resend
|
||||
} catch (e) {
|
||||
emit(VerifyOtpError(errorMessage: e.toString()));
|
||||
}
|
||||
|
||||