├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── rrdhoi
│ │ │ │ └── event_app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── 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-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── images
│ └── barcode.png
└── json
│ └── data_event.json
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── 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
├── app
│ ├── configs
│ │ ├── colors.dart
│ │ └── theme.dart
│ └── resources
│ │ └── constant
│ │ └── named_routes.dart
├── bloc
│ ├── event_cubit.dart
│ └── event_state.dart
├── data
│ └── event_model.dart
├── main.dart
└── ui
│ ├── pages
│ ├── detail_page.dart
│ ├── home_page.dart
│ └── ticket_page.dart
│ └── widgets
│ ├── card_event_this_month.dart
│ ├── card_popular_event.dart
│ ├── circle_button.dart
│ ├── custom_app_bar.dart
│ ├── custom_clipper_ticket.dart
│ ├── custom_dashed_line.dart
│ ├── my_navigation_bar.dart
│ └── stack_participant.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 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Web related
36 | lib/generated_plugin_registrant.dart
37 |
38 | # Symbolication related
39 | app.*.symbols
40 |
41 | # Obfuscation related
42 | app.*.map.json
43 |
44 | # Android Studio will place build artifacts here
45 | /android/app/debug
46 | /android/app/profile
47 | /android/app/release
48 |
--------------------------------------------------------------------------------
/.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.
5 |
6 | version:
7 | revision: 676cefaaff197f27424942307668886253e1ec35
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 676cefaaff197f27424942307668886253e1ec35
17 | base_revision: 676cefaaff197f27424942307668886253e1ec35
18 | - platform: android
19 | create_revision: 676cefaaff197f27424942307668886253e1ec35
20 | base_revision: 676cefaaff197f27424942307668886253e1ec35
21 | - platform: ios
22 | create_revision: 676cefaaff197f27424942307668886253e1ec35
23 | base_revision: 676cefaaff197f27424942307668886253e1ec35
24 | - platform: linux
25 | create_revision: 676cefaaff197f27424942307668886253e1ec35
26 | base_revision: 676cefaaff197f27424942307668886253e1ec35
27 | - platform: macos
28 | create_revision: 676cefaaff197f27424942307668886253e1ec35
29 | base_revision: 676cefaaff197f27424942307668886253e1ec35
30 | - platform: web
31 | create_revision: 676cefaaff197f27424942307668886253e1ec35
32 | base_revision: 676cefaaff197f27424942307668886253e1ec35
33 | - platform: windows
34 | create_revision: 676cefaaff197f27424942307668886253e1ec35
35 | base_revision: 676cefaaff197f27424942307668886253e1ec35
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Muhammad Ridhoi
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Event App
2 |
3 | Event App built with Flutter
4 |
5 | 
6 |
7 | ## Installation
8 |
9 | - Add [Flutter](https://flutter.dev/docs/get-started/install) to your machine
10 |
11 | - Open this project folder with Terminal/CMD and run `flutter packages get`
12 |
13 | - Run `flutter run` to build and run the debug app on your emulator/phone
14 |
15 | ## Credits
16 |
17 | - [Andri.](https://dribbble.com/andri145) for the original [Event App Design](https://dribbble.com/shots/17444328-Event-Mobile-Apps-Design)
18 | - [Flutter](https://flutter.dev) for the great cross platform framework
19 |
20 | ## License
21 |
22 | All the code available under the MIT licenses. See [LICENSE](LICENSE).
23 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/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 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/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 flutter.compileSdkVersion
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.rrdhoi.event_app"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50 | minSdkVersion flutter.minSdkVersion
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | }
72 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/rrdhoi/event_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.rrdhoi.event_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
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/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-7.4-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/images/barcode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/assets/images/barcode.png
--------------------------------------------------------------------------------
/assets/json/data_event.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id" : "001",
4 | "title" : "Festival Chinatown",
5 | "image" : "https://img.freepik.com/free-photo/town-famous-attraction-landmark-village_1417-388.jpg?w=1060&t=st=1662380712~exp=1662381312~hmac=fd853eae11f31c295ee48bedc286ebc0534e289be71ae93c4f8d21d7003daa6e",
6 | "date" : "12 Feb",
7 | "location" : "Pontianak, Indonesia",
8 | "description" : "Festival Chinatown is a free, two-day celebration of the rich culture and heritage of the Chinatown community. The festival features a variety of performances, "
9 | },
10 | {
11 | "id" : "002",
12 | "title" : "Tanabata Matsuri",
13 | "image" : "https://img.freepik.com/free-photo/antiques-broad-alley-chinese-sunshine_1417-246.jpg?w=1060&t=st=1662380936~exp=1662381536~hmac=4640653406e75f555b33298570239ad9c6cc4e8132a77bda13e7ff85cebcfba1",
14 | "date" : "06 Sep",
15 | "location" : "Sendai, Japan",
16 | "description" : "The Sendai Tanabata Matsuri is a festival held in Sendai, Miyagi Prefecture, Japan. It is held annually on July 7 and 8, and is one of the three largest Tanabata festivals in Japan. "
17 | },
18 | {
19 | "id" : "003",
20 | "title" : "Lantern Festival",
21 | "image" : "https://img.freepik.com/free-photo/closeup-chinese-paper-lantern-with-lights-surrounded-by-buildings_181624-13712.jpg?w=996&t=st=1662381267~exp=1662381867~hmac=fdf7b5d904279e2cb8d3a43ae0f2ddd0ad623addc5408a8578eb0ae2fb8c9187",
22 | "date" : "23 Dec",
23 | "location" : "Nagasaki, Japan",
24 | "description" : "The Nagasaki Lantern Festival is a festival held in Nagasaki, Japan. It is held annually on July 7 and 8, and is one of the three largest Tanabata festivals in Japan. "
25 | }
26 | ]
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1300;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = (
294 | "$(inherited)",
295 | "@executable_path/Frameworks",
296 | );
297 | PRODUCT_BUNDLE_IDENTIFIER = com.rrdhoi.eventApp;
298 | PRODUCT_NAME = "$(TARGET_NAME)";
299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
300 | SWIFT_VERSION = 5.0;
301 | VERSIONING_SYSTEM = "apple-generic";
302 | };
303 | name = Profile;
304 | };
305 | 97C147031CF9000F007C117D /* Debug */ = {
306 | isa = XCBuildConfiguration;
307 | buildSettings = {
308 | ALWAYS_SEARCH_USER_PATHS = NO;
309 | CLANG_ANALYZER_NONNULL = YES;
310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
311 | CLANG_CXX_LIBRARY = "libc++";
312 | CLANG_ENABLE_MODULES = YES;
313 | CLANG_ENABLE_OBJC_ARC = YES;
314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
315 | CLANG_WARN_BOOL_CONVERSION = YES;
316 | CLANG_WARN_COMMA = YES;
317 | CLANG_WARN_CONSTANT_CONVERSION = YES;
318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
320 | CLANG_WARN_EMPTY_BODY = YES;
321 | CLANG_WARN_ENUM_CONVERSION = YES;
322 | CLANG_WARN_INFINITE_RECURSION = YES;
323 | CLANG_WARN_INT_CONVERSION = YES;
324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
329 | CLANG_WARN_STRICT_PROTOTYPES = YES;
330 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
331 | CLANG_WARN_UNREACHABLE_CODE = YES;
332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
334 | COPY_PHASE_STRIP = NO;
335 | DEBUG_INFORMATION_FORMAT = dwarf;
336 | ENABLE_STRICT_OBJC_MSGSEND = YES;
337 | ENABLE_TESTABILITY = YES;
338 | GCC_C_LANGUAGE_STANDARD = gnu99;
339 | GCC_DYNAMIC_NO_PIC = NO;
340 | GCC_NO_COMMON_BLOCKS = YES;
341 | GCC_OPTIMIZATION_LEVEL = 0;
342 | GCC_PREPROCESSOR_DEFINITIONS = (
343 | "DEBUG=1",
344 | "$(inherited)",
345 | );
346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
348 | GCC_WARN_UNDECLARED_SELECTOR = YES;
349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
350 | GCC_WARN_UNUSED_FUNCTION = YES;
351 | GCC_WARN_UNUSED_VARIABLE = YES;
352 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
353 | MTL_ENABLE_DEBUG_INFO = YES;
354 | ONLY_ACTIVE_ARCH = YES;
355 | SDKROOT = iphoneos;
356 | TARGETED_DEVICE_FAMILY = "1,2";
357 | };
358 | name = Debug;
359 | };
360 | 97C147041CF9000F007C117D /* Release */ = {
361 | isa = XCBuildConfiguration;
362 | buildSettings = {
363 | ALWAYS_SEARCH_USER_PATHS = NO;
364 | CLANG_ANALYZER_NONNULL = YES;
365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
366 | CLANG_CXX_LIBRARY = "libc++";
367 | CLANG_ENABLE_MODULES = YES;
368 | CLANG_ENABLE_OBJC_ARC = YES;
369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
370 | CLANG_WARN_BOOL_CONVERSION = YES;
371 | CLANG_WARN_COMMA = YES;
372 | CLANG_WARN_CONSTANT_CONVERSION = YES;
373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
375 | CLANG_WARN_EMPTY_BODY = YES;
376 | CLANG_WARN_ENUM_CONVERSION = YES;
377 | CLANG_WARN_INFINITE_RECURSION = YES;
378 | CLANG_WARN_INT_CONVERSION = YES;
379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
384 | CLANG_WARN_STRICT_PROTOTYPES = YES;
385 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
386 | CLANG_WARN_UNREACHABLE_CODE = YES;
387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
389 | COPY_PHASE_STRIP = NO;
390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
391 | ENABLE_NS_ASSERTIONS = NO;
392 | ENABLE_STRICT_OBJC_MSGSEND = YES;
393 | GCC_C_LANGUAGE_STANDARD = gnu99;
394 | GCC_NO_COMMON_BLOCKS = YES;
395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
397 | GCC_WARN_UNDECLARED_SELECTOR = YES;
398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
399 | GCC_WARN_UNUSED_FUNCTION = YES;
400 | GCC_WARN_UNUSED_VARIABLE = YES;
401 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
402 | MTL_ENABLE_DEBUG_INFO = NO;
403 | SDKROOT = iphoneos;
404 | SUPPORTED_PLATFORMS = iphoneos;
405 | SWIFT_COMPILATION_MODE = wholemodule;
406 | SWIFT_OPTIMIZATION_LEVEL = "-O";
407 | TARGETED_DEVICE_FAMILY = "1,2";
408 | VALIDATE_PRODUCT = YES;
409 | };
410 | name = Release;
411 | };
412 | 97C147061CF9000F007C117D /* Debug */ = {
413 | isa = XCBuildConfiguration;
414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
415 | buildSettings = {
416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
417 | CLANG_ENABLE_MODULES = YES;
418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
419 | ENABLE_BITCODE = NO;
420 | INFOPLIST_FILE = Runner/Info.plist;
421 | LD_RUNPATH_SEARCH_PATHS = (
422 | "$(inherited)",
423 | "@executable_path/Frameworks",
424 | );
425 | PRODUCT_BUNDLE_IDENTIFIER = com.rrdhoi.eventApp;
426 | PRODUCT_NAME = "$(TARGET_NAME)";
427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
429 | SWIFT_VERSION = 5.0;
430 | VERSIONING_SYSTEM = "apple-generic";
431 | };
432 | name = Debug;
433 | };
434 | 97C147071CF9000F007C117D /* Release */ = {
435 | isa = XCBuildConfiguration;
436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
437 | buildSettings = {
438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439 | CLANG_ENABLE_MODULES = YES;
440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
441 | ENABLE_BITCODE = NO;
442 | INFOPLIST_FILE = Runner/Info.plist;
443 | LD_RUNPATH_SEARCH_PATHS = (
444 | "$(inherited)",
445 | "@executable_path/Frameworks",
446 | );
447 | PRODUCT_BUNDLE_IDENTIFIER = com.rrdhoi.eventApp;
448 | PRODUCT_NAME = "$(TARGET_NAME)";
449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
450 | SWIFT_VERSION = 5.0;
451 | VERSIONING_SYSTEM = "apple-generic";
452 | };
453 | name = Release;
454 | };
455 | /* End XCBuildConfiguration section */
456 |
457 | /* Begin XCConfigurationList section */
458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147031CF9000F007C117D /* Debug */,
462 | 97C147041CF9000F007C117D /* Release */,
463 | 249021D3217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
469 | isa = XCConfigurationList;
470 | buildConfigurations = (
471 | 97C147061CF9000F007C117D /* Debug */,
472 | 97C147071CF9000F007C117D /* Release */,
473 | 249021D4217E4FDB00AE95B9 /* Profile */,
474 | );
475 | defaultConfigurationIsVisible = 0;
476 | defaultConfigurationName = Release;
477 | };
478 | /* End XCConfigurationList section */
479 | };
480 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
481 | }
482 |
--------------------------------------------------------------------------------
/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 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/event-app/89651efe1ed07dddff5e90e00e44152c313f5c08/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 | CFBundleDisplayName
8 | Event App
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | event_app
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/app/configs/colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AppColors {
4 | static const Color primaryColor = Color(0xFFF47340);
5 | static const Color primaryLightColor = Color(0xFFFEECE9);
6 |
7 | static const Color backgroundColor = Color(0xFFfafafa);
8 |
9 | // static const Color borderColor = Color(0xFFededed);
10 |
11 | static const Color whiteColor = Color(0xFFffffff);
12 | static const Color greyColor = Color(0xFF9698A9);
13 | static const Color dashedLineColor = Color(0xFFCECED5);
14 | static const Color blackColor = Color(0xFF040303);
15 |
16 | static const Color blackTextColor = Color(0xFF040303);
17 | static const Color greyTextColor = Color(0xFF9698A9);
18 |
19 | static const Color backgroundColorDark = Color(0xFF303030);
20 | }
21 |
--------------------------------------------------------------------------------
/lib/app/configs/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:google_fonts/google_fonts.dart';
4 |
5 | class Themes {
6 | static final TextStyle lightText = GoogleFonts.nunito(
7 | textStyle: const TextStyle(
8 | color: AppColors.blackTextColor,
9 | ),
10 | );
11 |
12 | static final ThemeData lightTheme = ThemeData(
13 | primaryColor: AppColors.primaryColor,
14 | backgroundColor: AppColors.backgroundColor,
15 | brightness: Brightness.light,
16 | appBarTheme: AppBarTheme(toolbarTextStyle: lightText),
17 | textTheme: TextTheme(
18 | bodyText1: lightText,
19 | bodyText2: lightText,
20 | button: lightText,
21 | caption: lightText,
22 | overline: lightText,
23 | ),
24 | scaffoldBackgroundColor: AppColors.backgroundColor,
25 | navigationBarTheme: const NavigationBarThemeData(
26 | // indicatorColor: AppColors.backgroundColor,
27 | indicatorColor: AppColors.whiteColor,
28 | ),
29 | );
30 | }
31 |
--------------------------------------------------------------------------------
/lib/app/resources/constant/named_routes.dart:
--------------------------------------------------------------------------------
1 | class NamedRoutes {
2 | static const homeScreen = '/home-screen';
3 | static const detailScreen = '/detail-screen';
4 | static const ticketScreen = '/ticket-screen';
5 | }
6 |
--------------------------------------------------------------------------------
/lib/bloc/event_cubit.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:event_app/data/event_model.dart';
4 | import 'package:flutter_bloc/flutter_bloc.dart';
5 |
6 | part 'event_state.dart';
7 |
8 | class EventCubit extends Cubit {
9 | EventCubit() : super(EventInitial());
10 |
11 | void loadEventData() async {
12 | emit(EventLoading());
13 | try {
14 | var data = await EventModel.getJson();
15 | List jsonResult = json.decode(data);
16 | List events =
17 | jsonResult.map((e) => EventModel.fromJson(e)).toList();
18 | emit(EventLoaded(events: events));
19 | } catch (e) {
20 | emit(EventError(message: 'Terjadi kesalahan saat memuat data'));
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/bloc/event_state.dart:
--------------------------------------------------------------------------------
1 | part of 'event_cubit.dart';
2 |
3 | abstract class EventState {}
4 |
5 | class EventInitial extends EventState {}
6 |
7 | class EventLoaded extends EventState {
8 | final List events;
9 |
10 | EventLoaded({required this.events});
11 | }
12 |
13 | class EventLoading extends EventState {}
14 |
15 | class EventError extends EventState {
16 | final String message;
17 |
18 | EventError({required this.message});
19 | }
20 |
--------------------------------------------------------------------------------
/lib/data/event_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter/services.dart' show rootBundle;
4 |
5 | class EventModel {
6 | EventModel({
7 | required this.id,
8 | required this.title,
9 | required this.image,
10 | required this.date,
11 | required this.location,
12 | required this.description,
13 | });
14 |
15 | String id;
16 | String title;
17 | String image;
18 | String date;
19 | String location;
20 | String description;
21 |
22 | static Future getJson() {
23 | return rootBundle.loadString('assets/json/data_event.json');
24 | }
25 |
26 | factory EventModel.fromRawJson(String str) =>
27 | EventModel.fromJson(json.decode(str));
28 |
29 | String toRawJson() => json.encode(toJson());
30 |
31 | factory EventModel.fromJson(Map json) => EventModel(
32 | id: json["id"],
33 | title: json["title"],
34 | image: json["image"],
35 | date: json["date"],
36 | location: json["location"],
37 | description: json["description"],
38 | );
39 |
40 | Map toJson() => {
41 | "id": id,
42 | "title": title,
43 | "image": image,
44 | "date": date,
45 | "location": location,
46 | "description": description,
47 | };
48 | }
49 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/theme.dart';
2 | import 'package:event_app/app/resources/constant/named_routes.dart';
3 | import 'package:event_app/ui/pages/detail_page.dart';
4 | import 'package:event_app/ui/pages/home_page.dart';
5 | import 'package:event_app/ui/pages/ticket_page.dart';
6 | import 'package:flutter/material.dart';
7 |
8 | void main() {
9 | runApp(const MyApp());
10 | }
11 |
12 | class MyApp extends StatelessWidget {
13 | const MyApp({Key? key}) : super(key: key);
14 |
15 | // This widget is the root of your application.
16 | @override
17 | Widget build(BuildContext context) {
18 | return MaterialApp(
19 | title: 'Flutter Demo',
20 | debugShowCheckedModeBanner: false,
21 | theme: Themes.lightTheme,
22 | onGenerateRoute: (RouteSettings settings) {
23 | switch (settings.name) {
24 | case NamedRoutes.homeScreen:
25 | return MaterialPageRoute(builder: (context) => const HomePage());
26 | case NamedRoutes.detailScreen:
27 | return MaterialPageRoute(
28 | builder: (_) => const DetailPage(),
29 | settings: settings,
30 | );
31 | case NamedRoutes.ticketScreen:
32 | return MaterialPageRoute(
33 | builder: (context) => const TicketPage(),
34 | settings: settings,
35 | );
36 | default:
37 | return MaterialPageRoute(builder: (context) => const HomePage());
38 | }
39 | },
40 | );
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/lib/ui/pages/detail_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:event_app/app/resources/constant/named_routes.dart';
3 | import 'package:event_app/data/event_model.dart';
4 | import 'package:event_app/ui/widgets/circle_button.dart';
5 | import 'package:event_app/ui/widgets/custom_app_bar.dart';
6 | import 'package:event_app/ui/widgets/stack_participant.dart';
7 | import 'package:flutter/material.dart';
8 |
9 | class DetailPage extends StatelessWidget {
10 | const DetailPage({Key? key}) : super(key: key);
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | final Map eventData =
15 | ModalRoute.of(context)!.settings.arguments as Map;
16 | final EventModel eventModel = EventModel.fromJson(eventData);
17 | return Scaffold(
18 | appBar:
19 | const PreferredSize(preferredSize: Size(0, 0), child: CustomAppBar()),
20 | body: Stack(
21 | children: [
22 | SingleChildScrollView(
23 | child: SafeArea(
24 | child: Padding(
25 | padding:
26 | const EdgeInsets.symmetric(vertical: 24, horizontal: 24),
27 | child: Column(
28 | children: [
29 | _buildAppBar(context),
30 | const SizedBox(height: 24),
31 | _buildCardImage(eventModel),
32 | const SizedBox(height: 16),
33 | _buildDescription(eventModel),
34 | ],
35 | ),
36 | ),
37 | ),
38 | ),
39 | Align(
40 | alignment: Alignment.bottomCenter,
41 | child: _buildBottomBar(context, eventModel),
42 | )
43 | ],
44 | ),
45 | );
46 | }
47 |
48 | Widget _buildBottomBar(BuildContext context, EventModel eventModel) =>
49 | ClipRRect(
50 | borderRadius: const BorderRadius.only(
51 | topLeft: Radius.circular(16),
52 | topRight: Radius.circular(16),
53 | ),
54 | child: Container(
55 | height: 80,
56 | padding: const EdgeInsets.symmetric(horizontal: 34, vertical: 16),
57 | decoration: const BoxDecoration(color: AppColors.whiteColor),
58 | child: Row(
59 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
60 | crossAxisAlignment: CrossAxisAlignment.start,
61 | children: [
62 | Column(
63 | crossAxisAlignment: CrossAxisAlignment.start,
64 | children: [
65 | const Text(
66 | "Total Price",
67 | style:
68 | TextStyle(fontSize: 12, color: AppColors.greyTextColor),
69 | ),
70 | const SizedBox(height: 6),
71 | Row(
72 | children: const [
73 | Text(
74 | "\$100",
75 | style: TextStyle(
76 | color: AppColors.primaryColor,
77 | fontSize: 16,
78 | fontWeight: FontWeight.w600,
79 | ),
80 | ),
81 | SizedBox(width: 2),
82 | Text(
83 | "/Person",
84 | style: TextStyle(
85 | fontSize: 12, color: AppColors.greyTextColor),
86 | )
87 | ],
88 | )
89 | ],
90 | ),
91 | ElevatedButton(
92 | onPressed: () => Navigator.pushNamed(
93 | context,
94 | NamedRoutes.ticketScreen,
95 | arguments: eventModel.toJson(),
96 | ),
97 | style: ElevatedButton.styleFrom(
98 | primary: AppColors.primaryColor,
99 | elevation: 0,
100 | shape: RoundedRectangleBorder(
101 | borderRadius: BorderRadius.circular(16)),
102 | padding: const EdgeInsets.symmetric(
103 | vertical: 10, horizontal: 20),
104 | maximumSize: const Size(200, 150)),
105 | child: const Text(
106 | "Get a Ticket",
107 | style: TextStyle(color: AppColors.whiteColor, fontSize: 16),
108 | ),
109 | )
110 | ],
111 | ),
112 | ),
113 | );
114 |
115 | Widget _buildCardImage(EventModel eventModel) => Stack(
116 | children: [
117 | Container(
118 | width: double.infinity,
119 | height: 280,
120 | decoration: BoxDecoration(
121 | color: AppColors.whiteColor,
122 | borderRadius: BorderRadius.circular(16)),
123 | ),
124 | Container(
125 | width: double.infinity,
126 | height: 310,
127 | margin: const EdgeInsets.only(top: 10, left: 10, right: 10),
128 | decoration: BoxDecoration(
129 | borderRadius: BorderRadius.circular(16),
130 | image: DecorationImage(
131 | fit: BoxFit.cover,
132 | image: NetworkImage(
133 | eventModel.image,
134 | ),
135 | ),
136 | ),
137 | ),
138 | Positioned(
139 | right: 22,
140 | top: 22,
141 | child: Container(
142 | height: 65,
143 | width: 48,
144 | decoration: BoxDecoration(
145 | color: AppColors.whiteColor,
146 | borderRadius: BorderRadius.circular(10),
147 | ),
148 | child: Column(
149 | crossAxisAlignment: CrossAxisAlignment.center,
150 | mainAxisAlignment: MainAxisAlignment.center,
151 | children: [
152 | Text(
153 | eventModel.date.split(" ")[0],
154 | ),
155 | Text(
156 | eventModel.date.split(" ")[1],
157 | style: const TextStyle(
158 | color: AppColors.primaryColor,
159 | ),
160 | ),
161 | ],
162 | ),
163 | ),
164 | )
165 | ],
166 | );
167 |
168 | Widget _buildAppBar(BuildContext context) => Row(
169 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
170 | children: [
171 | CircleButton(
172 | icon: 'assets/images/ic_arrow_left.png',
173 | onTap: () => Navigator.pop(context),
174 | ),
175 | const Text(
176 | "Detail",
177 | style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
178 | ),
179 | CircleButton(
180 | icon: 'assets/images/ic_dots.png',
181 | onTap: () {},
182 | )
183 | ],
184 | );
185 |
186 | _buildDescription(EventModel eventModel) => Padding(
187 | padding: const EdgeInsets.symmetric(horizontal: 10),
188 | child: Column(
189 | crossAxisAlignment: CrossAxisAlignment.start,
190 | children: [
191 | Row(
192 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
193 | children: [
194 | Column(
195 | crossAxisAlignment: CrossAxisAlignment.start,
196 | children: [
197 | Text(
198 | eventModel.title,
199 | style: const TextStyle(
200 | fontSize: 18, fontWeight: FontWeight.w600),
201 | ),
202 | const SizedBox(height: 6),
203 | Row(
204 | children: [
205 | Image.asset(
206 | 'assets/images/ic_location.png',
207 | width: 16,
208 | height: 16,
209 | ),
210 | const SizedBox(width: 4),
211 | Text(
212 | eventModel.location,
213 | style:
214 | const TextStyle(color: AppColors.greyTextColor),
215 | )
216 | ],
217 | ),
218 | ],
219 | ),
220 | Container(
221 | width: 65,
222 | height: 35,
223 | alignment: Alignment.center,
224 | decoration: BoxDecoration(
225 | color: AppColors.primaryLightColor,
226 | borderRadius: BorderRadius.circular(10),
227 | ),
228 | child: const Text(
229 | "\$100",
230 | style: TextStyle(
231 | color: AppColors.primaryColor,
232 | fontWeight: FontWeight.w500,
233 | ),
234 | ),
235 | )
236 | ],
237 | ),
238 | const SizedBox(height: 16),
239 | const StackParticipant(
240 | fontSize: 14,
241 | width: 30,
242 | height: 30,
243 | positionText: 100,
244 | ),
245 | const SizedBox(height: 16),
246 | const Text(
247 | "Description",
248 | style: TextStyle(
249 | fontSize: 16,
250 | fontWeight: FontWeight.w500,
251 | ),
252 | ),
253 | const SizedBox(height: 6),
254 | RichText(
255 | textAlign: TextAlign.justify,
256 | text: TextSpan(
257 | text: eventModel.description,
258 | style: const TextStyle(
259 | color: AppColors.greyTextColor,
260 | fontSize: 12,
261 | height: 1.75,
262 | ),
263 | children: const [
264 | TextSpan(
265 | text: "Read More...",
266 | style: TextStyle(
267 | color: AppColors.primaryColor,
268 | ),
269 | )
270 | ],
271 | ),
272 | ),
273 | const SizedBox(height: 64),
274 | ],
275 | ),
276 | );
277 | }
278 |
--------------------------------------------------------------------------------
/lib/ui/pages/home_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:event_app/app/resources/constant/named_routes.dart';
3 | import 'package:event_app/bloc/event_cubit.dart';
4 | import 'package:event_app/data/event_model.dart';
5 | import 'package:event_app/ui/widgets/card_event_this_month.dart';
6 | import 'package:event_app/ui/widgets/card_popular_event.dart';
7 | import 'package:event_app/ui/widgets/custom_app_bar.dart';
8 | import 'package:event_app/ui/widgets/my_navigation_bar.dart';
9 | import 'package:flutter/material.dart';
10 | import 'package:flutter/services.dart';
11 | import 'package:flutter_bloc/flutter_bloc.dart';
12 |
13 | class HomePage extends StatelessWidget {
14 | const HomePage({Key? key}) : super(key: key);
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
19 | return Scaffold(
20 | appBar:
21 | const PreferredSize(preferredSize: Size(0, 0), child: CustomAppBar()),
22 | bottomNavigationBar: const ClipRRect(
23 | borderRadius: BorderRadius.only(
24 | topLeft: Radius.circular(16),
25 | topRight: Radius.circular(16),
26 | ),
27 | child: MyNavigationBar()),
28 | body: SafeArea(
29 | child: SingleChildScrollView(
30 | padding: const EdgeInsets.only(top: 24),
31 | child: BlocProvider(
32 | create: (_) => EventCubit()..loadEventData(),
33 | child: Column(
34 | children: [
35 | _buildHeader(),
36 | const SizedBox(height: 24),
37 | _buildSearch(),
38 | const SizedBox(height: 24),
39 | Padding(
40 | padding: const EdgeInsets.symmetric(horizontal: 24),
41 | child: Row(
42 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
43 | children: const [
44 | Text(
45 | "Popular Event",
46 | style: TextStyle(
47 | fontWeight: FontWeight.w500,
48 | fontSize: 16,
49 | ),
50 | ),
51 | Text(
52 | "View All",
53 | style: TextStyle(
54 | fontWeight: FontWeight.w400,
55 | fontSize: 12,
56 | color: AppColors.greyTextColor),
57 | )
58 | ],
59 | ),
60 | ),
61 | const SizedBox(height: 16),
62 | BlocBuilder(
63 | builder: (context, state) {
64 | if (state is EventError) {
65 | return Center(child: Text(state.message));
66 | } else if (state is EventLoaded) {
67 | return _listPopularEvent(state.events);
68 | } else {
69 | return const Center(child: CircularProgressIndicator());
70 | }
71 | },
72 | ),
73 | const SizedBox(height: 24),
74 | Padding(
75 | padding: const EdgeInsets.symmetric(horizontal: 24),
76 | child: Row(
77 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
78 | children: const [
79 | Text(
80 | "Event This Month",
81 | style: TextStyle(
82 | fontWeight: FontWeight.w500, fontSize: 16),
83 | ),
84 | Text(
85 | "View All",
86 | style: TextStyle(
87 | fontWeight: FontWeight.w400,
88 | fontSize: 12,
89 | color: AppColors.greyTextColor),
90 | )
91 | ],
92 | ),
93 | ),
94 | const SizedBox(height: 16),
95 | BlocBuilder(
96 | builder: (context, state) {
97 | if (state is EventError) {
98 | return Center(child: Text(state.message));
99 | } else if (state is EventLoaded) {
100 | return _listEventThisMonth(state.events);
101 | } else {
102 | return const Center(child: CircularProgressIndicator());
103 | }
104 | },
105 | ),
106 | ],
107 | ),
108 | ),
109 | ),
110 | ),
111 | );
112 | }
113 |
114 | _buildHeader() => Padding(
115 | padding: const EdgeInsets.symmetric(horizontal: 24),
116 | child: Row(
117 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
118 | children: [
119 | Column(
120 | crossAxisAlignment: CrossAxisAlignment.start,
121 | children: [
122 | const Text(
123 | "Current Location",
124 | style: TextStyle(
125 | fontSize: 18,
126 | fontWeight: FontWeight.w600,
127 | ),
128 | ),
129 | const SizedBox(height: 8),
130 | Row(children: [
131 | Image.asset('assets/images/ic_location.png', width: 16),
132 | const SizedBox(width: 4),
133 | const Text(
134 | "Jakarta, Indonesia",
135 | style: TextStyle(
136 | fontSize: 12,
137 | color: AppColors.greyTextColor,
138 | fontWeight: FontWeight.w400,
139 | ),
140 | ),
141 | ]),
142 | ],
143 | ),
144 | Container(
145 | width: 48,
146 | height: 48,
147 | decoration: const BoxDecoration(
148 | shape: BoxShape.circle,
149 | image: DecorationImage(
150 | fit: BoxFit.cover,
151 | image: NetworkImage(
152 | "https://images.unsplash.com/photo-1609010697446-11f2155278f0?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTZ8fHByb2ZpbGUlMjBwaG90b3xlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60"),
153 | ),
154 | ),
155 | )
156 | ],
157 | ),
158 | );
159 |
160 | _buildSearch() => Container(
161 | height: 48,
162 | width: double.infinity,
163 | margin: const EdgeInsets.symmetric(horizontal: 24),
164 | padding: const EdgeInsets.symmetric(horizontal: 16),
165 | decoration: const BoxDecoration(
166 | borderRadius: BorderRadius.all(Radius.circular(50)),
167 | color: AppColors.whiteColor,
168 | ),
169 | child: Row(
170 | children: [
171 | Image.asset('assets/images/ic_search.png', width: 16),
172 | const SizedBox(width: 8),
173 | const Text(
174 | "Search event...",
175 | style: TextStyle(
176 | color: AppColors.greyTextColor, fontWeight: FontWeight.w400),
177 | )
178 | ],
179 | ),
180 | );
181 |
182 | _listPopularEvent(List events) => Container(
183 | width: double.infinity,
184 | height: 270,
185 | padding: const EdgeInsets.only(left: 16),
186 | child: ListView.builder(
187 | physics: const BouncingScrollPhysics(),
188 | scrollDirection: Axis.horizontal,
189 | itemCount: events.length,
190 | itemBuilder: (context, index) => GestureDetector(
191 | onTap: () => Navigator.pushNamed(
192 | arguments: events[index].toJson(),
193 | context,
194 | NamedRoutes.detailScreen,
195 | ),
196 | child: CardPopularEvent(eventModel: events[index]),
197 | ),
198 | ),
199 | );
200 |
201 | _listEventThisMonth(List events) => Container(
202 | height: 300,
203 | margin: const EdgeInsets.symmetric(horizontal: 24),
204 | child: ListView.builder(
205 | physics: const BouncingScrollPhysics(),
206 | itemCount: events.length,
207 | reverse: true,
208 | itemBuilder: (context, index) => BlocBuilder(
209 | builder: (context, state) {
210 | if (state is EventError) {
211 | return const Center(child: Text("Error"));
212 | } else if (state is EventLoaded) {
213 | return GestureDetector(
214 | onTap: () => Navigator.pushNamed(
215 | arguments: events[index].toJson(),
216 | context,
217 | NamedRoutes.detailScreen),
218 | child: CardEventThisMonth(eventModel: events[index]),
219 | );
220 | } else {
221 | return const Center(child: CircularProgressIndicator());
222 | }
223 | },
224 | ),
225 | ),
226 | );
227 | }
228 |
--------------------------------------------------------------------------------
/lib/ui/pages/ticket_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:event_app/data/event_model.dart';
3 | import 'package:event_app/ui/widgets/circle_button.dart';
4 | import 'package:event_app/ui/widgets/custom_app_bar.dart';
5 | import 'package:event_app/ui/widgets/custom_clipper_ticket.dart';
6 | import 'package:event_app/ui/widgets/custom_dashed_line.dart';
7 | import 'package:flutter/material.dart';
8 |
9 | class TicketPage extends StatelessWidget {
10 | const TicketPage({Key? key}) : super(key: key);
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | final Map eventData =
15 | ModalRoute.of(context)!.settings.arguments as Map;
16 | final EventModel eventModel = EventModel.fromJson(eventData);
17 | return Scaffold(
18 | appBar:
19 | const PreferredSize(preferredSize: Size(0, 0), child: CustomAppBar()),
20 | body: SafeArea(
21 | child: Padding(
22 | padding: const EdgeInsets.symmetric(vertical: 24, horizontal: 24),
23 | child: Column(
24 | children: [
25 | _buildAppBar(context),
26 | const SizedBox(height: 30),
27 | ClipPath(
28 | clipper: CustomClipperTicket(),
29 | child: Container(
30 | padding: const EdgeInsets.all(10),
31 | decoration: BoxDecoration(
32 | color: AppColors.whiteColor,
33 | borderRadius: BorderRadius.circular(16),
34 | ),
35 | child: Column(
36 | children: [
37 | Stack(children: [
38 | ClipRRect(
39 | borderRadius: BorderRadius.circular(16),
40 | child: SizedBox(
41 | height: 250,
42 | width: double.infinity,
43 | child: Image.network(
44 | eventModel.image,
45 | fit: BoxFit.cover,
46 | ),
47 | ),
48 | ),
49 | Container(
50 | height: 250,
51 | width: double.infinity,
52 | decoration: BoxDecoration(
53 | color: AppColors.primaryLightColor.withOpacity(0.3),
54 | borderRadius: BorderRadius.circular(16),
55 | ),
56 | ),
57 | ]),
58 | const SizedBox(height: 16),
59 | Padding(
60 | padding: const EdgeInsets.symmetric(horizontal: 16),
61 | child: Column(
62 | crossAxisAlignment: CrossAxisAlignment.start,
63 | children: [
64 | Text(
65 | eventModel.title,
66 | style: const TextStyle(
67 | fontSize: 18, fontWeight: FontWeight.bold),
68 | ),
69 | const SizedBox(height: 16),
70 | CustomPaint(
71 | painter: CustomDashedLinePainter(),
72 | child: const SizedBox(
73 | height: 1,
74 | width: double.infinity,
75 | ),
76 | ),
77 | const SizedBox(height: 16),
78 | Row(
79 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
80 | children: [
81 | _textDescription("Name", "Muhammad Ridhoi"),
82 | _textDescription("Date", "16 : 00 PM"),
83 | ],
84 | ),
85 | const SizedBox(height: 12),
86 | Row(
87 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
88 | children: [
89 | _textDescription(
90 | "Date", "${eventModel.date} 2022"),
91 | _textDescription("Seat", "UNOJI B12"),
92 | ],
93 | ),
94 | const SizedBox(height: 32),
95 | CustomPaint(
96 | painter: CustomDashedLinePainter(),
97 | child: const SizedBox(
98 | height: 1,
99 | width: double.infinity,
100 | ),
101 | ),
102 | const SizedBox(height: 24),
103 | Align(
104 | alignment: Alignment.center,
105 | child: Image.asset(
106 | "assets/images/barcode.png",
107 | height: 70,
108 | width: MediaQuery.of(context).size.width * 0.5,
109 | fit: BoxFit.fill,
110 | ),
111 | ),
112 | const SizedBox(height: 14),
113 | ],
114 | ),
115 | ),
116 | ],
117 | ),
118 | ),
119 | )
120 | ],
121 | ),
122 | ),
123 | ),
124 | );
125 | }
126 |
127 | Widget _textDescription(String title, String value) => Column(
128 | crossAxisAlignment: CrossAxisAlignment.start,
129 | children: [
130 | Text(
131 | title,
132 | style:
133 | const TextStyle(fontSize: 12, color: AppColors.greyTextColor),
134 | ),
135 | const SizedBox(height: 2),
136 | Text(
137 | value,
138 | style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 16),
139 | ),
140 | ],
141 | );
142 |
143 | Widget _buildAppBar(BuildContext context) => Row(
144 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
145 | children: [
146 | CircleButton(
147 | icon: 'assets/images/ic_arrow_left.png',
148 | onTap: () => Navigator.pop(context),
149 | ),
150 | const Text(
151 | "My Ticket",
152 | style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
153 | ),
154 | const SizedBox(width: 42),
155 | ],
156 | );
157 | }
158 |
--------------------------------------------------------------------------------
/lib/ui/widgets/card_event_this_month.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:event_app/data/event_model.dart';
3 | import 'package:event_app/ui/widgets/stack_participant.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class CardEventThisMonth extends StatelessWidget {
7 | final EventModel eventModel;
8 |
9 | const CardEventThisMonth({required this.eventModel, Key? key})
10 | : super(key: key);
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return Container(
15 | height: 90,
16 | margin: const EdgeInsets.only(bottom: 12),
17 | padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
18 | decoration: BoxDecoration(
19 | borderRadius: BorderRadius.circular(16),
20 | color: AppColors.whiteColor,
21 | ),
22 | child: Row(
23 | crossAxisAlignment: CrossAxisAlignment.start,
24 | children: [
25 | ClipRRect(
26 | borderRadius: BorderRadius.circular(12),
27 | child: Image.network(
28 | eventModel.image,
29 | fit: BoxFit.cover,
30 | width: 60,
31 | height: double.infinity,
32 | ),
33 | ),
34 | const SizedBox(width: 12),
35 | Column(
36 | crossAxisAlignment: CrossAxisAlignment.start,
37 | children: [
38 | Text(
39 | eventModel.title,
40 | style: const TextStyle(fontWeight: FontWeight.w500),
41 | ),
42 | const SizedBox(height: 4),
43 | Row(
44 | children: [
45 | Image.asset('assets/images/ic_location.png', width: 14),
46 | const SizedBox(width: 4),
47 | Text(
48 | eventModel.location,
49 | style: const TextStyle(
50 | fontSize: 12,
51 | color: AppColors.greyTextColor,
52 | ),
53 | )
54 | ],
55 | ),
56 | const Expanded(
57 | child: StackParticipant(
58 | width: 25,
59 | height: 25,
60 | fontSize: 12,
61 | positionText: 95,
62 | ),
63 | )
64 | ],
65 | ),
66 | const Spacer(),
67 | Container(
68 | height: 50,
69 | width: 35,
70 | decoration: BoxDecoration(
71 | color: AppColors.primaryLightColor,
72 | borderRadius: BorderRadius.circular(10),
73 | ),
74 | child: Column(
75 | crossAxisAlignment: CrossAxisAlignment.center,
76 | mainAxisAlignment: MainAxisAlignment.center,
77 | children: [
78 | Text(
79 | eventModel.date.split(" ")[0],
80 | ),
81 | Text(
82 | eventModel.date.split(" ")[1],
83 | style: const TextStyle(
84 | color: AppColors.primaryColor,
85 | ),
86 | ),
87 | ],
88 | ),
89 | ),
90 | ],
91 | ),
92 | );
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/lib/ui/widgets/card_popular_event.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:event_app/data/event_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class CardPopularEvent extends StatelessWidget {
6 | final EventModel eventModel;
7 |
8 | const CardPopularEvent({required this.eventModel, Key? key})
9 | : super(key: key);
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Container(
14 | width: 250,
15 | height: 270,
16 | margin: const EdgeInsets.only(left: 8, right: 8),
17 | child: Stack(
18 | children: [
19 | _buildCardImage(),
20 | _buildCardDesc(),
21 | ],
22 | ),
23 | );
24 | }
25 |
26 | _buildCardImage() => Container(
27 | width: 250,
28 | height: 250,
29 | padding: const EdgeInsets.all(10),
30 | decoration: BoxDecoration(
31 | color: AppColors.whiteColor,
32 | borderRadius: BorderRadius.circular(16),
33 | ),
34 | child: ClipRRect(
35 | borderRadius: BorderRadius.circular(16),
36 | child: Stack(
37 | children: [
38 | Image.network(
39 | eventModel.image,
40 | fit: BoxFit.cover,
41 | width: double.infinity,
42 | height: double.infinity,
43 | ),
44 | Positioned(
45 | right: 8,
46 | top: 8,
47 | child: Container(
48 | height: 50,
49 | width: 35,
50 | decoration: BoxDecoration(
51 | color: AppColors.whiteColor,
52 | borderRadius: BorderRadius.circular(10),
53 | ),
54 | child: Column(
55 | crossAxisAlignment: CrossAxisAlignment.center,
56 | mainAxisAlignment: MainAxisAlignment.center,
57 | children: [
58 | Text(
59 | eventModel.date.split(" ")[0],
60 | ),
61 | Text(
62 | eventModel.date.split(" ")[1],
63 | style: const TextStyle(
64 | color: AppColors.primaryColor,
65 | ),
66 | ),
67 | ],
68 | ),
69 | ),
70 | )
71 | ],
72 | ),
73 | ),
74 | );
75 |
76 | _buildCardDesc() => Positioned(
77 | bottom: 0,
78 | right: 0,
79 | left: 0,
80 | child: Container(
81 | height: 60,
82 | padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
83 | margin: const EdgeInsets.symmetric(horizontal: 18),
84 | decoration: BoxDecoration(
85 | color: AppColors.whiteColor,
86 | borderRadius: BorderRadius.circular(12)),
87 | child: Row(
88 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
89 | children: [
90 | Column(
91 | crossAxisAlignment: CrossAxisAlignment.start,
92 | children: [
93 | Text(
94 | eventModel.title,
95 | style: const TextStyle(fontWeight: FontWeight.w500),
96 | ),
97 | const SizedBox(height: 6),
98 | Row(
99 | children: [
100 | Image.asset('assets/images/ic_location.png', width: 14),
101 | const SizedBox(width: 4),
102 | Text(
103 | eventModel.location,
104 | style: const TextStyle(
105 | fontSize: 12,
106 | color: AppColors.greyTextColor,
107 | ),
108 | )
109 | ],
110 | )
111 | ],
112 | ),
113 | Container(
114 | width: 30,
115 | height: 30,
116 | alignment: Alignment.center,
117 | decoration: BoxDecoration(
118 | color: AppColors.primaryLightColor,
119 | borderRadius: BorderRadius.circular(8),
120 | ),
121 | child: Image.asset('assets/images/ic_polyline.png', width: 18),
122 | )
123 | ],
124 | ),
125 | ),
126 | );
127 | }
128 |
--------------------------------------------------------------------------------
/lib/ui/widgets/circle_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class CircleButton extends StatelessWidget {
5 | final String icon;
6 | final Function() onTap;
7 | const CircleButton({required this.icon, required this.onTap, Key? key})
8 | : super(key: key);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return GestureDetector(
13 | onTap: onTap,
14 | child: Container(
15 | width: 42,
16 | height: 42,
17 | alignment: Alignment.center,
18 | decoration: const BoxDecoration(
19 | color: AppColors.primaryLightColor,
20 | shape: BoxShape.circle,
21 | ),
22 | child: Image.asset(icon, width: 18),
23 | ),
24 | );
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/lib/ui/widgets/custom_app_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter/services.dart';
4 |
5 | class CustomAppBar extends StatelessWidget {
6 | const CustomAppBar({Key? key}) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return AppBar(
11 | systemOverlayStyle: const SystemUiOverlayStyle(
12 | statusBarColor: AppColors.backgroundColor,
13 | ),
14 | backgroundColor: AppColors.backgroundColor,
15 | toolbarHeight: 0,
16 | elevation: 0,
17 | );
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/lib/ui/widgets/custom_clipper_ticket.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomClipperTicket extends CustomClipper {
4 | @override
5 | Path getClip(Size size) {
6 | var path = Path();
7 | path.lineTo(0, size.height);
8 | path.lineTo(size.width, size.height);
9 | path.lineTo(size.width, 0);
10 | path.close();
11 |
12 | var holePath = Path();
13 | final radius = size.height * 0.022;
14 |
15 | holePath.addOval(
16 | Rect.fromCircle(
17 | center: Offset(0, size.height * 0.792),
18 | radius: radius,
19 | ),
20 | );
21 |
22 | holePath.addOval(
23 | Rect.fromCircle(
24 | center: Offset(size.width, size.height * 0.792),
25 | radius: radius,
26 | ),
27 | );
28 |
29 | return Path.combine(PathOperation.difference, path, holePath);
30 | }
31 |
32 | @override
33 | bool shouldReclip(covariant CustomClipper oldClipper) => false;
34 | }
35 |
--------------------------------------------------------------------------------
/lib/ui/widgets/custom_dashed_line.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class CustomDashedLinePainter extends CustomPainter {
5 | @override
6 | void paint(Canvas canvas, Size size) {
7 | double dashWidth = 5, dashSpace = 5, startX = 0;
8 | final paint = Paint()
9 | ..color = AppColors.dashedLineColor
10 | ..strokeWidth = 1;
11 | while (startX < size.width) {
12 | canvas.drawLine(Offset(startX, 0), Offset(startX + dashWidth, 0), paint);
13 | startX += dashWidth + dashSpace;
14 | }
15 | }
16 |
17 | @override
18 | bool shouldRepaint(CustomPainter oldDelegate) => false;
19 | }
20 |
--------------------------------------------------------------------------------
/lib/ui/widgets/my_navigation_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class MyNavigationBar extends StatefulWidget {
5 | const MyNavigationBar({Key? key}) : super(key: key);
6 |
7 | @override
8 | State createState() => _MyNavigationBarState();
9 | }
10 |
11 | class _MyNavigationBarState extends State {
12 | @override
13 | Widget build(BuildContext context) {
14 | return NavigationBar(
15 | height: 60,
16 | elevation: 0,
17 | animationDuration: const Duration(seconds: 3),
18 | labelBehavior: NavigationDestinationLabelBehavior.alwaysHide,
19 | backgroundColor: AppColors.whiteColor,
20 | destinations: [
21 | NavigationDestination(
22 | icon: Image.asset("assets/images/ic_home.png", width: 24, height: 24),
23 | label: "Home",
24 | ),
25 | NavigationDestination(
26 | icon:
27 | Image.asset("assets/images/ic_ticket.png", width: 24, height: 24),
28 | label: "Ticket",
29 | ),
30 | NavigationDestination(
31 | icon: Image.asset("assets/images/ic_calendar.png",
32 | width: 24, height: 24),
33 | label: "Event"),
34 | NavigationDestination(
35 | icon: Image.asset("assets/images/ic_profile.png",
36 | width: 24, height: 24),
37 | label: "Profile"),
38 | ],
39 | );
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/lib/ui/widgets/stack_participant.dart:
--------------------------------------------------------------------------------
1 | import 'package:event_app/app/configs/colors.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class StackParticipant extends StatelessWidget {
5 | final double width;
6 | final double height;
7 | final double fontSize;
8 | final double positionText;
9 | const StackParticipant(
10 | {required this.fontSize,
11 | required this.width,
12 | required this.height,
13 | required this.positionText,
14 | Key? key})
15 | : super(key: key);
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Stack(
20 | clipBehavior: Clip.none,
21 | alignment: Alignment.centerLeft,
22 | children: [
23 | Positioned(
24 | child: Container(
25 | width: width,
26 | height: height,
27 | decoration: BoxDecoration(
28 | shape: BoxShape.circle,
29 | border: Border.all(
30 | color: AppColors.whiteColor,
31 | width: 2,
32 | ),
33 | image: const DecorationImage(
34 | fit: BoxFit.cover,
35 | image: NetworkImage(
36 | "https://images.unsplash.com/photo-1600180758890-6b94519a8ba6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80",
37 | ),
38 | ),
39 | ),
40 | ),
41 | ),
42 | Positioned(
43 | left: 16,
44 | child: Container(
45 | width: width,
46 | height: height,
47 | decoration: BoxDecoration(
48 | shape: BoxShape.circle,
49 | border: Border.all(
50 | color: AppColors.whiteColor,
51 | width: 2,
52 | ),
53 | image: const DecorationImage(
54 | fit: BoxFit.cover,
55 | image: NetworkImage(
56 | "https://images.unsplash.com/photo-1628890923662-2cb23c2e0cfe?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80",
57 | ),
58 | ),
59 | ),
60 | ),
61 | ),
62 | Positioned(
63 | left: 32,
64 | child: Container(
65 | width: width,
66 | height: height,
67 | decoration: BoxDecoration(
68 | shape: BoxShape.circle,
69 | border: Border.all(
70 | color: AppColors.whiteColor,
71 | width: 2,
72 | ),
73 | image: const DecorationImage(
74 | fit: BoxFit.cover,
75 | image: NetworkImage(
76 | "https://images.unsplash.com/photo-1607990281513-2c110a25bd8c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=634&q=80",
77 | ),
78 | ),
79 | ),
80 | ),
81 | ),
82 | Positioned(
83 | left: 48,
84 | child: Container(
85 | width: width,
86 | height: height,
87 | decoration: BoxDecoration(
88 | shape: BoxShape.circle,
89 | border: Border.all(
90 | color: AppColors.whiteColor,
91 | width: 2,
92 | ),
93 | image: const DecorationImage(
94 | fit: BoxFit.cover,
95 | image: NetworkImage(
96 | "https://images.unsplash.com/photo-1544005313-94ddf0286df2?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=388&q=80",
97 | ),
98 | ),
99 | ),
100 | ),
101 | ),
102 | Positioned(
103 | left: 64,
104 | child: Container(
105 | width: width,
106 | height: height,
107 | decoration: BoxDecoration(
108 | shape: BoxShape.circle,
109 | border: Border.all(
110 | color: AppColors.whiteColor,
111 | width: 2,
112 | ),
113 | image: const DecorationImage(
114 | fit: BoxFit.cover,
115 | image: NetworkImage(
116 | "https://images.unsplash.com/photo-1509839862600-309617c3201e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80",
117 | ),
118 | ),
119 | ),
120 | ),
121 | ),
122 | Positioned(
123 | left: positionText,
124 | child: Text(
125 | "250+ Joined",
126 | style: TextStyle(color: AppColors.primaryColor, fontSize: fontSize),
127 | ),
128 | )
129 | ],
130 | );
131 | }
132 | }
133 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.8.2"
11 | bloc:
12 | dependency: transitive
13 | description:
14 | name: bloc
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "8.1.0"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.2.0"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.3.1"
39 | clock:
40 | dependency: transitive
41 | description:
42 | name: clock
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.0"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.16.0"
53 | crypto:
54 | dependency: transitive
55 | description:
56 | name: crypto
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "3.0.2"
60 | cupertino_icons:
61 | dependency: "direct main"
62 | description:
63 | name: cupertino_icons
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.0.5"
67 | fake_async:
68 | dependency: transitive
69 | description:
70 | name: fake_async
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.3.0"
74 | ffi:
75 | dependency: transitive
76 | description:
77 | name: ffi
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "2.0.1"
81 | file:
82 | dependency: transitive
83 | description:
84 | name: file
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "6.1.4"
88 | flutter:
89 | dependency: "direct main"
90 | description: flutter
91 | source: sdk
92 | version: "0.0.0"
93 | flutter_bloc:
94 | dependency: "direct main"
95 | description:
96 | name: flutter_bloc
97 | url: "https://pub.dartlang.org"
98 | source: hosted
99 | version: "8.1.1"
100 | flutter_lints:
101 | dependency: "direct dev"
102 | description:
103 | name: flutter_lints
104 | url: "https://pub.dartlang.org"
105 | source: hosted
106 | version: "2.0.1"
107 | flutter_test:
108 | dependency: "direct dev"
109 | description: flutter
110 | source: sdk
111 | version: "0.0.0"
112 | google_fonts:
113 | dependency: "direct main"
114 | description:
115 | name: google_fonts
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "3.0.1"
119 | http:
120 | dependency: transitive
121 | description:
122 | name: http
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "0.13.5"
126 | http_parser:
127 | dependency: transitive
128 | description:
129 | name: http_parser
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "4.0.1"
133 | lints:
134 | dependency: transitive
135 | description:
136 | name: lints
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "2.0.0"
140 | matcher:
141 | dependency: transitive
142 | description:
143 | name: matcher
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "0.12.11"
147 | material_color_utilities:
148 | dependency: transitive
149 | description:
150 | name: material_color_utilities
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "0.1.4"
154 | meta:
155 | dependency: transitive
156 | description:
157 | name: meta
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "1.7.0"
161 | nested:
162 | dependency: transitive
163 | description:
164 | name: nested
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "1.0.0"
168 | path:
169 | dependency: transitive
170 | description:
171 | name: path
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "1.8.1"
175 | path_provider:
176 | dependency: transitive
177 | description:
178 | name: path_provider
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "2.0.11"
182 | path_provider_android:
183 | dependency: transitive
184 | description:
185 | name: path_provider_android
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "2.0.20"
189 | path_provider_ios:
190 | dependency: transitive
191 | description:
192 | name: path_provider_ios
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "2.0.11"
196 | path_provider_linux:
197 | dependency: transitive
198 | description:
199 | name: path_provider_linux
200 | url: "https://pub.dartlang.org"
201 | source: hosted
202 | version: "2.1.7"
203 | path_provider_macos:
204 | dependency: transitive
205 | description:
206 | name: path_provider_macos
207 | url: "https://pub.dartlang.org"
208 | source: hosted
209 | version: "2.0.6"
210 | path_provider_platform_interface:
211 | dependency: transitive
212 | description:
213 | name: path_provider_platform_interface
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "2.0.4"
217 | path_provider_windows:
218 | dependency: transitive
219 | description:
220 | name: path_provider_windows
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "2.1.2"
224 | platform:
225 | dependency: transitive
226 | description:
227 | name: platform
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "3.1.0"
231 | plugin_platform_interface:
232 | dependency: transitive
233 | description:
234 | name: plugin_platform_interface
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "2.1.2"
238 | process:
239 | dependency: transitive
240 | description:
241 | name: process
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "4.2.4"
245 | provider:
246 | dependency: transitive
247 | description:
248 | name: provider
249 | url: "https://pub.dartlang.org"
250 | source: hosted
251 | version: "6.0.3"
252 | sky_engine:
253 | dependency: transitive
254 | description: flutter
255 | source: sdk
256 | version: "0.0.99"
257 | source_span:
258 | dependency: transitive
259 | description:
260 | name: source_span
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "1.8.2"
264 | stack_trace:
265 | dependency: transitive
266 | description:
267 | name: stack_trace
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "1.10.0"
271 | stream_channel:
272 | dependency: transitive
273 | description:
274 | name: stream_channel
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "2.1.0"
278 | string_scanner:
279 | dependency: transitive
280 | description:
281 | name: string_scanner
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "1.1.0"
285 | term_glyph:
286 | dependency: transitive
287 | description:
288 | name: term_glyph
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.2.0"
292 | test_api:
293 | dependency: transitive
294 | description:
295 | name: test_api
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "0.4.9"
299 | typed_data:
300 | dependency: transitive
301 | description:
302 | name: typed_data
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "1.3.1"
306 | vector_math:
307 | dependency: transitive
308 | description:
309 | name: vector_math
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "2.1.2"
313 | win32:
314 | dependency: transitive
315 | description:
316 | name: win32
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "2.7.0"
320 | xdg_directories:
321 | dependency: transitive
322 | description:
323 | name: xdg_directories
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "0.2.0+2"
327 | sdks:
328 | dart: ">=2.17.5 <3.0.0"
329 | flutter: ">=3.0.0"
330 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: event_app
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `flutter 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.17.5 <3.0.0"
22 |
23 | # Dependencies specify other packages that your package needs in order to work.
24 | # To automatically upgrade your package dependencies to the latest versions
25 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
26 | # dependencies can be manually updated by changing the version numbers below to
27 | # the latest version available on pub.dev. To see which dependencies have newer
28 | # versions available, run `flutter pub outdated`.
29 | dependencies:
30 | flutter:
31 | sdk: flutter
32 |
33 |
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.2
37 | google_fonts: ^3.0.1
38 | flutter_bloc: ^8.1.1
39 |
40 | dev_dependencies:
41 | flutter_test:
42 | sdk: flutter
43 |
44 | # The "flutter_lints" package below contains a set of recommended lints to
45 | # encourage good coding practices. The lint set provided by the package is
46 | # activated in the `analysis_options.yaml` file located at the root of your
47 | # package. See that file for information about deactivating specific lint
48 | # rules and activating additional ones.
49 | flutter_lints: ^2.0.0
50 |
51 | # For information on the generic Dart part of this file, see the
52 | # following page: https://dart.dev/tools/pub/pubspec
53 |
54 | # The following section is specific to Flutter packages.
55 | flutter:
56 |
57 | # The following line ensures that the Material Icons font is
58 | # included with your application, so that you can use the icons in
59 | # the material Icons class.
60 | uses-material-design: true
61 |
62 | # To add assets to your application, add an assets section, like this:
63 | assets:
64 | - assets/images/
65 | - assets/json/
66 |
67 | # An image asset can refer to one or more resolution-specific "variants", see
68 | # https://flutter.dev/assets-and-images/#resolution-aware
69 |
70 | # For details regarding adding assets from package dependencies, see
71 | # https://flutter.dev/assets-and-images/#from-packages
72 |
73 | # To add custom fonts to your application, add a fonts section here,
74 | # in this "flutter" section. Each entry in this list should have a
75 | # "family" key with the font family name, and a "fonts" key with a
76 | # list giving the asset and other descriptors for the font. For
77 | # example:
78 | # fonts:
79 | # - family: Schyler
80 | # fonts:
81 | # - asset: fonts/Schyler-Regular.ttf
82 | # - asset: fonts/Schyler-Italic.ttf
83 | # style: italic
84 | # - family: Trajan Pro
85 | # fonts:
86 | # - asset: fonts/TrajanPro.ttf
87 | # - asset: fonts/TrajanPro_Bold.ttf
88 | # weight: 700
89 | #
90 | # For details regarding fonts from package dependencies,
91 | # see https://flutter.dev/custom-fonts/#from-packages
92 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package: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(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------