├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── am1ne │ │ │ │ └── event_app │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── 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 │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── fonts │ ├── DellaRespira-Regular.ttf │ ├── Lato-Bold.ttf │ ├── Lato-Light.ttf │ ├── Lato-Regular.ttf │ └── Poppins-Regular.ttf └── images │ ├── icon_add.svg │ ├── icon_back.svg │ ├── icon_calendar.svg │ ├── icon_camera.svg │ ├── icon_circle.svg │ ├── icon_divider.svg │ ├── icon_filter.svg │ ├── icon_home.svg │ ├── icon_home_fill.svg │ ├── icon_localisation.svg │ ├── icon_logo.svg │ ├── icon_next.svg │ ├── icon_notification.svg │ ├── icon_notification_fill.svg │ ├── icon_settings.svg │ ├── icon_ticket.svg │ ├── icon_ticket_fill.svg │ ├── icon_time.svg │ ├── menu.svg │ ├── splash_bg.png │ ├── user1.svg │ ├── user2.svg │ └── user3.svg ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── 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-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── constant.dart ├── items │ └── popular_event_item.dart ├── main.dart ├── models │ ├── event.dart │ ├── ticket.dart │ ├── user.dart │ └── user_event_detail.dart ├── pages │ ├── event_detail_screen.dart │ ├── event_home_screen.dart │ ├── home_screen.dart │ └── splash_screen.dart ├── services │ ├── EventService.dart │ ├── TicketService.dart │ ├── UserEventDetailService.dart │ └── UserService.dart ├── size_config.dart └── style.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | -------------------------------------------------------------------------------- /.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: 1aafb3a8b9b0c36241c5f5b34ee914770f015818 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # event_app 2 | 3 | A new Flutter application. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | 18 | ![](https://i.ibb.co/ScJ5tD8/event1.png) 19 | ![](https://i.ibb.co/Sx26JTt/event2.png) 20 | -------------------------------------------------------------------------------- /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/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 29 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.am1ne.event_app" 42 | minSdkVersion 16 43 | targetSdkVersion 29 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 10 | 11 | 15 | 22 | 26 | 30 | 35 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/am1ne/event_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.am1ne.event_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.enableR8=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/fonts/DellaRespira-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/assets/fonts/DellaRespira-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/Lato-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/assets/fonts/Lato-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Lato-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/assets/fonts/Lato-Light.ttf -------------------------------------------------------------------------------- /assets/fonts/Lato-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/assets/fonts/Lato-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/assets/fonts/Poppins-Regular.ttf -------------------------------------------------------------------------------- /assets/images/icon_add.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_back.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_calendar.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_camera.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_circle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_divider.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_filter.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_home.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_home_fill.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_localisation.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_logo.svg: -------------------------------------------------------------------------------- 1 | e -------------------------------------------------------------------------------- /assets/images/icon_next.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_notification.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_notification_fill.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_settings.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_ticket.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_ticket_fill.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/icon_time.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/menu.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/splash_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/assets/images/splash_bg.png -------------------------------------------------------------------------------- /assets/images/user1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | user1 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 | -------------------------------------------------------------------------------- /assets/images/user2.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/user3.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 1DD4746279075F1D99A761DA /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 078491FB78583E516E8683F2 /* Pods_Runner.framework */; }; 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 PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 078491FB78583E516E8683F2 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 36 | 205FFB6F12210014340A0378 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 38 | 3E4E58FBBC7C7E3391280ADF /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 39 | 71D8906C96469526A368AA86 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 40 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 41 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 42 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 43 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 44 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 45 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 47 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 48 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 49 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 1DD4746279075F1D99A761DA /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 9740EEB11CF90186004384FC /* Flutter */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 68 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 69 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 70 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 71 | ); 72 | name = Flutter; 73 | sourceTree = ""; 74 | }; 75 | 97C146E51CF9000F007C117D = { 76 | isa = PBXGroup; 77 | children = ( 78 | 9740EEB11CF90186004384FC /* Flutter */, 79 | 97C146F01CF9000F007C117D /* Runner */, 80 | 97C146EF1CF9000F007C117D /* Products */, 81 | B05BD49C4F7ABF71E97E15C4 /* Pods */, 82 | F7930FC119ED515E9FF4F889 /* Frameworks */, 83 | ); 84 | sourceTree = ""; 85 | }; 86 | 97C146EF1CF9000F007C117D /* Products */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146EE1CF9000F007C117D /* Runner.app */, 90 | ); 91 | name = Products; 92 | sourceTree = ""; 93 | }; 94 | 97C146F01CF9000F007C117D /* Runner */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 98 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 99 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 100 | 97C147021CF9000F007C117D /* Info.plist */, 101 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 102 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 103 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 104 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 105 | ); 106 | path = Runner; 107 | sourceTree = ""; 108 | }; 109 | B05BD49C4F7ABF71E97E15C4 /* Pods */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 3E4E58FBBC7C7E3391280ADF /* Pods-Runner.debug.xcconfig */, 113 | 205FFB6F12210014340A0378 /* Pods-Runner.release.xcconfig */, 114 | 71D8906C96469526A368AA86 /* Pods-Runner.profile.xcconfig */, 115 | ); 116 | name = Pods; 117 | path = Pods; 118 | sourceTree = ""; 119 | }; 120 | F7930FC119ED515E9FF4F889 /* Frameworks */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 078491FB78583E516E8683F2 /* Pods_Runner.framework */, 124 | ); 125 | name = Frameworks; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | 97C146ED1CF9000F007C117D /* Runner */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 134 | buildPhases = ( 135 | 608F0C4431F14FF14D86BB86 /* [CP] Check Pods Manifest.lock */, 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | 4CE49F25EDD8EFC5A1833D06 /* [CP] Embed Pods Frameworks */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 1020; 160 | ORGANIZATIONNAME = ""; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | LastSwiftMigration = 1100; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 169 | compatibilityVersion = "Xcode 9.3"; 170 | developmentRegion = en; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 97C146E51CF9000F007C117D; 177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 97C146ED1CF9000F007C117D /* Runner */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 97C146EC1CF9000F007C117D /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Thin Binary"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 214 | }; 215 | 4CE49F25EDD8EFC5A1833D06 /* [CP] Embed Pods Frameworks */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputFileListPaths = ( 221 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 222 | ); 223 | name = "[CP] Embed Pods Frameworks"; 224 | outputFileListPaths = ( 225 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | shellPath = /bin/sh; 229 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 230 | showEnvVarsInLog = 0; 231 | }; 232 | 608F0C4431F14FF14D86BB86 /* [CP] Check Pods Manifest.lock */ = { 233 | isa = PBXShellScriptBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | ); 237 | inputFileListPaths = ( 238 | ); 239 | inputPaths = ( 240 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 241 | "${PODS_ROOT}/Manifest.lock", 242 | ); 243 | name = "[CP] Check Pods Manifest.lock"; 244 | outputFileListPaths = ( 245 | ); 246 | outputPaths = ( 247 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | shellPath = /bin/sh; 251 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 252 | showEnvVarsInLog = 0; 253 | }; 254 | 9740EEB61CF901F6004384FC /* Run Script */ = { 255 | isa = PBXShellScriptBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | inputPaths = ( 260 | ); 261 | name = "Run Script"; 262 | outputPaths = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | shellPath = /bin/sh; 266 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 267 | }; 268 | /* End PBXShellScriptBuildPhase section */ 269 | 270 | /* Begin PBXSourcesBuildPhase section */ 271 | 97C146EA1CF9000F007C117D /* Sources */ = { 272 | isa = PBXSourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | /* End PBXSourcesBuildPhase section */ 281 | 282 | /* Begin PBXVariantGroup section */ 283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | 97C146FB1CF9000F007C117D /* Base */, 287 | ); 288 | name = Main.storyboard; 289 | sourceTree = ""; 290 | }; 291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 97C147001CF9000F007C117D /* Base */, 295 | ); 296 | name = LaunchScreen.storyboard; 297 | sourceTree = ""; 298 | }; 299 | /* End PBXVariantGroup section */ 300 | 301 | /* Begin XCBuildConfiguration section */ 302 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 333 | ENABLE_NS_ASSERTIONS = NO; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_NO_COMMON_BLOCKS = YES; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 344 | MTL_ENABLE_DEBUG_INFO = NO; 345 | SDKROOT = iphoneos; 346 | SUPPORTED_PLATFORMS = iphoneos; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Profile; 351 | }; 352 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | CLANG_ENABLE_MODULES = YES; 358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 359 | ENABLE_BITCODE = NO; 360 | FRAMEWORK_SEARCH_PATHS = ( 361 | "$(inherited)", 362 | "$(PROJECT_DIR)/Flutter", 363 | ); 364 | INFOPLIST_FILE = Runner/Info.plist; 365 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 366 | LIBRARY_SEARCH_PATHS = ( 367 | "$(inherited)", 368 | "$(PROJECT_DIR)/Flutter", 369 | ); 370 | PRODUCT_BUNDLE_IDENTIFIER = com.am1ne.eventApp; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 373 | SWIFT_VERSION = 5.0; 374 | VERSIONING_SYSTEM = "apple-generic"; 375 | }; 376 | name = Profile; 377 | }; 378 | 97C147031CF9000F007C117D /* Debug */ = { 379 | isa = XCBuildConfiguration; 380 | buildSettings = { 381 | ALWAYS_SEARCH_USER_PATHS = NO; 382 | CLANG_ANALYZER_NONNULL = YES; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_COMMA = YES; 390 | CLANG_WARN_CONSTANT_CONVERSION = YES; 391 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 392 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 393 | CLANG_WARN_EMPTY_BODY = YES; 394 | CLANG_WARN_ENUM_CONVERSION = YES; 395 | CLANG_WARN_INFINITE_RECURSION = YES; 396 | CLANG_WARN_INT_CONVERSION = YES; 397 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 399 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 400 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 401 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 402 | CLANG_WARN_STRICT_PROTOTYPES = YES; 403 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 404 | CLANG_WARN_UNREACHABLE_CODE = YES; 405 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 406 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 407 | COPY_PHASE_STRIP = NO; 408 | DEBUG_INFORMATION_FORMAT = dwarf; 409 | ENABLE_STRICT_OBJC_MSGSEND = YES; 410 | ENABLE_TESTABILITY = YES; 411 | GCC_C_LANGUAGE_STANDARD = gnu99; 412 | GCC_DYNAMIC_NO_PIC = NO; 413 | GCC_NO_COMMON_BLOCKS = YES; 414 | GCC_OPTIMIZATION_LEVEL = 0; 415 | GCC_PREPROCESSOR_DEFINITIONS = ( 416 | "DEBUG=1", 417 | "$(inherited)", 418 | ); 419 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 420 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 421 | GCC_WARN_UNDECLARED_SELECTOR = YES; 422 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 423 | GCC_WARN_UNUSED_FUNCTION = YES; 424 | GCC_WARN_UNUSED_VARIABLE = YES; 425 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 426 | MTL_ENABLE_DEBUG_INFO = YES; 427 | ONLY_ACTIVE_ARCH = YES; 428 | SDKROOT = iphoneos; 429 | TARGETED_DEVICE_FAMILY = "1,2"; 430 | }; 431 | name = Debug; 432 | }; 433 | 97C147041CF9000F007C117D /* Release */ = { 434 | isa = XCBuildConfiguration; 435 | buildSettings = { 436 | ALWAYS_SEARCH_USER_PATHS = NO; 437 | CLANG_ANALYZER_NONNULL = YES; 438 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 439 | CLANG_CXX_LIBRARY = "libc++"; 440 | CLANG_ENABLE_MODULES = YES; 441 | CLANG_ENABLE_OBJC_ARC = YES; 442 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 443 | CLANG_WARN_BOOL_CONVERSION = YES; 444 | CLANG_WARN_COMMA = YES; 445 | CLANG_WARN_CONSTANT_CONVERSION = YES; 446 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 447 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 448 | CLANG_WARN_EMPTY_BODY = YES; 449 | CLANG_WARN_ENUM_CONVERSION = YES; 450 | CLANG_WARN_INFINITE_RECURSION = YES; 451 | CLANG_WARN_INT_CONVERSION = YES; 452 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 453 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 454 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 455 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 456 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 457 | CLANG_WARN_STRICT_PROTOTYPES = YES; 458 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 459 | CLANG_WARN_UNREACHABLE_CODE = YES; 460 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 461 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 462 | COPY_PHASE_STRIP = NO; 463 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 464 | ENABLE_NS_ASSERTIONS = NO; 465 | ENABLE_STRICT_OBJC_MSGSEND = YES; 466 | GCC_C_LANGUAGE_STANDARD = gnu99; 467 | GCC_NO_COMMON_BLOCKS = YES; 468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 470 | GCC_WARN_UNDECLARED_SELECTOR = YES; 471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 472 | GCC_WARN_UNUSED_FUNCTION = YES; 473 | GCC_WARN_UNUSED_VARIABLE = YES; 474 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 475 | MTL_ENABLE_DEBUG_INFO = NO; 476 | SDKROOT = iphoneos; 477 | SUPPORTED_PLATFORMS = iphoneos; 478 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 479 | TARGETED_DEVICE_FAMILY = "1,2"; 480 | VALIDATE_PRODUCT = YES; 481 | }; 482 | name = Release; 483 | }; 484 | 97C147061CF9000F007C117D /* Debug */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | CLANG_ENABLE_MODULES = YES; 490 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 491 | ENABLE_BITCODE = NO; 492 | FRAMEWORK_SEARCH_PATHS = ( 493 | "$(inherited)", 494 | "$(PROJECT_DIR)/Flutter", 495 | ); 496 | INFOPLIST_FILE = Runner/Info.plist; 497 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 498 | LIBRARY_SEARCH_PATHS = ( 499 | "$(inherited)", 500 | "$(PROJECT_DIR)/Flutter", 501 | ); 502 | PRODUCT_BUNDLE_IDENTIFIER = com.am1ne.eventApp; 503 | PRODUCT_NAME = "$(TARGET_NAME)"; 504 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 505 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 506 | SWIFT_VERSION = 5.0; 507 | VERSIONING_SYSTEM = "apple-generic"; 508 | }; 509 | name = Debug; 510 | }; 511 | 97C147071CF9000F007C117D /* Release */ = { 512 | isa = XCBuildConfiguration; 513 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 514 | buildSettings = { 515 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 516 | CLANG_ENABLE_MODULES = YES; 517 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 518 | ENABLE_BITCODE = NO; 519 | FRAMEWORK_SEARCH_PATHS = ( 520 | "$(inherited)", 521 | "$(PROJECT_DIR)/Flutter", 522 | ); 523 | INFOPLIST_FILE = Runner/Info.plist; 524 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 525 | LIBRARY_SEARCH_PATHS = ( 526 | "$(inherited)", 527 | "$(PROJECT_DIR)/Flutter", 528 | ); 529 | PRODUCT_BUNDLE_IDENTIFIER = com.am1ne.eventApp; 530 | PRODUCT_NAME = "$(TARGET_NAME)"; 531 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 532 | SWIFT_VERSION = 5.0; 533 | VERSIONING_SYSTEM = "apple-generic"; 534 | }; 535 | name = Release; 536 | }; 537 | /* End XCBuildConfiguration section */ 538 | 539 | /* Begin XCConfigurationList section */ 540 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 541 | isa = XCConfigurationList; 542 | buildConfigurations = ( 543 | 97C147031CF9000F007C117D /* Debug */, 544 | 97C147041CF9000F007C117D /* Release */, 545 | 249021D3217E4FDB00AE95B9 /* Profile */, 546 | ); 547 | defaultConfigurationIsVisible = 0; 548 | defaultConfigurationName = Release; 549 | }; 550 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 551 | isa = XCConfigurationList; 552 | buildConfigurations = ( 553 | 97C147061CF9000F007C117D /* Debug */, 554 | 97C147071CF9000F007C117D /* Release */, 555 | 249021D4217E4FDB00AE95B9 /* Profile */, 556 | ); 557 | defaultConfigurationIsVisible = 0; 558 | defaultConfigurationName = Release; 559 | }; 560 | /* End XCConfigurationList section */ 561 | }; 562 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 563 | } 564 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.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/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 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 | -------------------------------------------------------------------------------- /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/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/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/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmineLAHRIM/flutter_event_app/2f5a51a4c4cdcb57aa4bce252b27949f029fb4ff/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /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/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 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | event_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/constant.dart: -------------------------------------------------------------------------------- 1 | class Constant{ 2 | static final String REST_URL='http://192.168.1.7:8090/eventapp'; 3 | } -------------------------------------------------------------------------------- /lib/items/popular_event_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:align_positioned/align_positioned.dart'; 2 | import 'package:cached_network_image/cached_network_image.dart'; 3 | import 'package:event_app/models/event.dart'; 4 | import 'package:event_app/pages/event_detail_screen.dart'; 5 | import 'package:event_app/style.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:flutter/services.dart'; 8 | import 'package:flutter_svg/flutter_svg.dart'; 9 | import 'package:intl/intl.dart'; 10 | 11 | class PopularEventItem extends StatelessWidget { 12 | const PopularEventItem({ 13 | Key key, 14 | @required this.currentEvent, 15 | }) : super(key: key); 16 | 17 | final Event currentEvent; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return Container( 22 | margin: EdgeInsets.only(right: 16, bottom: 32), 23 | width: 180, 24 | height: double.infinity, 25 | child: Card( 26 | elevation: 10, 27 | color: Colors.white, 28 | clipBehavior: Clip.antiAlias, 29 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(AppTheme.radius)), 30 | margin: EdgeInsets.all(0), 31 | shadowColor: AppTheme.shadow.withOpacity(0.2), 32 | child: Stack( 33 | children: [ 34 | Column( 35 | children: [ 36 | Expanded( 37 | flex: 60, 38 | child: Stack( 39 | children: [ 40 | Container( 41 | width: double.infinity, 42 | height: double.infinity, 43 | child: CachedNetworkImage( 44 | imageUrl: currentEvent.imageUrl, 45 | placeholder: (ctx, url) => 46 | Center( 47 | child: CircularProgressIndicator(), 48 | ), 49 | fit: BoxFit.cover, 50 | ), 51 | ), 52 | Container( 53 | width: double.infinity, 54 | height: double.infinity, 55 | alignment: Alignment.bottomRight, 56 | child: FractionallySizedBox( 57 | widthFactor: 0.4, 58 | heightFactor: 0.1, 59 | child: Container( 60 | width: double.infinity, 61 | height: double.infinity, 62 | color: Theme 63 | .of(context) 64 | .primaryColor 65 | .withOpacity(0.7), 66 | child: FittedBox( 67 | fit: BoxFit.scaleDown, 68 | child: Text( 69 | currentEvent.date.day.toString() + 'th ' + currentEvent.date.month.toString() + ',' + currentEvent.date.year.toString(), 70 | style: Theme 71 | .of(context) 72 | .textTheme 73 | .bodyText1 74 | .copyWith(fontSize: 8, color: Colors.white.withOpacity(0.7)), 75 | ), 76 | ), 77 | ), 78 | ), 79 | ), 80 | ], 81 | ), 82 | ), 83 | Expanded( 84 | flex: 40, 85 | child: Container( 86 | width: double.infinity, 87 | height: double.infinity, 88 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 89 | child: Column( 90 | children: [ 91 | Expanded( 92 | flex: 10, 93 | child: Container(), 94 | ), 95 | Expanded( 96 | flex: 20, 97 | child: Container( 98 | width: double.infinity, 99 | height: double.infinity, 100 | alignment: Alignment.centerLeft, 101 | child: FittedBox( 102 | fit: BoxFit.scaleDown, 103 | child: Text( 104 | currentEvent.name, 105 | style: Theme 106 | .of(context) 107 | .textTheme 108 | .headline5, 109 | ), 110 | ), 111 | ), 112 | ), 113 | Expanded( 114 | flex: 20, 115 | child: Container( 116 | width: double.infinity, 117 | height: double.infinity, 118 | alignment: Alignment.centerLeft, 119 | child: FittedBox( 120 | child: Text( 121 | currentEvent.address, 122 | style: Theme 123 | .of(context) 124 | .textTheme 125 | .bodyText2, 126 | ), 127 | ), 128 | ), 129 | ), 130 | Expanded( 131 | flex: 10, 132 | child: Container(), 133 | ), 134 | Expanded( 135 | flex: 20, 136 | child: Container( 137 | width: double.infinity, 138 | height: double.infinity, 139 | child: Row( 140 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 141 | children: [ 142 | Flexible( 143 | flex: 60, 144 | child: Container( 145 | width: double.infinity, 146 | height: double.infinity, 147 | child: Row( 148 | mainAxisAlignment: MainAxisAlignment.start, 149 | children: [ 150 | Flexible( 151 | child: AspectRatio( 152 | aspectRatio: 1 / 1, 153 | child: SvgPicture.asset( 154 | 'assets/images/user1.svg', 155 | ), 156 | ), 157 | ), 158 | Flexible( 159 | child: AspectRatio( 160 | aspectRatio: 1 / 1, 161 | child: AlignPositioned( 162 | moveByChildWidth: -0.2, 163 | child: SvgPicture.asset( 164 | 'assets/images/user2.svg', 165 | ), 166 | ), 167 | ), 168 | ), 169 | Flexible( 170 | child: AspectRatio( 171 | aspectRatio: 1 / 1, 172 | child: AlignPositioned( 173 | moveByChildWidth: -0.4, 174 | child: SvgPicture.asset( 175 | 'assets/images/user3.svg', 176 | ), 177 | ), 178 | ), 179 | ), 180 | Flexible( 181 | child: AspectRatio( 182 | aspectRatio: 1 / 1, 183 | child: AlignPositioned( 184 | moveByChildWidth: -0.8, 185 | child: Stack( 186 | alignment: Alignment.center, 187 | children: [ 188 | SvgPicture.asset( 189 | 'assets/images/icon_circle.svg', 190 | ), 191 | Padding( 192 | padding: const EdgeInsets.all(3.0), 193 | child: FittedBox( 194 | child: Text( 195 | '1k+', 196 | style: Theme 197 | .of(context) 198 | .textTheme 199 | .subtitle1, 200 | ), 201 | ), 202 | ) 203 | ], 204 | ), 205 | ), 206 | ), 207 | ), 208 | ], 209 | )), 210 | ), 211 | Flexible( 212 | flex: 40, 213 | child: FittedBox( 214 | fit: BoxFit.scaleDown, 215 | child: Text( 216 | DateFormat.jm().format(currentEvent.date).toLowerCase(), 217 | style: Theme 218 | .of(context) 219 | .textTheme 220 | .subtitle1, 221 | ), 222 | ), 223 | ), 224 | ], 225 | ), 226 | ), 227 | ), 228 | Expanded( 229 | flex: 10, 230 | child: Container(), 231 | ), 232 | ], 233 | ), 234 | ), 235 | ), 236 | ], 237 | ), 238 | Positioned.fill( 239 | child: Material( 240 | color: Colors.transparent, 241 | child: InkWell( 242 | splashFactory: InkRipple.splashFactory, 243 | splashColor: AppTheme.shadow.withOpacity(0.1), 244 | onTap: () { 245 | Navigator.pushNamed(context, EventDetailScreen.routeName, arguments:currentEvent.id,); 246 | }, 247 | ), 248 | ), 249 | ), 250 | ], 251 | ), 252 | ), 253 | ); 254 | } 255 | 256 | 257 | } 258 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:event_app/pages/event_detail_screen.dart'; 2 | import 'package:event_app/pages/event_home_screen.dart'; 3 | import 'package:event_app/pages/home_screen.dart'; 4 | import 'package:event_app/pages/splash_screen.dart'; 5 | import 'package:event_app/services/EventService.dart'; 6 | import 'package:event_app/services/TicketService.dart'; 7 | import 'package:event_app/services/UserEventDetailService.dart'; 8 | import 'package:event_app/services/UserService.dart'; 9 | import 'package:event_app/size_config.dart'; 10 | import 'package:event_app/style.dart'; 11 | import 'package:flutter/material.dart'; 12 | import 'package:flutter/services.dart'; 13 | import 'package:provider/provider.dart'; 14 | 15 | void main() { 16 | runApp(MyApp()); 17 | } 18 | 19 | class MyApp extends StatelessWidget { 20 | // This widget is the root of your application. 21 | @override 22 | Widget build(BuildContext context) { 23 | return LayoutBuilder(builder: (context, constraints) { 24 | return OrientationBuilder(builder: (context, orientation) { 25 | SizeConfig().init(constraints, orientation); 26 | setupSystemSettings(); 27 | return MultiProvider( 28 | providers: [ 29 | ChangeNotifierProvider.value(value: UserService()), 30 | ChangeNotifierProvider.value(value: EventService()), 31 | ChangeNotifierProvider.value(value: TicketService()), 32 | ChangeNotifierProvider.value(value: UserEventDetailService()), 33 | ], 34 | child: MaterialApp( 35 | theme: AppTheme.lightTheme, 36 | debugShowCheckedModeBanner: false, 37 | home: SplashScreen(), 38 | routes: { 39 | SplashScreen.routeName: (ctx) => SplashScreen(), 40 | HomeScreen.routeName: (ctx) => HomeScreen(), 41 | EventDetailScreen.routeName: (ctx) => EventDetailScreen(), 42 | EventHomeScreen.routeName: (ctx) => EventHomeScreen(), 43 | }, 44 | ), 45 | ); 46 | }); 47 | }); 48 | } 49 | } 50 | 51 | void setupSystemSettings() { 52 | // this will change color of status bar and system navigation bar 53 | SystemChrome.setSystemUIOverlayStyle(AppTheme.systemUiDark); 54 | 55 | // this will prevent change oriontation 56 | SystemChrome.setPreferredOrientations([ 57 | DeviceOrientation.portraitUp, 58 | DeviceOrientation.portraitDown, 59 | ]); 60 | } 61 | -------------------------------------------------------------------------------- /lib/models/event.dart: -------------------------------------------------------------------------------- 1 | import 'package:event_app/models/ticket.dart'; 2 | import 'package:event_app/models/user.dart'; 3 | import 'package:event_app/models/user_event_detail.dart'; 4 | import 'package:json_annotation/json_annotation.dart'; 5 | 6 | part 'event.g.dart'; 7 | 8 | @JsonSerializable(explicitToJson: true) 9 | class Event { 10 | int id; 11 | String name; 12 | String address; 13 | DateTime date; 14 | String imageUrl; 15 | double price; 16 | String description; 17 | bool near; 18 | bool deleted; 19 | 20 | List userEventDetails; 21 | List tickets; 22 | List users; 23 | 24 | 25 | Event(); 26 | 27 | factory Event.fromJson(Map json) => _$EventFromJson(json); 28 | 29 | Map toJson() => _$EventToJson(this); 30 | } 31 | -------------------------------------------------------------------------------- /lib/models/ticket.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'ticket.g.dart'; 4 | @JsonSerializable() 5 | class Ticket{ 6 | int id; 7 | bool deleted; 8 | 9 | 10 | Ticket(); 11 | 12 | factory Ticket.fromJson(Map json) => _$TicketFromJson(json); 13 | 14 | Map toJson() => _$TicketToJson(this); 15 | } -------------------------------------------------------------------------------- /lib/models/user.dart: -------------------------------------------------------------------------------- 1 | import 'package:event_app/models/event.dart'; 2 | import 'package:event_app/models/user_event_detail.dart'; 3 | import 'package:json_annotation/json_annotation.dart'; 4 | part 'user.g.dart'; 5 | @JsonSerializable(explicitToJson: true) 6 | class User { 7 | int id; 8 | String name; 9 | String imageUrl; 10 | String geoLocalisation; 11 | bool deleted; 12 | 13 | List userEventDetails; 14 | List events; 15 | 16 | 17 | User(); 18 | 19 | factory User.fromJson(Map json) => _$UserFromJson(json); 20 | 21 | Map toJson() => _$UserToJson(this); 22 | } 23 | -------------------------------------------------------------------------------- /lib/models/user_event_detail.dart: -------------------------------------------------------------------------------- 1 | import 'package:event_app/models/event.dart'; 2 | import 'package:event_app/models/user.dart'; 3 | import 'package:json_annotation/json_annotation.dart'; 4 | 5 | part 'user_event_detail.g.dart'; 6 | 7 | @JsonSerializable(explicitToJson: true) 8 | class UserEventDetail { 9 | int id; 10 | User user; 11 | Event event; 12 | 13 | UserEventDetail(); 14 | 15 | factory UserEventDetail.fromJson(Map json) => 16 | _$UserEventDetailFromJson(json); 17 | 18 | Map toJson() => _$UserEventDetailToJson(this); 19 | } 20 | -------------------------------------------------------------------------------- /lib/pages/event_detail_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:align_positioned/align_positioned.dart'; 2 | import 'package:cached_network_image/cached_network_image.dart'; 3 | import 'package:dotted_border/dotted_border.dart'; 4 | import 'package:event_app/models/event.dart'; 5 | import 'package:event_app/models/user.dart'; 6 | import 'package:event_app/services/EventService.dart'; 7 | import 'package:event_app/style.dart'; 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter/services.dart'; 10 | import 'package:flutter_svg/flutter_svg.dart'; 11 | import 'package:intl/intl.dart'; 12 | import 'package:provider/provider.dart'; 13 | 14 | class EventDetailScreen extends StatefulWidget { 15 | static final String routeName = '/event-detail'; 16 | 17 | @override 18 | _EventDetailScreenState createState() => _EventDetailScreenState(); 19 | } 20 | 21 | class _EventDetailScreenState extends State { 22 | Event currentEvent; 23 | List currentUsers = []; 24 | int id = -1; 25 | bool isLoading = true; 26 | bool isInit = false; 27 | 28 | @override 29 | void initState() { 30 | // TODO: implement initState 31 | super.initState(); 32 | } 33 | 34 | @override 35 | void didChangeDependencies() { 36 | // TODO: implement didChangeDependencies 37 | super.didChangeDependencies(); 38 | if (!isInit) { 39 | int id = ModalRoute.of(context).settings.arguments; 40 | print('id==' + id.toString()); 41 | EventService eventService = Provider.of(context); 42 | eventService.findById(id).then((value) { 43 | setState(() { 44 | currentEvent = value; 45 | currentUsers = currentEvent.users; 46 | print('id==currentEvent' + currentEvent.imageUrl.toString()); 47 | isLoading = false; 48 | }); 49 | }); 50 | } 51 | isInit = true; 52 | } 53 | 54 | @override 55 | Widget build(BuildContext context) { 56 | SystemChrome.setSystemUIOverlayStyle(AppTheme.systemUiTrans); 57 | 58 | return Scaffold( 59 | body: Container( 60 | width: double.infinity, 61 | height: double.infinity, 62 | child: Column( 63 | children: [ 64 | Expanded( 65 | flex: 40, 66 | child: currentEvent == null 67 | ? Container() 68 | : Stack( 69 | children: [ 70 | CachedNetworkImage( 71 | imageUrl: currentEvent.imageUrl, 72 | placeholder: (context, url) => Center( 73 | child: CircularProgressIndicator(), 74 | ), 75 | fit: BoxFit.cover, 76 | ), 77 | Container( 78 | margin: EdgeInsets.only(top: MediaQuery.of(context).padding.top), 79 | child: FractionallySizedBox( 80 | heightFactor: 0.25, 81 | widthFactor: 1, 82 | child: Container( 83 | width: double.infinity, 84 | height: double.infinity, 85 | child: Row( 86 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 87 | children: [ 88 | Expanded( 89 | flex: 20, 90 | child: InkWell( 91 | splashFactory: InkRipple.splashFactory, 92 | onTap: () { 93 | Navigator.pop(context); 94 | }, 95 | child: Container( 96 | width: double.infinity, 97 | padding: EdgeInsets.only(left: 16), 98 | alignment: Alignment.centerLeft, 99 | child: Container( 100 | child: SvgPicture.asset( 101 | 'assets/images/icon_back.svg', 102 | ), 103 | ), 104 | ), 105 | ), 106 | ), 107 | Spacer( 108 | flex: 60, 109 | ), 110 | Expanded( 111 | flex: 20, 112 | child: InkResponse( 113 | splashFactory: InkRipple.splashFactory, 114 | onTap: () => null, 115 | child: Container( 116 | width: double.infinity, 117 | alignment: Alignment.centerRight, 118 | padding: EdgeInsets.only(right: 16), 119 | child: Padding( 120 | padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 0), 121 | child: SvgPicture.asset('assets/images/icon_notification_fill.svg'), 122 | ), 123 | ), 124 | ), 125 | ), 126 | ], 127 | ), 128 | ), 129 | ), 130 | ) 131 | ], 132 | ), 133 | ), 134 | Expanded( 135 | flex: 10, 136 | child: Container( 137 | width: double.infinity, 138 | height: double.infinity, 139 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 140 | alignment: Alignment.centerLeft, 141 | child: FractionallySizedBox( 142 | heightFactor: 0.7, 143 | widthFactor: 0.9, 144 | child: currentEvent == null 145 | ? Container() 146 | : Column( 147 | children: [ 148 | Expanded( 149 | flex: 50, 150 | child: Container( 151 | width: double.infinity, 152 | child: FittedBox( 153 | fit: BoxFit.scaleDown, 154 | alignment: Alignment.centerLeft, 155 | child: Text( 156 | currentEvent == null ? '' : currentEvent.name, 157 | style: Theme.of(context).textTheme.headline3, 158 | ), 159 | ), 160 | ), 161 | ), 162 | Expanded( 163 | flex: 50, 164 | child: Container( 165 | width: double.infinity, 166 | alignment: Alignment.centerLeft, 167 | child: FractionallySizedBox( 168 | widthFactor: 0.6, 169 | child: Row( 170 | children: [ 171 | Flexible( 172 | flex: 20, 173 | child: SvgPicture.asset('assets/images/icon_localisation.svg'), 174 | ), 175 | Spacer( 176 | flex: 5, 177 | ), 178 | Flexible( 179 | flex: 75, 180 | child: FittedBox( 181 | fit: BoxFit.scaleDown, 182 | child: Text( 183 | currentEvent == null ? '' : currentEvent.address, 184 | style: Theme.of(context).textTheme.bodyText2, 185 | ), 186 | ), 187 | ), 188 | ], 189 | ), 190 | ), 191 | ), 192 | ), 193 | ], 194 | ), 195 | ), 196 | ), 197 | ), 198 | Expanded( 199 | flex: 15, 200 | child: Container( 201 | width: double.infinity, 202 | height: double.infinity, 203 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 204 | alignment: Alignment.centerLeft, 205 | child: FractionallySizedBox( 206 | heightFactor: 0.8, 207 | child: Column( 208 | children: [ 209 | Flexible( 210 | flex: 50, 211 | child: Container( 212 | width: double.infinity, 213 | margin: EdgeInsets.only(bottom: 16), 214 | child: FittedBox( 215 | fit: BoxFit.scaleDown, 216 | alignment: Alignment.centerLeft, 217 | child: Text( 218 | 'Paricipants', 219 | style: Theme.of(context).textTheme.headline5, 220 | ), 221 | ), 222 | ), 223 | ), 224 | Flexible( 225 | flex: 50, 226 | child: Container( 227 | width: double.infinity, 228 | height: double.infinity, 229 | alignment: Alignment.centerLeft, 230 | child: ListView.builder( 231 | scrollDirection: Axis.horizontal, 232 | itemCount: currentUsers.length + 1, 233 | itemBuilder: (context, index) { 234 | int length = currentUsers.length + 1; 235 | User currentUser; 236 | print('event index== list index==' + index.toString() + " __ " + length.toString()); 237 | if (index < length - 1) { 238 | currentUser = currentUsers[index]; 239 | } else { 240 | currentUser = null; 241 | } 242 | 243 | return ParticipantItem( 244 | currentUser: currentUser, 245 | index: index, 246 | length: length, 247 | ); 248 | }, 249 | ), 250 | ), 251 | ), 252 | ], 253 | ), 254 | ), 255 | ), 256 | ), 257 | Expanded( 258 | flex: 5, 259 | child: currentEvent == null 260 | ? Container() 261 | : Container( 262 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 263 | child: Row( 264 | children: [ 265 | Flexible( 266 | flex: 50, 267 | child: Container( 268 | child: Row( 269 | children: [ 270 | Flexible( 271 | flex: 10, 272 | child: SvgPicture.asset('assets/images/icon_time.svg'), 273 | ), 274 | Spacer( 275 | flex: 5, 276 | ), 277 | Flexible( 278 | flex: 85, 279 | child: Text( 280 | DateFormat.jm().format(currentEvent.date) + ' - ' + DateFormat.jm().format(currentEvent.date.add(Duration(hours: 2))), 281 | style: Theme.of(context).textTheme.bodyText1, 282 | ), 283 | ), 284 | ], 285 | ), 286 | ), 287 | ), 288 | Flexible( 289 | flex: 40, 290 | child: Container( 291 | child: Row( 292 | mainAxisAlignment: MainAxisAlignment.end, 293 | children: [ 294 | Flexible( 295 | flex: 10, 296 | child: SvgPicture.asset( 297 | 'assets/images/icon_calendar.svg', 298 | color: Theme.of(context).primaryColor, 299 | ), 300 | ), 301 | Spacer( 302 | flex: 5, 303 | ), 304 | Flexible( 305 | flex: 85, 306 | child: Text( 307 | DateFormat.yMMMd().format(currentEvent.date), 308 | style: Theme.of(context).textTheme.bodyText1, 309 | ), 310 | ), 311 | ], 312 | ), 313 | ), 314 | ), 315 | Spacer( 316 | flex: 10, 317 | ) 318 | ], 319 | ), 320 | ), 321 | ), 322 | Expanded( 323 | flex: 20, 324 | child: currentEvent == null 325 | ? Container() 326 | : Container( 327 | child: Container( 328 | height: double.infinity, 329 | alignment: Alignment.centerLeft, 330 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 331 | child: SingleChildScrollView( 332 | child: Text( 333 | currentEvent.description, 334 | style: Theme.of(context).textTheme.bodyText2, 335 | ), 336 | ), 337 | ), 338 | ), 339 | ), 340 | Container( 341 | height: 55, 342 | width: double.infinity, 343 | margin: EdgeInsets.fromLTRB(16, 0, 16, 16), 344 | child: Card( 345 | elevation: 0, 346 | margin: EdgeInsets.all(0), 347 | clipBehavior: Clip.antiAlias, 348 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(AppTheme.radius)), 349 | color: Theme.of(context).primaryColor, 350 | child: currentEvent == null 351 | ? LoadingProgress( 352 | color: Colors.white, 353 | ) 354 | : Stack( 355 | children: [ 356 | Container( 357 | width: double.infinity, 358 | height: double.infinity, 359 | child: FractionallySizedBox( 360 | widthFactor: 0.45, 361 | heightFactor: 0.38, 362 | child: Container( 363 | child: Row( 364 | children: [ 365 | Expanded( 366 | flex: 60, 367 | child: FittedBox( 368 | fit: BoxFit.fitHeight, 369 | child: Text( 370 | 'Buy Ticket', 371 | style: Theme.of(context).textTheme.headline4.copyWith(color: Colors.white), 372 | textAlign: TextAlign.start, 373 | ), 374 | ), 375 | ), 376 | Expanded( 377 | flex: 40, 378 | child: FittedBox( 379 | fit: BoxFit.fitHeight, 380 | child: Text( 381 | '\$' + currentEvent.price.toInt().toString(), 382 | style: Theme.of(context).textTheme.headline4.copyWith(color: Colors.white), 383 | textAlign: TextAlign.start, 384 | ), 385 | ), 386 | ), 387 | ], 388 | ), 389 | ), 390 | ), 391 | ), 392 | Positioned.fill( 393 | child: Material( 394 | color: Colors.transparent, 395 | child: InkWell( 396 | splashFactory: InkRipple.splashFactory, 397 | onTap: () => null, 398 | ), 399 | ), 400 | ), 401 | ], 402 | )), 403 | ), 404 | ], 405 | ), 406 | ), 407 | ); 408 | } 409 | } 410 | 411 | class LoadingProgress extends StatelessWidget { 412 | const LoadingProgress({ 413 | Key key, 414 | this.color, 415 | }) : super(key: key); 416 | 417 | final Color color; 418 | 419 | @override 420 | Widget build(BuildContext context) { 421 | return Center( 422 | child: CircularProgressIndicator( 423 | valueColor: color == null ? null : new AlwaysStoppedAnimation(color), 424 | ), 425 | ); 426 | } 427 | } 428 | 429 | class ParticipantItem extends StatelessWidget { 430 | const ParticipantItem({ 431 | Key key, 432 | @required this.currentUser, 433 | @required this.index, 434 | @required this.length, 435 | }) : super(key: key); 436 | 437 | final User currentUser; 438 | final int index; 439 | final int length; 440 | 441 | @override 442 | Widget build(BuildContext context) { 443 | print('event index==' + index.toString() + ' length==' + length.toString()); 444 | if (length>1 && index == 0) { 445 | return Container( 446 | height: double.infinity, 447 | child: AspectRatio( 448 | aspectRatio: 1 / 1, 449 | child: CachedNetworkImage( 450 | imageUrl: currentUser.imageUrl, 451 | ), 452 | ), 453 | ); 454 | } else if (index < length - 1) { 455 | return Container( 456 | height: double.infinity, 457 | child: AspectRatio( 458 | aspectRatio: 1 / 1, 459 | child: AlignPositioned( 460 | moveByChildWidth: index * (-0.2), 461 | child: CachedNetworkImage( 462 | imageUrl: currentUser.imageUrl, 463 | ), 464 | ), 465 | ), 466 | ); 467 | } else { 468 | return Container( 469 | height: double.infinity, 470 | child: AspectRatio( 471 | aspectRatio: 1 / 1, 472 | child: AlignPositioned( 473 | moveByChildWidth: index * (-0.2), 474 | child: Padding( 475 | padding: const EdgeInsets.all(2.0), 476 | child: DottedBorder( 477 | color: Colors.black, 478 | borderType: BorderType.Circle, 479 | strokeWidth: 3, 480 | dashPattern: [4], 481 | padding: EdgeInsets.all(0), 482 | child: ClipRRect( 483 | borderRadius: BorderRadius.circular(100), 484 | child: Container( 485 | width: double.infinity, 486 | height: double.infinity, 487 | color: Color(0xFFE8F2F9), 488 | padding: EdgeInsets.all(14), 489 | child: SvgPicture.asset('assets/images/icon_add.svg'), 490 | ), 491 | ), 492 | ), 493 | ), 494 | ), 495 | ), 496 | ); 497 | } 498 | } 499 | } 500 | -------------------------------------------------------------------------------- /lib/pages/event_home_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:align_positioned/align_positioned.dart'; 2 | import 'package:cached_network_image/cached_network_image.dart'; 3 | import 'package:event_app/models/event.dart'; 4 | import 'package:event_app/pages/event_detail_screen.dart'; 5 | import 'package:event_app/services/EventService.dart'; 6 | import 'package:event_app/style.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter/rendering.dart'; 9 | import 'package:flutter/services.dart'; 10 | import 'package:flutter_svg/flutter_svg.dart'; 11 | import 'package:intl/intl.dart'; 12 | import 'package:provider/provider.dart'; 13 | 14 | class EventHomeScreen extends StatefulWidget { 15 | static final String routeName = '/event-home'; 16 | 17 | @override 18 | _EventHomeScreenState createState() => _EventHomeScreenState(); 19 | } 20 | 21 | class _EventHomeScreenState extends State { 22 | List events = []; 23 | List dates = []; 24 | var _isInit = true; 25 | 26 | @override 27 | void initState() { 28 | // TODO: implement initState 29 | super.initState(); 30 | } 31 | 32 | @override 33 | void didChangeDependencies() { 34 | // TODO: implement didChangeDependencies 35 | if (_isInit) { 36 | EventService eventService = Provider.of(context); 37 | eventService.findAll().then((value) { 38 | setState(() { 39 | events = value; 40 | events = value.where((element) => element.near == true).toList(); 41 | }); 42 | }); 43 | setState(() { 44 | dates = eventService.allDates(); 45 | }); 46 | } 47 | _isInit = false; 48 | super.didChangeDependencies(); 49 | } 50 | 51 | void onSelectedDate(DateTime currentDateTime) { 52 | setState(() { 53 | selectedDateTime = currentDateTime; 54 | }); 55 | EventService eventService = Provider.of(context); 56 | eventService.findAll().then((value) { 57 | setState(() { 58 | events = value; 59 | events = value.where((element) => element.near == true && isSameDay(element.date)).toList(); 60 | }); 61 | }); 62 | } 63 | 64 | @override 65 | Widget build(BuildContext context) { 66 | SystemChrome.setSystemUIOverlayStyle(AppTheme.systemUiLight); 67 | return Scaffold( 68 | body: SafeArea( 69 | child: Container( 70 | child: Column( 71 | children: [ 72 | Expanded( 73 | flex: 10, 74 | child: Container( 75 | width: double.infinity, 76 | height: double.infinity, 77 | child: Row( 78 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 79 | children: [ 80 | Flexible( 81 | flex: 20, 82 | child: InkResponse( 83 | splashFactory: InkRipple.splashFactory, 84 | onTap: () => null, 85 | child: Container( 86 | width: double.infinity, 87 | alignment: Alignment.centerLeft, 88 | padding: EdgeInsets.only(left: 16), 89 | child: SvgPicture.asset('assets/images/menu.svg'), 90 | ), 91 | ), 92 | ), 93 | Flexible( 94 | flex: 60, 95 | child: Padding( 96 | padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 0), 97 | child: FittedBox( 98 | child: Text( 99 | 'Event', 100 | style: Theme.of(context).textTheme.headline5, 101 | textAlign: TextAlign.center, 102 | ), 103 | ), 104 | ), 105 | ), 106 | Flexible( 107 | flex: 20, 108 | child: InkResponse( 109 | splashFactory: InkRipple.splashFactory, 110 | onTap: () => null, 111 | child: Container( 112 | width: double.infinity, 113 | alignment: Alignment.centerRight, 114 | padding: EdgeInsets.only(right: 16), 115 | child: Padding( 116 | padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 0), 117 | child: SvgPicture.asset('assets/images/icon_notification_fill.svg'), 118 | ), 119 | ), 120 | ), 121 | ), 122 | ], 123 | ), 124 | ), 125 | ), 126 | Expanded( 127 | flex: 8, 128 | child: Container( 129 | width: double.infinity, 130 | height: double.infinity, 131 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 132 | child: FittedBox( 133 | alignment: Alignment.centerLeft, 134 | child: Text( 135 | 'Discover with \nupcoming events.', 136 | style: Theme.of(context).textTheme.headline3, 137 | )), 138 | ), 139 | ), 140 | Expanded( 141 | flex: 15, 142 | child: Container( 143 | width: double.infinity, 144 | height: double.infinity, 145 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 0), 146 | child: FractionallySizedBox( 147 | heightFactor: 0.6, 148 | child: ListView.builder( 149 | padding: EdgeInsets.only(left: 16), 150 | scrollDirection: Axis.horizontal, 151 | itemCount: dates.length, 152 | itemBuilder: (context, index) { 153 | DateTime currentDateTime = dates[index]; 154 | return DateItem( 155 | currentDateTime: currentDateTime, 156 | onSelectDateTime: ()=> onSelectedDate(currentDateTime), 157 | ); 158 | }, 159 | ), 160 | ), 161 | ), 162 | ), 163 | Expanded( 164 | flex: 57, 165 | child: Container( 166 | width: double.infinity, 167 | height: double.infinity, 168 | child: Column( 169 | children: [ 170 | Container( 171 | height: 30, 172 | width: double.infinity, 173 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 174 | child: Row( 175 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 176 | crossAxisAlignment: CrossAxisAlignment.center, 177 | children: [ 178 | Flexible( 179 | flex: 80, 180 | child: FittedBox( 181 | fit: BoxFit.scaleDown, 182 | child: Text( 183 | 'Near', 184 | style: Theme.of(context).textTheme.headline3, 185 | ), 186 | ), 187 | ), 188 | Flexible( 189 | flex: 20, 190 | child: FractionallySizedBox( 191 | heightFactor: 0.7, 192 | child: FittedBox( 193 | fit: BoxFit.scaleDown, 194 | child: Text( 195 | 'See all', 196 | style: Theme.of(context).textTheme.bodyText2, 197 | ), 198 | ), 199 | ), 200 | ), 201 | ], 202 | ), 203 | ), 204 | Expanded( 205 | flex: 100, 206 | child: Container( 207 | width: double.infinity, 208 | height: double.infinity, 209 | margin: EdgeInsets.only(top: 16), 210 | child: ListView.builder( 211 | padding: EdgeInsets.only(left: 16, right: 16, top: 0), 212 | itemCount: events.length, 213 | itemBuilder: (context, index) { 214 | print('event home==' + events.length.toString()); 215 | Event currentEvent = events[index]; 216 | return NearEventItem(currentEvent: currentEvent); 217 | }, 218 | ), 219 | ), 220 | ) 221 | ], 222 | ), 223 | ), 224 | ), 225 | Expanded(flex: 10,child: Container( 226 | width: double.infinity, 227 | height: double.infinity, 228 | margin: EdgeInsets.fromLTRB(16, 0, 16, 16), 229 | child: Container( 230 | width: double.infinity, 231 | height: double.infinity, 232 | child: Row( 233 | children: [ 234 | Expanded( 235 | flex: 25, 236 | child: Stack( 237 | children: [ 238 | Container( 239 | alignment: Alignment.center, 240 | child: SvgPicture.asset('assets/images/icon_home_fill.svg'), 241 | ), 242 | Positioned.fill( 243 | child: Material( 244 | color: Colors.transparent, 245 | child: InkWell( 246 | splashFactory: InkRipple.splashFactory, 247 | onTap: () => null, 248 | ), 249 | ), 250 | ), 251 | ], 252 | ), 253 | ), 254 | Expanded( 255 | flex: 25, 256 | child: Stack( 257 | children: [ 258 | Container( 259 | alignment: Alignment.center, 260 | child: SvgPicture.asset('assets/images/icon_calendar.svg'), 261 | ), 262 | Positioned.fill( 263 | child: Material( 264 | color: Colors.transparent, 265 | child: InkWell( 266 | splashFactory: InkRipple.splashFactory, 267 | onTap: () => null, 268 | ), 269 | ), 270 | ), 271 | ], 272 | ), 273 | ), 274 | Expanded( 275 | flex: 25, 276 | child: Stack( 277 | children: [ 278 | Container( 279 | alignment: Alignment.center, 280 | child: SvgPicture.asset('assets/images/icon_ticket.svg'), 281 | ), 282 | Positioned.fill( 283 | child: Material( 284 | color: Colors.transparent, 285 | child: InkWell( 286 | splashFactory: InkRipple.splashFactory, 287 | onTap: () => null, 288 | ), 289 | ), 290 | ), 291 | ], 292 | ), 293 | ), 294 | Expanded( 295 | flex: 25, 296 | child: Stack( 297 | children: [ 298 | Container( 299 | alignment: Alignment.center, 300 | child: SvgPicture.asset('assets/images/icon_settings.svg'), 301 | ), 302 | Positioned.fill( 303 | child: Material( 304 | color: Colors.transparent, 305 | child: InkWell( 306 | splashFactory: InkRipple.splashFactory, 307 | onTap: () => null, 308 | ), 309 | ), 310 | ), 311 | ], 312 | ), 313 | ), 314 | ], 315 | ), 316 | ), 317 | ),) 318 | ], 319 | ), 320 | ), 321 | ), 322 | ); 323 | } 324 | } 325 | 326 | DateTime selectedDateTime; 327 | 328 | class DateItem extends StatelessWidget { 329 | const DateItem({ 330 | Key key, 331 | @required this.currentDateTime, 332 | @required this.onSelectDateTime, 333 | }) : super(key: key); 334 | 335 | final DateTime currentDateTime; 336 | final Function onSelectDateTime; 337 | 338 | @override 339 | Widget build(BuildContext context) { 340 | return Container( 341 | padding: EdgeInsets.only(right: 8), 342 | child: AspectRatio( 343 | aspectRatio: 4 / 5, 344 | child: Card( 345 | elevation: 0, 346 | color: isSameDay(currentDateTime) ? Theme.of(context).primaryColor : Colors.white, 347 | margin: EdgeInsets.zero, 348 | clipBehavior: Clip.antiAlias, 349 | shape: RoundedRectangleBorder( 350 | borderRadius: BorderRadius.circular(16), 351 | side: isSameDay(currentDateTime) 352 | ? BorderSide.none 353 | : BorderSide( 354 | width: 1.5, 355 | color: AppTheme.borderCard, 356 | ), 357 | ), 358 | child: Stack( 359 | children: [ 360 | Container( 361 | width: double.infinity, 362 | height: double.infinity, 363 | child: FractionallySizedBox( 364 | heightFactor: 0.7, 365 | child: Column( 366 | children: [ 367 | Expanded( 368 | flex: 50, 369 | child: FittedBox( 370 | fit: BoxFit.scaleDown, 371 | child: Text( 372 | DateFormat.E().format(currentDateTime), 373 | style: isSameDay(currentDateTime) ? Theme.of(context).textTheme.bodyText1.copyWith(color: Colors.white) : Theme.of(context).textTheme.bodyText1, 374 | ), 375 | ), 376 | ), 377 | Expanded( 378 | flex: 50, 379 | child: FittedBox( 380 | fit: BoxFit.scaleDown, 381 | child: Text( 382 | currentDateTime.day.toString(), 383 | style: isSameDay(currentDateTime) ? Theme.of(context).textTheme.headline4.copyWith(color: Colors.white) : Theme.of(context).textTheme.headline4, 384 | ), 385 | ), 386 | ), 387 | ], 388 | ), 389 | ), 390 | ), 391 | Positioned.fill( 392 | child: Material( 393 | color: Colors.transparent, 394 | child: InkWell( 395 | splashFactory: InkRipple.splashFactory, 396 | onTap: onSelectDateTime, 397 | ), 398 | ), 399 | ), 400 | ], 401 | ), 402 | ), 403 | ), 404 | ); 405 | } 406 | } 407 | 408 | bool isSameDay(DateTime dateTime) { 409 | if(selectedDateTime==null){ 410 | return false; 411 | } 412 | return selectedDateTime.year == dateTime.year && selectedDateTime.month == dateTime.month && selectedDateTime.day == dateTime.day; 413 | } 414 | 415 | class NearEventItem extends StatelessWidget { 416 | const NearEventItem({ 417 | Key key, 418 | @required this.currentEvent, 419 | }) : super(key: key); 420 | 421 | final Event currentEvent; 422 | 423 | @override 424 | Widget build(BuildContext context) { 425 | return Padding( 426 | padding: const EdgeInsets.only(bottom: 8), 427 | child: Card( 428 | elevation: 0, 429 | clipBehavior: Clip.antiAlias, 430 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)), 431 | child: Container( 432 | width: double.infinity, 433 | height: 120, 434 | child: Stack( 435 | children: [ 436 | Row( 437 | children: [ 438 | AspectRatio( 439 | aspectRatio: 4 / 5, 440 | child: Card( 441 | elevation: 0, 442 | clipBehavior: Clip.antiAlias, 443 | margin: EdgeInsets.all(0), 444 | shape: RoundedRectangleBorder( 445 | borderRadius: BorderRadius.circular(AppTheme.radius), 446 | ), 447 | child: Container( 448 | width: double.infinity, 449 | height: double.infinity, 450 | child: CachedNetworkImage( 451 | imageUrl: currentEvent.imageUrl, 452 | fit: BoxFit.cover, 453 | ), 454 | ), 455 | ), 456 | ), 457 | Spacer( 458 | flex: 5, 459 | ), 460 | Expanded( 461 | flex: 65, 462 | child: Container( 463 | width: double.infinity, 464 | height: double.infinity, 465 | child: Container( 466 | width: double.infinity, 467 | height: double.infinity, 468 | child: Column( 469 | children: [ 470 | Spacer( 471 | flex: 10, 472 | ), 473 | Expanded( 474 | flex: 20, 475 | child: Container( 476 | child: Container( 477 | child: Container( 478 | width: double.infinity, 479 | height: double.infinity, 480 | alignment: Alignment.centerLeft, 481 | child: FittedBox( 482 | fit: BoxFit.scaleDown, 483 | child: Text( 484 | currentEvent.name, 485 | style: Theme.of(context).textTheme.headline5, 486 | ), 487 | ), 488 | ), 489 | ), 490 | ), 491 | ), 492 | Expanded( 493 | flex: 30, 494 | child: Container( 495 | width: double.infinity, 496 | height: double.infinity, 497 | alignment: Alignment.centerLeft, 498 | child: FractionallySizedBox( 499 | widthFactor: 0.5, 500 | heightFactor: 1, 501 | child: Text( 502 | currentEvent.address, 503 | maxLines: 2, 504 | style: Theme.of(context).textTheme.bodyText2, 505 | ), 506 | ), 507 | ), 508 | ), 509 | Spacer( 510 | flex: 5, 511 | ), 512 | Expanded( 513 | flex: 25, 514 | child: Container( 515 | child: Container( 516 | width: double.infinity, 517 | height: double.infinity, 518 | alignment: Alignment.centerLeft, 519 | child: FittedBox( 520 | fit: BoxFit.scaleDown, 521 | child: Text( 522 | DateFormat.jm().format(currentEvent.date) + ' - ' + DateFormat.jm().format(currentEvent.date.add(Duration(hours: 2))), 523 | style: Theme.of(context).textTheme.bodyText1, 524 | ), 525 | ), 526 | ), 527 | ), 528 | ), 529 | Spacer( 530 | flex: 10, 531 | ), 532 | ], 533 | ), 534 | ), 535 | ), 536 | ) 537 | ], 538 | ), 539 | Positioned.fill( 540 | child: Material( 541 | color: Colors.transparent, 542 | child: InkWell( 543 | splashFactory: InkRipple.splashFactory, 544 | splashColor: AppTheme.shadow.withOpacity(0.1), 545 | onTap: () { 546 | Navigator.pushNamed(context, EventDetailScreen.routeName,arguments: currentEvent.id); 547 | }, 548 | ), 549 | ), 550 | ), 551 | ], 552 | ), 553 | ), 554 | ), 555 | ); 556 | } 557 | } 558 | -------------------------------------------------------------------------------- /lib/pages/splash_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:event_app/pages/home_screen.dart'; 2 | import 'package:event_app/style.dart'; 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter/services.dart'; 6 | import 'package:flutter_svg/flutter_svg.dart'; 7 | 8 | class SplashScreen extends StatelessWidget { 9 | static final String routeName = 'splash'; 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | resizeToAvoidBottomInset: false, 15 | body: SafeArea( 16 | child: Container( 17 | width: double.infinity, 18 | height: double.infinity, 19 | child: Stack( 20 | children: [ 21 | Container( 22 | width: double.infinity, 23 | height: double.infinity, 24 | child: Image.asset( 25 | 'assets/images/splash_bg.png', 26 | fit: BoxFit.cover, 27 | ), 28 | ), 29 | Container( 30 | width: double.infinity, 31 | height: double.infinity, 32 | child: FractionallySizedBox( 33 | widthFactor: 1, 34 | heightFactor: 0.6, 35 | child: Container( 36 | height: double.infinity, 37 | width: double.infinity, 38 | margin: EdgeInsets.symmetric(vertical: 0, horizontal: 16), 39 | child: Column( 40 | children: [ 41 | Expanded( 42 | flex: 20, 43 | child: Container( 44 | height: double.infinity, 45 | width: double.infinity, 46 | alignment: Alignment.centerLeft, 47 | child: Column( 48 | crossAxisAlignment: CrossAxisAlignment.start, 49 | mainAxisAlignment: MainAxisAlignment.end, 50 | children: [ 51 | Flexible( 52 | flex: 50, 53 | child: AspectRatio( 54 | aspectRatio: 1 / 1, 55 | child: Card( 56 | color: Colors.white, 57 | elevation: 0, 58 | margin: EdgeInsets.all(0), 59 | shape: RoundedRectangleBorder( 60 | borderRadius: BorderRadius.circular( 61 | AppTheme.radius)), 62 | child: Container( 63 | width: double.infinity, 64 | height: double.infinity, 65 | child: SvgPicture.asset( 66 | 'assets/images/icon_logo.svg'), 67 | ), 68 | ), 69 | ), 70 | ), 71 | Flexible( 72 | flex: 50, 73 | child: FittedBox( 74 | fit: BoxFit.scaleDown, 75 | child: Text( 76 | 'eventis', 77 | style: Theme.of(context) 78 | .textTheme 79 | .headline1 80 | .copyWith( 81 | fontSize: 36, 82 | color: Colors.white), 83 | ), 84 | ), 85 | ) 86 | ], 87 | ), 88 | ), 89 | ), 90 | Expanded( 91 | flex: 50, 92 | child: Container( 93 | width: double.infinity, 94 | height: double.infinity, 95 | child: Column( 96 | mainAxisAlignment: MainAxisAlignment.center, 97 | crossAxisAlignment: CrossAxisAlignment.start, 98 | children: [ 99 | Flexible( 100 | flex: 40, 101 | child: Text( 102 | 'Create & find \nevents in one place!', 103 | style: Theme.of(context) 104 | .textTheme 105 | .headline2 106 | .copyWith(color: Colors.white), 107 | ), 108 | ), 109 | Flexible(flex: 10, child: Container()), 110 | Flexible( 111 | flex: 40, 112 | child: Text( 113 | 'Lorem ipsum dolor sit amet, consetetur sadips elitr, sed diam nonumy eirmod tempor invidut labore et dolore magna.', 114 | style: Theme.of(context) 115 | .textTheme 116 | .bodyText1 117 | .copyWith(color: Colors.white), 118 | ), 119 | ), 120 | ], 121 | ), 122 | ), 123 | ), 124 | Container( 125 | height: 55, 126 | width: double.infinity, 127 | child: Card( 128 | elevation: 0, 129 | margin: EdgeInsets.all(0), 130 | clipBehavior: Clip.antiAlias, 131 | shape: RoundedRectangleBorder( 132 | borderRadius: 133 | BorderRadius.circular(AppTheme.radius)), 134 | color: Colors.white, 135 | child: Stack( 136 | children: [ 137 | Container( 138 | width: double.infinity, 139 | height: double.infinity, 140 | child: FractionallySizedBox( 141 | widthFactor: 0.45, 142 | heightFactor: 0.38, 143 | child: Container( 144 | child: Row( 145 | children: [ 146 | Expanded( 147 | flex: 60, 148 | child: FittedBox( 149 | fit: BoxFit.fitHeight, 150 | child: Text( 151 | 'Get Started', 152 | style: Theme.of(context) 153 | .textTheme 154 | .headline4, 155 | textAlign: TextAlign.start, 156 | ), 157 | ), 158 | ), 159 | Expanded( 160 | flex: 10, 161 | child: Container(), 162 | ), 163 | Expanded( 164 | flex: 30, 165 | child: Container( 166 | alignment: 167 | Alignment.centerRight, 168 | child: SvgPicture.asset( 169 | 'assets/images/icon_next.svg', 170 | ), 171 | ), 172 | ) 173 | ], 174 | ), 175 | ), 176 | ), 177 | ), 178 | Positioned.fill( 179 | child: Material( 180 | color: Colors.transparent, 181 | child: InkWell( 182 | splashFactory: InkRipple.splashFactory, 183 | onTap: () { 184 | Navigator.pushNamed( 185 | context, HomeScreen.routeName) 186 | .then((value) { 187 | SystemChrome 188 | .setSystemUIOverlayStyle( 189 | AppTheme.systemUiDark); 190 | }); 191 | }, 192 | ), 193 | ), 194 | ), 195 | ], 196 | )), 197 | ), 198 | ], 199 | ), 200 | ), 201 | ), 202 | ) 203 | ], 204 | ), 205 | ), 206 | ), 207 | ); 208 | } 209 | } 210 | -------------------------------------------------------------------------------- /lib/services/EventService.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:event_app/constant.dart'; 4 | import 'package:event_app/models/event.dart'; 5 | import 'package:flutter/cupertino.dart'; 6 | import 'package:http/http.dart' as http; 7 | 8 | class EventService extends ChangeNotifier { 9 | List items = []; 10 | List dates = []; 11 | 12 | Future> findAll() async { 13 | var response = await http.get(Constant.REST_URL + '/event/'); 14 | 15 | if (response.statusCode == 200) { 16 | List data = json.decode(response.body); 17 | items = data.map((e) => Event.fromJson(e)).toList(); 18 | return items; 19 | } else { 20 | throw Exception('No Data Found'); 21 | } 22 | } 23 | 24 | Future firstNear() async { 25 | if (items.isEmpty) { 26 | await findAll(); 27 | } 28 | Event latestEventNear = items.firstWhere((element) => element.near == true); 29 | return latestEventNear; 30 | } 31 | 32 | Future findById(int id) async { 33 | print('id==findById' + id.toString()); 34 | 35 | var response = await http.get(Constant.REST_URL + '/event/' + id.toString()); 36 | 37 | if (response.statusCode == 200) { 38 | dynamic data = json.decode(response.body); 39 | Event currentEvent = Event.fromJson(data); 40 | print('id==findById currentEvent'); 41 | return currentEvent; 42 | } else { 43 | print('id==findById error'); 44 | throw Exception('No Data Found'); 45 | } 46 | } 47 | 48 | Future add(Event event) async { 49 | var response = await http.post(Constant.REST_URL + '/event/', headers: {'Content-Type': 'application/json'}, body: json.encode(event.toJson())); 50 | 51 | if (response.statusCode == 200) { 52 | dynamic data = json.decode(response.body); 53 | Event newEvent = Event.fromJson(data); 54 | return newEvent; 55 | } else { 56 | throw Exception('No Data Found'); 57 | } 58 | } 59 | 60 | Future update(int id, Event event) async { 61 | var response = await http.put(Constant.REST_URL + '/event/' + id.toString(), headers: {'Content-Type': 'application/json'}, body: json.encode(event.toJson())); 62 | 63 | if (response.statusCode == 200) { 64 | dynamic data = json.decode(response.body); 65 | Event newEvent = Event.fromJson(data); 66 | return newEvent; 67 | } else { 68 | throw Exception('No Data Found'); 69 | } 70 | } 71 | 72 | Future deleteById(int id) async { 73 | var response = await http.delete( 74 | Constant.REST_URL + '/event/' + id.toString(), 75 | headers: {'Content-Type': 'application/json'}, 76 | ); 77 | 78 | if (response.statusCode == 200) { 79 | int data = json.decode(response.body); 80 | return data; 81 | } else { 82 | throw Exception('No Data Found'); 83 | } 84 | } 85 | 86 | List allDates() { 87 | DateTime dateTime = DateTime.now(); 88 | int numberDays = 40; 89 | if (dates == null || dates.isEmpty) { 90 | for (int i = 0; i < numberDays; i++) { 91 | DateTime currentDateTime = dateTime.add(Duration(days: i - 2)); 92 | dates.add(currentDateTime); 93 | } 94 | } 95 | return dates; 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /lib/services/TicketService.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:event_app/constant.dart'; 4 | import 'package:event_app/models/ticket.dart'; 5 | import 'package:flutter/cupertino.dart'; 6 | import 'package:http/http.dart' as http; 7 | 8 | class TicketService extends ChangeNotifier { 9 | List items = []; 10 | 11 | Future> findAll() async { 12 | var response = await http.get(Constant.REST_URL + '/ticket/'); 13 | 14 | if (response.statusCode == 200) { 15 | List data = json.decode(response.body); 16 | items = data.map((e) => Ticket.fromJson(e)).toList(); 17 | return items; 18 | } else { 19 | throw Exception('No Data Found'); 20 | } 21 | } 22 | 23 | Future findById(int id) async { 24 | var response = await http.get(Constant.REST_URL + '/ticket/' + id.toString()); 25 | 26 | if (response.statusCode == 200) { 27 | dynamic data = json.decode(response.body); 28 | Ticket currentTicket = Ticket.fromJson(data); 29 | return currentTicket; 30 | } else { 31 | throw Exception('No Data Found'); 32 | } 33 | } 34 | 35 | Future add(Ticket ticket) async { 36 | var response = await http.post(Constant.REST_URL + '/ticket/', 37 | headers: {'Content-Type': 'application/json'}, 38 | body: json.encode(ticket.toJson())); 39 | 40 | if (response.statusCode == 200) { 41 | dynamic data = json.decode(response.body); 42 | Ticket newTicket = Ticket.fromJson(data); 43 | return newTicket; 44 | } else { 45 | throw Exception('No Data Found'); 46 | } 47 | } 48 | 49 | Future update(int id, Ticket ticket) async { 50 | var response = await http.put(Constant.REST_URL + '/ticket/' + id.toString(), 51 | headers: {'Content-Type': 'application/json'}, 52 | body: json.encode(ticket.toJson())); 53 | 54 | if (response.statusCode == 200) { 55 | dynamic data = json.decode(response.body); 56 | Ticket newTicket = Ticket.fromJson(data); 57 | return newTicket; 58 | } else { 59 | throw Exception('No Data Found'); 60 | } 61 | } 62 | 63 | Future deleteById(int id) async { 64 | var response = await http.delete( 65 | Constant.REST_URL + '/ticket/' + id.toString(), 66 | headers: {'Content-Type': 'application/json'}, 67 | ); 68 | 69 | if (response.statusCode == 200) { 70 | int data = json.decode(response.body); 71 | return data; 72 | } else { 73 | throw Exception('No Data Found'); 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/services/UserEventDetailService.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:event_app/constant.dart'; 4 | import 'package:event_app/models/event.dart'; 5 | import 'package:event_app/models/user.dart'; 6 | import 'package:event_app/models/user_event_detail.dart'; 7 | import 'package:flutter/cupertino.dart'; 8 | import 'package:http/http.dart' as http; 9 | 10 | class UserEventDetailService extends ChangeNotifier { 11 | List items = []; 12 | 13 | Future> findAll() async { 14 | var response = await http.get(Constant.REST_URL + '/userEventDetail/'); 15 | 16 | if (response.statusCode == 200) { 17 | List data = json.decode(response.body); 18 | items = data.map((e) => UserEventDetail.fromJson(e)).toList(); 19 | return items; 20 | } else { 21 | throw Exception('No Data Found'); 22 | } 23 | } 24 | 25 | Future> findAllByEvent_Id(int eventId) async { 26 | var response = await http.get( 27 | Constant.REST_URL + '/userEventDetail/eventId/' + eventId.toString()); 28 | 29 | if (response.statusCode == 200) { 30 | List data = json.decode(response.body); 31 | List users = 32 | data.map((e) => UserEventDetail.fromJson(e).user).toList(); 33 | return users; 34 | } else { 35 | throw Exception('No Data Found'); 36 | } 37 | } 38 | 39 | Future> findAllByUser_Id(int userId) async { 40 | var response = await http.get( 41 | Constant.REST_URL + '/userEventDetail/userId/' + userId.toString()); 42 | 43 | if (response.statusCode == 200) { 44 | List data = json.decode(response.body); 45 | List events = 46 | data.map((e) => UserEventDetail.fromJson(e).event).toList(); 47 | return events; 48 | } else { 49 | throw Exception('No Data Found'); 50 | } 51 | } 52 | 53 | Future findById(int id) async { 54 | var response = 55 | await http.get(Constant.REST_URL + '/userEventDetail/' + id.toString()); 56 | 57 | if (response.statusCode == 200) { 58 | dynamic data = json.decode(response.body); 59 | UserEventDetail currentUserEventDetail = UserEventDetail.fromJson(data); 60 | return currentUserEventDetail; 61 | } else { 62 | throw Exception('No Data Found'); 63 | } 64 | } 65 | 66 | Future add(UserEventDetail userEventDetail) async { 67 | var response = await http.post(Constant.REST_URL + '/userEventDetail/', 68 | headers: {'Content-Type': 'application/json'}, 69 | body: json.encode(userEventDetail.toJson())); 70 | 71 | if (response.statusCode == 200) { 72 | dynamic data = json.decode(response.body); 73 | UserEventDetail newUserEventDetail = UserEventDetail.fromJson(data); 74 | return newUserEventDetail; 75 | } else { 76 | throw Exception('No Data Found'); 77 | } 78 | } 79 | 80 | Future update( 81 | int id, UserEventDetail userEventDetail) async { 82 | var response = await http.put( 83 | Constant.REST_URL + '/userEventDetail/' + id.toString(), 84 | headers: {'Content-Type': 'application/json'}, 85 | body: json.encode(userEventDetail.toJson()), 86 | ); 87 | 88 | if (response.statusCode == 200) { 89 | dynamic data = json.decode(response.body); 90 | UserEventDetail newUserEventDetail = UserEventDetail.fromJson(data); 91 | return newUserEventDetail; 92 | } else { 93 | throw Exception('No Data Found'); 94 | } 95 | } 96 | 97 | Future deleteById(int id) async { 98 | var response = await http.delete( 99 | Constant.REST_URL + '/userEventDetail/' + id.toString(), 100 | headers: {'Content-Type': 'application/json'}, 101 | ); 102 | 103 | if (response.statusCode == 200) { 104 | int data = json.decode(response.body); 105 | return data; 106 | } else { 107 | throw Exception('No Data Found'); 108 | } 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /lib/services/UserService.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:event_app/constant.dart'; 4 | import 'package:event_app/models/user.dart'; 5 | import 'package:flutter/cupertino.dart'; 6 | import 'package:http/http.dart' as http; 7 | 8 | class UserService extends ChangeNotifier { 9 | List items = []; 10 | 11 | Future> findAll() async { 12 | var response = await http.get(Constant.REST_URL + '/user/'); 13 | 14 | if (response.statusCode == 200) { 15 | List data = json.decode(response.body); 16 | items = data.map((e) => User.fromJson(e)).toList(); 17 | return items; 18 | } else { 19 | throw Exception('No Data Found'); 20 | } 21 | } 22 | 23 | Future findById(int id) async { 24 | var response = await http.get(Constant.REST_URL + '/user/' + id.toString()); 25 | 26 | if (response.statusCode == 200) { 27 | dynamic data = json.decode(response.body); 28 | User currentUser = User.fromJson(data); 29 | return currentUser; 30 | } else { 31 | throw Exception('No Data Found'); 32 | } 33 | } 34 | 35 | Future add(User user) async { 36 | var response = await http.post(Constant.REST_URL + '/user/', 37 | headers: {'Content-Type': 'application/json'}, 38 | body: json.encode(user.toJson())); 39 | 40 | if (response.statusCode == 200) { 41 | dynamic data = json.decode(response.body); 42 | User newUser = User.fromJson(data); 43 | return newUser; 44 | } else { 45 | throw Exception('No Data Found'); 46 | } 47 | } 48 | 49 | Future update(int id, User user) async { 50 | var response = await http.put( 51 | Constant.REST_URL + '/user/' + id.toString(), 52 | headers: {'Content-Type': 'application/json'}, 53 | body: json.encode(user.toJson()), 54 | ); 55 | 56 | if (response.statusCode == 200) { 57 | dynamic data = json.decode(response.body); 58 | User newUser = User.fromJson(data); 59 | return newUser; 60 | } else { 61 | throw Exception('No Data Found'); 62 | } 63 | } 64 | 65 | Future deleteById(int id) async { 66 | var response = await http.delete( 67 | Constant.REST_URL + '/user/' + id.toString(), 68 | headers: {'Content-Type': 'application/json'}, 69 | ); 70 | 71 | if (response.statusCode == 200) { 72 | int data = json.decode(response.body); 73 | return data; 74 | } else { 75 | throw Exception('No Data Found'); 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /lib/size_config.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class SizeConfig { 4 | static double _blockWidth = 0; 5 | static double _blockHeight = 0; 6 | 7 | static double textMultiplier; 8 | static double imageSizeMultiplier; 9 | static double heightMultiplier; 10 | static double widthMultiplier; 11 | static bool isPortrait = true; 12 | static bool isMobilePortrait = false; 13 | static double screenWidth; 14 | static double screenHeight; 15 | 16 | void init(BoxConstraints constraints, Orientation orientation) { 17 | if (orientation == Orientation.portrait) { 18 | screenWidth = constraints.maxWidth; 19 | screenHeight = constraints.maxHeight; 20 | isPortrait = true; 21 | if (screenWidth < 450) { 22 | isMobilePortrait = true; 23 | } 24 | } else { 25 | screenWidth = constraints.maxHeight; 26 | screenHeight = constraints.maxWidth; 27 | isPortrait = false; 28 | isMobilePortrait = false; 29 | } 30 | 31 | _blockWidth = screenWidth / 100; 32 | _blockHeight = screenHeight / 100; 33 | 34 | textMultiplier = _blockHeight; 35 | imageSizeMultiplier = _blockWidth; 36 | 37 | heightMultiplier = _blockHeight; 38 | widthMultiplier = _blockWidth; 39 | 40 | print(screenWidth); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/style.dart: -------------------------------------------------------------------------------- 1 | import 'package:event_app/size_config.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/services.dart'; 4 | 5 | class AppTheme { 6 | static const Color appBackgroundColor = Color(0xFFFFF7EC); 7 | static const Color topBarBackgroundColor = Color(0xFFFFD974); 8 | static const Color selectedTabBackgroundColor = Color(0xFFFFC442); 9 | static const Color primary = Color(0xFF64BA02); 10 | static const Color secondary = Color(0xFFF5F8FD); 11 | static const Color danger = Color(0xFFE02020); 12 | static const Color success = Color(0xFF6DD400); 13 | static const Color warning = Color(0xFFF7B500); 14 | static const Color info = Color(0xFF0095FF); 15 | static const Color headlineTextColor = Color(0xFF1C1D20); 16 | static const Color subTitleTextColor = Color(0xFF707586); 17 | static const Color bg = Color(0xFFFFFFFF); 18 | static const Color secondaryBg = Color(0xFFF5F8FD); 19 | static Color shadow = Color(0xFF191818); 20 | static Color borderCard = Color(0xFF707070).withOpacity(0.5); 21 | static const Color fb = Color(0xFF0041A8); 22 | static const Color twitter = Color(0xFF42AAFF); 23 | static const Color google = Color(0xFFF2F8FF); 24 | static const Color footertext = Color(0xFFC5CEE0); 25 | static const double radius = 10.0; 26 | 27 | static final ThemeData lightTheme = ThemeData( 28 | scaffoldBackgroundColor: AppTheme.bg, 29 | backgroundColor: AppTheme.bg, 30 | brightness: Brightness.light, 31 | primaryColor: AppTheme.headlineTextColor, 32 | textTheme: lightTextTheme, 33 | ); 34 | 35 | static final ThemeData darkTheme = ThemeData( 36 | scaffoldBackgroundColor: Colors.black, 37 | brightness: Brightness.dark, 38 | primaryColor: AppTheme.bg, 39 | textTheme: darkTextTheme, 40 | ); 41 | 42 | static final TextTheme lightTextTheme = TextTheme( 43 | headline1: _headline1, 44 | headline2: _headline2, 45 | headline3: _headline3, 46 | headline4: _headline4, 47 | headline5: _headline5, 48 | headline6: _headline6, 49 | button: _button, 50 | subtitle1: _subtitle1, 51 | subtitle2: _subtitle2, 52 | bodyText1: _bodyText1, 53 | bodyText2: _bodyText2, 54 | ); 55 | 56 | static final TextTheme darkTextTheme = TextTheme( 57 | headline1: _headline1.copyWith(color: Colors.white), 58 | headline2: _headline2.copyWith(color: Colors.white), 59 | headline3: _headline3.copyWith(color: Colors.white), 60 | headline4: _headline4.copyWith(color: Colors.white), 61 | headline5: _headline5.copyWith(color: Colors.white), 62 | headline6: _headline6.copyWith(color: Colors.white), 63 | button: _button.copyWith(color: AppTheme.headlineTextColor), 64 | subtitle1: _subtitle1.copyWith(color: Colors.white), 65 | subtitle2: _subtitle2.copyWith(color: Colors.white), 66 | bodyText1: _bodyText1.copyWith(color: AppTheme.primary), 67 | bodyText2: _bodyText2.copyWith(color: AppTheme.secondaryBg), 68 | ); 69 | 70 | static final TextStyle _headline1 = TextStyle( 71 | color: AppTheme.headlineTextColor, 72 | fontFamily: "DellaRespira", 73 | fontSize: 48, 74 | ); 75 | static final TextStyle _headline2 = TextStyle( 76 | fontFamily: "Lato", 77 | color: AppTheme.headlineTextColor, 78 | fontSize: 32, 79 | ); 80 | static final TextStyle _headline3 = TextStyle( 81 | color: AppTheme.headlineTextColor, 82 | fontFamily: "Lato", 83 | fontSize: 24, 84 | ); 85 | static final TextStyle _headline4 = TextStyle( 86 | color: AppTheme.headlineTextColor, 87 | fontWeight: FontWeight.w900, 88 | fontFamily: "Lato", 89 | fontSize: 18, 90 | ); 91 | static final TextStyle _headline5 = TextStyle( 92 | color: AppTheme.headlineTextColor, 93 | fontWeight: FontWeight.w900, 94 | fontFamily: "Lato", 95 | fontSize: 16, 96 | ); 97 | static final TextStyle _headline6 = TextStyle( 98 | color: AppTheme.subTitleTextColor, 99 | fontWeight: FontWeight.w600, 100 | fontFamily: "Lato", 101 | fontSize: 16, 102 | ); 103 | 104 | static final TextStyle _button = TextStyle( 105 | color: Colors.white, 106 | fontWeight: FontWeight.w900, 107 | fontFamily: "Lato", 108 | fontSize: 18, 109 | ); 110 | 111 | static final TextStyle _subtitle1 = TextStyle( 112 | color: AppTheme.headlineTextColor, 113 | fontWeight: FontWeight.w900, 114 | fontFamily: "Lato", 115 | fontSize: 14, 116 | ); 117 | 118 | static final TextStyle _subtitle2 = TextStyle( 119 | color: AppTheme.subTitleTextColor, 120 | fontWeight: FontWeight.w900, 121 | fontFamily: "Lato", 122 | fontSize: 14, 123 | ); 124 | 125 | static final TextStyle _bodyText1 = TextStyle( 126 | color: AppTheme.headlineTextColor, 127 | fontFamily: "Poppins", 128 | fontSize: 12, 129 | letterSpacing: 1, 130 | ); 131 | 132 | static final TextStyle _bodyText2 = TextStyle( 133 | color: AppTheme.subTitleTextColor, 134 | fontFamily: "Poppins", 135 | fontSize: 12, 136 | letterSpacing: 1, 137 | 138 | ); 139 | 140 | static final SystemUiOverlayStyle systemUiDark = SystemUiOverlayStyle( 141 | systemNavigationBarColor: AppTheme.headlineTextColor, 142 | statusBarColor: AppTheme.headlineTextColor, 143 | statusBarIconBrightness: Brightness.light, 144 | ); 145 | 146 | static final SystemUiOverlayStyle systemUiLight = SystemUiOverlayStyle( 147 | systemNavigationBarColor: Colors.white, 148 | statusBarColor: Colors.white, 149 | statusBarIconBrightness: Brightness.dark, 150 | ); 151 | 152 | static final SystemUiOverlayStyle systemUiTrans = SystemUiOverlayStyle( 153 | systemNavigationBarColor: Colors.white, 154 | statusBarColor: Colors.transparent, 155 | statusBarIconBrightness: Brightness.dark, 156 | ); 157 | } 158 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "14.0.0" 11 | align_positioned: 12 | dependency: "direct main" 13 | description: 14 | name: align_positioned 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.2.14" 18 | analyzer: 19 | dependency: transitive 20 | description: 21 | name: analyzer 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "0.41.1" 25 | args: 26 | dependency: transitive 27 | description: 28 | name: args 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.6.0" 32 | async: 33 | dependency: transitive 34 | description: 35 | name: async 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.5.0-nullsafety.1" 39 | boolean_selector: 40 | dependency: transitive 41 | description: 42 | name: boolean_selector 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.1.0-nullsafety.1" 46 | build: 47 | dependency: transitive 48 | description: 49 | name: build 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.5.2" 53 | build_config: 54 | dependency: transitive 55 | description: 56 | name: build_config 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.4.5" 60 | build_daemon: 61 | dependency: transitive 62 | description: 63 | name: build_daemon 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.4" 67 | build_resolvers: 68 | dependency: transitive 69 | description: 70 | name: build_resolvers 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.4.4" 74 | build_runner: 75 | dependency: "direct dev" 76 | description: 77 | name: build_runner 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.10.9" 81 | build_runner_core: 82 | dependency: transitive 83 | description: 84 | name: build_runner_core 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "6.1.4" 88 | built_collection: 89 | dependency: transitive 90 | description: 91 | name: built_collection 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "4.3.2" 95 | built_value: 96 | dependency: transitive 97 | description: 98 | name: built_value 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "7.1.0" 102 | cached_network_image: 103 | dependency: "direct main" 104 | description: 105 | name: cached_network_image 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "2.4.1" 109 | characters: 110 | dependency: transitive 111 | description: 112 | name: characters 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.1.0-nullsafety.3" 116 | charcode: 117 | dependency: transitive 118 | description: 119 | name: charcode 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.2.0-nullsafety.1" 123 | checked_yaml: 124 | dependency: transitive 125 | description: 126 | name: checked_yaml 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.0.4" 130 | cli_util: 131 | dependency: transitive 132 | description: 133 | name: cli_util 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "0.2.0" 137 | clock: 138 | dependency: transitive 139 | description: 140 | name: clock 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "1.1.0-nullsafety.1" 144 | code_builder: 145 | dependency: transitive 146 | description: 147 | name: code_builder 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "3.5.0" 151 | collection: 152 | dependency: transitive 153 | description: 154 | name: collection 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "1.15.0-nullsafety.3" 158 | convert: 159 | dependency: transitive 160 | description: 161 | name: convert 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "2.1.1" 165 | crypto: 166 | dependency: transitive 167 | description: 168 | name: crypto 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "2.1.5" 172 | cupertino_icons: 173 | dependency: "direct main" 174 | description: 175 | name: cupertino_icons 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "1.0.0" 179 | dart_style: 180 | dependency: transitive 181 | description: 182 | name: dart_style 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "1.3.10" 186 | dotted_border: 187 | dependency: "direct main" 188 | description: 189 | name: dotted_border 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.0.7" 193 | fake_async: 194 | dependency: transitive 195 | description: 196 | name: fake_async 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "1.2.0-nullsafety.1" 200 | ffi: 201 | dependency: transitive 202 | description: 203 | name: ffi 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "0.1.3" 207 | file: 208 | dependency: transitive 209 | description: 210 | name: file 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "5.2.1" 214 | fixnum: 215 | dependency: transitive 216 | description: 217 | name: fixnum 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "0.10.11" 221 | flutter: 222 | dependency: "direct main" 223 | description: flutter 224 | source: sdk 225 | version: "0.0.0" 226 | flutter_blurhash: 227 | dependency: transitive 228 | description: 229 | name: flutter_blurhash 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "0.5.0" 233 | flutter_cache_manager: 234 | dependency: transitive 235 | description: 236 | name: flutter_cache_manager 237 | url: "https://pub.dartlang.org" 238 | source: hosted 239 | version: "2.0.0" 240 | flutter_svg: 241 | dependency: "direct main" 242 | description: 243 | name: flutter_svg 244 | url: "https://pub.dartlang.org" 245 | source: hosted 246 | version: "0.19.1" 247 | flutter_test: 248 | dependency: "direct dev" 249 | description: flutter 250 | source: sdk 251 | version: "0.0.0" 252 | glob: 253 | dependency: transitive 254 | description: 255 | name: glob 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "1.2.0" 259 | graphs: 260 | dependency: transitive 261 | description: 262 | name: graphs 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "0.2.0" 266 | http: 267 | dependency: "direct main" 268 | description: 269 | name: http 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "0.12.2" 273 | http_multi_server: 274 | dependency: transitive 275 | description: 276 | name: http_multi_server 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "2.2.0" 280 | http_parser: 281 | dependency: transitive 282 | description: 283 | name: http_parser 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "3.1.4" 287 | intl: 288 | dependency: "direct main" 289 | description: 290 | name: intl 291 | url: "https://pub.dartlang.org" 292 | source: hosted 293 | version: "0.16.1" 294 | io: 295 | dependency: transitive 296 | description: 297 | name: io 298 | url: "https://pub.dartlang.org" 299 | source: hosted 300 | version: "0.3.4" 301 | js: 302 | dependency: transitive 303 | description: 304 | name: js 305 | url: "https://pub.dartlang.org" 306 | source: hosted 307 | version: "0.6.2" 308 | json_annotation: 309 | dependency: "direct main" 310 | description: 311 | name: json_annotation 312 | url: "https://pub.dartlang.org" 313 | source: hosted 314 | version: "3.1.1" 315 | json_serializable: 316 | dependency: "direct dev" 317 | description: 318 | name: json_serializable 319 | url: "https://pub.dartlang.org" 320 | source: hosted 321 | version: "3.5.1" 322 | logging: 323 | dependency: transitive 324 | description: 325 | name: logging 326 | url: "https://pub.dartlang.org" 327 | source: hosted 328 | version: "0.11.4" 329 | matcher: 330 | dependency: transitive 331 | description: 332 | name: matcher 333 | url: "https://pub.dartlang.org" 334 | source: hosted 335 | version: "0.12.10-nullsafety.1" 336 | matrix4_transform: 337 | dependency: transitive 338 | description: 339 | name: matrix4_transform 340 | url: "https://pub.dartlang.org" 341 | source: hosted 342 | version: "1.1.6" 343 | meta: 344 | dependency: transitive 345 | description: 346 | name: meta 347 | url: "https://pub.dartlang.org" 348 | source: hosted 349 | version: "1.3.0-nullsafety.3" 350 | mime: 351 | dependency: transitive 352 | description: 353 | name: mime 354 | url: "https://pub.dartlang.org" 355 | source: hosted 356 | version: "0.9.7" 357 | node_interop: 358 | dependency: transitive 359 | description: 360 | name: node_interop 361 | url: "https://pub.dartlang.org" 362 | source: hosted 363 | version: "1.2.1" 364 | node_io: 365 | dependency: transitive 366 | description: 367 | name: node_io 368 | url: "https://pub.dartlang.org" 369 | source: hosted 370 | version: "1.2.0" 371 | octo_image: 372 | dependency: transitive 373 | description: 374 | name: octo_image 375 | url: "https://pub.dartlang.org" 376 | source: hosted 377 | version: "0.3.0" 378 | package_config: 379 | dependency: transitive 380 | description: 381 | name: package_config 382 | url: "https://pub.dartlang.org" 383 | source: hosted 384 | version: "1.9.3" 385 | path: 386 | dependency: transitive 387 | description: 388 | name: path 389 | url: "https://pub.dartlang.org" 390 | source: hosted 391 | version: "1.8.0-nullsafety.1" 392 | path_drawing: 393 | dependency: transitive 394 | description: 395 | name: path_drawing 396 | url: "https://pub.dartlang.org" 397 | source: hosted 398 | version: "0.4.1+1" 399 | path_parsing: 400 | dependency: transitive 401 | description: 402 | name: path_parsing 403 | url: "https://pub.dartlang.org" 404 | source: hosted 405 | version: "0.1.4" 406 | path_provider: 407 | dependency: transitive 408 | description: 409 | name: path_provider 410 | url: "https://pub.dartlang.org" 411 | source: hosted 412 | version: "1.6.24" 413 | path_provider_linux: 414 | dependency: transitive 415 | description: 416 | name: path_provider_linux 417 | url: "https://pub.dartlang.org" 418 | source: hosted 419 | version: "0.0.1+2" 420 | path_provider_macos: 421 | dependency: transitive 422 | description: 423 | name: path_provider_macos 424 | url: "https://pub.dartlang.org" 425 | source: hosted 426 | version: "0.0.4+6" 427 | path_provider_platform_interface: 428 | dependency: transitive 429 | description: 430 | name: path_provider_platform_interface 431 | url: "https://pub.dartlang.org" 432 | source: hosted 433 | version: "1.0.4" 434 | path_provider_windows: 435 | dependency: transitive 436 | description: 437 | name: path_provider_windows 438 | url: "https://pub.dartlang.org" 439 | source: hosted 440 | version: "0.0.4+3" 441 | pedantic: 442 | dependency: transitive 443 | description: 444 | name: pedantic 445 | url: "https://pub.dartlang.org" 446 | source: hosted 447 | version: "1.9.2" 448 | petitparser: 449 | dependency: transitive 450 | description: 451 | name: petitparser 452 | url: "https://pub.dartlang.org" 453 | source: hosted 454 | version: "3.1.0" 455 | platform: 456 | dependency: transitive 457 | description: 458 | name: platform 459 | url: "https://pub.dartlang.org" 460 | source: hosted 461 | version: "2.2.1" 462 | plugin_platform_interface: 463 | dependency: transitive 464 | description: 465 | name: plugin_platform_interface 466 | url: "https://pub.dartlang.org" 467 | source: hosted 468 | version: "1.0.3" 469 | pool: 470 | dependency: transitive 471 | description: 472 | name: pool 473 | url: "https://pub.dartlang.org" 474 | source: hosted 475 | version: "1.4.0" 476 | process: 477 | dependency: transitive 478 | description: 479 | name: process 480 | url: "https://pub.dartlang.org" 481 | source: hosted 482 | version: "3.0.13" 483 | provider: 484 | dependency: "direct main" 485 | description: 486 | name: provider 487 | url: "https://pub.dartlang.org" 488 | source: hosted 489 | version: "3.2.0" 490 | pub_semver: 491 | dependency: transitive 492 | description: 493 | name: pub_semver 494 | url: "https://pub.dartlang.org" 495 | source: hosted 496 | version: "1.4.4" 497 | pubspec_parse: 498 | dependency: transitive 499 | description: 500 | name: pubspec_parse 501 | url: "https://pub.dartlang.org" 502 | source: hosted 503 | version: "0.1.7" 504 | quiver: 505 | dependency: transitive 506 | description: 507 | name: quiver 508 | url: "https://pub.dartlang.org" 509 | source: hosted 510 | version: "2.1.5" 511 | rxdart: 512 | dependency: transitive 513 | description: 514 | name: rxdart 515 | url: "https://pub.dartlang.org" 516 | source: hosted 517 | version: "0.24.1" 518 | shelf: 519 | dependency: transitive 520 | description: 521 | name: shelf 522 | url: "https://pub.dartlang.org" 523 | source: hosted 524 | version: "0.7.9" 525 | shelf_web_socket: 526 | dependency: transitive 527 | description: 528 | name: shelf_web_socket 529 | url: "https://pub.dartlang.org" 530 | source: hosted 531 | version: "0.2.3" 532 | sky_engine: 533 | dependency: transitive 534 | description: flutter 535 | source: sdk 536 | version: "0.0.99" 537 | source_gen: 538 | dependency: transitive 539 | description: 540 | name: source_gen 541 | url: "https://pub.dartlang.org" 542 | source: hosted 543 | version: "0.9.10" 544 | source_span: 545 | dependency: transitive 546 | description: 547 | name: source_span 548 | url: "https://pub.dartlang.org" 549 | source: hosted 550 | version: "1.8.0-nullsafety.2" 551 | sqflite: 552 | dependency: transitive 553 | description: 554 | name: sqflite 555 | url: "https://pub.dartlang.org" 556 | source: hosted 557 | version: "1.3.2+1" 558 | sqflite_common: 559 | dependency: transitive 560 | description: 561 | name: sqflite_common 562 | url: "https://pub.dartlang.org" 563 | source: hosted 564 | version: "1.0.2+1" 565 | stack_trace: 566 | dependency: transitive 567 | description: 568 | name: stack_trace 569 | url: "https://pub.dartlang.org" 570 | source: hosted 571 | version: "1.10.0-nullsafety.1" 572 | stream_channel: 573 | dependency: transitive 574 | description: 575 | name: stream_channel 576 | url: "https://pub.dartlang.org" 577 | source: hosted 578 | version: "2.1.0-nullsafety.1" 579 | stream_transform: 580 | dependency: transitive 581 | description: 582 | name: stream_transform 583 | url: "https://pub.dartlang.org" 584 | source: hosted 585 | version: "1.2.0" 586 | string_scanner: 587 | dependency: transitive 588 | description: 589 | name: string_scanner 590 | url: "https://pub.dartlang.org" 591 | source: hosted 592 | version: "1.1.0-nullsafety.1" 593 | synchronized: 594 | dependency: transitive 595 | description: 596 | name: synchronized 597 | url: "https://pub.dartlang.org" 598 | source: hosted 599 | version: "2.2.0+2" 600 | term_glyph: 601 | dependency: transitive 602 | description: 603 | name: term_glyph 604 | url: "https://pub.dartlang.org" 605 | source: hosted 606 | version: "1.2.0-nullsafety.1" 607 | test_api: 608 | dependency: transitive 609 | description: 610 | name: test_api 611 | url: "https://pub.dartlang.org" 612 | source: hosted 613 | version: "0.2.19-nullsafety.2" 614 | timing: 615 | dependency: transitive 616 | description: 617 | name: timing 618 | url: "https://pub.dartlang.org" 619 | source: hosted 620 | version: "0.1.1+3" 621 | typed_data: 622 | dependency: transitive 623 | description: 624 | name: typed_data 625 | url: "https://pub.dartlang.org" 626 | source: hosted 627 | version: "1.3.0-nullsafety.3" 628 | uuid: 629 | dependency: transitive 630 | description: 631 | name: uuid 632 | url: "https://pub.dartlang.org" 633 | source: hosted 634 | version: "2.2.2" 635 | vector_math: 636 | dependency: transitive 637 | description: 638 | name: vector_math 639 | url: "https://pub.dartlang.org" 640 | source: hosted 641 | version: "2.1.0-nullsafety.3" 642 | watcher: 643 | dependency: transitive 644 | description: 645 | name: watcher 646 | url: "https://pub.dartlang.org" 647 | source: hosted 648 | version: "0.9.7+15" 649 | web_socket_channel: 650 | dependency: transitive 651 | description: 652 | name: web_socket_channel 653 | url: "https://pub.dartlang.org" 654 | source: hosted 655 | version: "1.1.0" 656 | win32: 657 | dependency: transitive 658 | description: 659 | name: win32 660 | url: "https://pub.dartlang.org" 661 | source: hosted 662 | version: "1.7.4" 663 | xdg_directories: 664 | dependency: transitive 665 | description: 666 | name: xdg_directories 667 | url: "https://pub.dartlang.org" 668 | source: hosted 669 | version: "0.1.2" 670 | xml: 671 | dependency: transitive 672 | description: 673 | name: xml 674 | url: "https://pub.dartlang.org" 675 | source: hosted 676 | version: "4.5.1" 677 | yaml: 678 | dependency: transitive 679 | description: 680 | name: yaml 681 | url: "https://pub.dartlang.org" 682 | source: hosted 683 | version: "2.2.1" 684 | sdks: 685 | dart: ">=2.10.2 <2.11.0" 686 | flutter: ">=1.22.2 <2.0.0" 687 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: event_app 2 | description: A new Flutter application. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | flutter_svg: ^0.19.1 27 | provider: ^3.0.0 28 | cached_network_image: ^2.4.1 29 | http: ^0.12.2 30 | json_annotation: ^3.1.1 31 | intl: ^0.16.1 32 | align_positioned: ^1.2.14 33 | dotted_border: ^1.0.7 34 | # The following adds the Cupertino Icons font to your application. 35 | # Use with the CupertinoIcons class for iOS style icons. 36 | cupertino_icons: ^1.0.0 37 | 38 | dev_dependencies: 39 | build_runner: ^1.0.0 40 | json_serializable: ^3.5.1 41 | flutter_test: 42 | sdk: flutter 43 | 44 | 45 | # For information on the generic Dart part of this file, see the 46 | # following page: https://dart.dev/tools/pub/pubspec 47 | 48 | # The following section is specific to Flutter. 49 | flutter: 50 | 51 | # The following line ensures that the Material Icons font is 52 | # included with your application, so that you can use the icons in 53 | # the material Icons class. 54 | uses-material-design: true 55 | 56 | # To add assets to your application, add an assets section, like this: 57 | assets: 58 | - assets/images/ 59 | 60 | # An image asset can refer to one or more resolution-specific "variants", see 61 | # https://flutter.dev/assets-and-images/#resolution-aware. 62 | 63 | # For details regarding adding assets from package dependencies, see 64 | # https://flutter.dev/assets-and-images/#from-packages 65 | 66 | # To add custom fonts to your application, add a fonts section here, 67 | # in this "flutter" section. Each entry in this list should have a 68 | # "family" key with the font family name, and a "fonts" key with a 69 | # list giving the asset and other descriptors for the font. For 70 | # example: 71 | fonts: 72 | - family: DellaRespira 73 | fonts: 74 | - asset: assets/fonts/DellaRespira-Regular.ttf 75 | - family: Lato 76 | fonts: 77 | - asset: assets/fonts/Lato-Regular.ttf 78 | - asset: assets/fonts/Lato-Bold.ttf 79 | weight: 700 80 | - family: Poppins 81 | fonts: 82 | - asset: assets/fonts/Poppins-Regular.ttf 83 | # For details regarding fonts from package dependencies, 84 | # see https://flutter.dev/custom-fonts/#from-packages 85 | -------------------------------------------------------------------------------- /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 that Flutter provides. 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:event_app/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(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 | --------------------------------------------------------------------------------