├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ ├── google-services.json │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── hack20_atomica │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── button.flr ├── google_sign_in.flr ├── logo.flr ├── stop.flr └── tree.flr ├── fonts ├── PantonDemo-Black.otf └── PantonDemo-Light.otf ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── main.dart ├── models │ ├── game_model.dart │ ├── global_covid_model.dart │ ├── movie_model.dart │ ├── news_model.dart │ ├── user_model.dart │ └── weather_model.dart ├── pages │ ├── covid │ │ ├── covid_one.dart │ │ └── covid_two.dart │ ├── hub.dart │ ├── login.dart │ ├── quarantine │ │ ├── game_detail_page.dart │ │ ├── movie_detail_page.dart │ │ ├── quarantine_one.dart │ │ └── quarantine_two.dart │ └── today │ │ ├── today_one.dart │ │ └── today_two.dart ├── shared │ └── main_page.dart ├── src │ └── api.dart └── stores │ ├── auth_store │ ├── authstore.dart │ └── authstore.g.dart │ ├── covid_store │ ├── global_covid_store │ │ ├── globalcovidstore.dart │ │ └── globalcovidstore.g.dart │ └── local_covid_store │ │ ├── localcovidstore.dart │ │ └── localcovidstore.g.dart │ ├── game_store │ ├── gamestore.dart │ └── gamestore.g.dart │ ├── movie_store │ ├── moviestore.dart │ └── moviestore.g.dart │ ├── news_store │ ├── newsstore.dart │ └── newsstore.g.dart │ └── weather_store │ ├── weatherstore.dart │ └── weatherstore.g.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Exceptions to above rules. 44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 45 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: af9b6a6efa83a3aec34577c6a4d65f833cc8282c 8 | channel: master 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # #Hack2020 2 | 3 | # Atomica- Your quarantine buddy 4 | 5 | Hey everyone, are you still stuck at home? Getting bored? 6 | 7 | ![sad yes](https://media.tenor.com/images/649c6da63fbf10fc732d54b1ee9e6f3e/tenor.gif) 8 | 9 | Ran out of tv series or video games to play? 10 | 11 | ![sad yes again](https://media.tenor.com/images/6f1c78289afa069da6b4a22246e579e7/tenor.gif) 12 | 13 | Have an urge to go out and you can't control it? 14 | 15 | ![sad yes returns](https://media.tenor.com/images/a0fc4f30b4dc0d050dea8462fed76d4f/tenor.gif) 16 | 17 | ## We got you covered. 18 | 19 | ![yes](https://media.tenor.com/images/e7776abf34c8e4eb31af76929d945a12/tenor.gif) 20 | 21 | 22 | # We at ATOMICA, want to be your best friends this quarantine. 23 | 24 | ## Weather and news according to your location, right in your hands. 25 | 26 | 27 | 28 | ## Donate trees, do something good for the Earth this time. 29 | 30 | 31 | 32 | ## We reccomend movies and games, just like that friend of yours. 33 | 34 | 35 | 36 | ## Want to go out, know if it is safe for you or not? 37 | 38 | 39 | 40 | # Try ATOMICA, you will love it ❤️❤️ 41 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'com.google.gms.google-services' 26 | apply plugin: 'kotlin-android' 27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 28 | 29 | android { 30 | compileSdkVersion 28 31 | 32 | sourceSets { 33 | main.java.srcDirs += 'src/main/kotlin' 34 | } 35 | 36 | lintOptions { 37 | disable 'InvalidPackage' 38 | } 39 | 40 | defaultConfig { 41 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 42 | applicationId "com.example.hack20_atomica" 43 | minSdkVersion 22 44 | targetSdkVersion 28 45 | versionCode flutterVersionCode.toInteger() 46 | versionName flutterVersionName 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | } 65 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "788894374979", 4 | "firebase_url": "https://hack20-atomica.firebaseio.com", 5 | "project_id": "hack20-atomica", 6 | "storage_bucket": "hack20-atomica.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:788894374979:android:e1607e993560c414aa48f6", 12 | "android_client_info": { 13 | "package_name": "com.example.hack20_atomica" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "788894374979-6sfe12k53q2rlurmitmji1o47gau7pih.apps.googleusercontent.com", 19 | "client_type": 1, 20 | "android_info": { 21 | "package_name": "com.example.hack20_atomica", 22 | "certificate_hash": "f284ddc47770041be224cd145dd771a0459dfd12" 23 | } 24 | }, 25 | { 26 | "client_id": "788894374979-k9cqfu8ih058ds3i5raavfdnurq39pfs.apps.googleusercontent.com", 27 | "client_type": 3 28 | } 29 | ], 30 | "api_key": [ 31 | { 32 | "current_key": "AIzaSyAJkf0DeinD40JAkQN3OQIazBASrpbsR6M" 33 | } 34 | ], 35 | "services": { 36 | "appinvite_service": { 37 | "other_platform_oauth_client": [ 38 | { 39 | "client_id": "788894374979-k9cqfu8ih058ds3i5raavfdnurq39pfs.apps.googleusercontent.com", 40 | "client_type": 3 41 | } 42 | ] 43 | } 44 | } 45 | } 46 | ], 47 | "configuration_version": "1" 48 | } -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 10 | 14 | 21 | 25 | 29 | 34 | 38 | 39 | 40 | 41 | 42 | 43 | 45 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/hack20_atomica/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.hack20_atomica 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath 'com.google.gms:google-services:4.3.3' 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | jcenter() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | } 26 | subprojects { 27 | project.evaluationDependsOn(':app') 28 | } 29 | 30 | task clean(type: Delete) { 31 | delete rootProject.buildDir 32 | } 33 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Flutter Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | include ':app' 6 | 7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 8 | def properties = new Properties() 9 | 10 | assert localPropertiesFile.exists() 11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 12 | 13 | def flutterSdkPath = properties.getProperty("flutter.sdk") 14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 16 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 17 | 18 | def plugins = new Properties() 19 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 20 | if (pluginsFile.exists()) { 21 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 22 | } 23 | 24 | plugins.each { name, path -> 25 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 26 | include ":$name" 27 | project(":$name").projectDir = pluginDirectory 28 | } -------------------------------------------------------------------------------- /assets/button.flr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/assets/button.flr -------------------------------------------------------------------------------- /assets/google_sign_in.flr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/assets/google_sign_in.flr -------------------------------------------------------------------------------- /assets/logo.flr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/assets/logo.flr -------------------------------------------------------------------------------- /assets/stop.flr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/assets/stop.flr -------------------------------------------------------------------------------- /assets/tree.flr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/assets/tree.flr -------------------------------------------------------------------------------- /fonts/PantonDemo-Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/fonts/PantonDemo-Black.otf -------------------------------------------------------------------------------- /fonts/PantonDemo-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/fonts/PantonDemo-Light.otf -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | pod name, :path => File.join(symlink, 'ios') 78 | end 79 | end 80 | 81 | post_install do |installer| 82 | installer.pods_project.targets.each do |target| 83 | target.build_configurations.each do |config| 84 | config.build_settings['ENABLE_BITCODE'] = 'NO' 85 | end 86 | end 87 | end 88 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 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 = 1020; 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 = 8.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 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hack20Atomica; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hack20Atomica; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hack20Atomica; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/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/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sparshGupta24/Flutter-Hackathon--Hack20/a2da7a73fcc500ae44b8b99ffbcba6fd8489c458/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | hack20_atomica 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flare_flutter/flare_actor.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:hack20_atomica/pages/login.dart'; 4 | import 'package:hack20_atomica/stores/auth_store/authstore.dart'; 5 | import 'package:flutter_mobx/flutter_mobx.dart'; 6 | import 'package:intl/intl.dart'; 7 | 8 | import 'models/user_model.dart'; 9 | 10 | void main() { 11 | runApp(MaterialApp(theme: ThemeData(fontFamily: "Panton",canvasColor: Color(0xff1b1b1b),accentColor: Color(0xffff00a8)),home: SafeArea(child: MainApp()))); 12 | } 13 | 14 | class MainApp extends StatefulWidget { 15 | @override 16 | _MainAppState createState() => _MainAppState(); 17 | } 18 | 19 | class _MainAppState extends State { 20 | AuthStore authStore = new AuthStore(); 21 | @override 22 | Widget build(BuildContext context) { 23 | print(DateFormat('yyyy-MM-dd').format(new DateTime.now())); 24 | return Login(); 25 | } 26 | }//auth user check laga dena check commit #2 27 | -------------------------------------------------------------------------------- /lib/models/game_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class Game { 4 | String name; 5 | String about; 6 | String company; 7 | String img; 8 | int rating; 9 | 10 | Game( 11 | {@required this.name, 12 | @required this.about, 13 | @required this.company, 14 | @required this.img, 15 | @required this.rating}); 16 | } 17 | -------------------------------------------------------------------------------- /lib/models/global_covid_model.dart: -------------------------------------------------------------------------------- 1 | class GlobalCovid { 2 | int total; 3 | int newRecov; 4 | int newDeath; 5 | int totalRecov; 6 | int totalDeath; 7 | 8 | GlobalCovid( 9 | {this.total, 10 | this.newRecov, 11 | this.newDeath, 12 | this.totalRecov, 13 | this.totalDeath}); 14 | } 15 | -------------------------------------------------------------------------------- /lib/models/movie_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class Movie { 4 | String name; 5 | String about; 6 | String director; 7 | String img; 8 | int rating; 9 | 10 | Movie( 11 | {@required this.name, 12 | @required this.about, 13 | @required this.director, 14 | @required this.img, 15 | @required this.rating}); 16 | } 17 | -------------------------------------------------------------------------------- /lib/models/news_model.dart: -------------------------------------------------------------------------------- 1 | class News { 2 | String source; 3 | String title; 4 | String description; 5 | String content; 6 | String imgUrl; 7 | String url; 8 | 9 | News( 10 | {this.source, 11 | this.title, 12 | this.description, 13 | this.content, 14 | this.imgUrl, 15 | this.url}); 16 | } 17 | -------------------------------------------------------------------------------- /lib/models/user_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class User { 4 | String name; 5 | String email; 6 | String img; 7 | 8 | User({@required this.name, @required this.email, @required this.img}); 9 | } 10 | -------------------------------------------------------------------------------- /lib/models/weather_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Weather { 4 | String city; 5 | String country; 6 | String weather; 7 | int temperature; 8 | int feelsLike; 9 | int maxTemp; 10 | int minTemp; 11 | int humidity; 12 | 13 | Weather( 14 | {this.city, 15 | this.country, 16 | this.weather, 17 | this.temperature, 18 | this.feelsLike, 19 | this.maxTemp, 20 | this.minTemp, 21 | this.humidity}); 22 | } 23 | -------------------------------------------------------------------------------- /lib/pages/covid/covid_one.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_mobx/flutter_mobx.dart'; 4 | import 'package:flutter_sparkline/flutter_sparkline.dart'; 5 | import 'package:hack20_atomica/models/global_covid_model.dart'; 6 | import 'package:hack20_atomica/stores/covid_store/global_covid_store/globalcovidstore.dart'; 7 | import 'package:hack20_atomica/stores/covid_store/local_covid_store/localcovidstore.dart'; 8 | import 'package:hack20_atomica/stores/weather_store/weatherstore.dart'; 9 | 10 | class CovidOne extends StatefulWidget { 11 | @override 12 | _CovidOneState createState() => _CovidOneState(); 13 | } 14 | 15 | class _CovidOneState extends State { 16 | GlobalCovidStore _globalCovidStore = new GlobalCovidStore(); 17 | LocalCovidStore _localCovidStore = new LocalCovidStore(); 18 | 19 | @override 20 | void initState() { 21 | _localCovidStore.getCurrentLocation(); 22 | _globalCovidStore.getGlobalCovidData(); // TODO: implement initState 23 | super.initState(); 24 | } 25 | 26 | _columnTwin( 27 | {int count, String label, double size = 20, String align = "Center"}) { 28 | return Column( 29 | crossAxisAlignment: align.compareTo("Left") == 0 30 | ? CrossAxisAlignment.start 31 | : align.compareTo("Right") == 0 32 | ? CrossAxisAlignment.end 33 | : CrossAxisAlignment.center, 34 | children: [ 35 | Text( 36 | count.toString(), 37 | style: TextStyle( 38 | color: Colors.white, fontSize: size, fontWeight: FontWeight.w100), 39 | ), 40 | Text( 41 | label, 42 | style: 43 | TextStyle(color: Color(0xffff00a8), fontWeight: FontWeight.w100), 44 | ) 45 | ], 46 | ); 47 | } 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | return Scaffold( 52 | body: SingleChildScrollView( 53 | child: Column( 54 | crossAxisAlignment: CrossAxisAlignment.start, 55 | children: [ 56 | // Observer(builder: (context) => _localCovidStore.isLoading?CupertinoActivityIndicator():Text(_localCovidStore.count[20].toString()),) 57 | Padding( 58 | padding: const EdgeInsets.only(top: 10.0, bottom: 10, left: 10), 59 | child: Container( 60 | width: double.maxFinite, 61 | decoration: BoxDecoration( 62 | color: Color(0xff1b1b1b), 63 | borderRadius: BorderRadius.only( 64 | topLeft: Radius.circular(20), 65 | bottomLeft: Radius.circular(20), 66 | ), 67 | boxShadow: [ 68 | BoxShadow( 69 | color: Colors.black54, 70 | blurRadius: 10, 71 | offset: Offset(0, 0), 72 | ) 73 | ], 74 | ), 75 | child: Padding( 76 | padding: const EdgeInsets.all(20.0), 77 | child: Observer( 78 | builder: (context) => !_localCovidStore.isLoading 79 | ? Column( 80 | children: [ 81 | Padding( 82 | padding: const EdgeInsets.all(10.0), 83 | child: Row( 84 | mainAxisAlignment: MainAxisAlignment.start, 85 | crossAxisAlignment: CrossAxisAlignment.end, 86 | children: [ 87 | Padding( 88 | padding: const EdgeInsets.only(bottom: 3.0), 89 | child: Text("YOUR CURRENT LOCATION: ", style: TextStyle( 90 | fontSize: 10, 91 | color: Colors.white, 92 | fontWeight: FontWeight.w100),), 93 | ), 94 | Text( 95 | _localCovidStore.country, 96 | style: TextStyle( 97 | fontSize: 20, 98 | color: Color(0xffff00a8), 99 | fontWeight: FontWeight.w100), 100 | ), 101 | ], 102 | ), 103 | ), 104 | Row( 105 | mainAxisAlignment: MainAxisAlignment.center, 106 | crossAxisAlignment: CrossAxisAlignment.end, 107 | children: [ 108 | Text( 109 | _localCovidStore.localCovid.total 110 | .toString(), 111 | style: TextStyle( 112 | fontSize: 30, color: Colors.white), 113 | ), 114 | Padding( 115 | padding: const EdgeInsets.only(bottom: 3.0), 116 | child: Text( 117 | " Total Count", 118 | style: TextStyle( 119 | fontSize: 13, 120 | color: Color(0xffff00a8)), 121 | ), 122 | ), 123 | ], 124 | ), 125 | 126 | SizedBox(height: 10), 127 | Container( 128 | decoration: BoxDecoration(color: Color(0xff101010), borderRadius: BorderRadius.all(Radius.circular(20))), 129 | child: Padding( 130 | padding: const EdgeInsets.all(10.0), 131 | child: Sparkline( 132 | data: _localCovidStore.count.toList(), 133 | lineColor: Color(0xffff00a8), 134 | pointsMode: PointsMode.last, 135 | pointSize: 8.0, 136 | pointColor: Colors.white, 137 | fillMode: FillMode.below, 138 | fillColor: Color(0x77ff00a8), 139 | ), 140 | ), 141 | ), 142 | ], 143 | ) 144 | : CupertinoActivityIndicator(), 145 | ), 146 | ), 147 | ), 148 | ), 149 | 150 | Padding( 151 | padding: const EdgeInsets.only(top: 10.0, bottom: 10, left: 10), 152 | child: Container( 153 | width: double.maxFinite, 154 | decoration: BoxDecoration( 155 | color: Color(0xff1b1b1b), 156 | borderRadius: BorderRadius.only( 157 | topLeft: Radius.circular(20), 158 | bottomLeft: Radius.circular(20), 159 | ), 160 | boxShadow: [ 161 | BoxShadow( 162 | color: Colors.black54, 163 | blurRadius: 10, 164 | offset: Offset(0, 0), 165 | ) 166 | ], 167 | ), 168 | child: Padding( 169 | padding: const EdgeInsets.all(20.0), 170 | child: Observer( 171 | builder: (context) => !_globalCovidStore.isLoading 172 | ? Column( 173 | children: [ 174 | Padding( 175 | padding: const EdgeInsets.all(10.0), 176 | child: Row( 177 | mainAxisAlignment: MainAxisAlignment.start, 178 | children: [ 179 | Text( 180 | "The world", 181 | style: TextStyle( 182 | fontSize: 20, 183 | color: Color(0xffff00a8), 184 | fontWeight: FontWeight.w100), 185 | ), 186 | ], 187 | ), 188 | ), 189 | Row( 190 | mainAxisAlignment: MainAxisAlignment.center, 191 | crossAxisAlignment: CrossAxisAlignment.end, 192 | children: [ 193 | Text( 194 | _globalCovidStore.globalData.total 195 | .toString(), 196 | style: TextStyle( 197 | fontSize: 30, color: Colors.white), 198 | ), 199 | Padding( 200 | padding: const EdgeInsets.only(bottom: 5.0), 201 | child: Text( 202 | " Total Count", 203 | style: TextStyle( 204 | fontSize: 13, 205 | color: Color(0xffff00a8)), 206 | ), 207 | ), 208 | ], 209 | ), 210 | // _columnTwin( 211 | // count: _globalCovidStore.globalData.total, 212 | // label: "Total count", 213 | // size: 30), 214 | SizedBox(height: 10), 215 | Row( 216 | mainAxisAlignment: MainAxisAlignment.center, 217 | children: [ 218 | _columnTwin( 219 | count: _globalCovidStore 220 | .globalData.totalDeath, 221 | label: "Total deaths", 222 | align: "Right"), 223 | SizedBox(width: 15), 224 | _columnTwin( 225 | count: _globalCovidStore 226 | .globalData.totalRecov, 227 | label: "Total recovered", 228 | align: "Left"), 229 | ], 230 | ), 231 | SizedBox(height: 10), 232 | 233 | Row( 234 | mainAxisAlignment: MainAxisAlignment.center, 235 | children: [ 236 | _columnTwin( 237 | count: 238 | _globalCovidStore.globalData.newDeath, 239 | label: "New deaths", 240 | align: "Right"), 241 | SizedBox(width: 15), 242 | _columnTwin( 243 | count: 244 | _globalCovidStore.globalData.newRecov, 245 | label: "New recovered", 246 | align: "Left"), 247 | ], 248 | ), 249 | SizedBox(height: 10), 250 | ], 251 | ) 252 | : CupertinoActivityIndicator(), 253 | ), 254 | ), 255 | ), 256 | ), 257 | ], 258 | ), 259 | ), 260 | ); 261 | } 262 | } 263 | -------------------------------------------------------------------------------- /lib/pages/covid/covid_two.dart: -------------------------------------------------------------------------------- 1 | import 'package:flare_flutter/flare_actor.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class CovidTwo extends StatefulWidget { 5 | @override 6 | _CovidTwoState createState() => _CovidTwoState(); 7 | } 8 | 9 | class _CovidTwoState extends State { 10 | _tipcard(String doing, String what){ 11 | return Padding( 12 | padding: const EdgeInsets.only(top:5.0, left: 5.0, bottom: 5.0), 13 | child: Container( 14 | width: double.maxFinite, 15 | decoration: BoxDecoration( 16 | color: Color(0xff1b1b1b), 17 | borderRadius: BorderRadius.only( 18 | topLeft: Radius.circular(20), 19 | bottomLeft: Radius.circular(20)), 20 | boxShadow: [ 21 | BoxShadow( 22 | color: Colors.black54, 23 | blurRadius: 5, 24 | offset: Offset(0, 0)) 25 | ]), 26 | child: Padding( 27 | padding: EdgeInsets.only(top:20.0, right: 30.0, bottom: 20.0), 28 | child: Row( 29 | mainAxisAlignment: MainAxisAlignment.end, 30 | children: [ 31 | 32 | Text("$doing ",style: TextStyle(color: Color(0xffff00a8), fontSize: 25),), 33 | Text(what,style: TextStyle(color: Colors.white, fontSize: 25, fontWeight: FontWeight.w100),), 34 | Padding( 35 | padding: const EdgeInsets.all(10.0), 36 | child: Container(height: 5, width: 5, decoration: BoxDecoration(color: Colors.white, shape:BoxShape.circle),), 37 | ), 38 | ],), 39 | ), 40 | ), 41 | ); 42 | } 43 | @override 44 | Widget build(BuildContext context) { 45 | return Scaffold( 46 | body: SingleChildScrollView( 47 | child: Padding( 48 | padding: const EdgeInsets.only(left: 20.0, top: 20), 49 | child: Column( 50 | children: [ 51 | Container( 52 | height: 50, 53 | width: 50, 54 | child: FlareActor( 55 | "assets/stop.flr", 56 | animation: "Untitled", 57 | )), 58 | Text( 59 | "STAY HOME.SAVE LIVES.", 60 | style: TextStyle(color: Color(0xffff00a8), fontSize: 25), 61 | ), 62 | Text( 63 | "Help stop coronavirus", 64 | style: TextStyle(color: Colors.white, fontSize: 14), 65 | ), 66 | SizedBox(height: 20,), 67 | _tipcard("Stay", "Home"), 68 | _tipcard("keep", "distance"), 69 | _tipcard("wash", "Hands"), 70 | _tipcard("Cover", "your"), 71 | _tipcard("Sick?", "Call"), 72 | 73 | ], 74 | ), 75 | ), 76 | )); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /lib/pages/hub.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_mobx/flutter_mobx.dart'; 3 | import 'package:hack20_atomica/models/user_model.dart'; 4 | import 'package:hack20_atomica/pages/quarantine/quarantine_one.dart'; 5 | import 'package:hack20_atomica/pages/quarantine/quarantine_two.dart'; 6 | import 'package:hack20_atomica/pages/today/today_one.dart'; 7 | import 'package:hack20_atomica/pages/today/today_two.dart'; 8 | import 'package:hack20_atomica/shared/main_page.dart'; 9 | import 'package:hack20_atomica/stores/auth_store/authstore.dart'; 10 | 11 | import 'covid/covid_one.dart'; 12 | import 'covid/covid_two.dart'; 13 | 14 | class Hub extends StatefulWidget { 15 | User user; 16 | Hub(user) { 17 | this.user = user; 18 | } 19 | @override 20 | _HubState createState() => _HubState(user); 21 | } 22 | 23 | class _HubState extends State { 24 | PageController verticalController; 25 | int curr; 26 | User user; 27 | _HubState(user) { 28 | this.user = user; 29 | } 30 | 31 | @override 32 | void initState() { 33 | curr = 0; 34 | verticalController = PageController( 35 | initialPage: 0, 36 | ); // TODO: implement initState 37 | super.initState(); 38 | } 39 | 40 | _verticalTab(String heading, int index) { 41 | return GestureDetector( 42 | onTap: () => setState(() { 43 | curr = index; 44 | print(curr); 45 | verticalController.animateToPage(index, 46 | duration: Duration(milliseconds: 300), curve: Curves.linear); 47 | }), 48 | child: RotationTransition( 49 | turns: new AlwaysStoppedAnimation(-90 / 360), 50 | child: Padding( 51 | padding: EdgeInsets.symmetric(vertical: 10), 52 | child: Column( 53 | children: [ 54 | Text( 55 | heading, 56 | style: TextStyle( 57 | color: curr == index ? Color(0xffFF00A8) : Colors.white, 58 | fontWeight: 59 | curr == index ? FontWeight.w400 : FontWeight.w200), 60 | ), 61 | Container( 62 | height: 4, 63 | width: 4, 64 | decoration: BoxDecoration( 65 | shape: BoxShape.circle, 66 | color: 67 | curr == index ? Color(0xffff00a8) : Colors.transparent), 68 | ) 69 | ], 70 | ), 71 | ), 72 | ), 73 | ); 74 | } 75 | 76 | @override 77 | Widget build(BuildContext context) { 78 | return SafeArea( 79 | child: Scaffold( 80 | backgroundColor: Color(0xff1b1b1b), 81 | body: Column( 82 | children: [ 83 | Container( 84 | height: MediaQuery.of(context).size.height * 0.2, 85 | width: MediaQuery.of(context).size.width, 86 | child: Container( 87 | child: Padding( 88 | padding: 89 | EdgeInsets.all(MediaQuery.of(context).size.height * 0.03), 90 | child: Row( 91 | crossAxisAlignment: CrossAxisAlignment.center, 92 | children: [ 93 | Container( 94 | height: MediaQuery.of(context).size.height * 0.08, 95 | width: MediaQuery.of(context).size.height * 0.08, 96 | decoration: BoxDecoration( 97 | shape: BoxShape.circle, 98 | image: DecorationImage( 99 | image: NetworkImage(user.img), fit: BoxFit.cover), 100 | ), 101 | ), 102 | Expanded( 103 | child: Padding( 104 | padding: const EdgeInsets.all(10.0), 105 | child: Column( 106 | mainAxisAlignment: MainAxisAlignment.center, 107 | crossAxisAlignment: CrossAxisAlignment.start, 108 | children: [ 109 | Text( 110 | "Hi", 111 | style: TextStyle( 112 | color: Color(0xffFF00A8), fontSize: 20), 113 | ), 114 | Text( 115 | user.name, 116 | style: TextStyle( 117 | color: Colors.white, 118 | fontWeight: FontWeight.w200, 119 | fontSize: 23), 120 | ) 121 | ], 122 | ), 123 | ), 124 | ), 125 | Icon( 126 | Icons.exit_to_app, 127 | color: Colors.white70, 128 | ), 129 | ], 130 | ), 131 | ), 132 | ), 133 | ), 134 | Container( 135 | height: MediaQuery.of(context).size.height * 0.75, 136 | color: Color(0xff1b1b1b), 137 | child: Row( 138 | children: [ 139 | Container( 140 | color: Color(0xff1b1b1b), 141 | height: MediaQuery.of(context).size.height * 0.75, 142 | width: MediaQuery.of(context).size.width * 0.2, 143 | child: Column( 144 | children: [ 145 | SizedBox( 146 | height: 100, 147 | ), 148 | _verticalTab("TODAY", 0), 149 | SizedBox( 150 | height: 100, 151 | ), 152 | _verticalTab("QUARANTINE", 1), 153 | SizedBox( 154 | height: 100, 155 | ), 156 | _verticalTab("COVID TIMES", 2), 157 | ], 158 | ), 159 | ), 160 | Container( 161 | height: MediaQuery.of(context).size.height * 0.75, 162 | width: MediaQuery.of(context).size.width * 0.8, 163 | child: PageView( 164 | scrollDirection: Axis.vertical, 165 | physics: NeverScrollableScrollPhysics(), 166 | controller: verticalController, 167 | children: [ 168 | TwinView( 169 | TodayOne(), TodayTwo(), "WEATHER", "DO YOUR PART"), 170 | TwinView(QuarantineOne(), QuarantineTwo(), 171 | "RECOMENDATIONS", "USE YOUR TIME"), 172 | TwinView( 173 | CovidOne(), CovidTwo(), "CURRENT STATUS", "TIPS"), 174 | ], 175 | ), 176 | ) 177 | ], 178 | ), 179 | ), 180 | ], 181 | ), 182 | ), 183 | ); 184 | } 185 | } 186 | -------------------------------------------------------------------------------- /lib/pages/login.dart: -------------------------------------------------------------------------------- 1 | import 'package:flare_flutter/flare_actor.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_mobx/flutter_mobx.dart'; 4 | import 'package:hack20_atomica/pages/hub.dart'; 5 | import 'package:hack20_atomica/stores/auth_store/authstore.dart'; 6 | 7 | import '../main.dart'; 8 | 9 | class Login extends StatefulWidget { 10 | @override 11 | _LoginState createState() => _LoginState(); 12 | } 13 | 14 | class _LoginState extends State { 15 | AuthStore authStore = new AuthStore(); 16 | @override 17 | void initState() { 18 | // TODO: implement initState 19 | super.initState(); 20 | } 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return Scaffold( 25 | backgroundColor: Color(0xff1b1b1b), 26 | body: Column( 27 | children: [ 28 | SizedBox(height: 50), 29 | Container( 30 | width: MediaQuery.of(context).size.width, 31 | height: MediaQuery.of(context).size.width / 951 * 1024, 32 | child: FlareActor("assets/logo.flr", 33 | fit: BoxFit.contain, animation: "Untitled"), 34 | ), 35 | Observer( 36 | name: 'login', 37 | builder: (context) => GestureDetector( 38 | onTap: () => { 39 | authStore.googleSignIn().then((value) => { 40 | print(authStore.user.name), 41 | Navigator.push( 42 | context, 43 | MaterialPageRoute( 44 | builder: (context) => Hub(authStore.user))) 45 | }) 46 | }, 47 | child: Container( 48 | width: MediaQuery.of(context).size.width / 2.1, 49 | height: 100, 50 | child: FlareActor("assets/google_sign_in.flr", 51 | fit: BoxFit.contain, animation: authStore.trying ? "go" : "idle"), 52 | ), 53 | ), 54 | ), 55 | FlatButton(onPressed: authStore.signOut, child: Text("LogOut")) 56 | ], 57 | ), 58 | ); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /lib/pages/quarantine/game_detail_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hack20_atomica/models/game_model.dart'; 3 | 4 | class GameScreen extends StatelessWidget { 5 | Game game; 6 | GameScreen({this.game}); 7 | @override 8 | Widget build(BuildContext context) { 9 | return Scaffold( 10 | body: Stack( 11 | children: [ 12 | Align( 13 | alignment: Alignment(0, -1), 14 | child: Container( 15 | height: MediaQuery.of(context).size.height / 1.5, 16 | decoration: BoxDecoration( 17 | image: DecorationImage( 18 | image: NetworkImage(game.img), fit: BoxFit.cover)), 19 | ), 20 | ), 21 | Align( 22 | alignment: Alignment(0, 1), 23 | child: ClipPath( 24 | clipper: TopClipper(), 25 | child: Container( 26 | height: MediaQuery.of(context).size.height / 2, 27 | width: MediaQuery.of(context).size.width, 28 | decoration: BoxDecoration( 29 | boxShadow: [ 30 | BoxShadow( 31 | color: Colors.black, 32 | blurRadius: 20, 33 | offset: Offset(0, -10)) 34 | ], 35 | borderRadius: BorderRadius.only( 36 | topLeft: Radius.circular(30), 37 | topRight: Radius.circular(30)), 38 | color: Color(0xff1b1b1b), 39 | ), 40 | child: Padding( 41 | padding: 42 | const EdgeInsets.only(left: 20.0, right: 20, top: 40), 43 | child: Column( 44 | crossAxisAlignment: CrossAxisAlignment.start, 45 | children: [ 46 | GestureDetector( 47 | onTap: () => Navigator.pop(context), 48 | child: Icon( 49 | Icons.arrow_back_ios, 50 | color: Colors.white, 51 | )), 52 | SizedBox( 53 | height: 30, 54 | ), 55 | Text( 56 | game.name, 57 | style: 58 | TextStyle(color: Color(0xffff00a8), fontSize: 35), 59 | ), 60 | Text( 61 | game.company, 62 | style: TextStyle(color: Colors.white, fontSize: 17), 63 | ), 64 | SizedBox( 65 | height: 30, 66 | ), 67 | Text( 68 | game.about, 69 | style: TextStyle( 70 | color: Colors.white, 71 | fontWeight: FontWeight.w100, 72 | ), 73 | ), 74 | SizedBox( 75 | height: 20, 76 | ), 77 | Text( 78 | "Ratings: ${game.rating}/5", 79 | style: 80 | TextStyle(color: Color(0xffff00a8), fontSize: 19), 81 | ) 82 | ], 83 | ), 84 | ), 85 | ), 86 | ), 87 | ), 88 | ], 89 | ), 90 | ); 91 | } 92 | } 93 | 94 | class TopClipper extends CustomClipper { 95 | @override 96 | Path getClip(Size size) { 97 | Path path = Path(); 98 | path.lineTo(0, 30); 99 | path.arcToPoint(Offset(30, 0), radius: Radius.circular(30)); 100 | path.lineTo(size.width - 30, 100); 101 | path.arcToPoint(Offset(size.width, 130), radius: Radius.circular(30)); 102 | path.lineTo(size.width, size.height); 103 | path.lineTo(0, size.height); 104 | return path; 105 | } 106 | 107 | @override 108 | bool shouldReclip(CustomClipper oldClipper) => false; 109 | } 110 | -------------------------------------------------------------------------------- /lib/pages/quarantine/movie_detail_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hack20_atomica/models/movie_model.dart'; 3 | 4 | class MovieScreen extends StatelessWidget { 5 | Movie movie; 6 | MovieScreen({this.movie}); 7 | @override 8 | Widget build(BuildContext context) { 9 | return Scaffold( 10 | body: Stack( 11 | children: [ 12 | Align( 13 | alignment: Alignment(0, -1), 14 | child: Container( 15 | height: MediaQuery.of(context).size.height / 1.5, 16 | decoration: BoxDecoration( 17 | image: DecorationImage( 18 | image: NetworkImage(movie.img), fit: BoxFit.cover)), 19 | ), 20 | ), 21 | Align( 22 | alignment: Alignment(0, 1), 23 | child: ClipPath( 24 | clipper: TopClipper(), 25 | child: Container( 26 | height: MediaQuery.of(context).size.height / 2, 27 | width: MediaQuery.of(context).size.width, 28 | decoration: BoxDecoration( 29 | boxShadow: [ 30 | BoxShadow( 31 | color: Colors.black, 32 | blurRadius: 20, 33 | offset: Offset(0, -10)) 34 | ], 35 | borderRadius: BorderRadius.only( 36 | topLeft: Radius.circular(30), 37 | topRight: Radius.circular(30)), 38 | color: Color(0xff1b1b1b), 39 | ), 40 | child: Padding( 41 | padding: 42 | const EdgeInsets.only(left: 20.0, right: 20, top: 40), 43 | child: Column( 44 | crossAxisAlignment: CrossAxisAlignment.start, 45 | children: [ 46 | GestureDetector( 47 | onTap: () => Navigator.pop(context), 48 | child: Icon( 49 | Icons.arrow_back_ios, 50 | color: Colors.white, 51 | )), 52 | SizedBox( 53 | height: 30, 54 | ), 55 | Text( 56 | movie.name, 57 | style: 58 | TextStyle(color: Color(0xffff00a8), fontSize: 35), 59 | ), 60 | Text( 61 | movie.director, 62 | style: TextStyle(color: Colors.white, fontSize: 17), 63 | ), 64 | SizedBox( 65 | height: 30, 66 | ), 67 | Text( 68 | movie.about, 69 | style: TextStyle( 70 | color: Colors.white, 71 | fontWeight: FontWeight.w100, 72 | ), 73 | ), 74 | SizedBox( 75 | height: 20, 76 | ), 77 | Text( 78 | "Ratings: ${movie.rating}/5", 79 | style: 80 | TextStyle(color: Color(0xffff00a8), fontSize: 19), 81 | ) 82 | ], 83 | ), 84 | ), 85 | ), 86 | ), 87 | ), 88 | ], 89 | ), 90 | ); 91 | } 92 | } 93 | 94 | class TopClipper extends CustomClipper { 95 | @override 96 | Path getClip(Size size) { 97 | Path path = Path(); 98 | path.lineTo(0, 30); 99 | path.arcToPoint(Offset(30, 0), radius: Radius.circular(30)); 100 | path.lineTo(size.width - 30, 100); 101 | path.arcToPoint(Offset(size.width, 130), radius: Radius.circular(30)); 102 | path.lineTo(size.width, size.height); 103 | path.lineTo(0, size.height); 104 | return path; 105 | } 106 | 107 | @override 108 | bool shouldReclip(CustomClipper oldClipper) => false; 109 | } 110 | -------------------------------------------------------------------------------- /lib/pages/quarantine/quarantine_one.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hack20_atomica/pages/quarantine/game_detail_page.dart'; 3 | import 'package:hack20_atomica/stores/movie_store/moviestore.dart'; 4 | import 'package:hack20_atomica/stores/game_store/gamestore.dart'; 5 | import 'package:flutter_mobx/flutter_mobx.dart'; 6 | import 'package:flutter/cupertino.dart'; 7 | import 'movie_detail_page.dart'; 8 | 9 | class QuarantineOne extends StatefulWidget { 10 | @override 11 | _QuarantineOneState createState() => _QuarantineOneState(); 12 | } 13 | 14 | class _QuarantineOneState extends State { 15 | MovieStore _movieStore = new MovieStore(); 16 | GameStore _gameStore = new GameStore(); 17 | @override 18 | void initState() { 19 | _movieStore.getCurrentLocation(); 20 | _gameStore.getCurrentLocation(); // TODO: implement initState 21 | super.initState(); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return Scaffold( 27 | body: SingleChildScrollView( 28 | child: Column( 29 | crossAxisAlignment: CrossAxisAlignment.start, 30 | children: [ 31 | Padding( 32 | padding: const EdgeInsets.all(10.0), 33 | child: Column( 34 | crossAxisAlignment: CrossAxisAlignment.start, 35 | children: [ 36 | Text("Something to binge", 37 | style: TextStyle(color: Color(0xffff00a8), fontSize: 20)), 38 | Text("This time won't come back, eh?", 39 | style: TextStyle( 40 | color: Colors.white, 41 | fontSize: 15, 42 | fontWeight: FontWeight.w100)), 43 | ], 44 | ), 45 | ), 46 | Container( 47 | height: 270, 48 | child: Observer( 49 | builder: (context) => _movieStore.isLoading 50 | ? Container( 51 | child: CupertinoActivityIndicator(), 52 | height: 50, 53 | width: 50, 54 | ) 55 | : ListView.builder( 56 | scrollDirection: Axis.horizontal, 57 | itemCount: _movieStore.movies.length, 58 | itemBuilder: (context, index) => Padding( 59 | padding: const EdgeInsets.all(10.0), 60 | child: GestureDetector( 61 | onTap: () => Navigator.push( 62 | context, 63 | MaterialPageRoute( 64 | builder: (context) => MovieScreen( 65 | movie: _movieStore.movies[index]), 66 | )), 67 | child: Container( 68 | width: 180, 69 | decoration: BoxDecoration( 70 | color: Color(0xff1b1b1b), 71 | borderRadius: BorderRadius.only( 72 | topLeft: Radius.circular(20), 73 | topRight: Radius.circular(20), 74 | bottomLeft: Radius.circular(20), 75 | ), 76 | boxShadow: [ 77 | BoxShadow( 78 | color: Colors.black54, 79 | blurRadius: 5, 80 | offset: Offset(0, 0)) 81 | ]), 82 | child: Padding( 83 | padding: const EdgeInsets.all(20.0), 84 | child: Column( 85 | crossAxisAlignment: CrossAxisAlignment.start, 86 | children: [ 87 | Container( 88 | height: 150, 89 | width: 150, 90 | decoration: BoxDecoration( 91 | image: DecorationImage( 92 | image: NetworkImage( 93 | _movieStore.movies[index].img), 94 | fit: BoxFit.cover), 95 | borderRadius: BorderRadius.only( 96 | topLeft: Radius.circular(30), 97 | topRight: Radius.circular(30), 98 | bottomLeft: Radius.circular(30), 99 | ), 100 | ), 101 | ), 102 | SizedBox( 103 | height: 10, 104 | ), 105 | Padding( 106 | padding: const EdgeInsets.all(5.0), 107 | child: Container( 108 | child: Text( 109 | _movieStore.movies[index].name, 110 | style: TextStyle( 111 | color: Colors.white, 112 | fontSize: 20))), 113 | ), 114 | Padding( 115 | padding: const EdgeInsets.symmetric( 116 | horizontal: 5.0), 117 | child: Container( 118 | child: Text( 119 | _movieStore 120 | .movies[index].director, 121 | style: TextStyle( 122 | color: Color(0xffff00a8), 123 | fontSize: 13, 124 | fontWeight: 125 | FontWeight.w100))), 126 | ), 127 | ], 128 | ), 129 | ), 130 | ), 131 | ), 132 | ), 133 | ), 134 | ), 135 | ), 136 | SizedBox(height: 20,), 137 | Padding( 138 | padding: const EdgeInsets.all(10.0), 139 | child: Column( 140 | crossAxisAlignment: CrossAxisAlignment.start, 141 | children: [ 142 | Text("Respawn yourself", 143 | style: TextStyle(color: Color(0xffff00a8), fontSize: 20)), 144 | Text("Awaken the gamer within you", 145 | style: TextStyle( 146 | color: Colors.white, 147 | fontSize: 15, 148 | fontWeight: FontWeight.w100)), 149 | ], 150 | ), 151 | ), 152 | Container( 153 | height: 270, 154 | child: Observer( 155 | builder: (context) => _gameStore.isLoading 156 | ? Container( 157 | height: 50, 158 | width: 50, 159 | child: CupertinoActivityIndicator()) 160 | : ListView.builder( 161 | scrollDirection: Axis.horizontal, 162 | itemCount: _gameStore.games.length, 163 | itemBuilder: (context, index) => Padding( 164 | padding: const EdgeInsets.all(10.0), 165 | child: GestureDetector( 166 | onTap: () => Navigator.push( 167 | context, 168 | MaterialPageRoute( 169 | builder: (context) => 170 | GameScreen(game: _gameStore.games[index]), 171 | )), 172 | child: Container( 173 | width: 180, 174 | decoration: BoxDecoration( 175 | color: Color(0xff1b1b1b), 176 | borderRadius: BorderRadius.only( 177 | topLeft: Radius.circular(20), 178 | topRight: Radius.circular(20), 179 | bottomLeft: Radius.circular(20), 180 | ), 181 | boxShadow: [ 182 | BoxShadow( 183 | color: Colors.black54, 184 | blurRadius: 5, 185 | offset: Offset(0, 0)) 186 | ]), 187 | child: Padding( 188 | padding: const EdgeInsets.all(20.0), 189 | child: Column( 190 | crossAxisAlignment: CrossAxisAlignment.start, 191 | children: [ 192 | Container( 193 | height: 150, 194 | width: 150, 195 | decoration: BoxDecoration( 196 | image: DecorationImage( 197 | image: NetworkImage( 198 | _gameStore.games[index].img), 199 | fit: BoxFit.cover, 200 | ), 201 | borderRadius: BorderRadius.only( 202 | topLeft: Radius.circular(30), 203 | topRight: Radius.circular(30), 204 | bottomLeft: Radius.circular(30), 205 | ), 206 | ), 207 | ), 208 | SizedBox( 209 | height: 10, 210 | ), 211 | Padding( 212 | padding: const EdgeInsets.all(5.0), 213 | child: Container( 214 | child: Text( 215 | _gameStore.games[index].name, 216 | style: TextStyle( 217 | color: Colors.white, 218 | fontSize: 20), 219 | ), 220 | ), 221 | ), 222 | Padding( 223 | padding: const EdgeInsets.symmetric( 224 | horizontal: 5.0), 225 | child: Container( 226 | child: Text( 227 | _gameStore.games[index].company, 228 | style: TextStyle( 229 | color: Color(0xffff00a8), 230 | fontSize: 13, 231 | fontWeight: FontWeight.w100), 232 | ), 233 | ), 234 | ), 235 | ], 236 | ), 237 | ), 238 | ), 239 | ), 240 | ), 241 | ), 242 | ), 243 | ), 244 | ], 245 | ), 246 | ), 247 | ); 248 | } 249 | } 250 | -------------------------------------------------------------------------------- /lib/pages/quarantine/quarantine_two.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class QuarantineTwo extends StatefulWidget { 4 | @override 5 | _QuarantineTwoState createState() => _QuarantineTwoState(); 6 | } 7 | 8 | class _QuarantineTwoState extends State { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold( 12 | body: Center( 13 | child: Text("Quarantine Two") 14 | ), 15 | ); 16 | } 17 | } -------------------------------------------------------------------------------- /lib/pages/today/today_one.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_mobx/flutter_mobx.dart'; 4 | 5 | import 'package:geolocator/geolocator.dart'; 6 | import 'package:hack20_atomica/stores/news_store/newsstore.dart'; 7 | import 'package:hack20_atomica/stores/weather_store/weatherstore.dart'; 8 | import 'package:url_launcher/url_launcher.dart'; 9 | 10 | class TodayOne extends StatefulWidget { 11 | @override 12 | _TodayOneState createState() => _TodayOneState(); 13 | } 14 | 15 | class _TodayOneState extends State { 16 | WeatherStore weatherStore = new WeatherStore(); 17 | NewsStore newsStore = new NewsStore(); 18 | 19 | @override 20 | void initState() { 21 | if (weatherStore.isLoading) weatherStore.getCurrentLocation(); 22 | newsStore.getNews(); 23 | // TODO: implement initState 24 | super.initState(); 25 | } 26 | 27 | _launchURL(String url) async { 28 | if (await canLaunch(url)) { 29 | await launch(url); 30 | } else { 31 | throw 'Could not launch $url'; 32 | } 33 | } 34 | 35 | @override 36 | Widget build(BuildContext context) { 37 | return Scaffold( 38 | body: SingleChildScrollView( 39 | child: Column( 40 | crossAxisAlignment: CrossAxisAlignment.start, 41 | children: [ 42 | Padding( 43 | padding: const EdgeInsets.only(top: 10.0, bottom: 10, left: 10), 44 | child: Container( 45 | width: double.maxFinite, 46 | decoration: BoxDecoration( 47 | color: Color(0xff1b1b1b), 48 | borderRadius: BorderRadius.only( 49 | topLeft: Radius.circular(20), 50 | bottomLeft: Radius.circular(20)), 51 | boxShadow: [ 52 | BoxShadow( 53 | color: Colors.black54, 54 | blurRadius: 5, 55 | offset: Offset(0, 0)) 56 | ]), 57 | child: Padding( 58 | padding: const EdgeInsets.all(20.0), 59 | child: Observer( 60 | builder: (context) => weatherStore.isLoading 61 | ? Container( 62 | height: 50, 63 | width: 50, 64 | child: CupertinoActivityIndicator(), 65 | ) 66 | : Row( 67 | children: [ 68 | Icon( 69 | weatherStore.weather.weather 70 | .compareTo("Haze") == 71 | 0 || 72 | weatherStore.weather.weather 73 | .compareTo("Rainy") == 74 | 0 75 | ? Icons.wb_cloudy 76 | : Icons.wb_sunny, 77 | color: Color(0xffff00a8), 78 | size: 45, 79 | ), 80 | Padding( 81 | padding: const EdgeInsets.only(left: 15.0), 82 | child: Container( 83 | child: Column( 84 | crossAxisAlignment: 85 | CrossAxisAlignment.start, 86 | children: [ 87 | Text( 88 | weatherStore.weather.city + 89 | ", " + 90 | weatherStore.weather.country, 91 | style: TextStyle( 92 | color: Colors.white, 93 | fontWeight: FontWeight.w100), 94 | ), 95 | SizedBox( 96 | height: 5, 97 | ), 98 | Row( 99 | crossAxisAlignment: 100 | CrossAxisAlignment.end, 101 | children: [ 102 | Text( 103 | weatherStore.weather.temperature 104 | .toString() + 105 | "°C", 106 | style: TextStyle( 107 | color: Colors.white, 108 | fontSize: 25), 109 | ), 110 | SizedBox( 111 | width: 6, 112 | ), 113 | Padding( 114 | padding: const EdgeInsets.only( 115 | bottom: 3.0), 116 | child: Text( 117 | "feels like " + 118 | weatherStore.weather.feelsLike 119 | .toString() + 120 | "°C", 121 | style: TextStyle( 122 | color: Color(0xffff00a8), 123 | fontSize: 13, 124 | fontWeight: FontWeight.w100), 125 | ), 126 | ) 127 | ], 128 | ), 129 | SizedBox( 130 | height: 5, 131 | ), 132 | Row( 133 | children: [ 134 | Icon( 135 | Icons.ac_unit, 136 | color: Color(0xffff00a8), 137 | size: 15, 138 | ), 139 | SizedBox( 140 | width: 4, 141 | ), 142 | Text( 143 | "Min: " + 144 | weatherStore.weather.minTemp 145 | .toString() + 146 | " Max: " + 147 | weatherStore.weather.maxTemp 148 | .toString(), 149 | style: TextStyle( 150 | color: Colors.white, 151 | fontSize: 13, 152 | fontWeight: FontWeight.w100), 153 | ), 154 | ], 155 | ), 156 | SizedBox( 157 | height: 5, 158 | ), 159 | Row( 160 | children: [ 161 | Icon( 162 | Icons.hot_tub, 163 | color: Color(0xffff00a8), 164 | size: 15, 165 | ), 166 | SizedBox( 167 | width: 4, 168 | ), 169 | Text( 170 | "Humidity: " + 171 | weatherStore.weather.humidity 172 | .toString() + 173 | "%", 174 | style: TextStyle( 175 | color: Colors.white, 176 | fontSize: 13, 177 | fontWeight: FontWeight.w100), 178 | ), 179 | ], 180 | ), 181 | ], 182 | ), 183 | ), 184 | ), 185 | ], 186 | ), 187 | ), 188 | ), 189 | ), 190 | ), 191 | Padding( 192 | padding: EdgeInsets.symmetric(vertical: 10, horizontal: 20), 193 | child: Text( 194 | "Get started", 195 | style: TextStyle(color: Colors.white, fontSize: 20), 196 | ), 197 | ), 198 | Padding( 199 | padding: EdgeInsets.only(top: 10.0, bottom: 10, left: 10), 200 | child: Container( 201 | width: double.maxFinite, 202 | decoration: BoxDecoration( 203 | color: Color(0xff1b1b1b), 204 | borderRadius: BorderRadius.only( 205 | topLeft: Radius.circular(20), 206 | bottomLeft: Radius.circular(20)), 207 | boxShadow: [ 208 | BoxShadow( 209 | color: Colors.black54, 210 | blurRadius: 5, 211 | offset: Offset(0, 0)) 212 | ]), 213 | child: Padding( 214 | padding: 215 | const EdgeInsets.only(left: 20.0, top: 20, bottom: 20), 216 | child: Observer( 217 | builder: (context) => newsStore.isLoading 218 | ? Container( 219 | height: 100, 220 | width: 50, 221 | child: CupertinoActivityIndicator(), 222 | ) 223 | : GestureDetector( 224 | onTap: () => _launchURL(newsStore.news.url), 225 | child: Column( 226 | children: [ 227 | Container( 228 | height: 135, 229 | width: double.maxFinite, 230 | decoration: BoxDecoration( 231 | borderRadius: BorderRadius.only( 232 | topLeft: Radius.circular(20), 233 | bottomLeft: Radius.circular(20)), 234 | image: DecorationImage( 235 | fit: BoxFit.cover, 236 | image: 237 | NetworkImage(newsStore.news.imgUrl), 238 | ), 239 | ), 240 | ), 241 | SizedBox(height: 15), 242 | Container( 243 | width: double.maxFinite, 244 | child: Text( 245 | newsStore.news.title, 246 | style: TextStyle( 247 | color: Color(0xffff00a8), 248 | ), 249 | ), 250 | ), 251 | SizedBox(height: 4), 252 | Container( 253 | width: double.maxFinite, 254 | child: Text( 255 | "source: " + newsStore.news.source, 256 | style: TextStyle( 257 | color: Colors.white70, 258 | fontSize: 13, 259 | fontWeight: FontWeight.w100), 260 | ), 261 | ), 262 | SizedBox(height: 10), 263 | Container( 264 | width: double.maxFinite, 265 | child: Text( 266 | newsStore.news.description, 267 | style: TextStyle( 268 | color: Colors.white, 269 | fontWeight: FontWeight.w100, 270 | fontSize: 12), 271 | ), 272 | ), 273 | ], 274 | ), 275 | ), 276 | ), 277 | ), 278 | ), 279 | ) 280 | ], 281 | ), 282 | ), 283 | ); 284 | } 285 | } 286 | -------------------------------------------------------------------------------- /lib/pages/today/today_two.dart: -------------------------------------------------------------------------------- 1 | import 'package:flare_flutter/flare_actor.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class TodayTwo extends StatefulWidget { 5 | @override 6 | _TodayTwoState createState() => _TodayTwoState(); 7 | } 8 | 9 | class _TodayTwoState extends State { 10 | bool press; 11 | @override 12 | void initState() { 13 | press = false; // TODO: implement initState 14 | super.initState(); 15 | } 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Scaffold( 20 | body: Stack( 21 | children: [ 22 | Align( 23 | alignment: Alignment(1, -1), 24 | child: Padding( 25 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 26 | child: Column( 27 | mainAxisAlignment: MainAxisAlignment.start, 28 | crossAxisAlignment: CrossAxisAlignment.end, 29 | children: [ 30 | Padding( 31 | padding: const EdgeInsets.only(right: 20.0), 32 | child: Container( 33 | child: Text("GOOD things do grow on", 34 | style: TextStyle(color: Colors.white)), 35 | ), 36 | ), 37 | Padding( 38 | padding: const EdgeInsets.only(right: 20.0), 39 | child: Container( 40 | child: Text("Trees", 41 | style: 42 | TextStyle(color: Color(0xffff00a8), fontSize: 35)), 43 | ), 44 | ), 45 | SizedBox(height: 20,), 46 | Column( 47 | crossAxisAlignment: CrossAxisAlignment.end, 48 | children: [ 49 | Padding( 50 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 51 | child: Container( 52 | child: Text("Click to:", 53 | style: TextStyle( 54 | color: Colors.white, 55 | )), 56 | ), 57 | ), 58 | GestureDetector( 59 | onTap: () => setState(() { 60 | print(press); 61 | press = !press; 62 | }), 63 | child: Container( 64 | width: 150, 65 | height: 60, 66 | child: FlareActor( 67 | "assets/button.flr", 68 | fit: BoxFit.contain, 69 | animation: press ? "press" : "idle", 70 | ), 71 | )) 72 | ], 73 | ) 74 | ], 75 | ), 76 | ), 77 | ), 78 | Align( 79 | alignment: Alignment(-1, 1), 80 | child: Container( 81 | height: MediaQuery.of(context).size.height * 0.5, 82 | width: MediaQuery.of(context).size.height * 0.3 / 731.6 * 904.9, 83 | child: FlareActor("assets/tree.flr", 84 | fit: BoxFit.cover, animation: "idle"), 85 | ), 86 | ), 87 | ], 88 | )); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /lib/shared/main_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TwinView extends StatefulWidget { 4 | Widget pageOne; 5 | 6 | Widget pageTwo; 7 | 8 | String titleOne; 9 | 10 | String titleTwo; 11 | 12 | TwinView(pageOne, pageTwo, titleOne, titleTwo){ 13 | this.pageOne = pageOne; 14 | this.pageTwo = pageTwo; 15 | this.titleOne = titleOne; 16 | this.titleTwo = titleTwo; 17 | } 18 | 19 | @override 20 | _TwinViewState createState() => _TwinViewState(pageOne,pageTwo,titleOne,titleTwo); 21 | } 22 | 23 | class _TwinViewState extends State { 24 | Widget pageOne; 25 | 26 | Widget pageTwo; 27 | 28 | String titleOne; 29 | 30 | String titleTwo; 31 | 32 | _TwinViewState(pageOne, pageTwo, titleOne, titleTwo){ 33 | this.pageOne = pageOne; 34 | this.pageTwo = pageTwo; 35 | this.titleOne = titleOne; 36 | this.titleTwo = titleTwo; 37 | } 38 | int curr; 39 | PageController pageController; 40 | _tab(String heading, int index) { 41 | return GestureDetector( 42 | onTap: () => setState(() { 43 | curr = index; 44 | print(curr); 45 | pageController.animateToPage(index, 46 | duration: Duration(milliseconds: 300), curve: Curves.linear); 47 | }), 48 | child: Padding( 49 | padding: EdgeInsets.symmetric(horizontal: 20), 50 | child: Column( 51 | children: [ 52 | Text( 53 | heading, 54 | style: 55 | TextStyle(color: curr == index?Color(0xffFF00A8):Colors.white, fontWeight: curr == index?FontWeight.w400:FontWeight.w200), 56 | ), 57 | Container( 58 | height: 4, 59 | width: 4, 60 | decoration: 61 | BoxDecoration(shape: BoxShape.circle, color: curr == index?Color(0xffff00a8):Colors.transparent), 62 | ) 63 | ], 64 | ), 65 | ), 66 | ); 67 | } 68 | 69 | @override 70 | void initState() { 71 | curr = 0; 72 | pageController = PageController(initialPage: 0);// TODO: implement initState 73 | super.initState(); 74 | } 75 | @override 76 | Widget build(BuildContext context) { 77 | return Scaffold( 78 | body: Column(children: [ 79 | Container( 80 | height: MediaQuery.of(context).size.height * 0.75 *0.1, 81 | width: MediaQuery.of(context).size.width * 0.8, 82 | child: Row(children: [ 83 | _tab(titleOne,0), 84 | _tab(titleTwo,1), 85 | ],), 86 | ), 87 | Container( 88 | height: MediaQuery.of(context).size.height * 0.75 * 0.9, 89 | width: MediaQuery.of(context).size.width * 0.8, 90 | child: PageView( 91 | physics: NeverScrollableScrollPhysics(), 92 | controller: pageController, 93 | children: [ 94 | pageOne, 95 | pageTwo 96 | ],)) 97 | 98 | ],), 99 | ); 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /lib/src/api.dart: -------------------------------------------------------------------------------- 1 | class ApiKey { 2 | static const OPEN_WEATHER_MAP = ''; 3 | } -------------------------------------------------------------------------------- /lib/stores/auth_store/authstore.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_auth/firebase_auth.dart'; 2 | import 'package:google_sign_in/google_sign_in.dart'; 3 | import 'package:hack20_atomica/models/user_model.dart'; 4 | import 'package:mobx/mobx.dart'; 5 | part 'authstore.g.dart'; 6 | class AuthStore = _AuthStore with _$AuthStore; 7 | 8 | abstract class _AuthStore with Store { 9 | @observable 10 | User _signedInUser = User(name: " ", email: " ", img: " "); 11 | 12 | @observable 13 | bool _isTryingSignUp = false; 14 | 15 | @computed 16 | bool get trying =>_isTryingSignUp; 17 | User get user => _signedInUser; 18 | 19 | @action 20 | googleSignIn() async { 21 | _isTryingSignUp = true; 22 | final GoogleSignInAccount googleSignInAccount = 23 | await GoogleSignIn().signIn(); 24 | final GoogleSignInAuthentication googleSignInAuthentication = 25 | await googleSignInAccount.authentication; 26 | final AuthCredential credential = GoogleAuthProvider.getCredential( 27 | accessToken: googleSignInAuthentication.accessToken, 28 | idToken: googleSignInAuthentication.idToken, 29 | ); 30 | final AuthResult authResult = 31 | await FirebaseAuth.instance.signInWithCredential(credential); 32 | final FirebaseUser user = authResult.user; 33 | _signedInUser.name = user.displayName; 34 | _signedInUser.email = user.email; 35 | _signedInUser.img = user.photoUrl; 36 | print("@@@@@@@@@@@@@@@@@@ ${_signedInUser.name} @@@@@@@@@@@@@"); 37 | assert(!user.isAnonymous); 38 | assert(await user.getIdToken() != null); 39 | final FirebaseUser currentUser = await FirebaseAuth.instance.currentUser(); 40 | assert(user.uid == currentUser.uid); 41 | _isTryingSignUp = false; 42 | } 43 | 44 | @action 45 | signOut() async { 46 | GoogleSignIn().signOut(); 47 | _signedInUser.name = " "; 48 | _signedInUser.email = " "; 49 | _signedInUser.img = " "; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/stores/auth_store/authstore.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'authstore.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$AuthStore on _AuthStore, Store { 12 | Computed _$tryingComputed; 13 | 14 | @override 15 | bool get trying => (_$tryingComputed ??= 16 | Computed(() => super.trying, name: '_AuthStore.trying')) 17 | .value; 18 | 19 | final _$_signedInUserAtom = Atom(name: '_AuthStore._signedInUser'); 20 | 21 | @override 22 | User get _signedInUser { 23 | _$_signedInUserAtom.reportRead(); 24 | return super._signedInUser; 25 | } 26 | 27 | @override 28 | set _signedInUser(User value) { 29 | _$_signedInUserAtom.reportWrite(value, super._signedInUser, () { 30 | super._signedInUser = value; 31 | }); 32 | } 33 | 34 | final _$_isTryingSignUpAtom = Atom(name: '_AuthStore._isTryingSignUp'); 35 | 36 | @override 37 | bool get _isTryingSignUp { 38 | _$_isTryingSignUpAtom.reportRead(); 39 | return super._isTryingSignUp; 40 | } 41 | 42 | @override 43 | set _isTryingSignUp(bool value) { 44 | _$_isTryingSignUpAtom.reportWrite(value, super._isTryingSignUp, () { 45 | super._isTryingSignUp = value; 46 | }); 47 | } 48 | 49 | final _$googleSignInAsyncAction = AsyncAction('_AuthStore.googleSignIn'); 50 | 51 | @override 52 | Future googleSignIn() { 53 | return _$googleSignInAsyncAction.run(() => super.googleSignIn()); 54 | } 55 | 56 | final _$signOutAsyncAction = AsyncAction('_AuthStore.signOut'); 57 | 58 | @override 59 | Future signOut() { 60 | return _$signOutAsyncAction.run(() => super.signOut()); 61 | } 62 | 63 | @override 64 | String toString() { 65 | return ''' 66 | trying: ${trying} 67 | '''; 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/stores/covid_store/global_covid_store/globalcovidstore.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | import 'package:geolocator/geolocator.dart'; 4 | import 'package:google_sign_in/google_sign_in.dart'; 5 | import 'package:hack20_atomica/models/global_covid_model.dart'; 6 | import 'package:hack20_atomica/models/user_model.dart'; 7 | import 'package:hack20_atomica/models/weather_model.dart'; 8 | import 'package:mobx/mobx.dart'; 9 | import 'package:http/http.dart' as http; 10 | 11 | part 'globalcovidstore.g.dart'; 12 | class GlobalCovidStore = _GlobalCovidStore with _$GlobalCovidStore; 13 | 14 | abstract class _GlobalCovidStore with Store { 15 | @observable 16 | bool _isLoading; 17 | 18 | @observable 19 | GlobalCovid _globalData = new GlobalCovid(); 20 | 21 | @computed 22 | bool get isLoading => _isLoading; 23 | 24 | @computed 25 | GlobalCovid get globalData => _globalData; 26 | 27 | @action 28 | getGlobalCovidData() async { 29 | _isLoading = true; 30 | var url = 'https://api.covid19api.com/summary'; 31 | var response = await http.get(url); 32 | print('Response status: ${response.statusCode}'); 33 | var data = json.decode(response.body); 34 | print(data['Global']['TotalConfirmed']); 35 | _globalData.total = data['Global']['TotalConfirmed']; 36 | _globalData.newDeath = data['Global']['NewDeaths']; 37 | _globalData.newRecov = data['Global']['NewRecovered']; 38 | _globalData.totalDeath = data['Global']['TotalDeaths']; 39 | _globalData.totalRecov = data['Global']['TotalRecovered']; 40 | _isLoading = false; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/stores/covid_store/global_covid_store/globalcovidstore.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'globalcovidstore.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$GlobalCovidStore on _GlobalCovidStore, Store { 12 | Computed _$isLoadingComputed; 13 | 14 | @override 15 | bool get isLoading => 16 | (_$isLoadingComputed ??= Computed(() => super.isLoading, 17 | name: '_GlobalCovidStore.isLoading')) 18 | .value; 19 | Computed _$globalDataComputed; 20 | 21 | @override 22 | GlobalCovid get globalData => 23 | (_$globalDataComputed ??= Computed(() => super.globalData, 24 | name: '_GlobalCovidStore.globalData')) 25 | .value; 26 | 27 | final _$_isLoadingAtom = Atom(name: '_GlobalCovidStore._isLoading'); 28 | 29 | @override 30 | bool get _isLoading { 31 | _$_isLoadingAtom.reportRead(); 32 | return super._isLoading; 33 | } 34 | 35 | @override 36 | set _isLoading(bool value) { 37 | _$_isLoadingAtom.reportWrite(value, super._isLoading, () { 38 | super._isLoading = value; 39 | }); 40 | } 41 | 42 | final _$_globalDataAtom = Atom(name: '_GlobalCovidStore._globalData'); 43 | 44 | @override 45 | GlobalCovid get _globalData { 46 | _$_globalDataAtom.reportRead(); 47 | return super._globalData; 48 | } 49 | 50 | @override 51 | set _globalData(GlobalCovid value) { 52 | _$_globalDataAtom.reportWrite(value, super._globalData, () { 53 | super._globalData = value; 54 | }); 55 | } 56 | 57 | final _$getGlobalCovidDataAsyncAction = 58 | AsyncAction('_GlobalCovidStore.getGlobalCovidData'); 59 | 60 | @override 61 | Future getGlobalCovidData() { 62 | return _$getGlobalCovidDataAsyncAction 63 | .run(() => super.getGlobalCovidData()); 64 | } 65 | 66 | @override 67 | String toString() { 68 | return ''' 69 | isLoading: ${isLoading}, 70 | globalData: ${globalData} 71 | '''; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/stores/covid_store/local_covid_store/localcovidstore.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | import 'package:geolocator/geolocator.dart'; 4 | import 'package:google_sign_in/google_sign_in.dart'; 5 | import 'package:hack20_atomica/models/global_covid_model.dart'; 6 | import 'package:hack20_atomica/models/user_model.dart'; 7 | import 'package:hack20_atomica/models/weather_model.dart'; 8 | import 'package:mobx/mobx.dart'; 9 | import 'package:http/http.dart' as http; 10 | 11 | part 'localcovidstore.g.dart'; 12 | class LocalCovidStore = _LocalCovidStore with _$LocalCovidStore; 13 | 14 | abstract class _LocalCovidStore with Store { 15 | final Geolocator geolocator = Geolocator()..forceAndroidLocationManager; 16 | 17 | @observable 18 | GlobalCovid _localCovid = new GlobalCovid(); 19 | 20 | @observable 21 | bool _isLoading = true; 22 | 23 | @observable 24 | Position _position = Position(); 25 | 26 | @observable 27 | String _country; 28 | 29 | @observable 30 | ObservableList _count = ObservableList(); 31 | 32 | @computed 33 | Position get position => _position; 34 | String get country => _country; 35 | ObservableList get count => _count; 36 | GlobalCovid get localCovid => _localCovid; 37 | 38 | @computed 39 | bool get isLoading => _isLoading; 40 | 41 | @action 42 | getCurrentLocation() { 43 | _isLoading = true; 44 | geolocator 45 | .getCurrentPosition(desiredAccuracy: LocationAccuracy.best) 46 | .then((Position positionFound) { 47 | _position = positionFound; 48 | getAddressFromLatLng(); 49 | }).catchError((e) { 50 | print(e); 51 | }); 52 | } 53 | 54 | @action 55 | getAddressFromLatLng() async { 56 | try { 57 | print("andar aaye"); 58 | geolocator 59 | .placemarkFromCoordinates( 60 | _position.latitude, _position.longitude) 61 | .then((value) { 62 | print("placemark then mein"); 63 | Placemark place = value[0]; 64 | _country = place.country; 65 | print("country set"); 66 | getLocalCovidData(); 67 | }); 68 | } catch (e) { 69 | print("andar error aaye"); 70 | print(e); 71 | } 72 | } 73 | 74 | @action 75 | getLocalCovidData() async { 76 | var url = 'https://api.covid19api.com/country/$_country/status/confirmed'; 77 | var response = await http.get(url); 78 | print('Response status: ${response.statusCode}'); 79 | print('Response body: ${response.body}'); 80 | var data = json.decode(response.body); 81 | for(int i = 0 ; i < data.length ; i++) 82 | _count.add(data[i]['Cases'].toDouble()); 83 | _localCovid.total = data[data.length - 1]['Cases']; 84 | _isLoading = false; 85 | } 86 | 87 | 88 | } 89 | -------------------------------------------------------------------------------- /lib/stores/covid_store/local_covid_store/localcovidstore.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'localcovidstore.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$LocalCovidStore on _LocalCovidStore, Store { 12 | Computed _$positionComputed; 13 | 14 | @override 15 | Position get position => 16 | (_$positionComputed ??= Computed(() => super.position, 17 | name: '_LocalCovidStore.position')) 18 | .value; 19 | Computed _$isLoadingComputed; 20 | 21 | @override 22 | bool get isLoading => 23 | (_$isLoadingComputed ??= Computed(() => super.isLoading, 24 | name: '_LocalCovidStore.isLoading')) 25 | .value; 26 | 27 | final _$_localCovidAtom = Atom(name: '_LocalCovidStore._localCovid'); 28 | 29 | @override 30 | GlobalCovid get _localCovid { 31 | _$_localCovidAtom.reportRead(); 32 | return super._localCovid; 33 | } 34 | 35 | @override 36 | set _localCovid(GlobalCovid value) { 37 | _$_localCovidAtom.reportWrite(value, super._localCovid, () { 38 | super._localCovid = value; 39 | }); 40 | } 41 | 42 | final _$_isLoadingAtom = Atom(name: '_LocalCovidStore._isLoading'); 43 | 44 | @override 45 | bool get _isLoading { 46 | _$_isLoadingAtom.reportRead(); 47 | return super._isLoading; 48 | } 49 | 50 | @override 51 | set _isLoading(bool value) { 52 | _$_isLoadingAtom.reportWrite(value, super._isLoading, () { 53 | super._isLoading = value; 54 | }); 55 | } 56 | 57 | final _$_positionAtom = Atom(name: '_LocalCovidStore._position'); 58 | 59 | @override 60 | Position get _position { 61 | _$_positionAtom.reportRead(); 62 | return super._position; 63 | } 64 | 65 | @override 66 | set _position(Position value) { 67 | _$_positionAtom.reportWrite(value, super._position, () { 68 | super._position = value; 69 | }); 70 | } 71 | 72 | final _$_countryAtom = Atom(name: '_LocalCovidStore._country'); 73 | 74 | @override 75 | String get _country { 76 | _$_countryAtom.reportRead(); 77 | return super._country; 78 | } 79 | 80 | @override 81 | set _country(String value) { 82 | _$_countryAtom.reportWrite(value, super._country, () { 83 | super._country = value; 84 | }); 85 | } 86 | 87 | final _$_countAtom = Atom(name: '_LocalCovidStore._count'); 88 | 89 | @override 90 | ObservableList get _count { 91 | _$_countAtom.reportRead(); 92 | return super._count; 93 | } 94 | 95 | @override 96 | set _count(ObservableList value) { 97 | _$_countAtom.reportWrite(value, super._count, () { 98 | super._count = value; 99 | }); 100 | } 101 | 102 | final _$getAddressFromLatLngAsyncAction = 103 | AsyncAction('_LocalCovidStore.getAddressFromLatLng'); 104 | 105 | @override 106 | Future getAddressFromLatLng() { 107 | return _$getAddressFromLatLngAsyncAction 108 | .run(() => super.getAddressFromLatLng()); 109 | } 110 | 111 | final _$getLocalCovidDataAsyncAction = 112 | AsyncAction('_LocalCovidStore.getLocalCovidData'); 113 | 114 | @override 115 | Future getLocalCovidData() { 116 | return _$getLocalCovidDataAsyncAction.run(() => super.getLocalCovidData()); 117 | } 118 | 119 | final _$_LocalCovidStoreActionController = 120 | ActionController(name: '_LocalCovidStore'); 121 | 122 | @override 123 | dynamic getCurrentLocation() { 124 | final _$actionInfo = _$_LocalCovidStoreActionController.startAction( 125 | name: '_LocalCovidStore.getCurrentLocation'); 126 | try { 127 | return super.getCurrentLocation(); 128 | } finally { 129 | _$_LocalCovidStoreActionController.endAction(_$actionInfo); 130 | } 131 | } 132 | 133 | @override 134 | String toString() { 135 | return ''' 136 | position: ${position}, 137 | isLoading: ${isLoading} 138 | '''; 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /lib/stores/game_store/gamestore.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:cloud_firestore/cloud_firestore.dart'; 3 | import 'package:hack20_atomica/models/game_model.dart'; 4 | import 'package:mobx/mobx.dart'; 5 | import 'package:http/http.dart' as http; 6 | 7 | part 'gamestore.g.dart'; 8 | 9 | class GameStore = _GameStore with _$GameStore; 10 | 11 | abstract class _GameStore with Store { 12 | @observable 13 | bool _isLoading = true; 14 | @observable 15 | ObservableList _games = ObservableList(); 16 | 17 | @computed 18 | ObservableList get games => _games; 19 | 20 | @computed 21 | bool get isLoading => _isLoading; 22 | 23 | @action 24 | getCurrentLocation() { 25 | _isLoading = true; 26 | Firestore.instance 27 | .collection("games") 28 | .getDocuments() 29 | .then((querySnapshot) { 30 | querySnapshot.documents.forEach((result) { 31 | Game element = new Game( 32 | name: result.data['name'], 33 | about: result.data['about'], 34 | company: result.data['company'], 35 | img: result.data['img'], 36 | rating: result.data['rating']); 37 | print(element.about); 38 | _games.add(element); 39 | }); 40 | }); 41 | print(_games); 42 | _isLoading = false; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/stores/game_store/gamestore.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'gamestore.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$GameStore on _GameStore, Store { 12 | Computed> _$gamesComputed; 13 | 14 | @override 15 | ObservableList get games => 16 | (_$gamesComputed ??= Computed>(() => super.games, 17 | name: '_GameStore.games')) 18 | .value; 19 | Computed _$isLoadingComputed; 20 | 21 | @override 22 | bool get isLoading => (_$isLoadingComputed ??= 23 | Computed(() => super.isLoading, name: '_GameStore.isLoading')) 24 | .value; 25 | 26 | final _$_isLoadingAtom = Atom(name: '_GameStore._isLoading'); 27 | 28 | @override 29 | bool get _isLoading { 30 | _$_isLoadingAtom.reportRead(); 31 | return super._isLoading; 32 | } 33 | 34 | @override 35 | set _isLoading(bool value) { 36 | _$_isLoadingAtom.reportWrite(value, super._isLoading, () { 37 | super._isLoading = value; 38 | }); 39 | } 40 | 41 | final _$_gamesAtom = Atom(name: '_GameStore._games'); 42 | 43 | @override 44 | ObservableList get _games { 45 | _$_gamesAtom.reportRead(); 46 | return super._games; 47 | } 48 | 49 | @override 50 | set _games(ObservableList value) { 51 | _$_gamesAtom.reportWrite(value, super._games, () { 52 | super._games = value; 53 | }); 54 | } 55 | 56 | final _$_GameStoreActionController = ActionController(name: '_GameStore'); 57 | 58 | @override 59 | dynamic getCurrentLocation() { 60 | final _$actionInfo = _$_GameStoreActionController.startAction( 61 | name: '_GameStore.getCurrentLocation'); 62 | try { 63 | return super.getCurrentLocation(); 64 | } finally { 65 | _$_GameStoreActionController.endAction(_$actionInfo); 66 | } 67 | } 68 | 69 | @override 70 | String toString() { 71 | return ''' 72 | games: ${games}, 73 | isLoading: ${isLoading} 74 | '''; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/stores/movie_store/moviestore.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:cloud_firestore/cloud_firestore.dart'; 3 | import 'package:hack20_atomica/models/movie_model.dart'; 4 | import 'package:mobx/mobx.dart'; 5 | import 'package:http/http.dart' as http; 6 | 7 | part 'moviestore.g.dart'; 8 | 9 | class MovieStore = _MovieStore with _$MovieStore; 10 | 11 | abstract class _MovieStore with Store { 12 | @observable 13 | bool _isLoading = true; 14 | @observable 15 | ObservableList _movies = ObservableList(); 16 | 17 | @computed 18 | ObservableList get movies => _movies; 19 | 20 | @computed 21 | bool get isLoading => _isLoading; 22 | 23 | @action 24 | getCurrentLocation() { 25 | _isLoading = true; 26 | Firestore.instance 27 | .collection("movies") 28 | .getDocuments() 29 | .then((querySnapshot) { 30 | querySnapshot.documents.forEach((result) { 31 | Movie element = new Movie( 32 | name: result.data['name'], 33 | about: result.data['about'], 34 | director: result.data['director'], 35 | img: result.data['img'], 36 | rating: result.data['rating']); 37 | print(element.about); 38 | _movies.add(element); 39 | }); 40 | }); 41 | _isLoading = false; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/stores/movie_store/moviestore.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'moviestore.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$MovieStore on _MovieStore, Store { 12 | Computed> _$moviesComputed; 13 | 14 | @override 15 | ObservableList get movies => 16 | (_$moviesComputed ??= Computed>(() => super.movies, 17 | name: '_MovieStore.movies')) 18 | .value; 19 | Computed _$isLoadingComputed; 20 | 21 | @override 22 | bool get isLoading => (_$isLoadingComputed ??= 23 | Computed(() => super.isLoading, name: '_MovieStore.isLoading')) 24 | .value; 25 | 26 | final _$_isLoadingAtom = Atom(name: '_MovieStore._isLoading'); 27 | 28 | @override 29 | bool get _isLoading { 30 | _$_isLoadingAtom.reportRead(); 31 | return super._isLoading; 32 | } 33 | 34 | @override 35 | set _isLoading(bool value) { 36 | _$_isLoadingAtom.reportWrite(value, super._isLoading, () { 37 | super._isLoading = value; 38 | }); 39 | } 40 | 41 | final _$_moviesAtom = Atom(name: '_MovieStore._movies'); 42 | 43 | @override 44 | ObservableList get _movies { 45 | _$_moviesAtom.reportRead(); 46 | return super._movies; 47 | } 48 | 49 | @override 50 | set _movies(ObservableList value) { 51 | _$_moviesAtom.reportWrite(value, super._movies, () { 52 | super._movies = value; 53 | }); 54 | } 55 | 56 | final _$_MovieStoreActionController = ActionController(name: '_MovieStore'); 57 | 58 | @override 59 | dynamic getCurrentLocation() { 60 | final _$actionInfo = _$_MovieStoreActionController.startAction( 61 | name: '_MovieStore.getCurrentLocation'); 62 | try { 63 | return super.getCurrentLocation(); 64 | } finally { 65 | _$_MovieStoreActionController.endAction(_$actionInfo); 66 | } 67 | } 68 | 69 | @override 70 | String toString() { 71 | return ''' 72 | movies: ${movies}, 73 | isLoading: ${isLoading} 74 | '''; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/stores/news_store/newsstore.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:hack20_atomica/models/news_model.dart'; 3 | import 'package:mobx/mobx.dart'; 4 | import 'package:http/http.dart' as http; 5 | import 'package:intl/intl.dart'; 6 | part 'newsstore.g.dart'; 7 | class NewsStore = _NewsStore with _$NewsStore; 8 | 9 | abstract class _NewsStore with Store { 10 | 11 | @observable 12 | bool _isLoading = true; 13 | 14 | @observable 15 | News _news = new News(); 16 | 17 | @computed 18 | News get news => _news; 19 | 20 | @computed 21 | bool get isLoading => _isLoading; 22 | 23 | @action 24 | getNews() async { 25 | var url = 'http://newsapi.org/v2/everything?q=earth&from=${DateFormat('yyyy-MM-dd').format(new DateTime.now())}&sortBy=publishedAt&apiKey=680f2aeff8ad42b1a8cc578b5a8a6e01'; 26 | var response = await http.get(url); 27 | print('Response status: ${response.statusCode}'); 28 | print('Response body: ${response.body}'); 29 | var data = json.decode(response.body); 30 | _news.source = data['articles'][0]['source']['name']; 31 | _news.title = data['articles'][0]['title']; 32 | _news.content = data['articles'][0]['content']; 33 | _news.imgUrl = data['articles'][0]['urlToImage']; 34 | _news.url = data['articles'][0]['url']; 35 | _news.description = data['articles'][0]['description']; 36 | _isLoading = false; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /lib/stores/news_store/newsstore.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'newsstore.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$NewsStore on _NewsStore, Store { 12 | Computed _$newsComputed; 13 | 14 | @override 15 | News get news => (_$newsComputed ??= 16 | Computed(() => super.news, name: '_NewsStore.news')) 17 | .value; 18 | Computed _$isLoadingComputed; 19 | 20 | @override 21 | bool get isLoading => (_$isLoadingComputed ??= 22 | Computed(() => super.isLoading, name: '_NewsStore.isLoading')) 23 | .value; 24 | 25 | final _$_isLoadingAtom = Atom(name: '_NewsStore._isLoading'); 26 | 27 | @override 28 | bool get _isLoading { 29 | _$_isLoadingAtom.reportRead(); 30 | return super._isLoading; 31 | } 32 | 33 | @override 34 | set _isLoading(bool value) { 35 | _$_isLoadingAtom.reportWrite(value, super._isLoading, () { 36 | super._isLoading = value; 37 | }); 38 | } 39 | 40 | final _$_newsAtom = Atom(name: '_NewsStore._news'); 41 | 42 | @override 43 | News get _news { 44 | _$_newsAtom.reportRead(); 45 | return super._news; 46 | } 47 | 48 | @override 49 | set _news(News value) { 50 | _$_newsAtom.reportWrite(value, super._news, () { 51 | super._news = value; 52 | }); 53 | } 54 | 55 | final _$getNewsAsyncAction = AsyncAction('_NewsStore.getNews'); 56 | 57 | @override 58 | Future getNews() { 59 | return _$getNewsAsyncAction.run(() => super.getNews()); 60 | } 61 | 62 | @override 63 | String toString() { 64 | return ''' 65 | news: ${news}, 66 | isLoading: ${isLoading} 67 | '''; 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/stores/weather_store/weatherstore.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | import 'package:geolocator/geolocator.dart'; 4 | import 'package:google_sign_in/google_sign_in.dart'; 5 | import 'package:hack20_atomica/models/user_model.dart'; 6 | import 'package:hack20_atomica/models/weather_model.dart'; 7 | import 'package:mobx/mobx.dart'; 8 | import 'package:http/http.dart' as http; 9 | 10 | part 'weatherstore.g.dart'; 11 | class WeatherStore = _WeatherStore with _$WeatherStore; 12 | 13 | abstract class _WeatherStore with Store { 14 | final Geolocator geolocator = Geolocator()..forceAndroidLocationManager; 15 | 16 | @observable 17 | bool _isLoading = true; 18 | 19 | @observable 20 | Position _position = Position(); 21 | 22 | @observable 23 | String _city; 24 | 25 | @observable 26 | Weather _weatherData = new Weather(); 27 | 28 | @computed 29 | Position get position => _position; 30 | String get city => _city; 31 | Weather get weather => _weatherData; 32 | 33 | @computed 34 | bool get isLoading => _isLoading; 35 | 36 | @action 37 | getCurrentLocation() { 38 | print(_isLoading); 39 | geolocator 40 | .getCurrentPosition(desiredAccuracy: LocationAccuracy.best) 41 | .then((Position positionFound) { 42 | _position = positionFound; 43 | getAddressFromLatLng(); 44 | }).catchError((e) { 45 | print(e); 46 | }); 47 | } 48 | 49 | @action 50 | getAddressFromLatLng() async { 51 | try { 52 | print("andar aaye"); 53 | geolocator 54 | .placemarkFromCoordinates( 55 | _position.latitude, _position.longitude) 56 | .then((value) { 57 | print("placemark then mein"); 58 | Placemark place = value[0]; 59 | _city = place.locality; 60 | print("city set"); 61 | 62 | getWeather(); 63 | }); 64 | } catch (e) { 65 | print("andar error aaye"); 66 | print(e); 67 | } 68 | } 69 | 70 | @action 71 | getWeather() async { 72 | var url = 'http://api.openweathermap.org/data/2.5/weather?q=${city}&appid=f8a430b8c855411d441f62d191f66da6'; 73 | var response = await http.get(url); 74 | print('Response status: ${response.statusCode}'); 75 | print('Response body: ${response.body}'); 76 | var data = json.decode(response.body); 77 | print(data['main']['temp']); 78 | _weatherData.city = data['name']; 79 | _weatherData.country = data['sys']['country']; 80 | _weatherData.temperature = (data['main']['temp']-273).round(); 81 | _weatherData.feelsLike = (data['main']['feels_like']-273).round(); 82 | _weatherData.minTemp = (data['main']['temp_min']-273).round(); 83 | _weatherData.maxTemp = (data['main']['temp_max']-273).round(); 84 | _weatherData.humidity = data['main']['humidity'].round(); 85 | _weatherData.weather = data['weather'][0]['main']; 86 | print("done"); 87 | _isLoading = false; 88 | print(_isLoading); 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /lib/stores/weather_store/weatherstore.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'weatherstore.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$WeatherStore on _WeatherStore, Store { 12 | Computed _$positionComputed; 13 | 14 | @override 15 | Position get position => 16 | (_$positionComputed ??= Computed(() => super.position, 17 | name: '_WeatherStore.position')) 18 | .value; 19 | Computed _$isLoadingComputed; 20 | 21 | @override 22 | bool get isLoading => 23 | (_$isLoadingComputed ??= Computed(() => super.isLoading, 24 | name: '_WeatherStore.isLoading')) 25 | .value; 26 | 27 | final _$_isLoadingAtom = Atom(name: '_WeatherStore._isLoading'); 28 | 29 | @override 30 | bool get _isLoading { 31 | _$_isLoadingAtom.reportRead(); 32 | return super._isLoading; 33 | } 34 | 35 | @override 36 | set _isLoading(bool value) { 37 | _$_isLoadingAtom.reportWrite(value, super._isLoading, () { 38 | super._isLoading = value; 39 | }); 40 | } 41 | 42 | final _$_positionAtom = Atom(name: '_WeatherStore._position'); 43 | 44 | @override 45 | Position get _position { 46 | _$_positionAtom.reportRead(); 47 | return super._position; 48 | } 49 | 50 | @override 51 | set _position(Position value) { 52 | _$_positionAtom.reportWrite(value, super._position, () { 53 | super._position = value; 54 | }); 55 | } 56 | 57 | final _$_cityAtom = Atom(name: '_WeatherStore._city'); 58 | 59 | @override 60 | String get _city { 61 | _$_cityAtom.reportRead(); 62 | return super._city; 63 | } 64 | 65 | @override 66 | set _city(String value) { 67 | _$_cityAtom.reportWrite(value, super._city, () { 68 | super._city = value; 69 | }); 70 | } 71 | 72 | final _$_weatherDataAtom = Atom(name: '_WeatherStore._weatherData'); 73 | 74 | @override 75 | Weather get _weatherData { 76 | _$_weatherDataAtom.reportRead(); 77 | return super._weatherData; 78 | } 79 | 80 | @override 81 | set _weatherData(Weather value) { 82 | _$_weatherDataAtom.reportWrite(value, super._weatherData, () { 83 | super._weatherData = value; 84 | }); 85 | } 86 | 87 | final _$getAddressFromLatLngAsyncAction = 88 | AsyncAction('_WeatherStore.getAddressFromLatLng'); 89 | 90 | @override 91 | Future getAddressFromLatLng() { 92 | return _$getAddressFromLatLngAsyncAction 93 | .run(() => super.getAddressFromLatLng()); 94 | } 95 | 96 | final _$getWeatherAsyncAction = AsyncAction('_WeatherStore.getWeather'); 97 | 98 | @override 99 | Future getWeather() { 100 | return _$getWeatherAsyncAction.run(() => super.getWeather()); 101 | } 102 | 103 | final _$_WeatherStoreActionController = 104 | ActionController(name: '_WeatherStore'); 105 | 106 | @override 107 | dynamic getCurrentLocation() { 108 | final _$actionInfo = _$_WeatherStoreActionController.startAction( 109 | name: '_WeatherStore.getCurrentLocation'); 110 | try { 111 | return super.getCurrentLocation(); 112 | } finally { 113 | _$_WeatherStoreActionController.endAction(_$actionInfo); 114 | } 115 | } 116 | 117 | @override 118 | String toString() { 119 | return ''' 120 | position: ${position}, 121 | isLoading: ${isLoading} 122 | '''; 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "4.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.39.10" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.6.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.4.1" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.0.0" 39 | build: 40 | dependency: transitive 41 | description: 42 | name: build 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.3.0" 46 | build_config: 47 | dependency: transitive 48 | description: 49 | name: build_config 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "0.4.2" 53 | build_daemon: 54 | dependency: transitive 55 | description: 56 | name: build_daemon 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.4" 60 | build_resolvers: 61 | dependency: transitive 62 | description: 63 | name: build_resolvers 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.3.9" 67 | build_runner: 68 | dependency: "direct dev" 69 | description: 70 | name: build_runner 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.10.0" 74 | build_runner_core: 75 | dependency: transitive 76 | description: 77 | name: build_runner_core 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "5.2.0" 81 | built_collection: 82 | dependency: transitive 83 | description: 84 | name: built_collection 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "4.3.2" 88 | built_value: 89 | dependency: transitive 90 | description: 91 | name: built_value 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "7.1.0" 95 | characters: 96 | dependency: transitive 97 | description: 98 | name: characters 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.0.0" 102 | charcode: 103 | dependency: transitive 104 | description: 105 | name: charcode 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.1.3" 109 | checked_yaml: 110 | dependency: transitive 111 | description: 112 | name: checked_yaml 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.0.2" 116 | clock: 117 | dependency: transitive 118 | description: 119 | name: clock 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.0.1" 123 | cloud_firestore: 124 | dependency: "direct main" 125 | description: 126 | name: cloud_firestore 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "0.13.7" 130 | cloud_firestore_platform_interface: 131 | dependency: transitive 132 | description: 133 | name: cloud_firestore_platform_interface 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "1.1.2" 137 | cloud_firestore_web: 138 | dependency: transitive 139 | description: 140 | name: cloud_firestore_web 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "0.1.1+2" 144 | code_builder: 145 | dependency: transitive 146 | description: 147 | name: code_builder 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "3.3.0" 151 | collection: 152 | dependency: transitive 153 | description: 154 | name: collection 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "1.14.13" 158 | convert: 159 | dependency: transitive 160 | description: 161 | name: convert 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "2.1.1" 165 | crypto: 166 | dependency: transitive 167 | description: 168 | name: crypto 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "2.1.4" 172 | csslib: 173 | dependency: transitive 174 | description: 175 | name: csslib 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "0.16.1" 179 | cupertino_icons: 180 | dependency: "direct main" 181 | description: 182 | name: cupertino_icons 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "0.1.3" 186 | dart_style: 187 | dependency: transitive 188 | description: 189 | name: dart_style 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.3.6" 193 | equatable: 194 | dependency: transitive 195 | description: 196 | name: equatable 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "1.2.0" 200 | fake_async: 201 | dependency: transitive 202 | description: 203 | name: fake_async 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "1.1.0" 207 | firebase: 208 | dependency: transitive 209 | description: 210 | name: firebase 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "7.3.0" 214 | firebase_auth: 215 | dependency: "direct main" 216 | description: 217 | name: firebase_auth 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "0.16.1" 221 | firebase_auth_platform_interface: 222 | dependency: transitive 223 | description: 224 | name: firebase_auth_platform_interface 225 | url: "https://pub.dartlang.org" 226 | source: hosted 227 | version: "1.1.8" 228 | firebase_auth_web: 229 | dependency: transitive 230 | description: 231 | name: firebase_auth_web 232 | url: "https://pub.dartlang.org" 233 | source: hosted 234 | version: "0.1.3+1" 235 | firebase_core: 236 | dependency: transitive 237 | description: 238 | name: firebase_core 239 | url: "https://pub.dartlang.org" 240 | source: hosted 241 | version: "0.4.5" 242 | firebase_core_platform_interface: 243 | dependency: transitive 244 | description: 245 | name: firebase_core_platform_interface 246 | url: "https://pub.dartlang.org" 247 | source: hosted 248 | version: "1.0.4" 249 | firebase_core_web: 250 | dependency: transitive 251 | description: 252 | name: firebase_core_web 253 | url: "https://pub.dartlang.org" 254 | source: hosted 255 | version: "0.1.1+2" 256 | fixnum: 257 | dependency: transitive 258 | description: 259 | name: fixnum 260 | url: "https://pub.dartlang.org" 261 | source: hosted 262 | version: "0.10.11" 263 | flare_dart: 264 | dependency: transitive 265 | description: 266 | name: flare_dart 267 | url: "https://pub.dartlang.org" 268 | source: hosted 269 | version: "2.3.4" 270 | flare_flutter: 271 | dependency: "direct main" 272 | description: 273 | name: flare_flutter 274 | url: "https://pub.dartlang.org" 275 | source: hosted 276 | version: "2.0.3" 277 | flutter: 278 | dependency: "direct main" 279 | description: flutter 280 | source: sdk 281 | version: "0.0.0" 282 | flutter_mobx: 283 | dependency: "direct main" 284 | description: 285 | name: flutter_mobx 286 | url: "https://pub.dartlang.org" 287 | source: hosted 288 | version: "1.1.0+1" 289 | flutter_sparkline: 290 | dependency: "direct main" 291 | description: 292 | name: flutter_sparkline 293 | url: "https://pub.dartlang.org" 294 | source: hosted 295 | version: "0.1.0" 296 | flutter_test: 297 | dependency: "direct dev" 298 | description: flutter 299 | source: sdk 300 | version: "0.0.0" 301 | flutter_web_plugins: 302 | dependency: transitive 303 | description: flutter 304 | source: sdk 305 | version: "0.0.0" 306 | geolocator: 307 | dependency: "direct main" 308 | description: 309 | name: geolocator 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "5.3.2+2" 313 | glob: 314 | dependency: transitive 315 | description: 316 | name: glob 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.2.0" 320 | google_api_availability: 321 | dependency: transitive 322 | description: 323 | name: google_api_availability 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "2.0.4" 327 | google_sign_in: 328 | dependency: "direct main" 329 | description: 330 | name: google_sign_in 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "4.5.1" 334 | google_sign_in_platform_interface: 335 | dependency: transitive 336 | description: 337 | name: google_sign_in_platform_interface 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "1.1.2" 341 | google_sign_in_web: 342 | dependency: transitive 343 | description: 344 | name: google_sign_in_web 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "0.9.1+1" 348 | graphs: 349 | dependency: transitive 350 | description: 351 | name: graphs 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "0.2.0" 355 | html: 356 | dependency: transitive 357 | description: 358 | name: html 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "0.14.0+3" 362 | http: 363 | dependency: "direct main" 364 | description: 365 | name: http 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "0.12.1" 369 | http_multi_server: 370 | dependency: transitive 371 | description: 372 | name: http_multi_server 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "2.2.0" 376 | http_parser: 377 | dependency: transitive 378 | description: 379 | name: http_parser 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "3.1.4" 383 | intl: 384 | dependency: "direct main" 385 | description: 386 | name: intl 387 | url: "https://pub.dartlang.org" 388 | source: hosted 389 | version: "0.16.1" 390 | io: 391 | dependency: transitive 392 | description: 393 | name: io 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "0.3.4" 397 | js: 398 | dependency: transitive 399 | description: 400 | name: js 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "0.6.2" 404 | json_annotation: 405 | dependency: transitive 406 | description: 407 | name: json_annotation 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "3.0.1" 411 | location_permissions: 412 | dependency: transitive 413 | description: 414 | name: location_permissions 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "3.0.0+1" 418 | logging: 419 | dependency: transitive 420 | description: 421 | name: logging 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "0.11.4" 425 | matcher: 426 | dependency: transitive 427 | description: 428 | name: matcher 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "0.12.8" 432 | meta: 433 | dependency: transitive 434 | description: 435 | name: meta 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "1.1.8" 439 | mime: 440 | dependency: transitive 441 | description: 442 | name: mime 443 | url: "https://pub.dartlang.org" 444 | source: hosted 445 | version: "0.9.6+3" 446 | mobx: 447 | dependency: "direct main" 448 | description: 449 | name: mobx 450 | url: "https://pub.dartlang.org" 451 | source: hosted 452 | version: "1.2.1+1" 453 | mobx_codegen: 454 | dependency: "direct dev" 455 | description: 456 | name: mobx_codegen 457 | url: "https://pub.dartlang.org" 458 | source: hosted 459 | version: "1.1.0+1" 460 | node_interop: 461 | dependency: transitive 462 | description: 463 | name: node_interop 464 | url: "https://pub.dartlang.org" 465 | source: hosted 466 | version: "1.1.1" 467 | node_io: 468 | dependency: transitive 469 | description: 470 | name: node_io 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "1.1.1" 474 | package_config: 475 | dependency: transitive 476 | description: 477 | name: package_config 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "1.9.3" 481 | path: 482 | dependency: transitive 483 | description: 484 | name: path 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "1.7.0" 488 | pedantic: 489 | dependency: transitive 490 | description: 491 | name: pedantic 492 | url: "https://pub.dartlang.org" 493 | source: hosted 494 | version: "1.9.0" 495 | platform_detect: 496 | dependency: transitive 497 | description: 498 | name: platform_detect 499 | url: "https://pub.dartlang.org" 500 | source: hosted 501 | version: "1.4.0" 502 | plugin_platform_interface: 503 | dependency: transitive 504 | description: 505 | name: plugin_platform_interface 506 | url: "https://pub.dartlang.org" 507 | source: hosted 508 | version: "1.0.2" 509 | pool: 510 | dependency: transitive 511 | description: 512 | name: pool 513 | url: "https://pub.dartlang.org" 514 | source: hosted 515 | version: "1.4.0" 516 | pub_semver: 517 | dependency: transitive 518 | description: 519 | name: pub_semver 520 | url: "https://pub.dartlang.org" 521 | source: hosted 522 | version: "1.4.4" 523 | pubspec_parse: 524 | dependency: transitive 525 | description: 526 | name: pubspec_parse 527 | url: "https://pub.dartlang.org" 528 | source: hosted 529 | version: "0.1.5" 530 | quiver: 531 | dependency: transitive 532 | description: 533 | name: quiver 534 | url: "https://pub.dartlang.org" 535 | source: hosted 536 | version: "2.1.3" 537 | shelf: 538 | dependency: transitive 539 | description: 540 | name: shelf 541 | url: "https://pub.dartlang.org" 542 | source: hosted 543 | version: "0.7.7" 544 | shelf_web_socket: 545 | dependency: transitive 546 | description: 547 | name: shelf_web_socket 548 | url: "https://pub.dartlang.org" 549 | source: hosted 550 | version: "0.2.3" 551 | sky_engine: 552 | dependency: transitive 553 | description: flutter 554 | source: sdk 555 | version: "0.0.99" 556 | source_gen: 557 | dependency: transitive 558 | description: 559 | name: source_gen 560 | url: "https://pub.dartlang.org" 561 | source: hosted 562 | version: "0.9.5" 563 | source_span: 564 | dependency: transitive 565 | description: 566 | name: source_span 567 | url: "https://pub.dartlang.org" 568 | source: hosted 569 | version: "1.7.0" 570 | stack_trace: 571 | dependency: transitive 572 | description: 573 | name: stack_trace 574 | url: "https://pub.dartlang.org" 575 | source: hosted 576 | version: "1.9.3" 577 | stream_channel: 578 | dependency: transitive 579 | description: 580 | name: stream_channel 581 | url: "https://pub.dartlang.org" 582 | source: hosted 583 | version: "2.0.0" 584 | stream_transform: 585 | dependency: transitive 586 | description: 587 | name: stream_transform 588 | url: "https://pub.dartlang.org" 589 | source: hosted 590 | version: "1.2.0" 591 | string_scanner: 592 | dependency: transitive 593 | description: 594 | name: string_scanner 595 | url: "https://pub.dartlang.org" 596 | source: hosted 597 | version: "1.0.5" 598 | term_glyph: 599 | dependency: transitive 600 | description: 601 | name: term_glyph 602 | url: "https://pub.dartlang.org" 603 | source: hosted 604 | version: "1.1.0" 605 | test_api: 606 | dependency: transitive 607 | description: 608 | name: test_api 609 | url: "https://pub.dartlang.org" 610 | source: hosted 611 | version: "0.2.17" 612 | timing: 613 | dependency: transitive 614 | description: 615 | name: timing 616 | url: "https://pub.dartlang.org" 617 | source: hosted 618 | version: "0.1.1+2" 619 | typed_data: 620 | dependency: transitive 621 | description: 622 | name: typed_data 623 | url: "https://pub.dartlang.org" 624 | source: hosted 625 | version: "1.2.0" 626 | url_launcher: 627 | dependency: "direct main" 628 | description: 629 | name: url_launcher 630 | url: "https://pub.dartlang.org" 631 | source: hosted 632 | version: "5.4.11" 633 | url_launcher_macos: 634 | dependency: transitive 635 | description: 636 | name: url_launcher_macos 637 | url: "https://pub.dartlang.org" 638 | source: hosted 639 | version: "0.0.1+7" 640 | url_launcher_platform_interface: 641 | dependency: transitive 642 | description: 643 | name: url_launcher_platform_interface 644 | url: "https://pub.dartlang.org" 645 | source: hosted 646 | version: "1.0.7" 647 | url_launcher_web: 648 | dependency: transitive 649 | description: 650 | name: url_launcher_web 651 | url: "https://pub.dartlang.org" 652 | source: hosted 653 | version: "0.1.1+6" 654 | vector_math: 655 | dependency: transitive 656 | description: 657 | name: vector_math 658 | url: "https://pub.dartlang.org" 659 | source: hosted 660 | version: "2.0.8" 661 | watcher: 662 | dependency: transitive 663 | description: 664 | name: watcher 665 | url: "https://pub.dartlang.org" 666 | source: hosted 667 | version: "0.9.7+15" 668 | web_socket_channel: 669 | dependency: transitive 670 | description: 671 | name: web_socket_channel 672 | url: "https://pub.dartlang.org" 673 | source: hosted 674 | version: "1.1.0" 675 | yaml: 676 | dependency: transitive 677 | description: 678 | name: yaml 679 | url: "https://pub.dartlang.org" 680 | source: hosted 681 | version: "2.2.1" 682 | sdks: 683 | dart: ">=2.9.0-14.0.dev <3.0.0" 684 | flutter: ">=1.12.13+hotfix.6 <2.0.0" 685 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: hack20_atomica 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | 27 | 28 | # The following adds the Cupertino Icons font to your application. 29 | # Use with the CupertinoIcons class for iOS style icons. 30 | cupertino_icons: ^0.1.3 31 | firebase_auth: 0.16.1 32 | google_sign_in: 4.5.1 33 | cloud_firestore: ^0.13.4+2 34 | flare_flutter: 2.0.3 35 | mobx: 36 | flutter_mobx: 37 | geolocator: ^5.1.3 38 | http: 0.12.1 39 | url_launcher: 5.4.11 40 | flutter_sparkline: 0.1.0 41 | intl: ^0.16.1 42 | 43 | dev_dependencies: 44 | flutter_test: 45 | sdk: flutter 46 | build_runner: 47 | mobx_codegen: 48 | 49 | # For information on the generic Dart part of this file, see the 50 | # following page: https://dart.dev/tools/pub/pubspec 51 | 52 | # The following section is specific to Flutter. 53 | flutter: 54 | 55 | # The following line ensures that the Material Icons font is 56 | # included with your application, so that you can use the icons in 57 | # the material Icons class. 58 | uses-material-design: true 59 | 60 | # To add assets to your application, add an assets section, like this: 61 | assets: 62 | - assets/ 63 | # - images/a_dot_ham.jpeg 64 | 65 | # An image asset can refer to one or more resolution-specific "variants", see 66 | # https://flutter.dev/assets-and-images/#resolution-aware. 67 | 68 | # For details regarding adding assets from package dependencies, see 69 | # https://flutter.dev/assets-and-images/#from-packages 70 | 71 | # To add custom fonts to your application, add a fonts section here, 72 | # in this "flutter" section. Each entry in this list should have a 73 | # "family" key with the font family name, and a "fonts" key with a 74 | # list giving the asset and other descriptors for the font. For 75 | # example: 76 | 77 | fonts: 78 | - family: Panton 79 | fonts: 80 | - asset: fonts/PantonDemo-Light.otf 81 | - asset: fonts/PantonDemo-Black.otf 82 | weight: 800 83 | # fonts: 84 | # - family: Schyler 85 | # fonts: 86 | # - asset: fonts/Schyler-Regular.ttf 87 | # - asset: fonts/Schyler-Italic.ttf 88 | # style: italic 89 | # - family: Trajan Pro 90 | # fonts: 91 | # - asset: fonts/TrajanPro.ttf 92 | # - asset: fonts/TrajanPro_Bold.ttf 93 | # weight: 700 94 | # 95 | # For details regarding fonts from package dependencies, 96 | # see https://flutter.dev/custom-fonts/#from-packages 97 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:hack20_atomica/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(()); 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 | --------------------------------------------------------------------------------