├── lib
├── views
│ ├── forgot_password.dart
│ ├── results.dart
│ ├── signin.dart
│ ├── create_quiz.dart
│ ├── home.dart
│ ├── signup.dart
│ ├── add_question.dart
│ └── quiz_play.dart
├── models
│ ├── user.dart
│ └── question_model.dart
├── widget
│ └── widget.dart
├── helper
│ ├── authenticate.dart
│ └── constants.dart
├── main.dart
├── services
│ ├── database.dart
│ └── auth.dart
└── widgets
│ └── quiz_play_widgets.dart
├── ios
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Info.plist
│ └── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── .gitignore
├── main.dart
├── Podfile
└── Podfile.lock
├── .gitattributes
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── manifest.json
└── index.html
├── macos
├── .gitignore
├── Runner
│ ├── Configs
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ ├── Warnings.xcconfig
│ │ └── AppInfo.xcconfig
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ ├── app_icon_64.png
│ │ │ ├── app_icon_1024.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Release.entitlements
│ ├── DebugProfile.entitlements
│ ├── MainFlutterWindow.swift
│ ├── Info.plist
│ └── Base.lproj
│ │ └── MainMenu.xib
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
└── Podfile
├── android
├── gradle.properties
├── .gitignore
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── quizapp2
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── build.gradle
├── .metadata
├── test
└── widget_test.dart
├── README.md
├── pubspec.yaml
└── pubspec.lock
/lib/views/forgot_password.dart:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/lib/models/user.dart:
--------------------------------------------------------------------------------
1 | class User {
2 |
3 | final String uid;
4 | User({this.uid});
5 |
6 | }
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/xcuserdata/
7 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rwema3/Quiz-App-with-firebase/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/quizapp2/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.quizapp2
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/lib/models/question_model.dart:
--------------------------------------------------------------------------------
1 | class QuestionModel{
2 |
3 | String question;
4 | String option1;
5 | String option2;
6 | String option3;
7 | String option4;
8 | String correctOption;
9 | bool answered;
10 | }
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.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: dadc3ead47e75319c8ed6b6f15899ad56725c68a
8 | channel: master
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/lib/widget/widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AppLogo extends StatelessWidget {
4 | @override
5 | Widget build(BuildContext context) {
6 | return RichText(
7 | text: TextSpan(
8 | style: TextStyle(
9 | fontSize: 22
10 | ),
11 | children: [
12 | TextSpan(text: 'Quiz', style: TextStyle(fontWeight: FontWeight.w600
13 | , color: Colors.black54)),
14 | TextSpan(text: 'App', style: TextStyle(fontWeight: FontWeight.w600
15 | , color: Colors.blue)),
16 | ],
17 | ),
18 | );
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "quizapp2",
3 | "short_name": "quizapp2",
4 | "start_url": ".",
5 | "display": "minimal-ui",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = quizapp2
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.quizapp2
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2020 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/lib/helper/authenticate.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:quizapp2/views/signin.dart';
3 | import 'package:quizapp2/views/signup.dart';
4 |
5 | class Authenticate extends StatefulWidget {
6 | @override
7 | _AuthenticateState createState() => _AuthenticateState();
8 | }
9 |
10 | class _AuthenticateState extends State {
11 | bool showSignIn = true;
12 |
13 | void toggleView() {
14 | setState(() {
15 | showSignIn = !showSignIn;
16 | });
17 | }
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | if (showSignIn) {
22 | return SignIn(toogleView: toggleView);
23 | } else {
24 | return SignUp(toogleView: toggleView);
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/helper/constants.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:shared_preferences/shared_preferences.dart';
3 |
4 | class Constants {
5 | static String sharedPreferenceUserLoggedInKey = "ISLOGGEDIN";
6 | static String sharedPreferenceUserNameKey = "USERNAMEKEY";
7 | static String sharedPreferenceUserEmailKey = "USEREMAIL";
8 |
9 | static Future saveUserLoggedInSharedPreference(
10 | bool isUserLoggedIn) async {
11 | SharedPreferences preferences = await SharedPreferences.getInstance();
12 | return await preferences.setBool(
13 | Constants.sharedPreferenceUserLoggedInKey, isUserLoggedIn);
14 | }
15 |
16 | static Future getUerLoggedInSharedPreference() async {
17 | SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
18 | return sharedPreferences.get(Constants.sharedPreferenceUserLoggedInKey);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import cloud_firestore
9 | import firebase_auth
10 | import firebase_core
11 | import path_provider_macos
12 | import shared_preferences_macos
13 | import sqflite
14 |
15 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
16 | FLTCloudFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTCloudFirestorePlugin"))
17 | FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
18 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
19 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
20 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
21 | SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
22 | }
23 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/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:quizapp2/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | quizapp2
18 |
19 |
20 |
21 |
24 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/ios/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:quizapp2/helper/authenticate.dart';
4 | import 'package:quizapp2/helper/constants.dart';
5 | import 'package:quizapp2/views/home.dart';
6 | import 'package:shared_preferences/shared_preferences.dart';
7 |
8 | void main() {
9 | runApp(MyApp());
10 | }
11 |
12 | class MyApp extends StatefulWidget {
13 | // This widget is the root of your application.
14 | @override
15 | _MyAppState createState() => _MyAppState();
16 | }
17 |
18 | class _MyAppState extends State {
19 | bool isUserLoggedIn = false;
20 |
21 | @override
22 | void initState() {
23 | getLoggedInState();
24 | super.initState();
25 | }
26 |
27 | getLoggedInState() async {
28 | await Constants.getUerLoggedInSharedPreference().then((value) {
29 | setState(() {
30 | isUserLoggedIn = value;
31 | });
32 | });
33 | }
34 |
35 | @overrie
36 | Widget build(BuildContext context) {
37 |
38 | return MaterialApp(
39 | title: 'Quiz App',
40 | debugShowCheckedModeBanner: false,
41 | theme: ThemeData(
42 | visualDensity: VisualDensity.adaptivePlatformDensity
43 | ),
44 | home: isUserLoggedIn ? Home() : Authenticate(),
45 | );
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:quizapp2/helper/authenticate.dart';
4 | import 'package:quizapp2/helper/constants.dart';
5 | import 'package:quizapp2/views/home.dart';
6 | import 'package:shared_preferences/shared_preferences.dart';
7 |
8 | void main() {
9 | runApp(MyApp());
10 | }
11 |
12 | class MyApp extends StatefulWidget {
13 | // This widget is the root of your application.
14 | @override
15 | _MyAppState createState() => _MyAppState();
16 | }
17 |
18 | class _MyAppState extends State {
19 | bool isUserLoggedIn = false;
20 |
21 | @override
22 | void initState() {
23 | getLoggedInState();
24 | super.initState();
25 | }
26 |
27 | getLoggedInState() async {
28 | await Constants.getUerLoggedInSharedPreference().then((value) {
29 | setState(() {
30 | isUserLoggedIn = value;
31 | });
32 | });
33 | }
34 |
35 | @override
36 | Widget build(BuildContext context) {
37 |
38 | return MaterialApp(
39 | title: 'Quiz App',
40 | debugShowCheckedModeBanner: false,
41 | theme: ThemeData(
42 | visualDensity: VisualDensity.adaptivePlatformDensity,
43 | ),
44 | home: isUserLoggedIn ? Home() : Authenticate(),
45 | );
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/services/database.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 |
3 | class DatabaseService {
4 | final String uid;
5 |
6 | DatabaseService({this.uid});
7 |
8 | Future addData(userData) async {
9 | Firestore.instance.collection("users").add(userData).catchError((e) {
10 | print(e);
11 | });
12 | }
13 |
14 | getData() async {
15 | return await Firestore.instance.collection("users").snapshots();
16 | }
17 |
18 | Future addQuizData(Map quizData, String quizId) async {
19 | await Firestore.instance
20 | .collection("Quiz")
21 | .document(quizId)
22 | .setData(quizData)
23 | .catchError((e) {
24 | print(e);
25 | });
26 | }
27 |
28 | Future addQuestionData(quizData, String quizId) async {
29 | await Firestore.instance
30 | .collection("Quiz")
31 | .document(quizId)
32 | .collection("QNA")
33 | .add(quizData)
34 | .catchError((e) {
35 | print(e);
36 | });
37 | }
38 |
39 | getQuizData() async {
40 | return await Firestore.instance.collection("Quiz").snapshots();
41 | }
42 |
43 | getQuestionData(String quizId) async{
44 | return await Firestore.instance
45 | .collection("Quiz")
46 | .document(quizId)
47 | .collection("QNA")
48 | .getDocuments();
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Quiz Maker App
2 |
3 | Quiz maker app made with Flutter.
4 |
5 | ### Created & Maintained By @Rwema3
6 | > You can also nominate me for Github Star developer program
7 | > https://stars.github.com/nominate
8 | 
9 |
10 | ### License
11 |
12 | Copyright 2022 Bgirishya Rwema Dominique
13 |
14 | Licensed under the Apache License, Version 2.0 (the "License");
15 | you may not use this file except in compliance with the License.
16 | You may obtain a copy of the License at
17 |
18 | http://www.apache.org/licenses/LICENSE-2.0
19 |
20 | Unless required by applicable law or agreed to in writing, software
21 | distributed under the License is distributed on an "AS IS" BASIS,
22 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 | See the License for the specific language governing permissions and
24 | limitations under the License.
25 |
26 |
27 |
28 | A few resources to get you started if this is your first Flutter project:
29 |
30 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
31 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
32 |
33 | For help getting started with Flutter, view our
34 | [online documentation](https://flutter.dev/docs), which offers tutorials,
35 | samples, guidance on mobile development, and a full API reference.
36 |
--------------------------------------------------------------------------------
/lib/services/auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:quizapp2/models/user.dart';
3 |
4 | class AuthService{
5 |
6 | final FirebaseAuth _auth = FirebaseAuth.instance;
7 |
8 | User _userFromFirebaseUser(FirebaseUser user) {
9 |
10 | return user != null ? User(uid: user.uid) : null;
11 | }
12 |
13 |
14 | Future signInEmailAndPass(String email, String password) async{
15 | try{
16 | AuthResult authResult = await _auth.signInWithEmailAndPassword(email: email, password: password);
17 | FirebaseUser firebaseUser = authResult.user;
18 | return _userFromFirebaseUser(firebaseUser);
19 | }catch(e){
20 | print(e);
21 | }
22 | }
23 |
24 | Future signUpWithEmailAndPassword(String email, String password) async {
25 |
26 | try{
27 | AuthResult authResult = await _auth.createUserWithEmailAndPassword(email: email, password: password);
28 | FirebaseUser user = authResult.user;
29 | return _userFromFirebaseUser(user);
30 | }catch(e){
31 | print(e.toString());
32 | return null;
33 | }
34 |
35 | }
36 |
37 | Future signOut() async{
38 |
39 | try{
40 | return await _auth.signOut();
41 | }catch(e){
42 | print(e.toString());
43 | return null;
44 | }
45 | }
46 |
47 | Future resetPass(String email) async{
48 | try{
49 | return await _auth.sendPasswordResetEmail(email: email);
50 | }catch(e){
51 | print(e.toString());
52 | return null;
53 | }
54 | }
55 | }
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/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 | quizapp2
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 |
--------------------------------------------------------------------------------
/lib/views/results.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Results extends StatefulWidget {
4 | final int total, correct, incorrect, notattempted;
5 | Results({this.incorrect, this.total, this.correct, this.notattempted});
6 |
7 | @override
8 | _ResultsState createState() => _ResultsState();
9 | }
10 |
11 | class _ResultsState extends State {
12 | @override
13 | Widget build(BuildContext context) {
14 | return Scaffold(
15 | body: Container(
16 | child: Center(
17 | child: Column(
18 | mainAxisSize: MainAxisSize.min,
19 | children: [
20 | Text("${widget.correct}/ ${widget.total}", style: TextStyle(fontSize: 25),),
21 | SizedBox(height: 5,),
22 | Container(
23 | padding: EdgeInsets.symmetric(horizontal: 24),
24 | child: Text(
25 | "you answered ${widget.correct} answers correctly and ${widget.incorrect} answeres incorrectly",
26 | textAlign: TextAlign.center,),
27 |
28 | ),
29 | SizedBox(height: 24,),
30 | GestureDetector(
31 | onTap: (){
32 | Navigator.pop(context);
33 | },
34 | child: Container(
35 | padding: EdgeInsets.symmetric(horizontal: 24, vertical: 8),
36 | decoration: BoxDecoration(
37 | color: Colors.blue,
38 | borderRadius: BorderRadius.circular(30)
39 | ),
40 | child: Text("Go to home", style: TextStyle(color: Colors.white, fontSize: 19),),
41 | ),
42 | )
43 | ],),
44 | ),
45 | ),
46 | );
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/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 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.quizapp2"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
23 |
27 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/macos/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, '10.11'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def parse_KV_file(file, separator='=')
13 | file_abs_path = File.expand_path(file)
14 | if !File.exists? file_abs_path
15 | return [];
16 | end
17 | pods_ary = []
18 | skip_line_start_symbols = ["#", "/"]
19 | File.foreach(file_abs_path) { |line|
20 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
21 | plugin = line.split(pattern=separator)
22 | if plugin.length == 2
23 | podname = plugin[0].strip()
24 | path = plugin[1].strip()
25 | podpath = File.expand_path("#{path}", file_abs_path)
26 | pods_ary.push({:name => podname, :path => podpath});
27 | else
28 | puts "Invalid plugin specification: #{line}"
29 | end
30 | }
31 | return pods_ary
32 | end
33 |
34 | def pubspec_supports_macos(file)
35 | file_abs_path = File.expand_path(file)
36 | if !File.exists? file_abs_path
37 | return false;
38 | end
39 | File.foreach(file_abs_path) { |line|
40 | return true if line =~ /^\s*macos:/
41 | }
42 | return false
43 | end
44 |
45 | target 'Runner' do
46 | use_frameworks!
47 | use_modular_headers!
48 |
49 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
50 | # referring to absolute paths on developers' machines.
51 | ephemeral_dir = File.join('Flutter', 'ephemeral')
52 | symlink_dir = File.join(ephemeral_dir, '.symlinks')
53 | symlink_plugins_dir = File.join(symlink_dir, 'plugins')
54 | system("rm -rf #{symlink_dir}")
55 | system("mkdir -p #{symlink_plugins_dir}")
56 |
57 | # Flutter Pods
58 | generated_xcconfig = parse_KV_file(File.join(ephemeral_dir, 'Flutter-Generated.xcconfig'))
59 | if generated_xcconfig.empty?
60 | puts "Flutter-Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
61 | end
62 | generated_xcconfig.map { |p|
63 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
64 | symlink = File.join(symlink_dir, 'flutter')
65 | File.symlink(File.dirname(p[:path]), symlink)
66 | pod 'FlutterMacOS', :path => File.join(symlink, File.basename(p[:path]))
67 | end
68 | }
69 |
70 | # Plugin Pods
71 | plugin_pods = parse_KV_file('../.flutter-plugins')
72 | plugin_pods.map { |p|
73 | symlink = File.join(symlink_plugins_dir, p[:name])
74 | File.symlink(p[:path], symlink)
75 | if pubspec_supports_macos(File.join(symlink, 'pubspec.yaml'))
76 | pod p[:name], :path => File.join(symlink, 'macos')
77 | end
78 | }
79 | end
80 |
81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
82 | install! 'cocoapods', :disable_input_output_paths => true
83 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: quizapp2
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 | cached_network_image: ^2.0.0
27 | cloud_firestore: ^0.13.3
28 | firebase_auth: ^0.15.2
29 | provider: ^3.2.0
30 | google_sign_in: ^4.1.1
31 | shared_preferences: ^0.5.6+3
32 | random_string: ^2.0.1
33 |
34 |
35 | # The following adds the Cupertino Icons font to your application.
36 | # Use with the CupertinoIcons class for iOS style icons.
37 | cupertino_icons: ^0.1.3
38 |
39 | dev_dependencies:
40 | flutter_test:
41 | sdk: flutter
42 |
43 | # For information on the generic Dart part of this file, see the
44 | # following page: https://dart.dev/tools/pub/pubspec
45 |
46 | # The following section is specific to Flutter.
47 | flutter:
48 |
49 | # The following line ensures that the Material Icons font is
50 | # included with your application, so that you can use the icons in
51 | # the material Icons class.
52 | uses-material-design: true
53 |
54 | # To add assets to your application, add an assets section, like this:
55 | # assets:
56 | # - images/a_dot_burr.jpeg
57 | # - images/a_dot_ham.jpeg
58 |
59 | # An image asset can refer to one or more resolution-specific "variants", see
60 | # https://flutter.dev/assets-and-images/#resolution-aware.
61 |
62 | # For details regarding adding assets from package dependencies, see
63 | # https://flutter.dev/assets-and-images/#from-packages
64 |
65 | # To add custom fonts to your application, add a fonts section here,
66 | # in this "flutter" section. Each entry in this list should have a
67 | # "family" key with the font family name, and a "fonts" key with a
68 | # list giving the asset and other descriptors for the font. For
69 | # example:
70 | # fonts:
71 | # - family: Schyler
72 | # fonts:
73 | # - asset: fonts/Schyler-Regular.ttf
74 | # - asset: fonts/Schyler-Italic.ttf
75 | # style: italic
76 | # - family: Trajan Pro
77 | # fonts:
78 | # - asset: fonts/TrajanPro.ttf
79 | # - asset: fonts/TrajanPro_Bold.ttf
80 | # weight: 700
81 | #
82 | # For details regarding fonts from package dependencies,
83 | # see https://flutter.dev/custom-fonts/#from-packages
84 |
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/lib/views/signin.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:quizapp2/services/auth.dart';
4 | import 'package:quizapp2/widget/widget.dart';
5 |
6 | class SignIn extends StatefulWidget {
7 | final Function toogleView;
8 |
9 | SignIn({this.toogleView});
10 |
11 | @override
12 | _SignInState createState() => _SignInState();
13 | }
14 |
15 | class _SignInState extends State {
16 |
17 | final AuthService _authService = AuthService();
18 |
19 | TextEditingController emailEditingController = new TextEditingController();
20 | TextEditingController passwordEditingController = new TextEditingController();
21 |
22 | @override
23 | Widget build(BuildContext context) {
24 | SystemChrome.setSystemUIOverlayStyle(
25 | SystemUiOverlayStyle(statusBarColor: Colors.white));
26 | return Scaffold(
27 | backgroundColor: Colors.white,
28 | appBar: AppBar(
29 | title: AppLogo(),
30 | brightness: Brightness.light,
31 | elevation: 0.0,
32 | backgroundColor: Colors.transparent,
33 | //brightness: Brightness.li,
34 | ),
35 | body: Container(
36 | padding: EdgeInsets.symmetric(horizontal: 24),
37 | child: Column(
38 | children: [
39 | Spacer(),
40 | Container(
41 | child: Column(
42 | children: [
43 | TextField(
44 | decoration: InputDecoration(hintText: "Email"),
45 | ),
46 | SizedBox(
47 | height: 6,
48 | ),
49 | TextField(
50 | decoration: InputDecoration(hintText: "Password"),
51 | ),
52 | SizedBox(
53 | height: 24,
54 | ),
55 | Container(
56 | alignment: Alignment.center,
57 | width: MediaQuery.of(context).size.width,
58 | padding: EdgeInsets.symmetric(horizontal: 24, vertical: 20),
59 | decoration: BoxDecoration(
60 | color: Colors.blue,
61 | borderRadius: BorderRadius.circular(30)),
62 | child: Text(
63 | "Sign In",
64 | style: TextStyle(fontSize: 16, color: Colors.white),
65 | ),
66 | ),
67 | SizedBox(
68 | height: 20,
69 | ),
70 | Row(
71 | mainAxisAlignment: MainAxisAlignment.center,
72 | children: [
73 | Text('Don\'t have an account? ',
74 | style:
75 | TextStyle(color: Colors.black87, fontSize: 17)),
76 | GestureDetector(
77 | onTap: () {
78 | widget.toogleView();
79 | },
80 | child: Container(
81 | child: Text('Sign Up',
82 | style: TextStyle(
83 | color: Colors.black87,
84 | decoration: TextDecoration.underline,
85 | fontSize: 17)),
86 | ),
87 | ),
88 | ],
89 | ),
90 | ],
91 | ),
92 | ),
93 | SizedBox(
94 | height: 80,
95 | )
96 | ],
97 | ),
98 | ),
99 | );
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/lib/widgets/quiz_play_widgets.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class OptionTile extends StatefulWidget {
4 | final String option, description, correctAnswer, optionSelected;
5 |
6 | OptionTile(
7 | {this.description, this.correctAnswer, this.option, this.optionSelected});
8 |
9 | @override
10 | _OptionTileState createState() => _OptionTileState();
11 | }
12 |
13 | class _OptionTileState extends State {
14 | @override
15 | Widget build(BuildContext context) {
16 | return Container(
17 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
18 | child: Row(
19 | children: [
20 | Container(
21 | height: 28,
22 | width: 28,
23 | alignment: Alignment.center,
24 | decoration: BoxDecoration(
25 | border: Border.all(
26 | color: widget.optionSelected == widget.description
27 | ? widget.description == widget.correctAnswer
28 | ? Colors.green.withOpacity(0.7)
29 | : Colors.red.withOpacity(0.7)
30 | : Colors.grey,
31 | width: 1.5),
32 | color: widget.optionSelected == widget.description
33 | ? widget.description == widget.correctAnswer
34 | ? Colors.green.withOpacity(0.7)
35 | : Colors.red.withOpacity(0.7)
36 | : Colors.white,
37 | borderRadius: BorderRadius.circular(24)
38 | ),
39 | child: Text(
40 | widget.option,
41 | style: TextStyle(
42 | color: widget.optionSelected == widget.description
43 | ? Colors.white
44 | : Colors.grey,
45 | ),
46 | ),
47 | ),
48 | SizedBox(
49 | width: 8,
50 | ),
51 | Text(widget.description, style: TextStyle(
52 | fontSize: 17, color: Colors.black54
53 | ),)
54 | ],
55 | ),
56 | );
57 | }
58 | }
59 |
60 |
61 | class NoOfQuestionTile extends StatefulWidget {
62 | final String text;
63 | final int number;
64 |
65 | NoOfQuestionTile({this.text, this.number});
66 |
67 | @override
68 | _NoOfQuestionTileState createState() => _NoOfQuestionTileState();
69 | }
70 |
71 | class _NoOfQuestionTileState extends State {
72 | @override
73 | Widget build(BuildContext context) {
74 | return Container(
75 | margin: EdgeInsets.symmetric(horizontal: 3),
76 | child: Row(
77 | children: [
78 | Container(
79 | padding: EdgeInsets.symmetric(horizontal: 10,vertical: 6),
80 | decoration: BoxDecoration(
81 | borderRadius: BorderRadius.only(
82 | topLeft: Radius.circular(14),
83 | bottomLeft: Radius.circular(14)
84 | ),
85 | color: Colors.blue
86 | ),
87 | child: Text(
88 | "${widget.number}",
89 | style: TextStyle(color: Colors.white),
90 | ),
91 | ),
92 | Container(
93 | padding: EdgeInsets.symmetric(horizontal: 10, vertical: 6),
94 | decoration: BoxDecoration(
95 | borderRadius: BorderRadius.only(
96 | topRight: Radius.circular(14),
97 | bottomRight: Radius.circular(14),
98 | ),
99 | color: Colors.black54
100 | ),
101 | child: Text(
102 | widget.text,
103 | style: TextStyle(color: Colors.white),
104 | ),
105 | )
106 | ],
107 | ),
108 | );
109 | }
110 | }
111 |
112 |
--------------------------------------------------------------------------------
/lib/views/create_quiz.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:quizapp2/services/database.dart';
3 | import 'package:quizapp2/views/add_question.dart';
4 | import 'package:quizapp2/widget/widget.dart';
5 | import 'package:random_string/random_string.dart';
6 |
7 | class CreateQuiz extends StatefulWidget {
8 |
9 |
10 | @override
11 | _CreateQuizState createState() => _CreateQuizState();
12 | }
13 |
14 | class _CreateQuizState extends State {
15 |
16 | DatabaseService databaseService = new DatabaseService();
17 | final _formKey = GlobalKey();
18 |
19 | String quizImgUrl, quizTitle, quizDesc;
20 |
21 | bool isLoading = false;
22 | String quizId;
23 |
24 |
25 | createQuiz(){
26 |
27 | quizId = randomAlphaNumeric(16);
28 | if(_formKey.currentState.validate()){
29 |
30 | setState(() {
31 | isLoading = true;
32 | });
33 |
34 | Map quizData = {
35 | "quizImgUrl" : quizImgUrl,
36 | "quizTitle" : quizTitle,
37 | "quizDesc" : quizDesc
38 | };
39 |
40 | databaseService.addQuizData(quizData, quizId).then((value){
41 | setState(() {
42 | isLoading = false;
43 | });
44 | Navigator.pushReplacement(context, MaterialPageRoute(
45 | builder: (context) => AddQuestion(quizId)
46 | ));
47 | });
48 | }
49 | }
50 |
51 |
52 | @override
53 | Widget build(BuildContext context) {
54 | return Scaffold(
55 | backgroundColor: Colors.white,
56 | appBar: AppBar(
57 | leading: BackButton(
58 | color: Colors.black54,
59 | ),
60 | title: AppLogo(),
61 | brightness: Brightness.light,
62 | elevation: 0.0,
63 | backgroundColor: Colors.transparent,
64 | //brightness: Brightness.li,
65 | ),
66 | body: Form(
67 | key: _formKey,
68 | child: Container(
69 | padding: EdgeInsets.symmetric(horizontal: 24),
70 | child: Column(
71 | children: [
72 | TextFormField(
73 | validator: (val) => val.isEmpty ? "Enter Quiz Image Url" : null,
74 | decoration: InputDecoration(
75 | hintText: "Quiz Image Url (Optional)"
76 | ),
77 | onChanged: (val){
78 | quizImgUrl = val;
79 | },
80 | ),
81 | SizedBox(height: 5,),
82 | TextFormField(
83 | validator: (val) => val.isEmpty ? "Enter Quiz Title" : null,
84 | decoration: InputDecoration(
85 | hintText: "Quiz Title"
86 | ),
87 | onChanged: (val){
88 | quizTitle = val;
89 | },
90 | ),
91 | SizedBox(height: 5,),
92 | TextFormField(
93 | validator: (val) => val.isEmpty ? "Enter Quiz Description" : null,
94 | decoration: InputDecoration(
95 | hintText: "Quiz Description"
96 | ),
97 | onChanged: (val){
98 | quizDesc = val;
99 | },
100 | ),
101 | Spacer(),
102 | GestureDetector(
103 | onTap: () {
104 | createQuiz();
105 | },
106 | child: Container(
107 | alignment: Alignment.center,
108 | width: MediaQuery.of(context).size.width,
109 | padding: EdgeInsets.symmetric(
110 | horizontal: 24, vertical: 20),
111 | decoration: BoxDecoration(
112 | color: Colors.blue,
113 | borderRadius: BorderRadius.circular(30)),
114 | child: Text(
115 | "Create Quiz",
116 | style: TextStyle(
117 | fontSize: 16, color: Colors.white),
118 | ),
119 | ),
120 | ),
121 | SizedBox(
122 | height: 60,
123 | ),
124 | ],)
125 | ,),
126 | ),
127 | );
128 | }
129 | }
130 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
53 |
54 |
64 |
66 |
72 |
73 |
74 |
75 |
76 |
77 |
83 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/lib/views/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:quizapp2/services/database.dart';
3 | import 'package:quizapp2/views/create_quiz.dart';
4 | import 'package:quizapp2/views/quiz_play.dart';
5 | import 'package:quizapp2/widget/widget.dart';
6 |
7 | class Home extends StatefulWidget {
8 | @override
9 | _HomeState createState() => _HomeState();
10 | }
11 |
12 | class _HomeState extends State {
13 | Stream quizStream;
14 | DatabaseService databaseService = new DatabaseService();
15 |
16 | Widget quizList() {
17 | return Container(
18 | child: Column(
19 | children: [
20 | StreamBuilder(
21 | stream: quizStream,
22 | builder: (context, snapshot) {
23 | return snapshot.data == null
24 | ? Container()
25 | : ListView.builder(
26 | shrinkWrap: true,
27 | physics: ClampingScrollPhysics(),
28 | itemCount: snapshot.data.documents.length,
29 | itemBuilder: (context, index) {
30 | return QuizTile(
31 | noOfQuestions: snapshot.data.documents.length,
32 | imageUrl:
33 | snapshot.data.documents[index].data['quizImgUrl'],
34 | title:
35 | snapshot.data.documents[index].data['quizTitle'],
36 | description:
37 | snapshot.data.documents[index].data['quizDesc'],
38 | id: snapshot.data.documents[index].data["id"],
39 | );
40 | });
41 | },
42 | )
43 | ],
44 | ),
45 | );
46 | }
47 |
48 | @override
49 | void initState() {
50 | databaseService.getQuizData().then((value) {
51 | quizStream = value;
52 | setState(() {});
53 | });
54 | super.initState();
55 | }
56 |
57 | @override
58 | Widget build(BuildContext context) {
59 | return Scaffold(
60 | backgroundColor: Colors.white,
61 | appBar: AppBar(
62 | title: AppLogo(),
63 | brightness: Brightness.light,
64 | elevation: 0.0,
65 | backgroundColor: Colors.transparent,
66 | //brightness: Brightness.li,
67 | ),
68 | body: quizList(),
69 | floatingActionButton: FloatingActionButton(
70 | child: Icon(Icons.add),
71 | onPressed: () {
72 | Navigator.push(
73 | context, MaterialPageRoute(builder: (context) => CreateQuiz()));
74 | },
75 | ),
76 | );
77 | }
78 | }
79 |
80 | class QuizTile extends StatelessWidget {
81 | final String imageUrl, title, id, description;
82 | final int noOfQuestions;
83 |
84 | QuizTile(
85 | {@required this.title,
86 | @required this.imageUrl,
87 | @required this.description,
88 | @required this.id,
89 | @required this.noOfQuestions});
90 |
91 | @override
92 | Widget build(BuildContext context) {
93 | return GestureDetector(
94 | onTap: (){
95 | Navigator.push(context, MaterialPageRoute(
96 | builder: (context) => QuizPlay(id)
97 | ));
98 | },
99 | child: Container(
100 | padding: EdgeInsets.symmetric(horizontal: 24),
101 | height: 150,
102 | child: ClipRRect(
103 | borderRadius: BorderRadius.circular(8),
104 | child: Stack(
105 | children: [
106 | Image.network(
107 | imageUrl,
108 | fit: BoxFit.cover,
109 | width: MediaQuery.of(context).size.width,
110 | ),
111 | Container(
112 | color: Colors.black26,
113 | child: Center(
114 | child: Column(
115 | mainAxisAlignment: MainAxisAlignment.center,
116 | children: [
117 | Text(
118 | title,
119 | style: TextStyle(
120 | fontSize: 18,
121 | color: Colors.white,
122 | fontWeight: FontWeight.w500),
123 | ),
124 | SizedBox(height: 4,),
125 | Text(
126 | description,
127 | style: TextStyle(
128 | fontSize: 13,
129 | color: Colors.white,
130 | fontWeight: FontWeight.w500),
131 | )
132 | ],
133 | ),
134 | ),
135 | )
136 | ],
137 | ),
138 | ),
139 | ),
140 | );
141 | }
142 | }
143 |
--------------------------------------------------------------------------------
/lib/views/signup.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:quizapp2/helper/constants.dart';
4 | import 'package:quizapp2/services/auth.dart';
5 | import 'package:quizapp2/services/database.dart';
6 | import 'package:quizapp2/views/home.dart';
7 | import 'package:quizapp2/widget/widget.dart';
8 |
9 | class SignUp extends StatefulWidget {
10 | final Function toogleView;
11 |
12 | SignUp({this.toogleView});
13 |
14 | @override
15 | _SignUpState createState() => _SignUpState();
16 | }
17 |
18 | class _SignUpState extends State {
19 | AuthService authService = new AuthService();
20 | DatabaseService databaseService = new DatabaseService();
21 | final _formKey = GlobalKey();
22 |
23 | // text feild
24 | bool _loading = false;
25 | String email = '', password = '', name = "";
26 |
27 | getInfoAndSignUp() async {
28 | if (_formKey.currentState.validate()) {
29 | setState(() {
30 | _loading = true;
31 | });
32 |
33 | await authService
34 | .signUpWithEmailAndPassword(email, password)
35 | .then((value) {
36 | Map userInfo = {
37 | "userName": name,
38 | "email": email,
39 | };
40 |
41 | databaseService.addData(userInfo);
42 |
43 | Constants.saveUserLoggedInSharedPreference(true);
44 |
45 | Navigator.pushReplacement(
46 | context, MaterialPageRoute(builder: (context) => Home()));
47 | });
48 | }
49 | }
50 |
51 | @override
52 | Widget build(BuildContext context) {
53 | return Scaffold(
54 | backgroundColor: Colors.white,
55 | appBar: AppBar(
56 | title: AppLogo(),
57 | brightness: Brightness.light,
58 | elevation: 0.0,
59 | backgroundColor: Colors.transparent,
60 | //brightness: Brightness.li,
61 | ),
62 | body: Container(
63 | padding: EdgeInsets.symmetric(horizontal: 24),
64 | child: _loading
65 | ? Container(
66 | child: Center(child: CircularProgressIndicator()),
67 | )
68 | : Column(
69 | children: [
70 | Spacer(),
71 | Form(
72 | key: _formKey,
73 | child: Container(
74 | child: Column(
75 | children: [
76 | TextFormField(
77 | validator: (val) =>
78 | val.isEmpty ? "Enter an Name" : null,
79 | decoration: InputDecoration(hintText: "Name"),
80 | onChanged: (val) {
81 | name = val;
82 | },
83 | ),
84 | SizedBox(
85 | height: 6,
86 | ),
87 | TextFormField(
88 | validator: (val) => validateEmail(email)
89 | ? null
90 | : "Enter correct email",
91 | decoration: InputDecoration(hintText: "Email"),
92 | onChanged: (val) {
93 | email = val;
94 | },
95 | ),
96 | SizedBox(
97 | height: 6,
98 | ),
99 | TextFormField(
100 | obscureText: true,
101 | validator: (val) => val.length < 6
102 | ? "Password must be 6+ characters"
103 | : null,
104 | decoration: InputDecoration(hintText: "Password"),
105 | onChanged: (val) {
106 | password = val;
107 | },
108 | ),
109 | SizedBox(
110 | height: 24,
111 | ),
112 | GestureDetector(
113 | onTap: () {
114 | getInfoAndSignUp();
115 | },
116 | child: Container(
117 | alignment: Alignment.center,
118 | width: MediaQuery.of(context).size.width,
119 | padding: EdgeInsets.symmetric(
120 | horizontal: 24, vertical: 20),
121 | decoration: BoxDecoration(
122 | color: Colors.blue,
123 | borderRadius: BorderRadius.circular(30)),
124 | child: Text(
125 | "Sign Up",
126 | style: TextStyle(
127 | fontSize: 16, color: Colors.white),
128 | ),
129 | ),
130 | ),
131 | SizedBox(
132 | height: 20,
133 | ),
134 | Row(
135 | mainAxisAlignment: MainAxisAlignment.center,
136 | children: [
137 | Text('Already have and account? ',
138 | style: TextStyle(
139 | color: Colors.black87, fontSize: 17)),
140 | GestureDetector(
141 | onTap: () {
142 | widget.toogleView();
143 | },
144 | child: Container(
145 | child: Text('Sign In',
146 | style: TextStyle(
147 | color: Colors.black87,
148 | decoration: TextDecoration.underline,
149 | fontSize: 17)),
150 | ),
151 | ),
152 | ],
153 | ),
154 | ],
155 | ),
156 | ),
157 | ),
158 | SizedBox(
159 | height: 80,
160 | )
161 | ],
162 | ),
163 | ),
164 | );
165 | }
166 | }
167 |
168 | bool validateEmail(String value) {
169 | Pattern pattern =
170 | r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$';
171 | RegExp regex = new RegExp(pattern);
172 | return (!regex.hasMatch(value)) ? false : true;
173 | }
174 |
--------------------------------------------------------------------------------
/lib/views/add_question.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:quizapp2/services/database.dart';
3 | import 'package:quizapp2/widget/widget.dart';
4 |
5 | class AddQuestion extends StatefulWidget {
6 |
7 | final String quizId;
8 | AddQuestion(this.quizId);
9 |
10 | @override
11 | _AddQuestionState createState() => _AddQuestionState();
12 | }
13 |
14 | class _AddQuestionState extends State {
15 | DatabaseService databaseService = new DatabaseService();
16 | final _formKey = GlobalKey();
17 |
18 | bool isLoading = false;
19 |
20 | String question = "", option1 = "", option2 = "", option3 = "", option4 = "";
21 |
22 | uploadQuizData() {
23 |
24 | if (_formKey.currentState.validate()) {
25 |
26 | setState(() {
27 | isLoading = true;
28 | });
29 |
30 | Map questionMap = {
31 | "question": question,
32 | "option1": option1,
33 | "option2": option2,
34 | "option3": option3,
35 | "option4": option4
36 | };
37 |
38 | print("${widget.quizId}");
39 | databaseService.addQuestionData(questionMap, widget.quizId).then((value) {
40 | question = "";
41 | option1 = "";
42 | option2 = "";
43 | option3 = "";
44 | option4 = "";
45 | setState(() {
46 | isLoading = false;
47 | });
48 |
49 | }).catchError((e){
50 | print(e);
51 | });
52 |
53 |
54 | }else{
55 | print("error is happening ");
56 | }
57 | }
58 |
59 | @override
60 | Widget build(BuildContext context) {
61 | return Scaffold(
62 | backgroundColor: Colors.white,
63 | appBar: AppBar(
64 | leading: BackButton(
65 | color: Colors.black54,
66 | ),
67 | title: AppLogo(),
68 | brightness: Brightness.light,
69 | elevation: 0.0,
70 | backgroundColor: Colors.transparent,
71 | //brightness: Brightness.li,
72 | ),
73 | body: isLoading
74 | ? Container(
75 | child: Center(child: CircularProgressIndicator()),
76 | )
77 | : Form(
78 | key: _formKey,
79 | child: Container(
80 | padding: EdgeInsets.symmetric(horizontal: 24),
81 | child: Column(
82 | children: [
83 | TextFormField(
84 | validator: (val) => val.isEmpty ? "Enter Question" : null,
85 | decoration: InputDecoration(hintText: "Question"),
86 | onChanged: (val) {
87 | question = val;
88 | },
89 | ),
90 | SizedBox(
91 | height: 5,
92 | ),
93 | TextFormField(
94 | validator: (val) => val.isEmpty ? "Option1 " : null,
95 | decoration:
96 | InputDecoration(hintText: "Option1 (Correct Answer)"),
97 | onChanged: (val) {
98 | option1 = val;
99 | },
100 | ),
101 | SizedBox(
102 | height: 8,
103 | ),
104 | TextFormField(
105 | validator: (val) => val.isEmpty ? "Option2 " : null,
106 | decoration: InputDecoration(hintText: "Option2"),
107 | onChanged: (val){
108 | option2 = val;
109 | },
110 | ),
111 | SizedBox(
112 | height: 8,
113 | ),
114 | TextFormField(
115 | validator: (val) => val.isEmpty ? "Option3 " : null,
116 | decoration: InputDecoration(hintText: "Option3"),
117 | onChanged: (val){
118 | option3 = val;
119 |
120 | },
121 | ),
122 | SizedBox(
123 | height: 8,
124 | ),
125 | TextFormField(
126 | validator: (val) => val.isEmpty ? "Option4 " : null,
127 | decoration: InputDecoration(hintText: "Option4"),
128 | onChanged: (val){
129 | option4 = val;
130 | },
131 | ),
132 | SizedBox(
133 | height: 8,
134 | ),
135 | Spacer(),
136 | Row(
137 | children: [
138 | GestureDetector(
139 | onTap: () {
140 |
141 | Navigator.pop(context);
142 |
143 | },
144 | child: Container(
145 | alignment: Alignment.center,
146 | width: MediaQuery.of(context).size.width / 2 - 20,
147 | padding: EdgeInsets.symmetric(
148 | horizontal: 24, vertical: 20),
149 | decoration: BoxDecoration(
150 | color: Colors.blue,
151 | borderRadius: BorderRadius.circular(30)),
152 | child: Text(
153 | "Submit",
154 | style:
155 | TextStyle(fontSize: 16, color: Colors.white),
156 | ),
157 | ),
158 | ),
159 | SizedBox(
160 | width: 8,
161 | ),
162 | GestureDetector(
163 | onTap: () {
164 | uploadQuizData();
165 | },
166 | child: Container(
167 | alignment: Alignment.center,
168 | width: MediaQuery.of(context).size.width / 2 - 40,
169 | padding: EdgeInsets.symmetric(
170 | horizontal: 24, vertical: 20),
171 | decoration: BoxDecoration(
172 | color: Colors.blue,
173 | borderRadius: BorderRadius.circular(30)),
174 | child: Text(
175 | "Add Question",
176 | style:
177 | TextStyle(fontSize: 16, color: Colors.white),
178 | ),
179 | ),
180 | ),
181 | ],
182 | ),
183 | SizedBox(
184 | height: 60,
185 | ),
186 | ],
187 | ),
188 | ),
189 | ),
190 | );
191 | }
192 | }
193 |
--------------------------------------------------------------------------------
/lib/views/quiz_play.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:quizapp2/models/question_model.dart';
4 | import 'package:quizapp2/services/database.dart';
5 | import 'package:quizapp2/widget/widget.dart';
6 | import 'package:quizapp2/widgets/quiz_play_widgets.dart';
7 |
8 | class QuizPlay extends StatefulWidget {
9 | final String quizId;
10 | QuizPlay(this.quizId);
11 |
12 | @override
13 | _QuizPlayState createState() => _QuizPlayState();
14 | }
15 |
16 | int _correct = 0;
17 | int _incorrect = 0;
18 | int _notAttempted = 0;
19 | int total = 0;
20 |
21 | /// Stream
22 | Stream infoStream;
23 |
24 | class _QuizPlayState extends State {
25 | QuerySnapshot questionSnaphot;
26 | DatabaseService databaseService = new DatabaseService();
27 |
28 | bool isLoading = true;
29 |
30 | @override
31 | void initState() {
32 | databaseService.getQuestionData(widget.quizId).then((value) {
33 | questionSnaphot = value;
34 | _notAttempted = questionSnaphot.documents.length;
35 | _correct = 0;
36 | _incorrect = 0;
37 | isLoading = false;
38 | total = questionSnaphot.documents.length;
39 | setState(() {});
40 | print("init don $total ${widget.quizId} ");
41 | });
42 |
43 | if(infoStream == null){
44 | infoStream = Stream>.periodic(
45 | Duration(milliseconds: 100), (x){
46 | print("this is x $x");
47 | return [_correct, _incorrect] ;
48 | });
49 | }
50 |
51 | super.initState();
52 | }
53 |
54 |
55 | QuestionModel getQuestionModelFromDatasnapshot(
56 | DocumentSnapshot questionSnapshot) {
57 | QuestionModel questionModel = new QuestionModel();
58 |
59 | questionModel.question = questionSnapshot.data["question"];
60 |
61 | /// shuffling the options
62 | List options = [
63 | questionSnapshot.data["option1"],
64 | questionSnapshot.data["option2"],
65 | questionSnapshot.data["option3"],
66 | questionSnapshot.data["option4"]
67 | ];
68 | options.shuffle();
69 |
70 | questionModel.option1 = options[0];
71 | questionModel.option2 = options[1];
72 | questionModel.option3 = options[2];
73 | questionModel.option4 = options[3];
74 | questionModel.correctOption = questionSnapshot.data["option1"];
75 | questionModel.answered = false;
76 |
77 | print(questionModel.correctOption.toLowerCase());
78 |
79 | return questionModel;
80 | }
81 |
82 | @override
83 | void dispose() {
84 | infoStream = null;
85 | super.dispose();
86 | }
87 |
88 | @override
89 | Widget build(BuildContext context) {
90 | return Scaffold(
91 | appBar: AppBar(
92 | title: AppLogo(),
93 | centerTitle: true,
94 | backgroundColor: Colors.transparent,
95 | brightness: Brightness.light,
96 | elevation: 0.0,
97 | ),
98 | body: isLoading
99 | ? Container(
100 | child: Center(child: CircularProgressIndicator()),
101 | )
102 | : SingleChildScrollView(
103 | child: Container(
104 | child: Column(
105 | children: [
106 | InfoHeader(
107 | length: questionSnaphot.documents.length,
108 | ),
109 | SizedBox(
110 | height: 10,
111 | ),
112 | questionSnaphot.documents == null
113 | ? Container(
114 | child: Center(child: Text("No Data"),),
115 | )
116 | : ListView.builder(
117 | itemCount: questionSnaphot.documents.length,
118 | shrinkWrap: true,
119 | physics: ClampingScrollPhysics(),
120 | itemBuilder: (context, index) {
121 | return QuizPlayTile(
122 | questionModel: getQuestionModelFromDatasnapshot(
123 | questionSnaphot.documents[index]),
124 | index: index,
125 | );
126 | })
127 | ],
128 | ),
129 | ),
130 | ),
131 | );
132 | }
133 | }
134 |
135 | class InfoHeader extends StatefulWidget {
136 | final int length;
137 |
138 | InfoHeader({@required this.length});
139 |
140 | @override
141 | _InfoHeaderState createState() => _InfoHeaderState();
142 | }
143 |
144 | class _InfoHeaderState extends State {
145 | @override
146 | Widget build(BuildContext context) {
147 | return StreamBuilder(
148 | stream: infoStream,
149 | builder: (context, snapshot){
150 | return snapshot.hasData ? Container(
151 | height: 40,
152 | margin: EdgeInsets.only(left: 14),
153 | child: ListView(
154 | scrollDirection: Axis.horizontal,
155 | shrinkWrap: true,
156 | children: [
157 | NoOfQuestionTile(
158 | text: "Total",
159 | number: widget.length,
160 | ),
161 | NoOfQuestionTile(
162 | text: "Correct",
163 | number: _correct,
164 | ),
165 | NoOfQuestionTile(
166 | text: "Incorrect",
167 | number: _incorrect,
168 | ),
169 | NoOfQuestionTile(
170 | text: "NotAttempted",
171 | number: _notAttempted,
172 | ),
173 | ],
174 | ),
175 | ) : Container();
176 | }
177 | );
178 | }
179 | }
180 |
181 |
182 | class QuizPlayTile extends StatefulWidget {
183 | final QuestionModel questionModel;
184 | final int index;
185 |
186 | QuizPlayTile({@required this.questionModel, @required this.index});
187 |
188 | @override
189 | _QuizPlayTileState createState() => _QuizPlayTileState();
190 | }
191 |
192 | class _QuizPlayTileState extends State {
193 | String optionSelected = "";
194 |
195 | @override
196 | Widget build(BuildContext context) {
197 | return Container(
198 | child: Column(
199 | crossAxisAlignment: CrossAxisAlignment.start,
200 | children: [
201 | Container(
202 | margin: EdgeInsets.symmetric(
203 | horizontal: 20
204 | ),
205 | child: Text(
206 | "Q${widget.index + 1} ${widget.questionModel.question}",
207 | style:
208 | TextStyle(fontSize: 18, color: Colors.black.withOpacity(0.8)),
209 | ),
210 | ),
211 | SizedBox(
212 | height: 12,
213 | ),
214 | GestureDetector(
215 | onTap: () {
216 | if (!widget.questionModel.answered) {
217 | ///correct
218 | if (widget.questionModel.option1 ==
219 | widget.questionModel.correctOption) {
220 | setState(() {
221 | optionSelected = widget.questionModel.option1;
222 | widget.questionModel.answered = true;
223 | _correct = _correct + 1;
224 | _notAttempted = _notAttempted + 1;
225 | });
226 | } else {
227 | setState(() {
228 | optionSelected = widget.questionModel.option1;
229 | widget.questionModel.answered = true;
230 | _incorrect = _incorrect + 1;
231 | _notAttempted = _notAttempted - 1;
232 | });
233 | }
234 | }
235 | },
236 | child: OptionTile(
237 | option: "A",
238 | description: "${widget.questionModel.option1}",
239 | correctAnswer: widget.questionModel.correctOption,
240 | optionSelected: optionSelected,
241 | ),
242 | ),
243 | SizedBox(
244 | height: 4,
245 | ),
246 | GestureDetector(
247 | onTap: () {
248 | if (!widget.questionModel.answered) {
249 | ///correct
250 | if (widget.questionModel.option2 ==
251 | widget.questionModel.correctOption) {
252 | setState(() {
253 | optionSelected = widget.questionModel.option2;
254 | widget.questionModel.answered = true;
255 | _correct = _correct + 1;
256 | _notAttempted = _notAttempted + 1;
257 | });
258 | } else {
259 | setState(() {
260 | optionSelected = widget.questionModel.option2;
261 | widget.questionModel.answered = true;
262 | _incorrect = _incorrect + 1;
263 | _notAttempted = _notAttempted - 1;
264 | });
265 | }
266 | }
267 | },
268 | child: OptionTile(
269 | option: "B",
270 | description: "${widget.questionModel.option2}",
271 | correctAnswer: widget.questionModel.correctOption,
272 | optionSelected: optionSelected,
273 | ),
274 | ),
275 | SizedBox(
276 | height: 4,
277 | ),
278 | GestureDetector(
279 | onTap: () {
280 | if (!widget.questionModel.answered) {
281 | ///correct
282 | if (widget.questionModel.option3 ==
283 | widget.questionModel.correctOption) {
284 | setState(() {
285 | optionSelected = widget.questionModel.option3;
286 | widget.questionModel.answered = true;
287 | _correct = _correct + 1;
288 | _notAttempted = _notAttempted + 1;
289 | });
290 | } else {
291 | setState(() {
292 | optionSelected = widget.questionModel.option3;
293 | widget.questionModel.answered = true;
294 | _incorrect = _incorrect + 1;
295 | _notAttempted = _notAttempted - 1;
296 | });
297 | }
298 | }
299 | },
300 | child: OptionTile(
301 | option: "C",
302 | description: "${widget.questionModel.option3}",
303 | correctAnswer: widget.questionModel.correctOption,
304 | optionSelected: optionSelected,
305 | ),
306 | ),
307 | SizedBox(
308 | height: 4,
309 | ),
310 | GestureDetector(
311 | onTap: () {
312 | if (!widget.questionModel.answered) {
313 | ///correct
314 | if (widget.questionModel.option4 ==
315 | widget.questionModel.correctOption) {
316 | setState(() {
317 | optionSelected = widget.questionModel.option4;
318 | widget.questionModel.answered = true;
319 | _correct = _correct + 1;
320 | _notAttempted = _notAttempted + 1;
321 | });
322 | } else {
323 | setState(() {
324 | optionSelected = widget.questionModel.option4;
325 | widget.questionModel.answered = true;
326 | _incorrect = _incorrect + 1;
327 | _notAttempted = _notAttempted - 1;
328 | });
329 | }
330 | }
331 | },
332 | child: OptionTile(
333 | option: "D",
334 | description: "${widget.questionModel.option4}",
335 | correctAnswer: widget.questionModel.correctOption,
336 | optionSelected: optionSelected,
337 | ),
338 | ),
339 | SizedBox(
340 | height: 20,
341 | ),
342 | ],
343 | ),
344 | );
345 | }
346 | }
347 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.13"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.6.0"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.4.1"
25 | boolean_selector:
26 | dependency: transitive
27 | description:
28 | name: boolean_selector
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "2.0.0"
32 | cached_network_image:
33 | dependency: "direct main"
34 | description:
35 | name: cached_network_image
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.1.0+1"
39 | charcode:
40 | dependency: transitive
41 | description:
42 | name: charcode
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.3"
46 | clock:
47 | dependency: transitive
48 | description:
49 | name: clock
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.0.1"
53 | cloud_firestore:
54 | dependency: "direct main"
55 | description:
56 | name: cloud_firestore
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "0.13.4+2"
60 | cloud_firestore_platform_interface:
61 | dependency: transitive
62 | description:
63 | name: cloud_firestore_platform_interface
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.1.0"
67 | cloud_firestore_web:
68 | dependency: transitive
69 | description:
70 | name: cloud_firestore_web
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.1.1+2"
74 | collection:
75 | dependency: transitive
76 | description:
77 | name: collection
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.14.12"
81 | convert:
82 | dependency: transitive
83 | description:
84 | name: convert
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "2.1.1"
88 | crypto:
89 | dependency: transitive
90 | description:
91 | name: crypto
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "2.1.4"
95 | cupertino_icons:
96 | dependency: "direct main"
97 | description:
98 | name: cupertino_icons
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "0.1.3"
102 | file:
103 | dependency: transitive
104 | description:
105 | name: file
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "5.1.0"
109 | firebase:
110 | dependency: transitive
111 | description:
112 | name: firebase
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "7.3.0"
116 | firebase_auth:
117 | dependency: "direct main"
118 | description:
119 | name: firebase_auth
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "0.15.5+3"
123 | firebase_auth_platform_interface:
124 | dependency: transitive
125 | description:
126 | name: firebase_auth_platform_interface
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.1.7"
130 | firebase_auth_web:
131 | dependency: transitive
132 | description:
133 | name: firebase_auth_web
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "0.1.2"
137 | firebase_core:
138 | dependency: transitive
139 | description:
140 | name: firebase_core
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "0.4.4+3"
144 | firebase_core_platform_interface:
145 | dependency: transitive
146 | description:
147 | name: firebase_core_platform_interface
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "1.0.4"
151 | firebase_core_web:
152 | dependency: transitive
153 | description:
154 | name: firebase_core_web
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "0.1.1+2"
158 | flutter:
159 | dependency: "direct main"
160 | description: flutter
161 | source: sdk
162 | version: "0.0.0"
163 | flutter_cache_manager:
164 | dependency: transitive
165 | description:
166 | name: flutter_cache_manager
167 | url: "https://pub.dartlang.org"
168 | source: hosted
169 | version: "1.2.0"
170 | flutter_test:
171 | dependency: "direct dev"
172 | description: flutter
173 | source: sdk
174 | version: "0.0.0"
175 | flutter_web_plugins:
176 | dependency: transitive
177 | description: flutter
178 | source: sdk
179 | version: "0.0.0"
180 | google_sign_in:
181 | dependency: "direct main"
182 | description:
183 | name: google_sign_in
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "4.4.1"
187 | google_sign_in_platform_interface:
188 | dependency: transitive
189 | description:
190 | name: google_sign_in_platform_interface
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "1.1.0"
194 | google_sign_in_web:
195 | dependency: transitive
196 | description:
197 | name: google_sign_in_web
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "0.8.4"
201 | http:
202 | dependency: transitive
203 | description:
204 | name: http
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "0.12.0+4"
208 | http_parser:
209 | dependency: transitive
210 | description:
211 | name: http_parser
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "3.1.4"
215 | image:
216 | dependency: transitive
217 | description:
218 | name: image
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "2.1.12"
222 | intl:
223 | dependency: transitive
224 | description:
225 | name: intl
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "0.16.1"
229 | js:
230 | dependency: transitive
231 | description:
232 | name: js
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "0.6.1+1"
236 | matcher:
237 | dependency: transitive
238 | description:
239 | name: matcher
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "0.12.6"
243 | meta:
244 | dependency: transitive
245 | description:
246 | name: meta
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "1.1.8"
250 | path:
251 | dependency: transitive
252 | description:
253 | name: path
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "1.6.4"
257 | path_provider:
258 | dependency: transitive
259 | description:
260 | name: path_provider
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "1.6.5"
264 | path_provider_macos:
265 | dependency: transitive
266 | description:
267 | name: path_provider_macos
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "0.0.4"
271 | path_provider_platform_interface:
272 | dependency: transitive
273 | description:
274 | name: path_provider_platform_interface
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.0.1"
278 | pedantic:
279 | dependency: transitive
280 | description:
281 | name: pedantic
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "1.9.0"
285 | petitparser:
286 | dependency: transitive
287 | description:
288 | name: petitparser
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "3.0.2"
292 | platform:
293 | dependency: transitive
294 | description:
295 | name: platform
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "2.2.1"
299 | plugin_platform_interface:
300 | dependency: transitive
301 | description:
302 | name: plugin_platform_interface
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "1.0.2"
306 | provider:
307 | dependency: "direct main"
308 | description:
309 | name: provider
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "3.2.0"
313 | quiver:
314 | dependency: transitive
315 | description:
316 | name: quiver
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "2.1.3"
320 | random_string:
321 | dependency: "direct main"
322 | description:
323 | name: random_string
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "2.0.1"
327 | rxdart:
328 | dependency: transitive
329 | description:
330 | name: rxdart
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "0.23.1"
334 | shared_preferences:
335 | dependency: "direct main"
336 | description:
337 | name: shared_preferences
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "0.5.6+3"
341 | shared_preferences_macos:
342 | dependency: transitive
343 | description:
344 | name: shared_preferences_macos
345 | url: "https://pub.dartlang.org"
346 | source: hosted
347 | version: "0.0.1+6"
348 | shared_preferences_platform_interface:
349 | dependency: transitive
350 | description:
351 | name: shared_preferences_platform_interface
352 | url: "https://pub.dartlang.org"
353 | source: hosted
354 | version: "1.0.3"
355 | shared_preferences_web:
356 | dependency: transitive
357 | description:
358 | name: shared_preferences_web
359 | url: "https://pub.dartlang.org"
360 | source: hosted
361 | version: "0.1.2+4"
362 | sky_engine:
363 | dependency: transitive
364 | description: flutter
365 | source: sdk
366 | version: "0.0.99"
367 | source_span:
368 | dependency: transitive
369 | description:
370 | name: source_span
371 | url: "https://pub.dartlang.org"
372 | source: hosted
373 | version: "1.7.0"
374 | sqflite:
375 | dependency: transitive
376 | description:
377 | name: sqflite
378 | url: "https://pub.dartlang.org"
379 | source: hosted
380 | version: "1.3.0"
381 | sqflite_common:
382 | dependency: transitive
383 | description:
384 | name: sqflite_common
385 | url: "https://pub.dartlang.org"
386 | source: hosted
387 | version: "1.0.0+1"
388 | stack_trace:
389 | dependency: transitive
390 | description:
391 | name: stack_trace
392 | url: "https://pub.dartlang.org"
393 | source: hosted
394 | version: "1.9.3"
395 | stream_channel:
396 | dependency: transitive
397 | description:
398 | name: stream_channel
399 | url: "https://pub.dartlang.org"
400 | source: hosted
401 | version: "2.0.0"
402 | string_scanner:
403 | dependency: transitive
404 | description:
405 | name: string_scanner
406 | url: "https://pub.dartlang.org"
407 | source: hosted
408 | version: "1.0.5"
409 | synchronized:
410 | dependency: transitive
411 | description:
412 | name: synchronized
413 | url: "https://pub.dartlang.org"
414 | source: hosted
415 | version: "2.2.0"
416 | term_glyph:
417 | dependency: transitive
418 | description:
419 | name: term_glyph
420 | url: "https://pub.dartlang.org"
421 | source: hosted
422 | version: "1.1.0"
423 | test_api:
424 | dependency: transitive
425 | description:
426 | name: test_api
427 | url: "https://pub.dartlang.org"
428 | source: hosted
429 | version: "0.2.15"
430 | typed_data:
431 | dependency: transitive
432 | description:
433 | name: typed_data
434 | url: "https://pub.dartlang.org"
435 | source: hosted
436 | version: "1.1.6"
437 | uuid:
438 | dependency: transitive
439 | description:
440 | name: uuid
441 | url: "https://pub.dartlang.org"
442 | source: hosted
443 | version: "2.0.4"
444 | vector_math:
445 | dependency: transitive
446 | description:
447 | name: vector_math
448 | url: "https://pub.dartlang.org"
449 | source: hosted
450 | version: "2.0.8"
451 | xml:
452 | dependency: transitive
453 | description:
454 | name: xml
455 | url: "https://pub.dartlang.org"
456 | source: hosted
457 | version: "3.7.0"
458 | sdks:
459 | dart: ">=2.7.0 <3.0.0"
460 | flutter: ">=1.12.13+hotfix.4 <2.0.0"
461 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - abseil/algorithm (0.20190808):
3 | - abseil/algorithm/algorithm (= 0.20190808)
4 | - abseil/algorithm/container (= 0.20190808)
5 | - abseil/algorithm/algorithm (0.20190808)
6 | - abseil/algorithm/container (0.20190808):
7 | - abseil/algorithm/algorithm
8 | - abseil/base/core_headers
9 | - abseil/meta/type_traits
10 | - abseil/base (0.20190808):
11 | - abseil/base/atomic_hook (= 0.20190808)
12 | - abseil/base/base (= 0.20190808)
13 | - abseil/base/base_internal (= 0.20190808)
14 | - abseil/base/bits (= 0.20190808)
15 | - abseil/base/config (= 0.20190808)
16 | - abseil/base/core_headers (= 0.20190808)
17 | - abseil/base/dynamic_annotations (= 0.20190808)
18 | - abseil/base/endian (= 0.20190808)
19 | - abseil/base/log_severity (= 0.20190808)
20 | - abseil/base/malloc_internal (= 0.20190808)
21 | - abseil/base/pretty_function (= 0.20190808)
22 | - abseil/base/spinlock_wait (= 0.20190808)
23 | - abseil/base/throw_delegate (= 0.20190808)
24 | - abseil/base/atomic_hook (0.20190808)
25 | - abseil/base/base (0.20190808):
26 | - abseil/base/atomic_hook
27 | - abseil/base/base_internal
28 | - abseil/base/config
29 | - abseil/base/core_headers
30 | - abseil/base/dynamic_annotations
31 | - abseil/base/log_severity
32 | - abseil/base/spinlock_wait
33 | - abseil/meta/type_traits
34 | - abseil/base/base_internal (0.20190808):
35 | - abseil/meta/type_traits
36 | - abseil/base/bits (0.20190808):
37 | - abseil/base/core_headers
38 | - abseil/base/config (0.20190808)
39 | - abseil/base/core_headers (0.20190808):
40 | - abseil/base/config
41 | - abseil/base/dynamic_annotations (0.20190808)
42 | - abseil/base/endian (0.20190808):
43 | - abseil/base/config
44 | - abseil/base/core_headers
45 | - abseil/base/log_severity (0.20190808):
46 | - abseil/base/core_headers
47 | - abseil/base/malloc_internal (0.20190808):
48 | - abseil/base/base
49 | - abseil/base/config
50 | - abseil/base/core_headers
51 | - abseil/base/dynamic_annotations
52 | - abseil/base/spinlock_wait
53 | - abseil/base/pretty_function (0.20190808)
54 | - abseil/base/spinlock_wait (0.20190808):
55 | - abseil/base/core_headers
56 | - abseil/base/throw_delegate (0.20190808):
57 | - abseil/base/base
58 | - abseil/base/config
59 | - abseil/memory (0.20190808):
60 | - abseil/memory/memory (= 0.20190808)
61 | - abseil/memory/memory (0.20190808):
62 | - abseil/base/core_headers
63 | - abseil/meta/type_traits
64 | - abseil/meta (0.20190808):
65 | - abseil/meta/type_traits (= 0.20190808)
66 | - abseil/meta/type_traits (0.20190808):
67 | - abseil/base/config
68 | - abseil/numeric/int128 (0.20190808):
69 | - abseil/base/config
70 | - abseil/base/core_headers
71 | - abseil/strings/internal (0.20190808):
72 | - abseil/base/core_headers
73 | - abseil/base/endian
74 | - abseil/meta/type_traits
75 | - abseil/strings/strings (0.20190808):
76 | - abseil/base/base
77 | - abseil/base/bits
78 | - abseil/base/config
79 | - abseil/base/core_headers
80 | - abseil/base/endian
81 | - abseil/base/throw_delegate
82 | - abseil/memory/memory
83 | - abseil/meta/type_traits
84 | - abseil/numeric/int128
85 | - abseil/strings/internal
86 | - abseil/time (0.20190808):
87 | - abseil/time/internal (= 0.20190808)
88 | - abseil/time/time (= 0.20190808)
89 | - abseil/time/internal (0.20190808):
90 | - abseil/time/internal/cctz (= 0.20190808)
91 | - abseil/time/internal/cctz (0.20190808):
92 | - abseil/time/internal/cctz/civil_time (= 0.20190808)
93 | - abseil/time/internal/cctz/includes (= 0.20190808)
94 | - abseil/time/internal/cctz/time_zone (= 0.20190808)
95 | - abseil/time/internal/cctz/civil_time (0.20190808)
96 | - abseil/time/internal/cctz/includes (0.20190808)
97 | - abseil/time/internal/cctz/time_zone (0.20190808):
98 | - abseil/time/internal/cctz/civil_time
99 | - abseil/time/time (0.20190808):
100 | - abseil/base/base
101 | - abseil/base/core_headers
102 | - abseil/numeric/int128
103 | - abseil/strings/strings
104 | - abseil/time/internal/cctz/civil_time
105 | - abseil/time/internal/cctz/time_zone
106 | - abseil/types (0.20190808):
107 | - abseil/types/any (= 0.20190808)
108 | - abseil/types/bad_any_cast (= 0.20190808)
109 | - abseil/types/bad_any_cast_impl (= 0.20190808)
110 | - abseil/types/bad_optional_access (= 0.20190808)
111 | - abseil/types/bad_variant_access (= 0.20190808)
112 | - abseil/types/compare (= 0.20190808)
113 | - abseil/types/optional (= 0.20190808)
114 | - abseil/types/span (= 0.20190808)
115 | - abseil/types/variant (= 0.20190808)
116 | - abseil/types/any (0.20190808):
117 | - abseil/base/config
118 | - abseil/base/core_headers
119 | - abseil/meta/type_traits
120 | - abseil/types/bad_any_cast
121 | - abseil/utility/utility
122 | - abseil/types/bad_any_cast (0.20190808):
123 | - abseil/base/config
124 | - abseil/types/bad_any_cast_impl
125 | - abseil/types/bad_any_cast_impl (0.20190808):
126 | - abseil/base/base
127 | - abseil/base/config
128 | - abseil/types/bad_optional_access (0.20190808):
129 | - abseil/base/base
130 | - abseil/base/config
131 | - abseil/types/bad_variant_access (0.20190808):
132 | - abseil/base/base
133 | - abseil/base/config
134 | - abseil/types/compare (0.20190808):
135 | - abseil/base/core_headers
136 | - abseil/meta/type_traits
137 | - abseil/types/optional (0.20190808):
138 | - abseil/base/base_internal
139 | - abseil/base/config
140 | - abseil/base/core_headers
141 | - abseil/memory/memory
142 | - abseil/meta/type_traits
143 | - abseil/types/bad_optional_access
144 | - abseil/utility/utility
145 | - abseil/types/span (0.20190808):
146 | - abseil/algorithm/algorithm
147 | - abseil/base/core_headers
148 | - abseil/base/throw_delegate
149 | - abseil/meta/type_traits
150 | - abseil/types/variant (0.20190808):
151 | - abseil/base/base_internal
152 | - abseil/base/config
153 | - abseil/base/core_headers
154 | - abseil/meta/type_traits
155 | - abseil/types/bad_variant_access
156 | - abseil/utility/utility
157 | - abseil/utility/utility (0.20190808):
158 | - abseil/base/base_internal
159 | - abseil/base/config
160 | - abseil/meta/type_traits
161 | - AppAuth (1.3.0):
162 | - AppAuth/Core (= 1.3.0)
163 | - AppAuth/ExternalUserAgent (= 1.3.0)
164 | - AppAuth/Core (1.3.0)
165 | - AppAuth/ExternalUserAgent (1.3.0)
166 | - BoringSSL-GRPC (0.0.3):
167 | - BoringSSL-GRPC/Implementation (= 0.0.3)
168 | - BoringSSL-GRPC/Interface (= 0.0.3)
169 | - BoringSSL-GRPC/Implementation (0.0.3):
170 | - BoringSSL-GRPC/Interface (= 0.0.3)
171 | - BoringSSL-GRPC/Interface (0.0.3)
172 | - cloud_firestore (0.0.1):
173 | - Firebase/Core
174 | - Firebase/Firestore (~> 6.0)
175 | - Flutter
176 | - cloud_firestore_web (0.1.0):
177 | - Flutter
178 | - Firebase/Auth (6.16.0):
179 | - Firebase/CoreOnly
180 | - FirebaseAuth (~> 6.4.3)
181 | - Firebase/Core (6.16.0):
182 | - Firebase/CoreOnly
183 | - FirebaseAnalytics (= 6.2.2)
184 | - Firebase/CoreOnly (6.16.0):
185 | - FirebaseCore (= 6.6.1)
186 | - Firebase/Firestore (6.16.0):
187 | - Firebase/CoreOnly
188 | - FirebaseFirestore (~> 1.10.0)
189 | - firebase_auth (0.0.1):
190 | - Firebase/Auth (~> 6.3)
191 | - Firebase/Core
192 | - Flutter
193 | - firebase_auth_web (0.1.0):
194 | - Flutter
195 | - firebase_core (0.0.1):
196 | - Firebase/Core
197 | - Flutter
198 | - firebase_core_web (0.1.0):
199 | - Flutter
200 | - FirebaseAnalytics (6.2.2):
201 | - FirebaseCore (~> 6.6)
202 | - FirebaseInstanceID (~> 4.3)
203 | - GoogleAppMeasurement (= 6.2.2)
204 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
205 | - GoogleUtilities/MethodSwizzler (~> 6.0)
206 | - GoogleUtilities/Network (~> 6.0)
207 | - "GoogleUtilities/NSData+zlib (~> 6.0)"
208 | - nanopb (= 0.3.9011)
209 | - FirebaseAuth (6.4.3):
210 | - FirebaseAuthInterop (~> 1.0)
211 | - FirebaseCore (~> 6.6)
212 | - GoogleUtilities/AppDelegateSwizzler (~> 6.5)
213 | - GoogleUtilities/Environment (~> 6.5)
214 | - GTMSessionFetcher/Core (~> 1.1)
215 | - FirebaseAuthInterop (1.0.0)
216 | - FirebaseCore (6.6.1):
217 | - FirebaseCoreDiagnostics (~> 1.2)
218 | - FirebaseCoreDiagnosticsInterop (~> 1.2)
219 | - GoogleUtilities/Environment (~> 6.5)
220 | - GoogleUtilities/Logger (~> 6.5)
221 | - FirebaseCoreDiagnostics (1.2.0):
222 | - FirebaseCoreDiagnosticsInterop (~> 1.2)
223 | - GoogleDataTransportCCTSupport (~> 1.3)
224 | - GoogleUtilities/Environment (~> 6.5)
225 | - GoogleUtilities/Logger (~> 6.5)
226 | - nanopb (~> 0.3.901)
227 | - FirebaseCoreDiagnosticsInterop (1.2.0)
228 | - FirebaseFirestore (1.10.0):
229 | - abseil/algorithm (= 0.20190808)
230 | - abseil/base (= 0.20190808)
231 | - abseil/memory (= 0.20190808)
232 | - abseil/meta (= 0.20190808)
233 | - abseil/strings/strings (= 0.20190808)
234 | - abseil/time (= 0.20190808)
235 | - abseil/types (= 0.20190808)
236 | - FirebaseAuthInterop (~> 1.0)
237 | - FirebaseCore (~> 6.2)
238 | - "gRPC-C++ (= 0.0.9)"
239 | - leveldb-library (~> 1.22)
240 | - nanopb (~> 0.3.901)
241 | - FirebaseInstallations (1.1.0):
242 | - FirebaseCore (~> 6.6)
243 | - GoogleUtilities/UserDefaults (~> 6.5)
244 | - PromisesObjC (~> 1.2)
245 | - FirebaseInstanceID (4.3.0):
246 | - FirebaseCore (~> 6.6)
247 | - FirebaseInstallations (~> 1.0)
248 | - GoogleUtilities/Environment (~> 6.5)
249 | - GoogleUtilities/UserDefaults (~> 6.5)
250 | - Flutter (1.0.0)
251 | - FMDB (2.7.5):
252 | - FMDB/standard (= 2.7.5)
253 | - FMDB/standard (2.7.5)
254 | - google_sign_in (0.0.1):
255 | - Flutter
256 | - GoogleSignIn (~> 5.0)
257 | - google_sign_in_web (0.8.1):
258 | - Flutter
259 | - GoogleAppMeasurement (6.2.2):
260 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
261 | - GoogleUtilities/MethodSwizzler (~> 6.0)
262 | - GoogleUtilities/Network (~> 6.0)
263 | - "GoogleUtilities/NSData+zlib (~> 6.0)"
264 | - nanopb (= 0.3.9011)
265 | - GoogleDataTransport (3.3.1)
266 | - GoogleDataTransportCCTSupport (1.3.1):
267 | - GoogleDataTransport (~> 3.3)
268 | - nanopb (~> 0.3.901)
269 | - GoogleSignIn (5.0.2):
270 | - AppAuth (~> 1.2)
271 | - GTMAppAuth (~> 1.0)
272 | - GTMSessionFetcher/Core (~> 1.1)
273 | - GoogleUtilities/AppDelegateSwizzler (6.5.1):
274 | - GoogleUtilities/Environment
275 | - GoogleUtilities/Logger
276 | - GoogleUtilities/Network
277 | - GoogleUtilities/Environment (6.5.1)
278 | - GoogleUtilities/Logger (6.5.1):
279 | - GoogleUtilities/Environment
280 | - GoogleUtilities/MethodSwizzler (6.5.1):
281 | - GoogleUtilities/Logger
282 | - GoogleUtilities/Network (6.5.1):
283 | - GoogleUtilities/Logger
284 | - "GoogleUtilities/NSData+zlib"
285 | - GoogleUtilities/Reachability
286 | - "GoogleUtilities/NSData+zlib (6.5.1)"
287 | - GoogleUtilities/Reachability (6.5.1):
288 | - GoogleUtilities/Logger
289 | - GoogleUtilities/UserDefaults (6.5.1):
290 | - GoogleUtilities/Logger
291 | - "gRPC-C++ (0.0.9)":
292 | - "gRPC-C++/Implementation (= 0.0.9)"
293 | - "gRPC-C++/Interface (= 0.0.9)"
294 | - "gRPC-C++/Implementation (0.0.9)":
295 | - "gRPC-C++/Interface (= 0.0.9)"
296 | - gRPC-Core (= 1.21.0)
297 | - nanopb (~> 0.3)
298 | - "gRPC-C++/Interface (0.0.9)"
299 | - gRPC-Core (1.21.0):
300 | - gRPC-Core/Implementation (= 1.21.0)
301 | - gRPC-Core/Interface (= 1.21.0)
302 | - gRPC-Core/Implementation (1.21.0):
303 | - BoringSSL-GRPC (= 0.0.3)
304 | - gRPC-Core/Interface (= 1.21.0)
305 | - nanopb (~> 0.3)
306 | - gRPC-Core/Interface (1.21.0)
307 | - GTMAppAuth (1.0.0):
308 | - AppAuth/Core (~> 1.0)
309 | - GTMSessionFetcher (~> 1.1)
310 | - GTMSessionFetcher (1.3.1):
311 | - GTMSessionFetcher/Full (= 1.3.1)
312 | - GTMSessionFetcher/Core (1.3.1)
313 | - GTMSessionFetcher/Full (1.3.1):
314 | - GTMSessionFetcher/Core (= 1.3.1)
315 | - leveldb-library (1.22)
316 | - nanopb (0.3.9011):
317 | - nanopb/decode (= 0.3.9011)
318 | - nanopb/encode (= 0.3.9011)
319 | - nanopb/decode (0.3.9011)
320 | - nanopb/encode (0.3.9011)
321 | - path_provider (0.0.1):
322 | - Flutter
323 | - path_provider_macos (0.0.1):
324 | - Flutter
325 | - PromisesObjC (1.2.8)
326 | - shared_preferences (0.0.1):
327 | - Flutter
328 | - shared_preferences_macos (0.0.1):
329 | - Flutter
330 | - shared_preferences_web (0.0.1):
331 | - Flutter
332 | - sqflite (0.0.1):
333 | - Flutter
334 | - FMDB (~> 2.7.2)
335 |
336 | DEPENDENCIES:
337 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)
338 | - cloud_firestore_web (from `.symlinks/plugins/cloud_firestore_web/ios`)
339 | - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)
340 | - firebase_auth_web (from `.symlinks/plugins/firebase_auth_web/ios`)
341 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
342 | - firebase_core_web (from `.symlinks/plugins/firebase_core_web/ios`)
343 | - Flutter (from `Flutter`)
344 | - google_sign_in (from `.symlinks/plugins/google_sign_in/ios`)
345 | - google_sign_in_web (from `.symlinks/plugins/google_sign_in_web/ios`)
346 | - path_provider (from `.symlinks/plugins/path_provider/ios`)
347 | - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
348 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
349 | - shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
350 | - shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
351 | - sqflite (from `.symlinks/plugins/sqflite/ios`)
352 |
353 | SPEC REPOS:
354 | trunk:
355 | - abseil
356 | - AppAuth
357 | - BoringSSL-GRPC
358 | - Firebase
359 | - FirebaseAnalytics
360 | - FirebaseAuth
361 | - FirebaseAuthInterop
362 | - FirebaseCore
363 | - FirebaseCoreDiagnostics
364 | - FirebaseCoreDiagnosticsInterop
365 | - FirebaseFirestore
366 | - FirebaseInstallations
367 | - FirebaseInstanceID
368 | - FMDB
369 | - GoogleAppMeasurement
370 | - GoogleDataTransport
371 | - GoogleDataTransportCCTSupport
372 | - GoogleSignIn
373 | - GoogleUtilities
374 | - "gRPC-C++"
375 | - gRPC-Core
376 | - GTMAppAuth
377 | - GTMSessionFetcher
378 | - leveldb-library
379 | - nanopb
380 | - PromisesObjC
381 |
382 | EXTERNAL SOURCES:
383 | cloud_firestore:
384 | :path: ".symlinks/plugins/cloud_firestore/ios"
385 | cloud_firestore_web:
386 | :path: ".symlinks/plugins/cloud_firestore_web/ios"
387 | firebase_auth:
388 | :path: ".symlinks/plugins/firebase_auth/ios"
389 | firebase_auth_web:
390 | :path: ".symlinks/plugins/firebase_auth_web/ios"
391 | firebase_core:
392 | :path: ".symlinks/plugins/firebase_core/ios"
393 | firebase_core_web:
394 | :path: ".symlinks/plugins/firebase_core_web/ios"
395 | Flutter:
396 | :path: Flutter
397 | google_sign_in:
398 | :path: ".symlinks/plugins/google_sign_in/ios"
399 | google_sign_in_web:
400 | :path: ".symlinks/plugins/google_sign_in_web/ios"
401 | path_provider:
402 | :path: ".symlinks/plugins/path_provider/ios"
403 | path_provider_macos:
404 | :path: ".symlinks/plugins/path_provider_macos/ios"
405 | shared_preferences:
406 | :path: ".symlinks/plugins/shared_preferences/ios"
407 | shared_preferences_macos:
408 | :path: ".symlinks/plugins/shared_preferences_macos/ios"
409 | shared_preferences_web:
410 | :path: ".symlinks/plugins/shared_preferences_web/ios"
411 | sqflite:
412 | :path: ".symlinks/plugins/sqflite/ios"
413 |
414 | SPEC CHECKSUMS:
415 | abseil: 18063d773f5366ff8736a050fe035a28f635fd27
416 | AppAuth: 73574f3013a1e65b9601a3ddc8b3158cce68c09d
417 | BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318
418 | cloud_firestore: 31454d48df21f3e1a900015e36143c0d46a304b7
419 | cloud_firestore_web: 9ec3dc7f5f98de5129339802d491c1204462bfec
420 | Firebase: 497158b816d0a86fc31babbd05546fcd7e6083ff
421 | firebase_auth: 4ee3a54d3f09434c508c284a62f895a741a30637
422 | firebase_auth_web: 0955c07bcc06e84af76b9d4e32e6f31518f2d7de
423 | firebase_core: 0d8be0e0d14c4902953aeb5ac5d7316d1fe4b978
424 | firebase_core_web: d501d8b946b60c8af265428ce483b0fff5ad52d1
425 | FirebaseAnalytics: cf95d3aab897612783020fbd98401d5366f135ee
426 | FirebaseAuth: 5ce2b03a3d7fe56b7a6e4c5ec7ff1522890b1d6f
427 | FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
428 | FirebaseCore: 85064903ed6c28e47fec9c7bd149d94ba1b6b6e7
429 | FirebaseCoreDiagnostics: 5e78803ab276bc5b50340e3c539c06c3de35c649
430 | FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850
431 | FirebaseFirestore: cee8f861d68dadce998876b78a4b75701bc94302
432 | FirebaseInstallations: 575cd32f2aec0feeb0e44f5d0110a09e5e60b47b
433 | FirebaseInstanceID: 6668efc1655a4052c083f287a7141f1ead12f9c2
434 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
435 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
436 | google_sign_in: f32920a589fdf4ab2918ec6dc5e5b0d5b8040ff5
437 | google_sign_in_web: 52deb24929ac0992baff65c57956031c44ed44c3
438 | GoogleAppMeasurement: d0560d915abf15e692e8538ba1d58442217b6aff
439 | GoogleDataTransport: 0048df6388dab1c254799f2a30365b1dffe20422
440 | GoogleDataTransportCCTSupport: f880d70972efa2ed1be4e9173a0f4c5f3dc2d176
441 | GoogleSignIn: 7137d297ddc022a7e0aa4619c86d72c909fa7213
442 | GoogleUtilities: 06eb53bb579efe7099152735900dd04bf09e7275
443 | "gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83
444 | gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947
445 | GTMAppAuth: 4deac854479704f348309e7b66189e604cf5e01e
446 | GTMSessionFetcher: cea130bbfe5a7edc8d06d3f0d17288c32ffe9925
447 | leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7
448 | nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd
449 | path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
450 | path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
451 | PromisesObjC: c119f3cd559f50b7ae681fa59dc1acd19173b7e6
452 | shared_preferences: 430726339841afefe5142b9c1f50cb6bd7793e01
453 | shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
454 | shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
455 | sqflite: 4001a31ff81d210346b500c55b17f4d6c7589dd0
456 |
457 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a
458 |
459 | COCOAPODS: 1.9.0
460 |
--------------------------------------------------------------------------------
/macos/Runner/Base.lproj/MainMenu.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 51;
7 | objects = {
8 |
9 | /* Begin PBXAggregateTarget section */
10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
11 | isa = PBXAggregateTarget;
12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
13 | buildPhases = (
14 | 33CC111E2044C6BF0003C045 /* ShellScript */,
15 | );
16 | dependencies = (
17 | );
18 | name = "Flutter Assemble";
19 | productName = FLX;
20 | };
21 | /* End PBXAggregateTarget section */
22 |
23 | /* Begin PBXBuildFile section */
24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; };
30 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
31 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; };
32 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
33 | /* End PBXBuildFile section */
34 |
35 | /* Begin PBXContainerItemProxy section */
36 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
37 | isa = PBXContainerItemProxy;
38 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
39 | proxyType = 1;
40 | remoteGlobalIDString = 33CC111A2044C6BA0003C045;
41 | remoteInfo = FLX;
42 | };
43 | /* End PBXContainerItemProxy section */
44 |
45 | /* Begin PBXCopyFilesBuildPhase section */
46 | 33CC110E2044A8840003C045 /* Bundle Framework */ = {
47 | isa = PBXCopyFilesBuildPhase;
48 | buildActionMask = 2147483647;
49 | dstPath = "";
50 | dstSubfolderSpec = 10;
51 | files = (
52 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */,
53 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */,
54 | );
55 | name = "Bundle Framework";
56 | runOnlyForDeploymentPostprocessing = 0;
57 | };
58 | /* End PBXCopyFilesBuildPhase section */
59 |
60 | /* Begin PBXFileReference section */
61 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
62 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
63 | 33CC10ED2044A3C60003C045 /* quizapp2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "quizapp2.app"; sourceTree = BUILT_PRODUCTS_DIR; };
64 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
65 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
66 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
67 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
68 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
69 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
70 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
71 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
72 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; };
73 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
74 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
75 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
78 | D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; };
79 | /* End PBXFileReference section */
80 |
81 | /* Begin PBXFrameworksBuildPhase section */
82 | 33CC10EA2044A3C60003C045 /* Frameworks */ = {
83 | isa = PBXFrameworksBuildPhase;
84 | buildActionMask = 2147483647;
85 | files = (
86 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */,
87 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */,
88 | );
89 | runOnlyForDeploymentPostprocessing = 0;
90 | };
91 | /* End PBXFrameworksBuildPhase section */
92 |
93 | /* Begin PBXGroup section */
94 | 33BA886A226E78AF003329D5 /* Configs */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
98 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
99 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
100 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
101 | );
102 | path = Configs;
103 | sourceTree = "";
104 | };
105 | 33CC10E42044A3C60003C045 = {
106 | isa = PBXGroup;
107 | children = (
108 | 33FAB671232836740065AC1E /* Runner */,
109 | 33CEB47122A05771004F2AC0 /* Flutter */,
110 | 33CC10EE2044A3C60003C045 /* Products */,
111 | D73912EC22F37F3D000D13A0 /* Frameworks */,
112 | );
113 | sourceTree = "";
114 | };
115 | 33CC10EE2044A3C60003C045 /* Products */ = {
116 | isa = PBXGroup;
117 | children = (
118 | 33CC10ED2044A3C60003C045 /* quizapp2.app */,
119 | );
120 | name = Products;
121 | sourceTree = "";
122 | };
123 | 33CC11242044D66E0003C045 /* Resources */ = {
124 | isa = PBXGroup;
125 | children = (
126 | 33CC10F22044A3C60003C045 /* Assets.xcassets */,
127 | 33CC10F42044A3C60003C045 /* MainMenu.xib */,
128 | 33CC10F72044A3C60003C045 /* Info.plist */,
129 | );
130 | name = Resources;
131 | path = ..;
132 | sourceTree = "";
133 | };
134 | 33CEB47122A05771004F2AC0 /* Flutter */ = {
135 | isa = PBXGroup;
136 | children = (
137 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
138 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
139 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
140 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
141 | D73912EF22F37F9E000D13A0 /* App.framework */,
142 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */,
143 | );
144 | path = Flutter;
145 | sourceTree = "";
146 | };
147 | 33FAB671232836740065AC1E /* Runner */ = {
148 | isa = PBXGroup;
149 | children = (
150 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
151 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
152 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
153 | 33E51914231749380026EE4D /* Release.entitlements */,
154 | 33CC11242044D66E0003C045 /* Resources */,
155 | 33BA886A226E78AF003329D5 /* Configs */,
156 | );
157 | path = Runner;
158 | sourceTree = "";
159 | };
160 | D73912EC22F37F3D000D13A0 /* Frameworks */ = {
161 | isa = PBXGroup;
162 | children = (
163 | );
164 | name = Frameworks;
165 | sourceTree = "";
166 | };
167 | /* End PBXGroup section */
168 |
169 | /* Begin PBXNativeTarget section */
170 | 33CC10EC2044A3C60003C045 /* Runner */ = {
171 | isa = PBXNativeTarget;
172 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
173 | buildPhases = (
174 | 33CC10E92044A3C60003C045 /* Sources */,
175 | 33CC10EA2044A3C60003C045 /* Frameworks */,
176 | 33CC10EB2044A3C60003C045 /* Resources */,
177 | 33CC110E2044A8840003C045 /* Bundle Framework */,
178 | 3399D490228B24CF009A79C7 /* ShellScript */,
179 | );
180 | buildRules = (
181 | );
182 | dependencies = (
183 | 33CC11202044C79F0003C045 /* PBXTargetDependency */,
184 | );
185 | name = Runner;
186 | productName = Runner;
187 | productReference = 33CC10ED2044A3C60003C045 /* quizapp2.app */;
188 | productType = "com.apple.product-type.application";
189 | };
190 | /* End PBXNativeTarget section */
191 |
192 | /* Begin PBXProject section */
193 | 33CC10E52044A3C60003C045 /* Project object */ = {
194 | isa = PBXProject;
195 | attributes = {
196 | LastSwiftUpdateCheck = 0920;
197 | LastUpgradeCheck = 0930;
198 | ORGANIZATIONNAME = "The Flutter Authors";
199 | TargetAttributes = {
200 | 33CC10EC2044A3C60003C045 = {
201 | CreatedOnToolsVersion = 9.2;
202 | LastSwiftMigration = 1100;
203 | ProvisioningStyle = Automatic;
204 | SystemCapabilities = {
205 | com.apple.Sandbox = {
206 | enabled = 1;
207 | };
208 | };
209 | };
210 | 33CC111A2044C6BA0003C045 = {
211 | CreatedOnToolsVersion = 9.2;
212 | ProvisioningStyle = Manual;
213 | };
214 | };
215 | };
216 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
217 | compatibilityVersion = "Xcode 8.0";
218 | developmentRegion = en;
219 | hasScannedForEncodings = 0;
220 | knownRegions = (
221 | en,
222 | Base,
223 | );
224 | mainGroup = 33CC10E42044A3C60003C045;
225 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
226 | projectDirPath = "";
227 | projectRoot = "";
228 | targets = (
229 | 33CC10EC2044A3C60003C045 /* Runner */,
230 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
231 | );
232 | };
233 | /* End PBXProject section */
234 |
235 | /* Begin PBXResourcesBuildPhase section */
236 | 33CC10EB2044A3C60003C045 /* Resources */ = {
237 | isa = PBXResourcesBuildPhase;
238 | buildActionMask = 2147483647;
239 | files = (
240 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
241 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
242 | );
243 | runOnlyForDeploymentPostprocessing = 0;
244 | };
245 | /* End PBXResourcesBuildPhase section */
246 |
247 | /* Begin PBXShellScriptBuildPhase section */
248 | 3399D490228B24CF009A79C7 /* ShellScript */ = {
249 | isa = PBXShellScriptBuildPhase;
250 | buildActionMask = 2147483647;
251 | files = (
252 | );
253 | inputFileListPaths = (
254 | );
255 | inputPaths = (
256 | );
257 | outputFileListPaths = (
258 | );
259 | outputPaths = (
260 | );
261 | runOnlyForDeploymentPostprocessing = 0;
262 | shellPath = /bin/sh;
263 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n";
264 | };
265 | 33CC111E2044C6BF0003C045 /* ShellScript */ = {
266 | isa = PBXShellScriptBuildPhase;
267 | buildActionMask = 2147483647;
268 | files = (
269 | );
270 | inputFileListPaths = (
271 | Flutter/ephemeral/FlutterInputs.xcfilelist,
272 | );
273 | inputPaths = (
274 | Flutter/ephemeral/tripwire,
275 | );
276 | outputFileListPaths = (
277 | Flutter/ephemeral/FlutterOutputs.xcfilelist,
278 | );
279 | outputPaths = (
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | shellPath = /bin/sh;
283 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n";
284 | };
285 | /* End PBXShellScriptBuildPhase section */
286 |
287 | /* Begin PBXSourcesBuildPhase section */
288 | 33CC10E92044A3C60003C045 /* Sources */ = {
289 | isa = PBXSourcesBuildPhase;
290 | buildActionMask = 2147483647;
291 | files = (
292 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
293 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
294 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
295 | );
296 | runOnlyForDeploymentPostprocessing = 0;
297 | };
298 | /* End PBXSourcesBuildPhase section */
299 |
300 | /* Begin PBXTargetDependency section */
301 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
302 | isa = PBXTargetDependency;
303 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
304 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
305 | };
306 | /* End PBXTargetDependency section */
307 |
308 | /* Begin PBXVariantGroup section */
309 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
310 | isa = PBXVariantGroup;
311 | children = (
312 | 33CC10F52044A3C60003C045 /* Base */,
313 | );
314 | name = MainMenu.xib;
315 | path = Runner;
316 | sourceTree = "";
317 | };
318 | /* End PBXVariantGroup section */
319 |
320 | /* Begin XCBuildConfiguration section */
321 | 338D0CE9231458BD00FA5F75 /* Profile */ = {
322 | isa = XCBuildConfiguration;
323 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
324 | buildSettings = {
325 | ALWAYS_SEARCH_USER_PATHS = NO;
326 | CLANG_ANALYZER_NONNULL = YES;
327 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
328 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
329 | CLANG_CXX_LIBRARY = "libc++";
330 | CLANG_ENABLE_MODULES = YES;
331 | CLANG_ENABLE_OBJC_ARC = YES;
332 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
333 | CLANG_WARN_BOOL_CONVERSION = YES;
334 | CLANG_WARN_CONSTANT_CONVERSION = YES;
335 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
336 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
337 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
338 | CLANG_WARN_EMPTY_BODY = YES;
339 | CLANG_WARN_ENUM_CONVERSION = YES;
340 | CLANG_WARN_INFINITE_RECURSION = YES;
341 | CLANG_WARN_INT_CONVERSION = YES;
342 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
343 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
345 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
346 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
347 | CODE_SIGN_IDENTITY = "-";
348 | COPY_PHASE_STRIP = NO;
349 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
350 | ENABLE_NS_ASSERTIONS = NO;
351 | ENABLE_STRICT_OBJC_MSGSEND = YES;
352 | GCC_C_LANGUAGE_STANDARD = gnu11;
353 | GCC_NO_COMMON_BLOCKS = YES;
354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
356 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
357 | GCC_WARN_UNUSED_FUNCTION = YES;
358 | GCC_WARN_UNUSED_VARIABLE = YES;
359 | MACOSX_DEPLOYMENT_TARGET = 10.11;
360 | MTL_ENABLE_DEBUG_INFO = NO;
361 | SDKROOT = macosx;
362 | SWIFT_COMPILATION_MODE = wholemodule;
363 | SWIFT_OPTIMIZATION_LEVEL = "-O";
364 | };
365 | name = Profile;
366 | };
367 | 338D0CEA231458BD00FA5F75 /* Profile */ = {
368 | isa = XCBuildConfiguration;
369 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
370 | buildSettings = {
371 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
372 | CLANG_ENABLE_MODULES = YES;
373 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
374 | CODE_SIGN_STYLE = Automatic;
375 | COMBINE_HIDPI_IMAGES = YES;
376 | FRAMEWORK_SEARCH_PATHS = (
377 | "$(inherited)",
378 | "$(PROJECT_DIR)/Flutter/ephemeral",
379 | );
380 | INFOPLIST_FILE = Runner/Info.plist;
381 | LD_RUNPATH_SEARCH_PATHS = (
382 | "$(inherited)",
383 | "@executable_path/../Frameworks",
384 | );
385 | PROVISIONING_PROFILE_SPECIFIER = "";
386 | SWIFT_VERSION = 5.0;
387 | };
388 | name = Profile;
389 | };
390 | 338D0CEB231458BD00FA5F75 /* Profile */ = {
391 | isa = XCBuildConfiguration;
392 | buildSettings = {
393 | CODE_SIGN_STYLE = Manual;
394 | PRODUCT_NAME = "$(TARGET_NAME)";
395 | };
396 | name = Profile;
397 | };
398 | 33CC10F92044A3C60003C045 /* Debug */ = {
399 | isa = XCBuildConfiguration;
400 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
401 | buildSettings = {
402 | ALWAYS_SEARCH_USER_PATHS = NO;
403 | CLANG_ANALYZER_NONNULL = YES;
404 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
405 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
406 | CLANG_CXX_LIBRARY = "libc++";
407 | CLANG_ENABLE_MODULES = YES;
408 | CLANG_ENABLE_OBJC_ARC = YES;
409 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
410 | CLANG_WARN_BOOL_CONVERSION = YES;
411 | CLANG_WARN_CONSTANT_CONVERSION = YES;
412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
414 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
415 | CLANG_WARN_EMPTY_BODY = YES;
416 | CLANG_WARN_ENUM_CONVERSION = YES;
417 | CLANG_WARN_INFINITE_RECURSION = YES;
418 | CLANG_WARN_INT_CONVERSION = YES;
419 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
423 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
424 | CODE_SIGN_IDENTITY = "-";
425 | COPY_PHASE_STRIP = NO;
426 | DEBUG_INFORMATION_FORMAT = dwarf;
427 | ENABLE_STRICT_OBJC_MSGSEND = YES;
428 | ENABLE_TESTABILITY = YES;
429 | GCC_C_LANGUAGE_STANDARD = gnu11;
430 | GCC_DYNAMIC_NO_PIC = NO;
431 | GCC_NO_COMMON_BLOCKS = YES;
432 | GCC_OPTIMIZATION_LEVEL = 0;
433 | GCC_PREPROCESSOR_DEFINITIONS = (
434 | "DEBUG=1",
435 | "$(inherited)",
436 | );
437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
438 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
439 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
440 | GCC_WARN_UNUSED_FUNCTION = YES;
441 | GCC_WARN_UNUSED_VARIABLE = YES;
442 | MACOSX_DEPLOYMENT_TARGET = 10.11;
443 | MTL_ENABLE_DEBUG_INFO = YES;
444 | ONLY_ACTIVE_ARCH = YES;
445 | SDKROOT = macosx;
446 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
447 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
448 | };
449 | name = Debug;
450 | };
451 | 33CC10FA2044A3C60003C045 /* Release */ = {
452 | isa = XCBuildConfiguration;
453 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
454 | buildSettings = {
455 | ALWAYS_SEARCH_USER_PATHS = NO;
456 | CLANG_ANALYZER_NONNULL = YES;
457 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
458 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
459 | CLANG_CXX_LIBRARY = "libc++";
460 | CLANG_ENABLE_MODULES = YES;
461 | CLANG_ENABLE_OBJC_ARC = YES;
462 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
463 | CLANG_WARN_BOOL_CONVERSION = YES;
464 | CLANG_WARN_CONSTANT_CONVERSION = YES;
465 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
466 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
467 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
468 | CLANG_WARN_EMPTY_BODY = YES;
469 | CLANG_WARN_ENUM_CONVERSION = YES;
470 | CLANG_WARN_INFINITE_RECURSION = YES;
471 | CLANG_WARN_INT_CONVERSION = YES;
472 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
473 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
474 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
475 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
476 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
477 | CODE_SIGN_IDENTITY = "-";
478 | COPY_PHASE_STRIP = NO;
479 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
480 | ENABLE_NS_ASSERTIONS = NO;
481 | ENABLE_STRICT_OBJC_MSGSEND = YES;
482 | GCC_C_LANGUAGE_STANDARD = gnu11;
483 | GCC_NO_COMMON_BLOCKS = YES;
484 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
485 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
486 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
487 | GCC_WARN_UNUSED_FUNCTION = YES;
488 | GCC_WARN_UNUSED_VARIABLE = YES;
489 | MACOSX_DEPLOYMENT_TARGET = 10.11;
490 | MTL_ENABLE_DEBUG_INFO = NO;
491 | SDKROOT = macosx;
492 | SWIFT_COMPILATION_MODE = wholemodule;
493 | SWIFT_OPTIMIZATION_LEVEL = "-O";
494 | };
495 | name = Release;
496 | };
497 | 33CC10FC2044A3C60003C045 /* Debug */ = {
498 | isa = XCBuildConfiguration;
499 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
500 | buildSettings = {
501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
502 | CLANG_ENABLE_MODULES = YES;
503 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
504 | CODE_SIGN_STYLE = Automatic;
505 | COMBINE_HIDPI_IMAGES = YES;
506 | FRAMEWORK_SEARCH_PATHS = (
507 | "$(inherited)",
508 | "$(PROJECT_DIR)/Flutter/ephemeral",
509 | );
510 | INFOPLIST_FILE = Runner/Info.plist;
511 | LD_RUNPATH_SEARCH_PATHS = (
512 | "$(inherited)",
513 | "@executable_path/../Frameworks",
514 | );
515 | PROVISIONING_PROFILE_SPECIFIER = "";
516 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
517 | SWIFT_VERSION = 5.0;
518 | };
519 | name = Debug;
520 | };
521 | 33CC10FD2044A3C60003C045 /* Release */ = {
522 | isa = XCBuildConfiguration;
523 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
524 | buildSettings = {
525 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
526 | CLANG_ENABLE_MODULES = YES;
527 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
528 | CODE_SIGN_STYLE = Automatic;
529 | COMBINE_HIDPI_IMAGES = YES;
530 | FRAMEWORK_SEARCH_PATHS = (
531 | "$(inherited)",
532 | "$(PROJECT_DIR)/Flutter/ephemeral",
533 | );
534 | INFOPLIST_FILE = Runner/Info.plist;
535 | LD_RUNPATH_SEARCH_PATHS = (
536 | "$(inherited)",
537 | "@executable_path/../Frameworks",
538 | );
539 | PROVISIONING_PROFILE_SPECIFIER = "";
540 | SWIFT_VERSION = 5.0;
541 | };
542 | name = Release;
543 | };
544 | 33CC111C2044C6BA0003C045 /* Debug */ = {
545 | isa = XCBuildConfiguration;
546 | buildSettings = {
547 | CODE_SIGN_STYLE = Manual;
548 | PRODUCT_NAME = "$(TARGET_NAME)";
549 | };
550 | name = Debug;
551 | };
552 | 33CC111D2044C6BA0003C045 /* Release */ = {
553 | isa = XCBuildConfiguration;
554 | buildSettings = {
555 | CODE_SIGN_STYLE = Automatic;
556 | PRODUCT_NAME = "$(TARGET_NAME)";
557 | };
558 | name = Release;
559 | };
560 | /* End XCBuildConfiguration section */
561 |
562 | /* Begin XCConfigurationList section */
563 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
564 | isa = XCConfigurationList;
565 | buildConfigurations = (
566 | 33CC10F92044A3C60003C045 /* Debug */,
567 | 33CC10FA2044A3C60003C045 /* Release */,
568 | 338D0CE9231458BD00FA5F75 /* Profile */,
569 | );
570 | defaultConfigurationIsVisible = 0;
571 | defaultConfigurationName = Release;
572 | };
573 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
574 | isa = XCConfigurationList;
575 | buildConfigurations = (
576 | 33CC10FC2044A3C60003C045 /* Debug */,
577 | 33CC10FD2044A3C60003C045 /* Release */,
578 | 338D0CEA231458BD00FA5F75 /* Profile */,
579 | );
580 | defaultConfigurationIsVisible = 0;
581 | defaultConfigurationName = Release;
582 | };
583 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
584 | isa = XCConfigurationList;
585 | buildConfigurations = (
586 | 33CC111C2044C6BA0003C045 /* Debug */,
587 | 33CC111D2044C6BA0003C045 /* Release */,
588 | 338D0CEB231458BD00FA5F75 /* Profile */,
589 | );
590 | defaultConfigurationIsVisible = 0;
591 | defaultConfigurationName = Release;
592 | };
593 | /* End XCConfigurationList section */
594 | };
595 | rootObject = 33CC10E52044A3C60003C045 /* Project object */;
596 | }
597 |
--------------------------------------------------------------------------------