├── lib ├── widgets │ ├── ticket_bus_details.dart │ ├── card_credit_ticket.dart │ ├── details_dashboard.dart │ ├── ticket_card.dart │ └── scrollable_card_stack.dart ├── constants.dart ├── main.dart ├── screens │ ├── payment_terminal_screen │ │ ├── bloc │ │ │ ├── payment_terminal_event.dart │ │ │ ├── payment_terminal_state.dart │ │ │ └── payment_terminal_bloc.dart │ │ ├── children │ │ │ └── print_ticket_state.dart │ │ └── payment_terminal_screen.dart │ ├── confirmation_ticket_screen.dart │ ├── home_screen.dart │ └── checkout_screen.dart └── entities │ └── ticket_bus.dart ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── RunnerTests │ └── RunnerTests.swift └── .gitignore ├── assets ├── back-icon.png ├── bank-atm-1.png ├── bank-atm-2.png ├── atm-ticket-1.png ├── atm-ticket-2.png ├── credit-card-0.png ├── credit-card-1.png ├── credit-card-2.png ├── credit-card-3.png ├── credit-card-h-0.png ├── credit-card-h-1.png ├── credit-card-h-2.png ├── credit-card-h-3.png ├── ticket-background.png ├── ticket-bus-background.png └── background-confirmation-ticket.png ├── screenshots ├── ticket-bus-gif.gif └── screenshot-ticket-app.png ├── android ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── ticket_bank_machine │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle └── settings.gradle ├── .gitignore ├── README.md ├── test └── widget_test.dart ├── analysis_options.yaml ├── .metadata ├── pubspec.yaml └── pubspec.lock /lib/widgets/ticket_bus_details.dart: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /assets/back-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/back-icon.png -------------------------------------------------------------------------------- /assets/bank-atm-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/bank-atm-1.png -------------------------------------------------------------------------------- /assets/bank-atm-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/bank-atm-2.png -------------------------------------------------------------------------------- /assets/atm-ticket-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/atm-ticket-1.png -------------------------------------------------------------------------------- /assets/atm-ticket-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/atm-ticket-2.png -------------------------------------------------------------------------------- /assets/credit-card-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-0.png -------------------------------------------------------------------------------- /assets/credit-card-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-1.png -------------------------------------------------------------------------------- /assets/credit-card-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-2.png -------------------------------------------------------------------------------- /assets/credit-card-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-3.png -------------------------------------------------------------------------------- /assets/credit-card-h-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-h-0.png -------------------------------------------------------------------------------- /assets/credit-card-h-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-h-1.png -------------------------------------------------------------------------------- /assets/credit-card-h-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-h-2.png -------------------------------------------------------------------------------- /assets/credit-card-h-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/credit-card-h-3.png -------------------------------------------------------------------------------- /assets/ticket-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/ticket-background.png -------------------------------------------------------------------------------- /assets/ticket-bus-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/ticket-bus-background.png -------------------------------------------------------------------------------- /screenshots/ticket-bus-gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/screenshots/ticket-bus-gif.gif -------------------------------------------------------------------------------- /screenshots/screenshot-ticket-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/screenshots/screenshot-ticket-app.png -------------------------------------------------------------------------------- /assets/background-confirmation-ticket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/assets/background-confirmation-ticket.png -------------------------------------------------------------------------------- /lib/constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AppColors { 4 | static Color electricIndigo = const Color(0xff5438FF); 5 | } -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paolojoaquinp/ticket_bank_machine/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/ticket_bank_machine/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.ticket_bank_machine 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() 6 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip 6 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/to/reference-keystore 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = "../build" 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(":app") 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | @main 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ticket_bank_machine/screens/home_screen.dart'; 3 | void main() => runApp(const MyApp()); 4 | 5 | class MyApp extends StatelessWidget { 6 | const MyApp({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return const MaterialApp( 11 | title: 'Ticket bank machine', 12 | // home: ConfirmationTicketScreen(), 13 | // home: PaymentTerminalScreen(index: 0,), 14 | home: HomeScreen(), 15 | ); 16 | } 17 | } 18 | 19 | 20 | -------------------------------------------------------------------------------- /lib/screens/payment_terminal_screen/bloc/payment_terminal_event.dart: -------------------------------------------------------------------------------- 1 | part of 'payment_terminal_bloc.dart'; 2 | 3 | sealed class PaymentTerminalEvent extends Equatable { 4 | const PaymentTerminalEvent(); 5 | 6 | } 7 | 8 | 9 | class PaymentTerminalInitialEvent extends PaymentTerminalEvent { 10 | const PaymentTerminalInitialEvent(); 11 | 12 | @override 13 | List get props => []; 14 | } 15 | 16 | class IntroduceCreditCard extends PaymentTerminalEvent { 17 | const IntroduceCreditCard(); 18 | 19 | @override 20 | List get props => []; 21 | } -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | }() 9 | 10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") 11 | 12 | repositories { 13 | google() 14 | mavenCentral() 15 | gradlePluginPortal() 16 | } 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 21 | id "com.android.application" version "8.1.0" apply false 22 | id "org.jetbrains.kotlin.android" version "1.8.22" apply false 23 | } 24 | 25 | include ":app" 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Symbolication related 35 | app.*.symbols 36 | 37 | # Obfuscation related 38 | app.*.map.json 39 | 40 | # Android Studio will place build artifacts here 41 | /android/app/debug 42 | /android/app/profile 43 | /android/app/release 44 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Ticket Bus App 3 | 4 | An app to request a ticket to take a bus. Choose your favorite payment and receive and confirmation with an interactive interface. 5 | 6 | 7 | Inspiration: 8 | [Link Here](https://www.linkedin.com/posts/jitendra-raut_uiux-figma-prototype-activity-7212344947918663682-MLdq?utm_source=share&utm_medium=member_desktop) 9 | 10 | 11 | 12 | ## Screenshots 13 | 14 | ![App Ticket Bus Screenshot](./screenshots/screenshot-ticket-app.png) 15 | 16 | 17 | ## Features 18 | 19 | - Stacked perspective list view 20 | - Animation Card 21 | - Animation Ticket Card Bus 22 | - Animation Pin OTP 23 | 24 | 25 | ## Video Demo 26 | 27 | ![App Ticket Bus Gif Video Demostration](./screenshots/ticket-bus-gif.gif) 28 | 29 | 30 | ## License 31 | 32 | [MIT](https://choosealicense.com/licenses/mit/) 33 | 34 | 35 | ## Support 36 | 37 | For support, email paolojoaquinpintoperez@gmail.com or join our community in youtube [Pacha code](https://www.youtube.com/@paolojoaquinp). 38 | 39 | -------------------------------------------------------------------------------- /lib/widgets/card_credit_ticket.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CardCreditTicket extends StatelessWidget { 4 | const CardCreditTicket({ 5 | super.key, 6 | required this.index, 7 | }); 8 | 9 | final int index; 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return DecoratedBox( 14 | decoration: const BoxDecoration( 15 | borderRadius: BorderRadius.all(Radius.circular(20.0)), 16 | boxShadow: [ 17 | BoxShadow( 18 | color: Colors.black38, 19 | spreadRadius: 1, 20 | blurRadius: 20, 21 | offset: Offset(0.0, -5.0), 22 | ), 23 | ], 24 | ), 25 | child: ClipRRect( 26 | borderRadius: const BorderRadius.all(Radius.circular(20.0)), 27 | child: Image.asset( 28 | 'assets/credit-card-${index % 4}.png', 29 | fit: BoxFit.cover, 30 | alignment: Alignment.topCenter, 31 | ), 32 | ), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/entities/ticket_bus.dart: -------------------------------------------------------------------------------- 1 | class BusTicket { 2 | final DateTime departureTime; 3 | final DateTime arrivalTime; 4 | final String departureLocation; 5 | final String arrivalLocation; 6 | final String passengerName; 7 | final String seatNumber; 8 | final String terminal; 9 | final String gate; 10 | final String busNumber; 11 | 12 | BusTicket({ 13 | required this.departureTime, 14 | required this.arrivalTime, 15 | required this.departureLocation, 16 | required this.arrivalLocation, 17 | required this.passengerName, 18 | required this.seatNumber, 19 | required this.terminal, 20 | required this.gate, 21 | required this.busNumber, 22 | }); 23 | 24 | 25 | static BusTicket fakeValue = BusTicket( 26 | departureTime: DateTime(2023, 11, 20, 21, 32), 27 | arrivalTime: DateTime(2023, 11, 21, 8, 22), 28 | departureLocation: 'BLR', 29 | arrivalLocation: 'NGP', 30 | passengerName: 'Jitu Raut', 31 | seatNumber: 'D12', 32 | terminal: 'T6', 33 | gate: '21', 34 | busNumber: 'BH29187', 35 | ); 36 | } -------------------------------------------------------------------------------- /lib/screens/payment_terminal_screen/bloc/payment_terminal_state.dart: -------------------------------------------------------------------------------- 1 | part of 'payment_terminal_bloc.dart'; 2 | 3 | sealed class PaymentTerminalState extends Equatable { 4 | const PaymentTerminalState(); 5 | 6 | } 7 | 8 | class PaymentTerminalInitial extends PaymentTerminalState { 9 | @override 10 | List get props => []; 11 | } 12 | 13 | 14 | class PaymentTerminalInitialState extends PaymentTerminalState { 15 | const PaymentTerminalInitialState(); 16 | 17 | @override 18 | List get props => []; 19 | } 20 | 21 | class PaymentTerminalInsertCardState extends PaymentTerminalState { 22 | const PaymentTerminalInsertCardState(); 23 | 24 | @override 25 | List get props => []; 26 | } 27 | 28 | class PaymentTerminalLoadingState extends PaymentTerminalState { 29 | const PaymentTerminalLoadingState(); 30 | 31 | @override 32 | List get props => []; 33 | } 34 | 35 | class PaymentTerminalLoadedState extends PaymentTerminalState { 36 | const PaymentTerminalLoadedState(); 37 | 38 | @override 39 | List get props => []; 40 | } -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /lib/screens/payment_terminal_screen/bloc/payment_terminal_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:bloc/bloc.dart'; 4 | import 'package:equatable/equatable.dart'; 5 | 6 | part 'payment_terminal_event.dart'; 7 | part 'payment_terminal_state.dart'; 8 | 9 | class PaymentTerminalBloc extends Bloc { 10 | PaymentTerminalBloc() : super(PaymentTerminalInitial()) { 11 | on((event, emit) { 12 | // TODO: implement event handler 13 | }); 14 | on(_onPaymentTerminalInitialEvent); 15 | on(_onIntroduceCreditCard); 16 | } 17 | 18 | Future _onPaymentTerminalInitialEvent(PaymentTerminalInitialEvent event, Emitter emit) async { 19 | emit(const PaymentTerminalInitialState()); 20 | await Future.delayed(const Duration(milliseconds: 2000),() { 21 | }); 22 | emit(const PaymentTerminalInsertCardState()); 23 | } 24 | 25 | Future _onIntroduceCreditCard(IntroduceCreditCard event, Emitter emit) async { 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/screens/confirmation_ticket_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ticket_bank_machine/entities/ticket_bus.dart'; 3 | import 'package:ticket_bank_machine/widgets/ticket_card.dart'; 4 | 5 | class ConfirmationTicketScreen extends StatelessWidget { 6 | const ConfirmationTicketScreen({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Scaffold( 11 | body: Container( 12 | decoration: const BoxDecoration( 13 | image: DecorationImage( 14 | image: AssetImage('assets/background-confirmation-ticket.png'), 15 | fit: BoxFit.cover, 16 | ), 17 | ), 18 | child: Expanded( 19 | child: Center( 20 | child: SizedBox( 21 | width: MediaQuery.sizeOf(context).width * 0.8, 22 | height: MediaQuery.sizeOf(context).height * 0.6, 23 | child: Hero( 24 | tag: 'ticket-bus', 25 | child: TicketCard( 26 | ticket: BusTicket.fakeValue, 27 | ), 28 | ), 29 | ), 30 | ), 31 | ), 32 | ), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility in the flutter_test package. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:ticket_bank_machine/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. 5 | id "dev.flutter.flutter-gradle-plugin" 6 | } 7 | 8 | android { 9 | namespace = "com.example.ticket_bank_machine" 10 | compileSdk = flutter.compileSdkVersion 11 | ndkVersion = flutter.ndkVersion 12 | 13 | compileOptions { 14 | sourceCompatibility = JavaVersion.VERSION_1_8 15 | targetCompatibility = JavaVersion.VERSION_1_8 16 | } 17 | 18 | kotlinOptions { 19 | jvmTarget = JavaVersion.VERSION_1_8 20 | } 21 | 22 | defaultConfig { 23 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 24 | applicationId = "com.example.ticket_bank_machine" 25 | // You can update the following values to match your application needs. 26 | // For more information, see: https://flutter.dev/to/review-gradle-config. 27 | minSdk = flutter.minSdkVersion 28 | targetSdk = flutter.targetSdkVersion 29 | versionCode = flutter.versionCode 30 | versionName = flutter.versionName 31 | } 32 | 33 | buildTypes { 34 | release { 35 | // TODO: Add your own signing config for the release build. 36 | // Signing with the debug keys for now, so `flutter run --release` works. 37 | signingConfig = signingConfigs.debug 38 | } 39 | } 40 | } 41 | 42 | flutter { 43 | source = "../.." 44 | } 45 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Ticket Bank Machine 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ticket_bank_machine 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 17 | base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 18 | - platform: android 19 | create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 20 | base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 21 | - platform: ios 22 | create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 23 | base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 24 | - platform: linux 25 | create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 26 | base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 27 | - platform: macos 28 | create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 29 | base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 30 | - platform: web 31 | create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 32 | base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 33 | - platform: windows 34 | create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 35 | base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ticket_bank_machine 2 | description: "A new Flutter project." 3 | # The following line prevents the package from being accidentally published to 4 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 5 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 6 | 7 | # The following defines the version and build number for your application. 8 | # A version number is three numbers separated by dots, like 1.2.43 9 | # followed by an optional build number separated by a +. 10 | # Both the version and the builder number may be overridden in flutter 11 | # build by specifying --build-name and --build-number, respectively. 12 | # In Android, build-name is used as versionName while build-number used as versionCode. 13 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 14 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. 15 | # Read more about iOS versioning at 16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 17 | # In Windows, build-name is used as the major, minor, and patch parts 18 | # of the product and file versions while build-number is used as the build suffix. 19 | version: 1.0.0+1 20 | 21 | environment: 22 | sdk: ^3.5.4 23 | 24 | # Dependencies specify other packages that your package needs in order to work. 25 | # To automatically upgrade your package dependencies to the latest versions 26 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 27 | # dependencies can be manually updated by changing the version numbers below to 28 | # the latest version available on pub.dev. To see which dependencies have newer 29 | # versions available, run `flutter pub outdated`. 30 | dependencies: 31 | flutter: 32 | sdk: flutter 33 | 34 | 35 | # The following adds the Cupertino Icons font to your application. 36 | # Use with the CupertinoIcons class for iOS style icons. 37 | cupertino_icons: ^1.0.8 38 | animate_do: ^3.3.4 39 | flutter_bloc: ^8.1.6 40 | equatable: ^2.0.7 41 | 42 | dev_dependencies: 43 | flutter_test: 44 | sdk: flutter 45 | 46 | # The "flutter_lints" package below contains a set of recommended lints to 47 | # encourage good coding practices. The lint set provided by the package is 48 | # activated in the `analysis_options.yaml` file located at the root of your 49 | # package. See that file for information about deactivating specific lint 50 | # rules and activating additional ones. 51 | flutter_lints: ^4.0.0 52 | 53 | # For information on the generic Dart part of this file, see the 54 | # following page: https://dart.dev/tools/pub/pubspec 55 | 56 | # The following section is specific to Flutter packages. 57 | flutter: 58 | 59 | # The following line ensures that the Material Icons font is 60 | # included with your application, so that you can use the icons in 61 | # the material Icons class. 62 | uses-material-design: true 63 | 64 | # To add assets to your application, add an assets section, like this: 65 | assets: 66 | - assets/ 67 | # - images/a_dot_ham.jpeg 68 | 69 | # An image asset can refer to one or more resolution-specific "variants", see 70 | # https://flutter.dev/to/resolution-aware-images 71 | 72 | # For details regarding adding assets from package dependencies, see 73 | # https://flutter.dev/to/asset-from-package 74 | 75 | # To add custom fonts to your application, add a fonts section here, 76 | # in this "flutter" section. Each entry in this list should have a 77 | # "family" key with the font family name, and a "fonts" key with a 78 | # list giving the asset and other descriptors for the font. For 79 | # example: 80 | # fonts: 81 | # - family: Schyler 82 | # fonts: 83 | # - asset: fonts/Schyler-Regular.ttf 84 | # - asset: fonts/Schyler-Italic.ttf 85 | # style: italic 86 | # - family: Trajan Pro 87 | # fonts: 88 | # - asset: fonts/TrajanPro.ttf 89 | # - asset: fonts/TrajanPro_Bold.ttf 90 | # weight: 700 91 | # 92 | # For details regarding fonts from package dependencies, 93 | # see https://flutter.dev/to/font-from-package 94 | -------------------------------------------------------------------------------- /lib/screens/home_screen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'dart:ui'; 3 | 4 | import 'package:flutter/material.dart'; 5 | import 'package:ticket_bank_machine/screens/checkout_screen.dart'; 6 | import 'package:ticket_bank_machine/widgets/card_credit_ticket.dart'; 7 | import 'package:ticket_bank_machine/widgets/details_dashboard.dart'; 8 | import 'package:ticket_bank_machine/widgets/scrollable_card_stack.dart'; 9 | 10 | class HomeScreen extends StatelessWidget { 11 | const HomeScreen({ 12 | super.key, 13 | }); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Scaffold( 18 | backgroundColor: Colors.white, 19 | appBar: AppBar( 20 | title: Text( 21 | 'Payments', 22 | style: Theme.of(context).textTheme.bodyMedium, 23 | ), 24 | backgroundColor: Colors.transparent, 25 | forceMaterialTransparency: true, 26 | centerTitle: false, 27 | leading: GestureDetector( 28 | child: const Image( 29 | image: AssetImage('assets/back-icon.png'), 30 | ), 31 | ), 32 | ), 33 | body: Expanded( 34 | child: Column( 35 | children: [ 36 | const Expanded( 37 | flex: 1, 38 | child: DetailsDashboard(), 39 | ), 40 | SizedBox( 41 | height: MediaQuery.sizeOf(context).height * 0.05, 42 | ), 43 | Expanded( 44 | flex: 2, 45 | child: PerspectiveListView( 46 | visualizedItems: 4, 47 | itemExtent: MediaQuery.sizeOf(context).height * .48, 48 | initialIndex: 7, 49 | backItemsShadowColor: Theme.of(context).scaffoldBackgroundColor, 50 | padding: const EdgeInsets.symmetric(horizontal: 25), 51 | onTapFrontItem: (currentIndex) { 52 | Navigator.push( 53 | context, 54 | PageRouteBuilder( 55 | transitionDuration: const Duration(milliseconds: 1000), 56 | pageBuilder: (context, animation, secondaryAnimation) => 57 | CheckoutScreen( 58 | index: currentIndex ?? 0, 59 | ), 60 | transitionsBuilder: 61 | (context, animation, secondaryAnimation, child) { 62 | return FadeTransition( 63 | opacity: animation, 64 | child: child, 65 | ); 66 | }, 67 | ), 68 | ); 69 | }, 70 | children: List.generate( 71 | 20, 72 | (index) { 73 | return Hero( 74 | tag: 'credit-card-$index', 75 | flightShuttleBuilder: (flightContext, animation, 76 | flightDirection, fromHeroContext, toHeroContext) { 77 | Widget current; 78 | if (flightDirection == HeroFlightDirection.push) { 79 | current = toHeroContext.widget; 80 | } else { 81 | current = fromHeroContext.widget; 82 | } 83 | return AnimatedBuilder( 84 | animation: animation, 85 | builder: (context, _) { 86 | return Transform( 87 | alignment: Alignment.center, 88 | transform: Matrix4.identity() 89 | ..setEntry(3, 2, 0.001) 90 | ..scale(lerpDouble(1.5, 1.0, animation.value)) 91 | ..rotateZ(lerpDouble((pi/180) * -90, (pi/180) * 0, animation.value)!), 92 | child: current, 93 | ); 94 | }, 95 | ); 96 | }, 97 | child: CardCreditTicket(index: index), 98 | ); 99 | }, 100 | ), 101 | ), 102 | ), 103 | ], 104 | ), 105 | ), 106 | ); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /lib/widgets/details_dashboard.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DetailsDashboard extends StatelessWidget { 4 | const DetailsDashboard({ 5 | super.key, 6 | }); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Padding( 11 | padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 24.0), 12 | child: Column( 13 | crossAxisAlignment: CrossAxisAlignment.start, 14 | children: [ 15 | Container( 16 | decoration: BoxDecoration( 17 | border: Border.all(width: 1, color: Colors.grey), 18 | borderRadius: const BorderRadius.all(Radius.circular(20.0))), 19 | padding: const EdgeInsets.all(12.0), 20 | child: const Row( 21 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 22 | children: [ 23 | Column( 24 | crossAxisAlignment: CrossAxisAlignment.start, 25 | children: [ 26 | Text( 27 | 'BLR → NGP', 28 | style: TextStyle( 29 | fontSize: 18.0, 30 | fontWeight: FontWeight.bold, 31 | ), 32 | ), 33 | Text( 34 | '1 Adult', 35 | style: TextStyle( 36 | fontSize: 16.0, 37 | ), 38 | ), 39 | ], 40 | ), 41 | SizedBox(height: 8.0), 42 | Column( 43 | crossAxisAlignment: CrossAxisAlignment.start, 44 | children: [ 45 | Hero( 46 | tag: 'text-app-bar-1', 47 | child: Material( 48 | color: Colors.white, 49 | child: Text( 50 | 'Payable Amount', 51 | style: TextStyle( 52 | fontSize: 12.0, 53 | ), 54 | ), 55 | ), 56 | ), 57 | Hero( 58 | tag: 'text-app-bar-2', 59 | child: Material( 60 | color: Colors.white, 61 | child: Text( 62 | '\$283', 63 | style: TextStyle( 64 | fontSize: 24.0, 65 | fontWeight: FontWeight.bold, 66 | ), 67 | ), 68 | ), 69 | ), 70 | ], 71 | ), 72 | ], 73 | ), 74 | ), 75 | const Spacer(), 76 | Container( 77 | padding: const EdgeInsets.all(8.0), 78 | decoration: BoxDecoration( 79 | color: Colors.grey[200], 80 | borderRadius: const BorderRadius.all( 81 | Radius.circular(14.0), 82 | ), 83 | ), 84 | child: Row( 85 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 86 | children: [ 87 | _buildPaymentOption('UPI'), 88 | _buildPaymentOption('Card', isActive: true), 89 | _buildPaymentOption('Net Banking'), 90 | ], 91 | ), 92 | ), 93 | ], 94 | ), 95 | ); 96 | } 97 | 98 | Widget _buildPaymentOption(String title, {bool isActive = false}) { 99 | return Expanded( 100 | child: Container( 101 | padding: const EdgeInsets.symmetric(vertical: 8.0), 102 | decoration: BoxDecoration( 103 | color: !isActive ? Colors.transparent : Colors.white, 104 | borderRadius: BorderRadius.circular(12.0), 105 | boxShadow: isActive 106 | ? [ 107 | BoxShadow( 108 | color: Colors.grey 109 | .withOpacity(0.5), // Color y opacidad de la sombra 110 | spreadRadius: 1, // Expansión de la sombra 111 | blurRadius: 6, // Desenfoque 112 | offset: const Offset(0, 3), // Desplazamiento (x, y) 113 | ), 114 | ] 115 | : null), 116 | child: Center( 117 | child: Text( 118 | title, 119 | style: TextStyle( 120 | fontSize: 14.0, 121 | fontWeight: FontWeight.bold, 122 | color: isActive ? Colors.blue : Colors.grey), 123 | ), 124 | ), 125 | ), 126 | ); 127 | } 128 | } 129 | -------------------------------------------------------------------------------- /lib/screens/payment_terminal_screen/children/print_ticket_state.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:ticket_bank_machine/entities/ticket_bus.dart'; 5 | import 'package:ticket_bank_machine/screens/confirmation_ticket_screen.dart'; 6 | import 'package:ticket_bank_machine/widgets/ticket_card.dart'; 7 | 8 | 9 | class PrintTicketState extends StatelessWidget { 10 | const PrintTicketState({super.key}); 11 | 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Stack( 16 | fit: StackFit.expand, 17 | children: [ 18 | Positioned.fill( 19 | child: Column( 20 | mainAxisAlignment: MainAxisAlignment.end, 21 | crossAxisAlignment: CrossAxisAlignment.center, 22 | children: [ 23 | const Expanded( 24 | flex: 12, 25 | child: SizedBox(), 26 | ), 27 | Expanded( 28 | flex: 10, 29 | child: Container( 30 | alignment: Alignment.topCenter, 31 | child: Transform.translate( 32 | offset: const Offset(-2, 0.0), 33 | child: Image.asset( 34 | 'assets/atm-ticket-2.png', 35 | scale: 1, 36 | ), 37 | ), 38 | ), 39 | ), 40 | ], 41 | ), 42 | ), 43 | Positioned( 44 | top: MediaQuery.sizeOf(context).height * 0.4, 45 | right: 100.0, 46 | child: TweenAnimationBuilder( 47 | tween: Tween(begin: 0.0, end: 1.0), 48 | duration: const Duration(milliseconds: 1200), 49 | onEnd: () { 50 | Navigator.of(context).push( 51 | PageRouteBuilder( 52 | transitionDuration: const Duration(milliseconds: 1500), 53 | pageBuilder: (context, animation, secondaryAnimation) => const ConfirmationTicketScreen(), 54 | transitionsBuilder: 55 | (context, animation, secondaryAnimation, child) { 56 | return FadeTransition( 57 | opacity: animation, 58 | child: child, 59 | ); 60 | }, 61 | ), 62 | ); 63 | }, 64 | builder: (context, animation, child) { 65 | return Transform.translate( 66 | offset: Offset(0.0, lerpDouble(0, 95, animation)!), 67 | child: Container( 68 | color: Colors.transparent, 69 | height: MediaQuery.sizeOf(context).height * 0.13, 70 | width: MediaQuery.sizeOf(context).width * 0.14, 71 | child: Hero( 72 | tag: 'ticket-bus', 73 | flightShuttleBuilder: (flightContext, animation, flightDirection, fromHeroContext, toHeroContext) { 74 | Widget current; 75 | if (flightDirection == HeroFlightDirection.push) { 76 | current = toHeroContext.widget; 77 | } else { 78 | current = fromHeroContext.widget; 79 | } 80 | return Material( 81 | color: Colors.transparent, 82 | child: AnimatedBuilder( 83 | animation: animation, 84 | builder: (context, _) { 85 | return Transform( 86 | alignment: Alignment.center, 87 | transform: Matrix4.identity() 88 | ..setEntry(3, 2, 0.001) 89 | ..scale(lerpDouble(0.2, 1.0, animation.value)), 90 | child: current, 91 | ); 92 | }, 93 | ), 94 | ); 95 | }, 96 | child: TicketCard( 97 | ticket: BusTicket.fakeValue, 98 | ), 99 | ), 100 | ), 101 | ); 102 | }), 103 | ), 104 | Positioned.fill( 105 | top: 0, 106 | bottom: 0, 107 | child: Column( 108 | mainAxisAlignment: MainAxisAlignment.center, 109 | crossAxisAlignment: CrossAxisAlignment.center, 110 | children: [ 111 | Expanded( 112 | flex: 12, 113 | child: LayoutBuilder(builder: (context, constraints) { 114 | return Stack( 115 | fit: StackFit.expand, 116 | children: [ 117 | Positioned.fill( 118 | child: Container( 119 | alignment: Alignment.bottomCenter, 120 | child: Image.asset( 121 | 'assets/atm-ticket-1.png', 122 | scale: 1, 123 | ), 124 | ), 125 | ), 126 | Positioned( 127 | bottom: (constraints.maxHeight * 0.28), 128 | left: 0, 129 | right: 0, 130 | child: const Align( 131 | alignment: Alignment.bottomCenter, 132 | child: Text("Printing Your Ticket"), 133 | ), 134 | ), 135 | ], 136 | ); 137 | }), 138 | ), 139 | const Expanded( 140 | flex: 10, 141 | child: SizedBox(), 142 | ), 143 | ], 144 | ), 145 | ), 146 | ], 147 | ); 148 | } 149 | } -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | animate_do: 5 | dependency: "direct main" 6 | description: 7 | name: animate_do 8 | sha256: "7a3162729f0ea042f9dd84da217c5bde5472ad9cef644079929d4304a5dc4ca0" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "3.3.4" 12 | async: 13 | dependency: transitive 14 | description: 15 | name: async 16 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.11.0" 20 | boolean_selector: 21 | dependency: transitive 22 | description: 23 | name: boolean_selector 24 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "2.1.1" 28 | characters: 29 | dependency: transitive 30 | description: 31 | name: characters 32 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.3.0" 36 | clock: 37 | dependency: transitive 38 | description: 39 | name: clock 40 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.1.1" 44 | collection: 45 | dependency: transitive 46 | description: 47 | name: collection 48 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.18.0" 52 | cupertino_icons: 53 | dependency: "direct main" 54 | description: 55 | name: cupertino_icons 56 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.0.8" 60 | fake_async: 61 | dependency: transitive 62 | description: 63 | name: fake_async 64 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "1.3.1" 68 | flutter: 69 | dependency: "direct main" 70 | description: flutter 71 | source: sdk 72 | version: "0.0.0" 73 | flutter_lints: 74 | dependency: "direct dev" 75 | description: 76 | name: flutter_lints 77 | sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" 78 | url: "https://pub.dev" 79 | source: hosted 80 | version: "4.0.0" 81 | flutter_test: 82 | dependency: "direct dev" 83 | description: flutter 84 | source: sdk 85 | version: "0.0.0" 86 | leak_tracker: 87 | dependency: transitive 88 | description: 89 | name: leak_tracker 90 | sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" 91 | url: "https://pub.dev" 92 | source: hosted 93 | version: "10.0.5" 94 | leak_tracker_flutter_testing: 95 | dependency: transitive 96 | description: 97 | name: leak_tracker_flutter_testing 98 | sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" 99 | url: "https://pub.dev" 100 | source: hosted 101 | version: "3.0.5" 102 | leak_tracker_testing: 103 | dependency: transitive 104 | description: 105 | name: leak_tracker_testing 106 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" 107 | url: "https://pub.dev" 108 | source: hosted 109 | version: "3.0.1" 110 | lints: 111 | dependency: transitive 112 | description: 113 | name: lints 114 | sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" 115 | url: "https://pub.dev" 116 | source: hosted 117 | version: "4.0.0" 118 | matcher: 119 | dependency: transitive 120 | description: 121 | name: matcher 122 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb 123 | url: "https://pub.dev" 124 | source: hosted 125 | version: "0.12.16+1" 126 | material_color_utilities: 127 | dependency: transitive 128 | description: 129 | name: material_color_utilities 130 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec 131 | url: "https://pub.dev" 132 | source: hosted 133 | version: "0.11.1" 134 | meta: 135 | dependency: transitive 136 | description: 137 | name: meta 138 | sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 139 | url: "https://pub.dev" 140 | source: hosted 141 | version: "1.15.0" 142 | path: 143 | dependency: transitive 144 | description: 145 | name: path 146 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" 147 | url: "https://pub.dev" 148 | source: hosted 149 | version: "1.9.0" 150 | sky_engine: 151 | dependency: transitive 152 | description: flutter 153 | source: sdk 154 | version: "0.0.99" 155 | source_span: 156 | dependency: transitive 157 | description: 158 | name: source_span 159 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 160 | url: "https://pub.dev" 161 | source: hosted 162 | version: "1.10.0" 163 | stack_trace: 164 | dependency: transitive 165 | description: 166 | name: stack_trace 167 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 168 | url: "https://pub.dev" 169 | source: hosted 170 | version: "1.11.1" 171 | stream_channel: 172 | dependency: transitive 173 | description: 174 | name: stream_channel 175 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 176 | url: "https://pub.dev" 177 | source: hosted 178 | version: "2.1.2" 179 | string_scanner: 180 | dependency: transitive 181 | description: 182 | name: string_scanner 183 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 184 | url: "https://pub.dev" 185 | source: hosted 186 | version: "1.2.0" 187 | term_glyph: 188 | dependency: transitive 189 | description: 190 | name: term_glyph 191 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 192 | url: "https://pub.dev" 193 | source: hosted 194 | version: "1.2.1" 195 | test_api: 196 | dependency: transitive 197 | description: 198 | name: test_api 199 | sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" 200 | url: "https://pub.dev" 201 | source: hosted 202 | version: "0.7.2" 203 | vector_math: 204 | dependency: transitive 205 | description: 206 | name: vector_math 207 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 208 | url: "https://pub.dev" 209 | source: hosted 210 | version: "2.1.4" 211 | vm_service: 212 | dependency: transitive 213 | description: 214 | name: vm_service 215 | sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" 216 | url: "https://pub.dev" 217 | source: hosted 218 | version: "14.2.5" 219 | sdks: 220 | dart: ">=3.5.4 <4.0.0" 221 | flutter: ">=3.18.0-18.0.pre.54" 222 | -------------------------------------------------------------------------------- /lib/widgets/ticket_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ticket_bank_machine/entities/ticket_bus.dart'; 3 | 4 | class TicketCard extends StatelessWidget { 5 | const TicketCard({ 6 | super.key, 7 | required this.ticket, 8 | }); 9 | 10 | final BusTicket ticket; 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return LayoutBuilder(builder: (context, constraints) { 15 | double baseFontSize = constraints.maxWidth * 0.05; 16 | return Container( 17 | constraints: constraints, 18 | color: Colors.transparent, 19 | child: Column( 20 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 21 | children: [ 22 | Container( 23 | margin: EdgeInsets.symmetric(horizontal: constraints.maxWidth * 0.02), 24 | padding: EdgeInsets.symmetric(horizontal: constraints.maxWidth * 0.04), 25 | height: constraints.maxHeight * 0.2, 26 | decoration: const BoxDecoration( 27 | borderRadius: BorderRadius.all(Radius.circular(12.0)), 28 | color: Colors.white, 29 | ), 30 | child: _ticketHead(baseFontSize), 31 | ), 32 | Container( 33 | height: constraints.maxHeight * 0.77, 34 | decoration: const BoxDecoration( 35 | image: DecorationImage( 36 | image: AssetImage( 37 | 'assets/ticket-bus-background.png', 38 | ), 39 | fit: BoxFit.fill, 40 | alignment: Alignment.bottomCenter, 41 | ), 42 | ), 43 | child: Column( 44 | children: [ 45 | Container( 46 | padding: EdgeInsets.all(constraints.maxWidth * 0.06), 47 | child: Column( 48 | children: [ 49 | Row( 50 | mainAxisAlignment: 51 | MainAxisAlignment.spaceBetween, 52 | children: [ 53 | Text('Passenger', 54 | style: TextStyle( 55 | color: Colors.grey, 56 | fontSize: baseFontSize * 0.8)), 57 | Text('Seat', 58 | style: TextStyle( 59 | color: Colors.grey, 60 | fontSize: baseFontSize * 0.8)), 61 | ], 62 | ), 63 | Row( 64 | mainAxisAlignment: 65 | MainAxisAlignment.spaceBetween, 66 | children: [ 67 | Text( 68 | ticket.passengerName, 69 | style: TextStyle( 70 | fontWeight: FontWeight.bold, 71 | fontSize: baseFontSize), 72 | ), 73 | Text( 74 | ticket.seatNumber, 75 | style: TextStyle( 76 | fontWeight: FontWeight.bold, 77 | color: Colors.blue, 78 | fontSize: baseFontSize, 79 | ), 80 | ), 81 | ], 82 | ), 83 | ], 84 | ), 85 | ), 86 | SizedBox(height: constraints.maxHeight * 0.01), 87 | Container( 88 | width: double.maxFinite, 89 | margin: EdgeInsets.symmetric(horizontal: constraints.maxWidth * 0.02) , 90 | padding: EdgeInsets.symmetric(horizontal: constraints.maxWidth * 0.05, vertical: constraints.maxHeight * 0.03), 91 | color: Theme.of(context).scaffoldBackgroundColor, 92 | child: Column( 93 | children: [ 94 | Row( 95 | mainAxisAlignment: 96 | MainAxisAlignment.spaceBetween, 97 | children: [ 98 | Text('Terminal', 99 | style: TextStyle( 100 | color: Colors.grey, 101 | fontSize: baseFontSize * 0.8)), 102 | Text('Gate', 103 | style: TextStyle( 104 | color: Colors.grey, 105 | fontSize: baseFontSize * 0.8)), 106 | Text('Bus Number', 107 | style: TextStyle( 108 | color: Colors.grey, 109 | fontSize: baseFontSize * 0.8)), 110 | ], 111 | ), 112 | Row( 113 | mainAxisAlignment: 114 | MainAxisAlignment.spaceBetween, 115 | children: [ 116 | Text( 117 | ticket.terminal, 118 | style: TextStyle( 119 | fontWeight: FontWeight.bold, 120 | fontSize: baseFontSize), 121 | ), 122 | Text( 123 | ticket.gate, 124 | style: TextStyle( 125 | fontWeight: FontWeight.bold, 126 | fontSize: baseFontSize), 127 | ), 128 | Text( 129 | ticket.busNumber, 130 | style: TextStyle( 131 | fontWeight: FontWeight.bold, 132 | fontSize: baseFontSize), 133 | ), 134 | ], 135 | ), 136 | ], 137 | ), 138 | ), 139 | ], 140 | ), 141 | ), 142 | ], 143 | ), 144 | ); 145 | }); 146 | } 147 | 148 | Row _ticketHead(double baseFontSize) { 149 | return Row( 150 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 151 | crossAxisAlignment: CrossAxisAlignment.center, 152 | children: [ 153 | Column( 154 | crossAxisAlignment: CrossAxisAlignment.start, 155 | mainAxisAlignment: MainAxisAlignment.center, 156 | children: [ 157 | Text( 158 | '${ticket.departureTime.hour}:${ticket.departureTime.minute.toString().padLeft(2, '0')}', 159 | style: TextStyle( 160 | fontSize: baseFontSize + 2, 161 | fontWeight: FontWeight.bold, 162 | ), 163 | ), 164 | Text( 165 | ticket.departureLocation, 166 | style: 167 | TextStyle(color: Colors.grey, fontSize: baseFontSize * 0.8), 168 | ), 169 | ], 170 | ), 171 | Icon(Icons.bus_alert, 172 | color: Colors.blueAccent, size: baseFontSize * 1.5), 173 | Column( 174 | crossAxisAlignment: CrossAxisAlignment.start, 175 | mainAxisAlignment: MainAxisAlignment.center, 176 | children: [ 177 | Text( 178 | '${ticket.arrivalTime.hour}:${ticket.arrivalTime.minute.toString().padLeft(2, '0')}', 179 | style: TextStyle( 180 | fontSize: baseFontSize + 2, 181 | fontWeight: FontWeight.bold, 182 | ), 183 | ), 184 | Text( 185 | ticket.arrivalLocation, 186 | style: 187 | TextStyle(color: Colors.grey, fontSize: baseFontSize * 0.8), 188 | ), 189 | ], 190 | ), 191 | ], 192 | ); 193 | } 194 | } 195 | -------------------------------------------------------------------------------- /lib/widgets/scrollable_card_stack.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | 6 | class PerspectiveListView extends StatefulWidget { 7 | const PerspectiveListView({ 8 | super.key, 9 | required this.visualizedItems, 10 | required this.itemExtent, 11 | required this.children, 12 | this.initialIndex = 0, 13 | this.padding = EdgeInsets.zero, 14 | this.onTapFrontItem, 15 | this.onChangeFrontItem, 16 | this.backItemsShadowColor = Colors.transparent, 17 | this.enableBackItemsShadow = false, 18 | }); 19 | 20 | final List children; 21 | final double? itemExtent; 22 | final int? visualizedItems; 23 | final int initialIndex; 24 | final EdgeInsetsGeometry padding; 25 | final ValueChanged? onTapFrontItem; 26 | final ValueChanged? onChangeFrontItem; 27 | final Color backItemsShadowColor; 28 | final bool enableBackItemsShadow; 29 | 30 | @override 31 | PerspectiveListViewState createState() => PerspectiveListViewState(); 32 | } 33 | 34 | class PerspectiveListViewState extends State { 35 | PageController? _pageController; 36 | int? _currentIndex; 37 | double? _pagePercent; 38 | 39 | @override 40 | void initState() { 41 | _currentIndex = widget.initialIndex; 42 | _pageController = PageController( 43 | viewportFraction: 1 / widget.visualizedItems!, 44 | initialPage: _currentIndex!, 45 | ); 46 | _pagePercent = 0.0; 47 | _pageController!.addListener(_pageListener); 48 | super.initState(); 49 | } 50 | 51 | @override 52 | void dispose() { 53 | _pageController! 54 | ..removeListener(_pageListener) 55 | ..dispose(); 56 | super.dispose(); 57 | } 58 | 59 | void _pageListener() { 60 | _currentIndex = _pageController!.page!.floor(); 61 | _pagePercent = (_pageController!.page! - _currentIndex!).abs(); 62 | setState(() {}); 63 | } 64 | 65 | @override 66 | Widget build(BuildContext context) { 67 | return LayoutBuilder( 68 | builder: (context, constraints) { 69 | final height = constraints.maxHeight; 70 | return Stack( 71 | children: [ 72 | //--------------------------------------- 73 | // Perspective Items List 74 | //--------------------------------------- 75 | Padding( 76 | padding: widget.padding, 77 | child: _PerspectiveItems( 78 | generatedItems: widget.visualizedItems! - 1, 79 | currentIndex: _currentIndex, 80 | heightItem: widget.itemExtent, 81 | pagePercent: _pagePercent, 82 | children: widget.children, 83 | ), 84 | ), 85 | //--------------------------------------- 86 | // Back Items Shadow 87 | //--------------------------------------- 88 | if (widget.enableBackItemsShadow) 89 | Positioned.fill( 90 | bottom: widget.itemExtent, 91 | child: DecoratedBox( 92 | decoration: BoxDecoration( 93 | gradient: LinearGradient( 94 | begin: Alignment.topCenter, 95 | end: Alignment.bottomCenter, 96 | colors: [ 97 | widget.backItemsShadowColor.withOpacity(.8), 98 | widget.backItemsShadowColor.withOpacity(0), 99 | ], 100 | ), 101 | ), 102 | ), 103 | ), 104 | //--------------------------------------- 105 | // Void Page View 106 | //--------------------------------------- 107 | PageView.builder( 108 | scrollDirection: Axis.vertical, 109 | controller: _pageController, 110 | onPageChanged: widget.onChangeFrontItem?.call, 111 | physics: const BouncingScrollPhysics(), 112 | itemCount: widget.children.length, 113 | itemBuilder: (context, index) { 114 | return const SizedBox(); 115 | }, 116 | ), 117 | //--------------------------------------- 118 | // On Tap Item Area 119 | //--------------------------------------- 120 | Positioned.fill( 121 | top: height - widget.itemExtent!, 122 | child: GestureDetector( 123 | onTap: () => widget.onTapFrontItem?.call(_currentIndex), 124 | ), 125 | ) 126 | ], 127 | ); 128 | }, 129 | ); 130 | } 131 | } 132 | 133 | class _PerspectiveItems extends StatelessWidget { 134 | const _PerspectiveItems({ 135 | required this.generatedItems, 136 | required this.currentIndex, 137 | required this.heightItem, 138 | required this.pagePercent, 139 | required this.children, 140 | }); 141 | 142 | final int generatedItems; 143 | final int? currentIndex; 144 | final double? heightItem; 145 | final double? pagePercent; 146 | final List children; 147 | 148 | @override 149 | Widget build(BuildContext context) { 150 | return LayoutBuilder( 151 | builder: (context, constraints) { 152 | final height = constraints.maxHeight; 153 | return Stack( 154 | fit: StackFit.expand, 155 | children: [ 156 | //--------------------------------- 157 | // Static Last Item 158 | //--------------------------------- 159 | if (currentIndex! > (generatedItems - 1)) 160 | _TransformedItem( 161 | heightItem: heightItem, 162 | factorChange: 1, 163 | endScale: .5, 164 | child: children[currentIndex! - generatedItems], 165 | ) 166 | else 167 | const SizedBox(), 168 | //---------------------------------- 169 | // Perspective Items 170 | //---------------------------------- 171 | for (int index = 0; index < generatedItems; index++) 172 | (currentIndex! > ((generatedItems - 2) - index)) 173 | ? _TransformedItem( 174 | heightItem: heightItem, 175 | factorChange: pagePercent, 176 | scale: lerpDouble(0.5, 1, (index + 1) / generatedItems), 177 | translateY: 178 | (height - heightItem!) * (index + 1) / generatedItems, 179 | endScale: lerpDouble(0.5, 1, index / generatedItems), 180 | endTranslateY: 181 | (height - heightItem!) * (index / generatedItems), 182 | child: children[ 183 | currentIndex! - (((generatedItems - 2) - index) + 1)], 184 | ) 185 | : const SizedBox(), 186 | //--------------------------------- 187 | // Bottom Hide Item 188 | //--------------------------------- 189 | if (currentIndex! < (children.length - 1)) 190 | _TransformedItem( 191 | heightItem: heightItem, 192 | factorChange: pagePercent, 193 | translateY: height + 20, 194 | endTranslateY: height - heightItem!, 195 | child: children[currentIndex! + 1], 196 | ) 197 | else 198 | const SizedBox() 199 | ], 200 | ); 201 | }, 202 | ); 203 | } 204 | } 205 | 206 | class _TransformedItem extends StatelessWidget { 207 | const _TransformedItem({ 208 | required this.heightItem, 209 | required this.child, 210 | required this.factorChange, 211 | this.endScale = 1.0, 212 | this.scale = 1.0, 213 | this.endTranslateY = 0.0, 214 | this.translateY = 0.0, 215 | }); 216 | 217 | final Widget child; 218 | final double? heightItem; 219 | final double? factorChange; 220 | final double? endScale; 221 | final double endTranslateY; 222 | final double translateY; 223 | final double? scale; 224 | 225 | @override 226 | Widget build(BuildContext context) { 227 | return Transform( 228 | alignment: Alignment.topCenter, 229 | transform: Matrix4.identity() 230 | ..scale(lerpDouble(scale, endScale, factorChange!)) 231 | ..translate( 232 | 0.0, 233 | lerpDouble(translateY, endTranslateY, factorChange!)!, 234 | ), 235 | child: Align( 236 | alignment: Alignment.topCenter, 237 | child: SizedBox( 238 | height: heightItem, 239 | width: double.infinity, 240 | child: child, 241 | ), 242 | ), 243 | ); 244 | } 245 | } -------------------------------------------------------------------------------- /lib/screens/checkout_screen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'dart:ui'; 3 | 4 | import 'package:animate_do/animate_do.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:ticket_bank_machine/constants.dart'; 7 | import 'package:ticket_bank_machine/screens/payment_terminal_screen/payment_terminal_screen.dart'; 8 | 9 | class CheckoutScreen extends StatefulWidget { 10 | const CheckoutScreen({ 11 | super.key, 12 | required this.index, 13 | }); 14 | 15 | final int index; 16 | 17 | @override 18 | State createState() => _CheckoutScreenState(); 19 | } 20 | 21 | class _CheckoutScreenState extends State { 22 | final List _cvvNumber = List.generate(3, (_) => ' '); 23 | final List _slideAnimations = [ 24 | false, 25 | false, 26 | false, 27 | ]; 28 | 29 | void _updateCVVNumber(String digit) { 30 | setState(() { 31 | if (digit == 'delete') { 32 | for (int i = _cvvNumber.length - 1; i >= 0; i--) { 33 | if (_cvvNumber[i] != '•') { 34 | _cvvNumber[i] = '•'; 35 | _slideAnimations[i] = !_slideAnimations[i]; 36 | break; 37 | } 38 | } 39 | } else { 40 | for (int i = 0; i < _cvvNumber.length; i++) { 41 | if (_cvvNumber[i] == ' ') { 42 | _cvvNumber[i] = digit; 43 | _slideAnimations[i] = !_slideAnimations[i]; 44 | break; 45 | } 46 | } 47 | } 48 | }); 49 | } 50 | 51 | @override 52 | Widget build(BuildContext context) { 53 | return Scaffold( 54 | appBar: AppBar( 55 | backgroundColor: Colors.white, 56 | forceMaterialTransparency: true, 57 | centerTitle: true, 58 | title: RichText( 59 | text: const TextSpan( 60 | children: [ 61 | WidgetSpan( 62 | alignment: PlaceholderAlignment.middle, 63 | child: Hero( 64 | tag: 'text-app-bar-1', 65 | child: Material( 66 | color: Colors.white, 67 | child: Text( 68 | 'Payable Amount ', 69 | style: TextStyle( 70 | fontSize: 12.0, 71 | color: Colors.black, 72 | ), 73 | ), 74 | ), 75 | ), 76 | ), 77 | WidgetSpan( 78 | child: SizedBox(width: 8), 79 | ), 80 | WidgetSpan( 81 | alignment: PlaceholderAlignment.middle, 82 | child: Hero( 83 | tag: 'text-app-bar-2', 84 | child: Material( 85 | color: Colors.white, 86 | child: Text( 87 | '\$283', 88 | style: TextStyle( 89 | fontSize: 24.0, 90 | fontWeight: FontWeight.bold, 91 | color: Colors.black, 92 | ), 93 | ), 94 | ), 95 | ), 96 | ), 97 | ], 98 | ), 99 | ), 100 | ), 101 | backgroundColor: Colors.white, 102 | body: Padding( 103 | padding: const EdgeInsets.symmetric(horizontal: 30.0), 104 | child: Column( 105 | children: [ 106 | _CreditCardDetail( 107 | index: widget.index, 108 | height: MediaQuery.sizeOf(context).height * 0.32, 109 | cvvNumber: _cvvNumber, 110 | slideAnimations: _slideAnimations, 111 | isComplete: !_cvvNumber.contains(" "), 112 | ), 113 | const SizedBox( 114 | height: 12.0, 115 | ), 116 | if (!_cvvNumber.contains(" ")) 117 | TweenAnimationBuilder( 118 | duration: const Duration(milliseconds: 1200), 119 | tween: Tween(begin: 0.0, end: 1.0), 120 | builder: (context, animation, _) { 121 | return Transform( 122 | alignment: Alignment.center, 123 | origin: Offset.zero, 124 | transform: Matrix4.identity() 125 | ..setEntry(3, 2, 0.001) 126 | ..scale(lerpDouble(0.4, 1, animation)) 127 | ..translate(0.0, lerpDouble(100.0, 0.0, animation)!), 128 | child: Opacity( 129 | opacity: animation, 130 | child: ElevatedButton( 131 | style: ElevatedButton.styleFrom( 132 | elevation: 9, 133 | backgroundColor: AppColors.electricIndigo, 134 | foregroundColor: Colors.white, 135 | maximumSize: const Size(double.maxFinite, 46.0), 136 | minimumSize: const Size(double.maxFinite, 46.0), 137 | shape: const RoundedRectangleBorder( 138 | borderRadius: BorderRadius.all( 139 | Radius.circular(12.0), 140 | ), 141 | ), 142 | ), 143 | onPressed: () { 144 | Navigator.push( 145 | context, 146 | PageRouteBuilder( 147 | transitionDuration: const Duration(milliseconds: 1500), 148 | pageBuilder: 149 | (context, animation, secondaryAnimation) { 150 | return PaymentTerminalScreen( 151 | index: widget.index, 152 | ); 153 | }, 154 | transitionsBuilder: (context, animation, 155 | secondaryAnimation, child) { 156 | return FadeTransition( 157 | opacity: animation, 158 | child: child, 159 | ); 160 | }, 161 | ), 162 | ); 163 | }, 164 | child: const Text("Complete Payment"), 165 | ), 166 | ), 167 | ); 168 | }) 169 | else 170 | const SizedBox( 171 | height: 46, 172 | ), 173 | const SizedBox( 174 | height: 24, 175 | ), 176 | Expanded( 177 | child: _numericKeyPad(), 178 | ), 179 | ], 180 | ), 181 | )); 182 | } 183 | 184 | Widget _numericKeyPad() { 185 | return Container( 186 | color: Colors.white, 187 | child: GridView.builder( 188 | itemCount: 11, 189 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( 190 | crossAxisCount: 3, 191 | mainAxisSpacing: 12.0, 192 | crossAxisSpacing: 45.0, 193 | ), 194 | itemBuilder: (context, index) { 195 | if (index == 9) { 196 | return const SizedBox.shrink(); 197 | } else if (index == 10) { 198 | return InkWell( 199 | onTap: () => _updateCVVNumber("0"), 200 | child: CircleAvatar( 201 | radius: 30, 202 | backgroundColor: Colors.grey.shade300, 203 | child: const Text( 204 | '0', 205 | style: TextStyle( 206 | fontSize: 34, 207 | fontWeight: FontWeight.bold, 208 | color: Colors.black, 209 | ), 210 | ), 211 | ), 212 | ); 213 | } else { 214 | // Botones del 1 al 9 215 | return InkWell( 216 | onTap: () => _updateCVVNumber("${index + 1}"), 217 | child: CircleAvatar( 218 | radius: 30, 219 | backgroundColor: Colors.grey.shade300, 220 | child: Text( 221 | '${index + 1}', 222 | style: const TextStyle( 223 | fontSize: 34, 224 | fontWeight: FontWeight.bold, 225 | color: Colors.black, 226 | ), 227 | ), 228 | ), 229 | ); 230 | } 231 | }, 232 | ), 233 | ); 234 | } 235 | } 236 | 237 | class _CreditCardDetail extends StatelessWidget { 238 | const _CreditCardDetail({ 239 | required this.index, 240 | required this.height, 241 | required this.cvvNumber, 242 | required this.slideAnimations, 243 | this.isComplete = false, 244 | }); 245 | 246 | final int index; 247 | final double height; 248 | final List cvvNumber; 249 | final List slideAnimations; 250 | final bool isComplete; 251 | 252 | @override 253 | Widget build(BuildContext context) { 254 | // const heightButton = 46.0 + 12.0; 255 | 256 | return LayoutBuilder(builder: (context, constraints) { 257 | return Container( 258 | width: double.maxFinite, 259 | clipBehavior: Clip.none, 260 | height: height, 261 | padding: const EdgeInsets.all(8.0), 262 | decoration: BoxDecoration( 263 | border: Border.all(color: Colors.grey.shade400, width: 1.0), 264 | borderRadius: const BorderRadius.all( 265 | Radius.circular(12.0), 266 | ), 267 | ), 268 | child: Stack( 269 | children: [ 270 | Positioned.fill( 271 | top: -(MediaQuery.sizeOf(context).height * 0.08), 272 | child: GestureDetector( 273 | onVerticalDragEnd: (details) { 274 | // Detecta si el usuario arrastró hacia abajo 275 | if (details.primaryVelocity != null && 276 | details.primaryVelocity! > 0) { 277 | Navigator.of(context).pop(); 278 | } 279 | }, 280 | child: Hero( 281 | tag: 'credit-card-$index', 282 | child: Transform.rotate( 283 | angle: (pi / 180) * 90, 284 | child: Image.asset( 285 | "assets/credit-card-${index % 4}.png", 286 | width: constraints.maxWidth, 287 | height: constraints.maxHeight, 288 | ), 289 | ), 290 | ), 291 | ), 292 | ), 293 | Positioned.fill( 294 | child: Column( 295 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 296 | children: [ 297 | const Expanded( 298 | child: SizedBox(), 299 | ), 300 | const SizedBox( 301 | height: 12.0, 302 | ), 303 | Container( 304 | clipBehavior: Clip.none, 305 | padding: const EdgeInsets.symmetric(vertical: 8.0), 306 | child: Row( 307 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 308 | children: [ 309 | const Text('Enter a CVV Number'), 310 | Container( 311 | clipBehavior: Clip.antiAlias, 312 | decoration: BoxDecoration( 313 | borderRadius: const BorderRadius.all( 314 | Radius.circular(6.0), 315 | ), 316 | color: Colors.grey[200], 317 | ), 318 | width: 120, 319 | height: 32, 320 | child: Row( 321 | mainAxisAlignment: MainAxisAlignment.center, 322 | children: List.generate(cvvNumber.length, (index) { 323 | return SlideInDown( 324 | from: 25, 325 | animate: slideAnimations[index], 326 | child: Text( 327 | cvvNumber[index], 328 | style: const TextStyle( 329 | fontSize: 16, 330 | fontWeight: FontWeight.bold, 331 | color: Colors.black, 332 | ), 333 | ), 334 | ); 335 | }), 336 | ), 337 | ) 338 | ], 339 | ), 340 | ), 341 | ], 342 | ), 343 | ), 344 | ], 345 | ), 346 | ); 347 | }); 348 | } 349 | } 350 | -------------------------------------------------------------------------------- /lib/screens/payment_terminal_screen/payment_terminal_screen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:math'; 3 | import 'dart:ui'; 4 | import 'package:animate_do/animate_do.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:ticket_bank_machine/screens/payment_terminal_screen/children/print_ticket_state.dart'; 7 | 8 | enum ScreenState { 9 | initial, 10 | insertCard, 11 | processing, 12 | otpValidation, 13 | printTicket, 14 | } 15 | 16 | class PaymentTerminalScreen extends StatefulWidget { 17 | const PaymentTerminalScreen({ 18 | super.key, 19 | required this.index, 20 | }); 21 | 22 | final int index; 23 | 24 | @override 25 | State createState() => _PaymentTerminalScreenState(); 26 | } 27 | 28 | class _PaymentTerminalScreenState extends State 29 | with TickerProviderStateMixin { 30 | // Current screen state 31 | ScreenState _currentState = ScreenState.initial; 32 | 33 | // Animation controller 34 | late AnimationController _cardAnimationController; 35 | late Animation _cardAnimation; 36 | 37 | late AnimationController _otpAnimationController; 38 | late Animation _otpAnimation; 39 | 40 | @override 41 | void initState() { 42 | super.initState(); 43 | // Simulate initial loading and transition 44 | _initializeScreen(); 45 | // Initialize animation controller 46 | _cardAnimationController = AnimationController( 47 | vsync: this, 48 | duration: const Duration(milliseconds: 2000), 49 | ); 50 | // Create animation 51 | _cardAnimation = Tween(begin: 0.0, end: 1.0).animate( 52 | CurvedAnimation( 53 | parent: _cardAnimationController, 54 | curve: Curves.easeInOut, 55 | ), 56 | ); 57 | 58 | _otpAnimationController = AnimationController( 59 | vsync: this, duration: const Duration(milliseconds: 800)); 60 | 61 | _otpAnimation = Tween(begin: 0.0, end: 1.0).animate( 62 | CurvedAnimation( 63 | parent: _otpAnimationController, 64 | curve: Curves.ease, 65 | ), 66 | ); 67 | } 68 | 69 | void _initializeScreen() async { 70 | await Future.delayed(const Duration(milliseconds: 2000), () {}); 71 | setState(() { 72 | _currentState = ScreenState.insertCard; 73 | }); 74 | } 75 | 76 | void _introduceCreditCard() { 77 | setState(() { 78 | _currentState = ScreenState.processing; 79 | }); 80 | } 81 | 82 | Future? _otpValidation(void value) { 83 | _currentState = ScreenState.otpValidation; 84 | setState(() {}); 85 | return null; 86 | } 87 | 88 | Future? _printTicket(void value) { 89 | _currentState = ScreenState.printTicket; 90 | setState(() {}); 91 | return null; 92 | } 93 | 94 | @override 95 | void dispose() { 96 | // TODO: implement dispose 97 | _cardAnimationController.dispose(); 98 | _otpAnimationController.dispose(); 99 | super.dispose(); 100 | } 101 | 102 | @override 103 | Widget build(BuildContext context) { 104 | return Scaffold( 105 | backgroundColor: Colors.white, 106 | body: _buildBody(), 107 | ); 108 | } 109 | 110 | Widget _buildBody() { 111 | switch (_currentState) { 112 | case ScreenState.initial: 113 | return _buildInitialState(); 114 | case ScreenState.insertCard: 115 | return _buildInsertCardState(); 116 | case ScreenState.processing: 117 | return _buildProcessingState(); 118 | case ScreenState.otpValidation: 119 | return _buildOTPState(); 120 | case ScreenState.printTicket: 121 | return const PrintTicketState(); 122 | } 123 | } 124 | 125 | Widget _buildInitialState() { 126 | return LayoutBuilder( 127 | builder: (context, constraints) { 128 | return Container( 129 | constraints: constraints, 130 | child: Stack( 131 | fit: StackFit.expand, 132 | children: [ 133 | Positioned.fill( 134 | child: TweenAnimationBuilder( 135 | tween: Tween(begin: 0.0, end: 1.0), 136 | curve: Curves.easeOutBack, 137 | duration: const Duration(milliseconds: 2200), 138 | builder: (context, animation, child) { 139 | return Transform.scale( 140 | alignment: Alignment.topCenter, 141 | scale: lerpDouble(0.3, 1, animation)!, 142 | child: Opacity( 143 | opacity: lerpDouble(0.0, 0.9, animation)!, 144 | child: Column( 145 | mainAxisAlignment: MainAxisAlignment.end, 146 | crossAxisAlignment: CrossAxisAlignment.center, 147 | children: [ 148 | const Expanded( 149 | flex: 1, 150 | child: _AtmTerminal( 151 | leading: Text( 152 | 'Insert Card', 153 | style: TextStyle( 154 | color: Colors.black, 155 | fontSize: 18, 156 | ), 157 | ), 158 | ), 159 | ), 160 | Expanded( 161 | flex: 1, 162 | child: Container( 163 | alignment: Alignment.topCenter, 164 | child: Image.asset( 165 | 'assets/bank-atm-2.png', 166 | scale: 2, 167 | ), 168 | ), 169 | ), 170 | ], 171 | ), 172 | ), 173 | ); 174 | }), 175 | ), 176 | Positioned.fill( 177 | child: Hero( 178 | tag: 'credit-card-${widget.index}', 179 | flightShuttleBuilder: (flightContext, animation, flightDirection, fromHeroContext, toHeroContext) { 180 | Widget current; 181 | if (flightDirection == HeroFlightDirection.push) { 182 | current = toHeroContext.widget; 183 | } else { 184 | current = fromHeroContext.widget; 185 | } 186 | return AnimatedBuilder( 187 | animation: animation, 188 | builder: (context, _) { 189 | return Transform.rotate( 190 | angle: lerpDouble((pi / 180) * 90, 0, animation.value)!, 191 | child: Transform.translate( 192 | offset: Offset(0.0, lerpDouble(0.0,-(constraints.maxHeight * 0.05), animation.value)!), 193 | child: current 194 | ,), 195 | ); 196 | }, 197 | ); 198 | }, 199 | child: Transform.translate( 200 | offset: Offset(0.0, -(constraints.maxHeight * 0.05)), 201 | child: Image.asset( 202 | 'assets/credit-card-${widget.index % 4}.png', 203 | alignment: Alignment.bottomCenter, 204 | scale: 1.5, 205 | ), 206 | ), 207 | ), 208 | ), 209 | ], 210 | ), 211 | ); 212 | } 213 | ); 214 | } 215 | 216 | Widget _buildInsertCardState() { 217 | return Stack( 218 | fit: StackFit.expand, 219 | children: [ 220 | Positioned.fill( 221 | child: Column( 222 | mainAxisAlignment: MainAxisAlignment.end, 223 | crossAxisAlignment: CrossAxisAlignment.center, 224 | children: [ 225 | const Expanded( 226 | flex: 1, 227 | child: SizedBox(), 228 | ), 229 | Expanded( 230 | flex: 1, 231 | child: Container( 232 | alignment: Alignment.topCenter, 233 | child: Image.asset( 234 | 'assets/bank-atm-2.png', 235 | scale: 2, 236 | ), 237 | ), 238 | ), 239 | ], 240 | ), 241 | ), 242 | AnimatedBuilder( 243 | animation: _cardAnimation, 244 | builder: (context, child) { 245 | return TweenAnimationBuilder( 246 | tween: Tween(begin: 0.0, end: 1.0), 247 | duration: const Duration(milliseconds: 2000), 248 | onEnd: () { 249 | _cardAnimationController.forward().then(_otpValidation); 250 | // _cardAnimationController.forward(); 251 | setState(() {}); 252 | }, 253 | builder: (context, animation, child) { 254 | return Positioned( 255 | bottom: -(MediaQuery.sizeOf(context).height * 0.2), 256 | left: 0, 257 | right: 0, 258 | child: Transform( 259 | transform: Matrix4.identity() 260 | ..setEntry(3, 2, 0.001) 261 | ..scale(lerpDouble(1.0, 0.3, animation)) 262 | ..translate( 263 | lerpDouble(0.0, 340.0, animation)!, 264 | (lerpDouble(0.0, -20.0, animation)! + 265 | lerpDouble(0.0, -220.0, _cardAnimation.value)!), 266 | ), 267 | child: Image.asset( 268 | 'assets/credit-card-${widget.index % 4}.png', 269 | scale: 1.5, 270 | ), 271 | ), 272 | ); 273 | }, 274 | ); 275 | }), 276 | Positioned.fill( 277 | top: 0, 278 | bottom: 0, 279 | child: Column( 280 | mainAxisAlignment: MainAxisAlignment.center, 281 | crossAxisAlignment: CrossAxisAlignment.center, 282 | children: [ 283 | Expanded( 284 | flex: 1, 285 | child: AnimatedBuilder( 286 | animation: _cardAnimation, 287 | builder: (context, child) { 288 | return _AtmTerminal( 289 | leading: Text( 290 | _cardAnimation.value < 0.5 291 | ? "Insert Card" 292 | : "Verifying card...", 293 | style: const TextStyle( 294 | color: Colors.black, 295 | fontSize: 18, 296 | ), 297 | ), 298 | ); 299 | }), 300 | ), 301 | const Expanded( 302 | flex: 1, 303 | child: SizedBox(), 304 | ), 305 | ], 306 | ), 307 | ), 308 | ], 309 | ); 310 | } 311 | 312 | Widget _buildProcessingState() { 313 | return const Center( 314 | child: CircularProgressIndicator(), 315 | ); 316 | } 317 | 318 | Widget _buildOTPState() { 319 | return Stack( 320 | fit: StackFit.expand, 321 | children: [ 322 | Positioned.fill( 323 | child: Column( 324 | mainAxisAlignment: MainAxisAlignment.end, 325 | crossAxisAlignment: CrossAxisAlignment.center, 326 | children: [ 327 | const Expanded( 328 | flex: 1, 329 | child: SizedBox(), 330 | ), 331 | Expanded( 332 | flex: 1, 333 | child: Container( 334 | alignment: Alignment.topCenter, 335 | child: Image.asset( 336 | 'assets/bank-atm-2.png', 337 | scale: 2, 338 | ), 339 | ), 340 | ), 341 | ], 342 | ), 343 | ), 344 | Positioned.fill( 345 | top: 0, 346 | bottom: 0, 347 | child: Column( 348 | mainAxisAlignment: MainAxisAlignment.center, 349 | crossAxisAlignment: CrossAxisAlignment.center, 350 | children: [ 351 | Expanded( 352 | flex: 1, 353 | child: AnimatedBuilder( 354 | animation: _otpAnimation, 355 | builder: (context, child) { 356 | return _AtmTerminal( 357 | leading: FadeInUp( 358 | child: _otpAnimation.value > 0.9 359 | ? Opacity( 360 | opacity: _otpAnimation.value, 361 | child: const Text('Done')) 362 | : Opacity( 363 | opacity: 1 - _otpAnimation.value, 364 | child: Column( 365 | children: [ 366 | const Text( 367 | 'Waiting for OTP', 368 | style: TextStyle( 369 | color: Colors.black, 370 | fontSize: 18, 371 | ), 372 | ), 373 | const SizedBox( 374 | height: 2.0, 375 | ), 376 | Row( 377 | mainAxisAlignment: 378 | MainAxisAlignment.center, 379 | children: List.generate( 380 | 4, 381 | (index) => TweenAnimationBuilder( 382 | onEnd: () { 383 | if (index == 3) { 384 | _otpAnimationController 385 | .forward() 386 | .then(_printTicket); 387 | } 388 | }, 389 | duration: Duration( 390 | milliseconds: 391 | 700 * (index + 1)), 392 | tween: Tween( 393 | begin: 0.1, end: 1.0), 394 | builder: 395 | (context, animation, child) { 396 | return Opacity( 397 | opacity: animation, 398 | child: Container( 399 | width: 30, 400 | height: 30, 401 | margin: const EdgeInsets 402 | .symmetric( 403 | horizontal: 6.0), 404 | decoration: BoxDecoration( 405 | color: Colors.white, 406 | borderRadius: 407 | const BorderRadius.all( 408 | Radius.circular(6.0), 409 | ), 410 | border: Border.all( 411 | width: 1.0, 412 | color: Colors.grey), 413 | ), 414 | ), 415 | ); 416 | }, 417 | ), 418 | ), 419 | ), 420 | ], 421 | ), 422 | ), 423 | ), 424 | ); 425 | }), 426 | ), 427 | const Expanded( 428 | flex: 1, 429 | child: SizedBox(), 430 | ), 431 | ], 432 | ), 433 | ), 434 | ], 435 | ); 436 | } 437 | 438 | // Widget _buildPrintTicketState() { 439 | 440 | // } 441 | } 442 | 443 | class _AtmTerminal extends StatelessWidget { 444 | const _AtmTerminal({ 445 | required this.leading, 446 | }); 447 | 448 | final Widget leading; 449 | 450 | @override 451 | Widget build(BuildContext context) { 452 | return LayoutBuilder(builder: (context, constraints) { 453 | return Stack( 454 | fit: StackFit.expand, 455 | children: [ 456 | Positioned.fill( 457 | child: Container( 458 | alignment: Alignment.bottomCenter, 459 | child: Transform.translate( 460 | offset: const Offset(1.8, 0.0), 461 | child: Image.asset( 462 | 'assets/bank-atm-1.png', 463 | scale: 2, 464 | ), 465 | ), 466 | ), 467 | ), 468 | Positioned( 469 | bottom: (constraints.maxHeight * 0.2), 470 | left: 0, 471 | right: 0, 472 | child: Center( 473 | child: leading, 474 | ), 475 | ), 476 | ], 477 | ); 478 | }); 479 | } 480 | } 481 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 25 | remoteInfo = Runner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXCopyFilesBuildPhase section */ 30 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 31 | isa = PBXCopyFilesBuildPhase; 32 | buildActionMask = 2147483647; 33 | dstPath = ""; 34 | dstSubfolderSpec = 10; 35 | files = ( 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 46 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 48 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 49 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 50 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 51 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 52 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 75 | ); 76 | path = RunnerTests; 77 | sourceTree = ""; 78 | }; 79 | 9740EEB11CF90186004384FC /* Flutter */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 83 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 84 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 85 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 86 | ); 87 | name = Flutter; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 331C8082294A63A400263BE5 /* RunnerTests */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 97C146EF1CF9000F007C117D /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 97C146EE1CF9000F007C117D /* Runner.app */, 104 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 113 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 114 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 115 | 97C147021CF9000F007C117D /* Info.plist */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 119 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 120 | ); 121 | path = Runner; 122 | sourceTree = ""; 123 | }; 124 | /* End PBXGroup section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 130 | buildPhases = ( 131 | 331C807D294A63A400263BE5 /* Sources */, 132 | 331C807F294A63A400263BE5 /* Resources */, 133 | ); 134 | buildRules = ( 135 | ); 136 | dependencies = ( 137 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 138 | ); 139 | name = RunnerTests; 140 | productName = RunnerTests; 141 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 142 | productType = "com.apple.product-type.bundle.unit-test"; 143 | }; 144 | 97C146ED1CF9000F007C117D /* Runner */ = { 145 | isa = PBXNativeTarget; 146 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 147 | buildPhases = ( 148 | 9740EEB61CF901F6004384FC /* Run Script */, 149 | 97C146EA1CF9000F007C117D /* Sources */, 150 | 97C146EB1CF9000F007C117D /* Frameworks */, 151 | 97C146EC1CF9000F007C117D /* Resources */, 152 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 153 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | ); 159 | name = Runner; 160 | productName = Runner; 161 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 162 | productType = "com.apple.product-type.application"; 163 | }; 164 | /* End PBXNativeTarget section */ 165 | 166 | /* Begin PBXProject section */ 167 | 97C146E61CF9000F007C117D /* Project object */ = { 168 | isa = PBXProject; 169 | attributes = { 170 | BuildIndependentTargetsInParallel = YES; 171 | LastUpgradeCheck = 1510; 172 | ORGANIZATIONNAME = ""; 173 | TargetAttributes = { 174 | 331C8080294A63A400263BE5 = { 175 | CreatedOnToolsVersion = 14.0; 176 | TestTargetID = 97C146ED1CF9000F007C117D; 177 | }; 178 | 97C146ED1CF9000F007C117D = { 179 | CreatedOnToolsVersion = 7.3.1; 180 | LastSwiftMigration = 1100; 181 | }; 182 | }; 183 | }; 184 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 185 | compatibilityVersion = "Xcode 9.3"; 186 | developmentRegion = en; 187 | hasScannedForEncodings = 0; 188 | knownRegions = ( 189 | en, 190 | Base, 191 | ); 192 | mainGroup = 97C146E51CF9000F007C117D; 193 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 194 | projectDirPath = ""; 195 | projectRoot = ""; 196 | targets = ( 197 | 97C146ED1CF9000F007C117D /* Runner */, 198 | 331C8080294A63A400263BE5 /* RunnerTests */, 199 | ); 200 | }; 201 | /* End PBXProject section */ 202 | 203 | /* Begin PBXResourcesBuildPhase section */ 204 | 331C807F294A63A400263BE5 /* Resources */ = { 205 | isa = PBXResourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | 97C146EC1CF9000F007C117D /* Resources */ = { 212 | isa = PBXResourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 216 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXShellScriptBuildPhase section */ 225 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 226 | isa = PBXShellScriptBuildPhase; 227 | alwaysOutOfDate = 1; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 233 | ); 234 | name = "Thin Binary"; 235 | outputPaths = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/sh; 239 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 240 | }; 241 | 9740EEB61CF901F6004384FC /* Run Script */ = { 242 | isa = PBXShellScriptBuildPhase; 243 | alwaysOutOfDate = 1; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | inputPaths = ( 248 | ); 249 | name = "Run Script"; 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 255 | }; 256 | /* End PBXShellScriptBuildPhase section */ 257 | 258 | /* Begin PBXSourcesBuildPhase section */ 259 | 331C807D294A63A400263BE5 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | 97C146EA1CF9000F007C117D /* Sources */ = { 268 | isa = PBXSourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 272 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXSourcesBuildPhase section */ 277 | 278 | /* Begin PBXTargetDependency section */ 279 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 280 | isa = PBXTargetDependency; 281 | target = 97C146ED1CF9000F007C117D /* Runner */; 282 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 283 | }; 284 | /* End PBXTargetDependency section */ 285 | 286 | /* Begin PBXVariantGroup section */ 287 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 97C146FB1CF9000F007C117D /* Base */, 291 | ); 292 | name = Main.storyboard; 293 | sourceTree = ""; 294 | }; 295 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 296 | isa = PBXVariantGroup; 297 | children = ( 298 | 97C147001CF9000F007C117D /* Base */, 299 | ); 300 | name = LaunchScreen.storyboard; 301 | sourceTree = ""; 302 | }; 303 | /* End PBXVariantGroup section */ 304 | 305 | /* Begin XCBuildConfiguration section */ 306 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 311 | CLANG_ANALYZER_NONNULL = YES; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INFINITE_RECURSION = YES; 325 | CLANG_WARN_INT_CONVERSION = YES; 326 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 328 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 331 | CLANG_WARN_STRICT_PROTOTYPES = YES; 332 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 333 | CLANG_WARN_UNREACHABLE_CODE = YES; 334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 336 | COPY_PHASE_STRIP = NO; 337 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 338 | ENABLE_NS_ASSERTIONS = NO; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 341 | GCC_C_LANGUAGE_STANDARD = gnu99; 342 | GCC_NO_COMMON_BLOCKS = YES; 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 350 | MTL_ENABLE_DEBUG_INFO = NO; 351 | SDKROOT = iphoneos; 352 | SUPPORTED_PLATFORMS = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | VALIDATE_PRODUCT = YES; 355 | }; 356 | name = Profile; 357 | }; 358 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 359 | isa = XCBuildConfiguration; 360 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 361 | buildSettings = { 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | CLANG_ENABLE_MODULES = YES; 364 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 365 | DEVELOPMENT_TEAM = GP9FGC24R3; 366 | ENABLE_BITCODE = NO; 367 | INFOPLIST_FILE = Runner/Info.plist; 368 | LD_RUNPATH_SEARCH_PATHS = ( 369 | "$(inherited)", 370 | "@executable_path/Frameworks", 371 | ); 372 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ticketBankMachine; 373 | PRODUCT_NAME = "$(TARGET_NAME)"; 374 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 375 | SWIFT_VERSION = 5.0; 376 | VERSIONING_SYSTEM = "apple-generic"; 377 | }; 378 | name = Profile; 379 | }; 380 | 331C8088294A63A400263BE5 /* Debug */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | BUNDLE_LOADER = "$(TEST_HOST)"; 384 | CODE_SIGN_STYLE = Automatic; 385 | CURRENT_PROJECT_VERSION = 1; 386 | GENERATE_INFOPLIST_FILE = YES; 387 | MARKETING_VERSION = 1.0; 388 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ticketBankMachine.RunnerTests; 389 | PRODUCT_NAME = "$(TARGET_NAME)"; 390 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 391 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 392 | SWIFT_VERSION = 5.0; 393 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 394 | }; 395 | name = Debug; 396 | }; 397 | 331C8089294A63A400263BE5 /* Release */ = { 398 | isa = XCBuildConfiguration; 399 | buildSettings = { 400 | BUNDLE_LOADER = "$(TEST_HOST)"; 401 | CODE_SIGN_STYLE = Automatic; 402 | CURRENT_PROJECT_VERSION = 1; 403 | GENERATE_INFOPLIST_FILE = YES; 404 | MARKETING_VERSION = 1.0; 405 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ticketBankMachine.RunnerTests; 406 | PRODUCT_NAME = "$(TARGET_NAME)"; 407 | SWIFT_VERSION = 5.0; 408 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 409 | }; 410 | name = Release; 411 | }; 412 | 331C808A294A63A400263BE5 /* Profile */ = { 413 | isa = XCBuildConfiguration; 414 | buildSettings = { 415 | BUNDLE_LOADER = "$(TEST_HOST)"; 416 | CODE_SIGN_STYLE = Automatic; 417 | CURRENT_PROJECT_VERSION = 1; 418 | GENERATE_INFOPLIST_FILE = YES; 419 | MARKETING_VERSION = 1.0; 420 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ticketBankMachine.RunnerTests; 421 | PRODUCT_NAME = "$(TARGET_NAME)"; 422 | SWIFT_VERSION = 5.0; 423 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 424 | }; 425 | name = Profile; 426 | }; 427 | 97C147031CF9000F007C117D /* Debug */ = { 428 | isa = XCBuildConfiguration; 429 | buildSettings = { 430 | ALWAYS_SEARCH_USER_PATHS = NO; 431 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 432 | CLANG_ANALYZER_NONNULL = YES; 433 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 434 | CLANG_CXX_LIBRARY = "libc++"; 435 | CLANG_ENABLE_MODULES = YES; 436 | CLANG_ENABLE_OBJC_ARC = YES; 437 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 438 | CLANG_WARN_BOOL_CONVERSION = YES; 439 | CLANG_WARN_COMMA = YES; 440 | CLANG_WARN_CONSTANT_CONVERSION = YES; 441 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 443 | CLANG_WARN_EMPTY_BODY = YES; 444 | CLANG_WARN_ENUM_CONVERSION = YES; 445 | CLANG_WARN_INFINITE_RECURSION = YES; 446 | CLANG_WARN_INT_CONVERSION = YES; 447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 449 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 451 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 452 | CLANG_WARN_STRICT_PROTOTYPES = YES; 453 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 454 | CLANG_WARN_UNREACHABLE_CODE = YES; 455 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 457 | COPY_PHASE_STRIP = NO; 458 | DEBUG_INFORMATION_FORMAT = dwarf; 459 | ENABLE_STRICT_OBJC_MSGSEND = YES; 460 | ENABLE_TESTABILITY = YES; 461 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 462 | GCC_C_LANGUAGE_STANDARD = gnu99; 463 | GCC_DYNAMIC_NO_PIC = NO; 464 | GCC_NO_COMMON_BLOCKS = YES; 465 | GCC_OPTIMIZATION_LEVEL = 0; 466 | GCC_PREPROCESSOR_DEFINITIONS = ( 467 | "DEBUG=1", 468 | "$(inherited)", 469 | ); 470 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 471 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 472 | GCC_WARN_UNDECLARED_SELECTOR = YES; 473 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 474 | GCC_WARN_UNUSED_FUNCTION = YES; 475 | GCC_WARN_UNUSED_VARIABLE = YES; 476 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 477 | MTL_ENABLE_DEBUG_INFO = YES; 478 | ONLY_ACTIVE_ARCH = YES; 479 | SDKROOT = iphoneos; 480 | TARGETED_DEVICE_FAMILY = "1,2"; 481 | }; 482 | name = Debug; 483 | }; 484 | 97C147041CF9000F007C117D /* Release */ = { 485 | isa = XCBuildConfiguration; 486 | buildSettings = { 487 | ALWAYS_SEARCH_USER_PATHS = NO; 488 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 489 | CLANG_ANALYZER_NONNULL = YES; 490 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 491 | CLANG_CXX_LIBRARY = "libc++"; 492 | CLANG_ENABLE_MODULES = YES; 493 | CLANG_ENABLE_OBJC_ARC = YES; 494 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 495 | CLANG_WARN_BOOL_CONVERSION = YES; 496 | CLANG_WARN_COMMA = YES; 497 | CLANG_WARN_CONSTANT_CONVERSION = YES; 498 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 499 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 500 | CLANG_WARN_EMPTY_BODY = YES; 501 | CLANG_WARN_ENUM_CONVERSION = YES; 502 | CLANG_WARN_INFINITE_RECURSION = YES; 503 | CLANG_WARN_INT_CONVERSION = YES; 504 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 505 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 506 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 507 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 508 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 509 | CLANG_WARN_STRICT_PROTOTYPES = YES; 510 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 511 | CLANG_WARN_UNREACHABLE_CODE = YES; 512 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 513 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 514 | COPY_PHASE_STRIP = NO; 515 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 516 | ENABLE_NS_ASSERTIONS = NO; 517 | ENABLE_STRICT_OBJC_MSGSEND = YES; 518 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 519 | GCC_C_LANGUAGE_STANDARD = gnu99; 520 | GCC_NO_COMMON_BLOCKS = YES; 521 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 522 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 523 | GCC_WARN_UNDECLARED_SELECTOR = YES; 524 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 525 | GCC_WARN_UNUSED_FUNCTION = YES; 526 | GCC_WARN_UNUSED_VARIABLE = YES; 527 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 528 | MTL_ENABLE_DEBUG_INFO = NO; 529 | SDKROOT = iphoneos; 530 | SUPPORTED_PLATFORMS = iphoneos; 531 | SWIFT_COMPILATION_MODE = wholemodule; 532 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 533 | TARGETED_DEVICE_FAMILY = "1,2"; 534 | VALIDATE_PRODUCT = YES; 535 | }; 536 | name = Release; 537 | }; 538 | 97C147061CF9000F007C117D /* Debug */ = { 539 | isa = XCBuildConfiguration; 540 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 541 | buildSettings = { 542 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 543 | CLANG_ENABLE_MODULES = YES; 544 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 545 | DEVELOPMENT_TEAM = GP9FGC24R3; 546 | ENABLE_BITCODE = NO; 547 | INFOPLIST_FILE = Runner/Info.plist; 548 | LD_RUNPATH_SEARCH_PATHS = ( 549 | "$(inherited)", 550 | "@executable_path/Frameworks", 551 | ); 552 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ticketBankMachine; 553 | PRODUCT_NAME = "$(TARGET_NAME)"; 554 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 555 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 556 | SWIFT_VERSION = 5.0; 557 | VERSIONING_SYSTEM = "apple-generic"; 558 | }; 559 | name = Debug; 560 | }; 561 | 97C147071CF9000F007C117D /* Release */ = { 562 | isa = XCBuildConfiguration; 563 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 564 | buildSettings = { 565 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 566 | CLANG_ENABLE_MODULES = YES; 567 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 568 | DEVELOPMENT_TEAM = GP9FGC24R3; 569 | ENABLE_BITCODE = NO; 570 | INFOPLIST_FILE = Runner/Info.plist; 571 | LD_RUNPATH_SEARCH_PATHS = ( 572 | "$(inherited)", 573 | "@executable_path/Frameworks", 574 | ); 575 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ticketBankMachine; 576 | PRODUCT_NAME = "$(TARGET_NAME)"; 577 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 578 | SWIFT_VERSION = 5.0; 579 | VERSIONING_SYSTEM = "apple-generic"; 580 | }; 581 | name = Release; 582 | }; 583 | /* End XCBuildConfiguration section */ 584 | 585 | /* Begin XCConfigurationList section */ 586 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | 331C8088294A63A400263BE5 /* Debug */, 590 | 331C8089294A63A400263BE5 /* Release */, 591 | 331C808A294A63A400263BE5 /* Profile */, 592 | ); 593 | defaultConfigurationIsVisible = 0; 594 | defaultConfigurationName = Release; 595 | }; 596 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 597 | isa = XCConfigurationList; 598 | buildConfigurations = ( 599 | 97C147031CF9000F007C117D /* Debug */, 600 | 97C147041CF9000F007C117D /* Release */, 601 | 249021D3217E4FDB00AE95B9 /* Profile */, 602 | ); 603 | defaultConfigurationIsVisible = 0; 604 | defaultConfigurationName = Release; 605 | }; 606 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 607 | isa = XCConfigurationList; 608 | buildConfigurations = ( 609 | 97C147061CF9000F007C117D /* Debug */, 610 | 97C147071CF9000F007C117D /* Release */, 611 | 249021D4217E4FDB00AE95B9 /* Profile */, 612 | ); 613 | defaultConfigurationIsVisible = 0; 614 | defaultConfigurationName = Release; 615 | }; 616 | /* End XCConfigurationList section */ 617 | }; 618 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 619 | } 620 | --------------------------------------------------------------------------------