diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ba9c33 --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Exceptions to above rules. +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..7c361dd --- /dev/null +++ b/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: b041144f833e05cf463b8887fa12efdec9493488 + channel: stable + +project_type: app diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..3287bb6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Flutter", + "request": "launch", + "type": "dart" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..4753229 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# quizpicableme + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..bc2100d --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,7 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java diff --git a/android/.project b/android/.project new file mode 100644 index 0000000..3964dd3 --- /dev/null +++ b/android/.project @@ -0,0 +1,17 @@ + + + android + Project android created by Buildship. + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.buildship.core.gradleprojectnature + + diff --git a/android/.settings/org.eclipse.buildship.core.prefs b/android/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000..d8954e1 --- /dev/null +++ b/android/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,13 @@ +arguments= +auto.sync=false +build.scans.enabled=false +connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) +connection.project.dir= +eclipse.preferences.version=1 +gradle.user.home= +java.home=C\:/Program Files/Java/jdk-12 +jvm.arguments= +offline.mode=false +override.workspace.settings=true +show.console.view=true +show.executions.view=true diff --git a/android/app/.classpath b/android/app/.classpath new file mode 100644 index 0000000..32d6691 --- /dev/null +++ b/android/app/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/android/app/.project b/android/app/.project new file mode 100644 index 0000000..ac485d7 --- /dev/null +++ b/android/app/.project @@ -0,0 +1,23 @@ + + + app + Project app created by Buildship. + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.buildship.core.gradleprojectnature + + diff --git a/android/app/.settings/org.eclipse.buildship.core.prefs b/android/app/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000..b1886ad --- /dev/null +++ b/android/app/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir=.. +eclipse.preferences.version=1 diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000..362ad87 --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,63 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 28 + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + lintOptions { + disable 'InvalidPackage' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.quizpicableme" + minSdkVersion 16 + targetSdkVersion 28 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..14949ec --- /dev/null +++ b/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..97718a6 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/kotlin/com/example/quizpicableme/MainActivity.kt b/android/app/src/main/kotlin/com/example/quizpicableme/MainActivity.kt new file mode 100644 index 0000000..d056d6c --- /dev/null +++ b/android/app/src/main/kotlin/com/example/quizpicableme/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.quizpicableme + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/android/app/src/main/res/drawable/icon.png b/android/app/src/main/res/drawable/icon.png new file mode 100644 index 0000000..f9477b7 Binary files /dev/null and b/android/app/src/main/res/drawable/icon.png differ diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..132e963 --- /dev/null +++ b/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png new file mode 100644 index 0000000..ddf61ae Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png new file mode 100644 index 0000000..215d709 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png new file mode 100644 index 0000000..62d7e91 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png new file mode 100644 index 0000000..35f4774 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png new file mode 100644 index 0000000..cf8b324 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..1f83a33 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..14949ec --- /dev/null +++ b/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..3100ad2 --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,31 @@ +buildscript { + ext.kotlin_version = '1.3.50' + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.5.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..38c8d45 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,4 @@ +org.gradle.jvmargs=-Xmx1536M +android.enableR8=true +android.useAndroidX=true +android.enableJetifier=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..296b146 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..d3b6a40 --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,15 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/assets/astronomy.jpg b/assets/astronomy.jpg new file mode 100644 index 0000000..1f58ee8 Binary files /dev/null and b/assets/astronomy.jpg differ diff --git a/assets/astronomy_tile.png b/assets/astronomy_tile.png new file mode 100644 index 0000000..2af638d Binary files /dev/null and b/assets/astronomy_tile.png differ diff --git a/assets/bg.jpg b/assets/bg.jpg new file mode 100644 index 0000000..3304052 Binary files /dev/null and b/assets/bg.jpg differ diff --git a/assets/correctans.mp3 b/assets/correctans.mp3 new file mode 100644 index 0000000..4b6f128 Binary files /dev/null and b/assets/correctans.mp3 differ diff --git a/assets/entertainment.jpg b/assets/entertainment.jpg new file mode 100644 index 0000000..8fa228f Binary files /dev/null and b/assets/entertainment.jpg differ diff --git a/assets/entertainment_tile.png b/assets/entertainment_tile.png new file mode 100644 index 0000000..ce37f1e Binary files /dev/null and b/assets/entertainment_tile.png differ diff --git a/assets/friends.jpg b/assets/friends.jpg new file mode 100644 index 0000000..509b1a3 Binary files /dev/null and b/assets/friends.jpg differ diff --git a/assets/friends_tile.png b/assets/friends_tile.png new file mode 100644 index 0000000..29c37be Binary files /dev/null and b/assets/friends_tile.png differ diff --git a/assets/gk.jpg b/assets/gk.jpg new file mode 100644 index 0000000..4012bd7 Binary files /dev/null and b/assets/gk.jpg differ diff --git a/assets/gk_tile.png b/assets/gk_tile.png new file mode 100644 index 0000000..58c96e0 Binary files /dev/null and b/assets/gk_tile.png differ diff --git a/assets/hurray.jpg b/assets/hurray.jpg new file mode 100644 index 0000000..efc3612 Binary files /dev/null and b/assets/hurray.jpg differ diff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 0000000..f9477b7 Binary files /dev/null and b/assets/icon.png differ diff --git a/assets/mcu.png b/assets/mcu.png new file mode 100644 index 0000000..0fa54ad Binary files /dev/null and b/assets/mcu.png differ diff --git a/assets/mcu_tile.png b/assets/mcu_tile.png new file mode 100644 index 0000000..41c017c Binary files /dev/null and b/assets/mcu_tile.png differ diff --git a/assets/quiz time.png b/assets/quiz time.png new file mode 100644 index 0000000..c0db6be Binary files /dev/null and b/assets/quiz time.png differ diff --git a/assets/socialmedia.jpg b/assets/socialmedia.jpg new file mode 100644 index 0000000..d09c4dd Binary files /dev/null and b/assets/socialmedia.jpg differ diff --git a/assets/socialmedia_tile.png b/assets/socialmedia_tile.png new file mode 100644 index 0000000..b6a38e3 Binary files /dev/null and b/assets/socialmedia_tile.png differ diff --git a/assets/splash_screen.jpg b/assets/splash_screen.jpg new file mode 100644 index 0000000..47ab88e Binary files /dev/null and b/assets/splash_screen.jpg differ diff --git a/assets/sport.jpg b/assets/sport.jpg new file mode 100644 index 0000000..98fe1b1 Binary files /dev/null and b/assets/sport.jpg differ diff --git a/assets/sports_tile.png b/assets/sports_tile.png new file mode 100644 index 0000000..8359116 Binary files /dev/null and b/assets/sports_tile.png differ diff --git a/assets/tech.jpeg b/assets/tech.jpeg new file mode 100644 index 0000000..0edb4c7 Binary files /dev/null and b/assets/tech.jpeg differ diff --git a/assets/tech_tile.png b/assets/tech_tile.png new file mode 100644 index 0000000..bebe81b Binary files /dev/null and b/assets/tech_tile.png differ diff --git a/assets/trackericon.png b/assets/trackericon.png new file mode 100644 index 0000000..97fa150 Binary files /dev/null and b/assets/trackericon.png differ diff --git a/assets/wrongans.mp3 b/assets/wrongans.mp3 new file mode 100644 index 0000000..f1186d5 Binary files /dev/null and b/assets/wrongans.mp3 differ diff --git a/fonts/acme/Acme-Regular.ttf b/fonts/acme/Acme-Regular.ttf new file mode 100644 index 0000000..a46b87c Binary files /dev/null and b/fonts/acme/Acme-Regular.ttf differ diff --git a/fonts/acme/OFL.txt b/fonts/acme/OFL.txt new file mode 100644 index 0000000..2f3d5b7 --- /dev/null +++ b/fonts/acme/OFL.txt @@ -0,0 +1,94 @@ +Copyright (c) 2011, Juan Pablo del Peral (juan@huertatipografica.com.ar), +with Reserved Font Names "Acme" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/grnze/GrenzeGotisch-VariableFont_wght.ttf b/fonts/grnze/GrenzeGotisch-VariableFont_wght.ttf new file mode 100644 index 0000000..0a3a07e Binary files /dev/null and b/fonts/grnze/GrenzeGotisch-VariableFont_wght.ttf differ diff --git a/fonts/grnze/OFL.txt b/fonts/grnze/OFL.txt new file mode 100644 index 0000000..03e84a8 --- /dev/null +++ b/fonts/grnze/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Grenze Gotisch Project Authors (https://github.com/Omnibus-Type/Grenze-Gotisch) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/grnze/README.txt b/fonts/grnze/README.txt new file mode 100644 index 0000000..cc8527b --- /dev/null +++ b/fonts/grnze/README.txt @@ -0,0 +1,71 @@ +Grenze Gotisch Variable Font +============================ + +This download contains Grenze Gotisch as both a variable font and static fonts. + +Grenze Gotisch is a variable font with this axis: + wght + +This means all the styles are contained in a single file: + GrenzeGotisch-VariableFont_wght.ttf + +If your app fully supports variable fonts, you can now pick intermediate styles +that aren’t available as static fonts. Not all apps support variable fonts, and +in those cases you can use the static font files for Grenze Gotisch: + static/GrenzeGotisch-Thin.ttf + static/GrenzeGotisch-ExtraLight.ttf + static/GrenzeGotisch-Light.ttf + static/GrenzeGotisch-Regular.ttf + static/GrenzeGotisch-Medium.ttf + static/GrenzeGotisch-SemiBold.ttf + static/GrenzeGotisch-Bold.ttf + static/GrenzeGotisch-ExtraBold.ttf + static/GrenzeGotisch-Black.ttf + +Get started +----------- + +1. Install the font files you want to use + +2. Use your app's font picker to view the font family and all the +available styles + +Learn more about variable fonts +------------------------------- + + https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts + https://variablefonts.typenetwork.com + https://medium.com/variable-fonts + +In desktop apps + + https://theblog.adobe.com/can-variable-fonts-illustrator-cc + https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts + +Online + + https://developers.google.com/fonts/docs/getting_started + https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide + https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts + +Installing fonts + + MacOS: https://support.apple.com/en-us/HT201749 + Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux + Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows + +Android Apps + + https://developers.google.com/fonts/docs/android + https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts + +License +------- +Please read the full license text (OFL.txt) to understand the permissions, +restrictions and requirements for usage, redistribution, and modification. + +You can use them freely in your products & projects - print or digital, +commercial or otherwise. However, you can't sell the fonts on their own. + +This isn't legal advice, please consider consulting a lawyer and see the full +license for all details. diff --git a/fonts/grnze/static/GrenzeGotisch-Black.ttf b/fonts/grnze/static/GrenzeGotisch-Black.ttf new file mode 100644 index 0000000..7e4a2a7 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-Black.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-Bold.ttf b/fonts/grnze/static/GrenzeGotisch-Bold.ttf new file mode 100644 index 0000000..4ca6313 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-Bold.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-ExtraBold.ttf b/fonts/grnze/static/GrenzeGotisch-ExtraBold.ttf new file mode 100644 index 0000000..b1cc2d1 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-ExtraBold.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-ExtraLight.ttf b/fonts/grnze/static/GrenzeGotisch-ExtraLight.ttf new file mode 100644 index 0000000..a1f8dd9 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-ExtraLight.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-Light.ttf b/fonts/grnze/static/GrenzeGotisch-Light.ttf new file mode 100644 index 0000000..f0597f8 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-Light.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-Medium.ttf b/fonts/grnze/static/GrenzeGotisch-Medium.ttf new file mode 100644 index 0000000..27f52e6 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-Medium.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-Regular.ttf b/fonts/grnze/static/GrenzeGotisch-Regular.ttf new file mode 100644 index 0000000..3552e82 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-Regular.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-SemiBold.ttf b/fonts/grnze/static/GrenzeGotisch-SemiBold.ttf new file mode 100644 index 0000000..ee4be72 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-SemiBold.ttf differ diff --git a/fonts/grnze/static/GrenzeGotisch-Thin.ttf b/fonts/grnze/static/GrenzeGotisch-Thin.ttf new file mode 100644 index 0000000..0fd7d34 Binary files /dev/null and b/fonts/grnze/static/GrenzeGotisch-Thin.ttf differ diff --git a/fonts/marg/Margarine-Regular.ttf b/fonts/marg/Margarine-Regular.ttf new file mode 100644 index 0000000..6bcd5ec Binary files /dev/null and b/fonts/marg/Margarine-Regular.ttf differ diff --git a/fonts/marg/OFL.txt b/fonts/marg/OFL.txt new file mode 100644 index 0000000..b43d1a9 --- /dev/null +++ b/fonts/marg/OFL.txt @@ -0,0 +1,94 @@ +Copyright (c) 2012 by Brian J. Bonislawsky DBA Astigmatic (AOETI) +(astigma@astigmatic.com), with Reserved Font Name "Margarine" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..e96ef60 --- /dev/null +++ b/ios/.gitignore @@ -0,0 +1,32 @@ +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..6b4c0f7 --- /dev/null +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 8.0 + + diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f25eb35 --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,506 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.quizpicableme; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.quizpicableme; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.quizpicableme; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..a28140c --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..70693e4 --- /dev/null +++ b/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..30ad10e Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..d0bf91c Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..12da53f Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..2d65787 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..a2c6d36 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..607cdd4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..26b1c53 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..12da53f Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..3c43a62 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..c365d81 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png new file mode 100644 index 0000000..61a76cb Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png new file mode 100644 index 0000000..adbed8b Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png new file mode 100644 index 0000000..1fb10af Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png new file mode 100644 index 0000000..779d126 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..c365d81 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..ef0a190 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png new file mode 100644 index 0000000..ddf61ae Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png new file mode 100644 index 0000000..35f4774 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..5fd24e9 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..7bf28e7 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..bf96e34 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..07e4c46 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "icon.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "icon.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "icon.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +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. \ No newline at end of file diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/icon.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/icon.png new file mode 100644 index 0000000..f9477b7 Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/icon.png differ diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist new file mode 100644 index 0000000..86d547f --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + quizpicableme + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/lib/end.dart b/lib/end.dart new file mode 100644 index 0000000..b5d4d79 --- /dev/null +++ b/lib/end.dart @@ -0,0 +1,212 @@ +import 'dart:typed_data'; + +import 'package:esys_flutter_share/esys_flutter_share.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/services.dart'; +import 'package:percent_indicator/circular_percent_indicator.dart'; +import 'dart:ui' as ui; + +import 'package:quizpicableme/size_config.dart'; + +class End extends StatefulWidget { + final int score; + final Color color; + final String name; + End(this.name, this.score, this.color); + + @override + _EndState createState() => _EndState(); +} + +class _EndState extends State { + GlobalKey containerKey = GlobalKey(); + bool isVisible = true; + + void share() async { + // setState(() { + // isVisible = false; + // }); + RenderRepaintBoundary renderRepaintBoundary = + containerKey.currentContext.findRenderObject(); + ui.Image boxImage = await renderRepaintBoundary.toImage(pixelRatio: 1); + ByteData byteData = + await boxImage.toByteData(format: ui.ImageByteFormat.png); + Uint8List uint8list = byteData.buffer.asUint8List(); + Share.file('Share via', 'MyScore.png', uint8list, 'image/png'); + // setState(() { + // isVisible = true; + // }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.black, + body: Stack( + children: [ + RepaintBoundary( + key: containerKey, + child: Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage('assets/bg.jpg'), + fit: BoxFit.cover, + )), + child: Center( + child: Column( + children: [ + SizedBox(height: 5.2 * SizeConfig.heightMultiplier), + Expanded( + flex: 1, + child: Center( + child: Text( + 'Congratulations!', + style: TextStyle( + fontSize: 6.16 * SizeConfig.textMultiplier, + color: Colors.black, + fontFamily: 'Acme', + fontWeight: FontWeight.w800), + ), + ), + ), + Expanded( + flex: 2, + child: Center( + child: Text( + 'You have completed your ${widget.name} quiz', + style: TextStyle( + fontSize: 5.2 * SizeConfig.textMultiplier, + color: Colors.black, + fontFamily: 'Acme', + fontWeight: FontWeight.w800), + textAlign: TextAlign.center, + ), + ), + ), + Expanded( + flex: 3, + child: CircularPercentIndicator( + radius: 26.49 * SizeConfig.heightMultiplier, + lineWidth: 20.0, + animationDuration: 1000, + progressColor: + Color.alphaBlend(Colors.black26, widget.color), + animation: true, + percent: widget.score / 10, + center: new Icon(Icons.check, + color: + Color.alphaBlend(Colors.black26, widget.color), + size: 18.5 * SizeConfig.heightMultiplier), + circularStrokeCap: CircularStrokeCap.round, + footer: Text( + "Your score is ${widget.score} /10. ", + style: new TextStyle( + fontWeight: FontWeight.w800, + fontSize: 4.2 * SizeConfig.textMultiplier, + fontFamily: 'Acme', + color: Colors.black), + textAlign: TextAlign.center, + ), + ), + ), + // Expanded( + // child: Center( + // child: Text( + // "Your score is ${widget.score} /10. ", + // style: new TextStyle( + // fontWeight: FontWeight.w800, + // fontSize: 34.0, + // fontFamily: 'Acme', + // color: Colors.black), + // textAlign: TextAlign.center, + // ), + // ), + // ), + SizedBox(height: 10.28 * SizeConfig.heightMultiplier), + ], + ), + ), + ), + ), + Positioned( + bottom: 5.5 * SizeConfig.heightMultiplier, + width: MediaQuery.of(context).size.width, + child: Center( + child: RaisedButton( + onPressed: () { + share(); + }, + padding: EdgeInsets.symmetric(horizontal: 32, vertical: 16), + child: Text( + 'Share', + style: TextStyle(fontSize: 2.4 * SizeConfig.textMultiplier), + ), + color: Color.alphaBlend(Colors.black26, widget.color), + ), + ), + ), + ], + ), + ); + } +} + +/*class Confetti extends StatefulWidget { + @override + _ConfettiState createState() => _ConfettiState(); +} + +class _ConfettiState extends State { + ConfettiController hurray1; + ConfettiController hurray2; + + @override + void initState() { + hurray1 = ConfettiController(duration: Duration(seconds: 5)); + hurray2 = ConfettiController(duration: Duration(seconds: 5)); + + super.initState(); + hurray1.play(); + hurray2.play(); + } + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + Align( + alignment: Alignment.bottomLeft, + child: ConfettiWidget( + confettiController: hurray1, + maxBlastForce: 20, + minBlastForce: 10, + numberOfParticles: 10, + gravity: 0.3, + emissionFrequency: 0.05, + blastDirection: -5 * pi / 12, + colors: const [Colors.yellow, Colors.blue], + shouldLoop: true, + ), + ), + Align( + alignment: Alignment.bottomRight, + child: ConfettiWidget( + confettiController: hurray2, + maxBlastForce: 20, + minBlastForce: 10, + numberOfParticles: 10, + gravity: 0.3, + emissionFrequency: 0.05, + blastDirection: -7 * pi / 12, + colors: const [ + Colors.yellow, + Colors.blue, + ], + shouldLoop: true, + ), + ), + ], + ); + } +}*/ diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..8afc062 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,383 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:quizpicableme/quizpage.dart'; +import 'package:quizpicableme/size_config.dart'; + +void main() { + runApp(MyApp()); +} + +class MyApp extends StatelessWidget { + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return LayoutBuilder( + builder: (context, constraints) { + SizeConfig().init(constraints); + print(SizeConfig.heightMultiplier); + print(SizeConfig.widthMultiplier); + return MaterialApp( + debugShowCheckedModeBanner: false, + title: 'QuizpicableMe', + home: Home(), + ); + }, + ); + } +} + +class Home extends StatelessWidget { + void navigate(category, title, context, imgurl, color) { + Navigator.of(context).push(MaterialPageRoute( + builder: (context) => QuizPage( + category: category, title: title, imgurl: imgurl, color: color))); + } + + @override + Widget build(BuildContext context) { + SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); + return Scaffold( + backgroundColor: Colors.white, + body: Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage('assets/bg.jpg'), fit: BoxFit.cover)), + child: ListView( + children: [ + SizedBox(height: 3.22 * SizeConfig.heightMultiplier), + Padding( + padding: const EdgeInsets.all(8.0), + child: Center( + child: Text( + 'QUIZPICABLE\nME!', + style: TextStyle( + fontSize: 5.5 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + color: Colors.black, + fontFamily: 'Margarine', + letterSpacing: 2), + textAlign: TextAlign.center, + ), + ), + ), + SizedBox(height: 1.1 * SizeConfig.heightMultiplier), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('gk', 'General Knowledge', context, + 'assets/gk.jpg', Colors.red[300]); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.red[300], + shadowColor: Colors.red[900], + elevation: 8, + child: Row( + children: [ + Expanded( + child: Center( + child: Text('G.K.', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + )), + Expanded( + child: Image.asset( + 'assets/gk_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 36.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('sport', 'Sports', context, 'assets/sport.jpg', + Colors.cyan); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.cyan, + shadowColor: Colors.cyan, + elevation: 8, + child: Row( + children: [ + Expanded( + child: Center( + child: Text('Sports', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + ), + ), + Expanded( + child: Image.asset( + 'assets/sports_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 36.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('entertainment', 'Entertainment', context, + 'assets/entertainment.jpg', Colors.teal[300]); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.teal[300], + shadowColor: Colors.teal, + elevation: 8, + child: Row( + children: [ + Expanded( + flex: 3, + child: Center( + child: Text('Entertainment', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + ), + ), + Expanded( + flex: 2, + child: Image.asset( + 'assets/entertainment_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 30.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('tech', 'Technology', context, 'assets/tech.jpeg', + Colors.blue[400]); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.blue[400], + shadowColor: Colors.blue, + elevation: 8, + child: Row( + children: [ + Expanded( + child: Center( + child: Text('Technology', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + ), + ), + Expanded( + child: Image.asset( + 'assets/tech_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 36.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('friends', 'F.R.I.E.N.D.S', context, + 'assets/friends.jpg', Colors.deepOrange[200]); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.deepOrange[200], + shadowColor: Colors.deepOrange[300], + elevation: 8, + child: Row( + children: [ + Expanded( + child: Center( + child: Text('F.R.I.E.N.D.S', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + ), + ), + Expanded( + child: Image.asset( + 'assets/friends_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 36.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('astronomy', 'Astronomy', context, + 'assets/astronomy.jpg', Colors.amber[200]); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.amber[300], + shadowColor: Colors.amber, + elevation: 8, + child: Row( + children: [ + Expanded( + child: Center( + child: Text('Astronomy', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + ), + ), + Expanded( + child: Image.asset( + 'assets/astronomy_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 36.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('socialmedia', 'Social Media', context, + 'assets/socialmedia.jpg', Colors.indigoAccent[100]); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.indigoAccent[100], + shadowColor: Colors.indigo, + elevation: 8, + child: Row( + children: [ + Expanded( + child: Center( + child: Text('Social Media', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + ), + ), + Expanded( + child: Image.asset( + 'assets/socialmedia_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 36.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + onPressed: () { + navigate('mcu', 'Marvel Cinematic Universe', context, + 'assets/mcu.png', Colors.purple[200]); + }, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + color: Colors.purple[200], + shadowColor: Colors.purple, + elevation: 8, + child: Row( + children: [ + Expanded( + child: Center( + child: Text('M.C.U', + style: TextStyle( + color: Colors.black, + fontSize: 3.64 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800, + fontFamily: 'Acme')), + ), + ), + Expanded( + child: Image.asset( + 'assets/mcu_tile.png', + height: 17.2 * SizeConfig.heightMultiplier, + width: 36.4 * SizeConfig.widthMultiplier, + ), + ), + ], + ), + ), + ), + ), + ), + SizedBox(height: 5.76 * SizeConfig.heightMultiplier), + ], + ), + ), + ); + } +} diff --git a/lib/questionlist.dart b/lib/questionlist.dart new file mode 100644 index 0000000..0cbd5d6 --- /dev/null +++ b/lib/questionlist.dart @@ -0,0 +1,411 @@ +import 'package:quizpicableme/questions.dart'; + +final Map> genre = { + 'gk': { + 'questions': [ + Question('When is the International Yoga Day celebrated ?', 'March 18', + 'June 21', 'July 21', 'December 23', 'June 21'), + Question( + 'Which among the following cities in India, is not located in Golden Quadrilateral Road Network?', + 'Kolkata', + 'Delhi', + 'Mumbai', + 'Chandigarh', + 'Chandigarh'), + Question( + 'Prime Minister Narendra Modi launched Swachha Bharat Mission officially on -', + 'Republic day', + 'Independence Day', + 'Gandhi Jayanti', + 'Environment Day', + 'Gandhi Jayanti'), + Question( + 'Kyoto Protocol is related to', + 'Climate Change', + 'Air Pollution', + 'Greenhouse Gas', + 'Water Pollution', + 'Climate Change'), + Question('Ozone Layer Preservation Day is celebrated on -', + '16 September', '5 May', '5 June', '21 June', '16 September'), + Question('The World Population Day is observed on ', 'June 11', 'May 11', + 'July 11', 'August 11', 'July 11'), + Question('When is World Children’s Day observed?', 'November 14', + 'November 20', 'November 16', 'November 12', 'November 20'), + Question( + 'Which of the following is not among 7 Wonders of the World', + 'Taj Mahal', + 'Colosseum', + 'Notre Dame', + 'The Great Wall of China', + 'Notre Dame'), + Question( + 'The tropic of cancer does not pass through which of these Indian states ?', + 'Odisha', + 'West Bengal', + 'Madhya Pradesh', + 'Rajasthan', + 'Odisha'), + Question( + 'Union Budget is always presented first in', + 'Joint Session of Parliament', + 'Rajya Sabha', + 'Lok Sabha', + 'Union Cabinet', + 'Rajya Sabha') + ], + }, + 'sport': { + 'questions': [ + Question( + 'Which of the following awards is given for excellence in sports coaching in India?', + 'Arjuna Award', + 'Dhronacharya Award', + 'Dhyan Chand Award', + 'Rajiv Gandhi Khel Ratna', + 'Dhronacharya Award'), + Question('When is national sports day of India celebrated?', 'August 29', + 'October 7', 'November 27', 'March 11', 'August 29'), + Question('Lionel Messi is a player of which country?', 'Brazil', + 'Argentina', 'Germany', 'Italy', 'Argentina'), + Question('The Ancient Olympics took place in honour of which Greek God?', + 'Apollo', 'Athena', 'Zeus', 'Hercules', 'Zeus'), + Question( + 'Who was the first Indian to win an individual medal in Olympics?', + 'Karnam Malleshwari', + 'K. D. Jadhav', + 'Milkha Singh', + 'P. T. Usha', + 'K. D. Jadhav'), + Question(' Where was the first World Cup Football held?', 'Brazil', + 'Canada', 'France', 'Uruguay', 'Uruguay'), + Question( + 'Which of the following is the highest award in sports in the world?', + 'Arjuna Award', + 'Olympic Order', + 'Dronacharya Award', + 'Jesse Owens Award', + 'Olympic Order'), + Question('In which category did India win its first Commonwealth medal?', + 'Hockey', 'Wrestling', 'Shooting', 'Athletics', 'Wrestling'), + Question(' Which of the following is related to ICC trophy?', 'Hockey', + 'Lawn Tennis', 'Chess', 'Cricket', 'Cricket'), + Question( + ' ____________ has won Cricket world cup for the maximum number of times.', + 'India', + 'Sri Lanka', + 'Australia', + 'England', + 'Australia') + ], + }, + 'entertainment': { + 'questions': [ + Question( + 'Who became the youngest artist in the history of Grammys to score six Gammy Award nominations?', + 'Billie Ellish', + 'Ariana Grande', + 'Swa lee', + 'Harry Styles', + 'Billie Ellish'), + Question('Aishwarya Rai was crowned Miss World in which year?', '1992', + '1993', '1994', '1995', '1994'), + Question( + 'Which TV series won the Emmy award Outstanding Drama Series?', + 'House of Cards', + 'Game of Thrones', + 'Homeland', + 'The Americans', + 'Game of Thrones'), + Question( + 'Who was named Top Touring Artist at the Billboard music awards?', + 'Taylor Swift', + "Madonna", + 'Justin Bieber', + 'Bruno Mars', + 'Taylor Swift'), + Question( + 'Which Adele song broke a YouTube record by receiving a billion views in 87 days?', + 'When We Were Young', + 'I Miss You', + 'Remedy', + 'Hello', + 'Hello'), + Question( + 'Which Disney movie was the highest-grossing film of 2016?', + 'The Jungle Book', + 'Captain America:Civil War', + 'Zootopia', + 'Finding Dory', + 'Captain America:Civil War'), + Question('When was the boyband One Direction formed', 'May 11', + 'November 23', 'July 23', 'March 15', 'July 23'), + Question('Filmfare awards started from the year', '1950', '1954', '1960', + '1964', '1954'), + Question('Which is not a Pixar movie?', 'Shrek', 'Toy Story', + 'Finding Nemo', 'Monsters Inc.', 'Shrek'), + Question('Which book is NOT a title of a book in the Twilight series?', + 'New Moon', 'Breaking Dawn', 'Midnight', 'Eclipse', 'Midnight') + ], + }, + 'socialmedia': { + 'questions': [ + Question('@-<-- What is this?', 'At my house', 'Asshole', + 'Where you at', 'Rose', 'Rose'), + Question( + 'What does drip mean', + 'Has really cool clothes', + 'worked hard at gym', + 'related to alcohol', + 'Dont run into problems', + 'Has really cool clothes'), + Question('Lowkey means', 'On down low', 'Kinda', 'Never', + 'At a low height', 'Kinda'), + Question('What is the most popular day for tweets?', 'Tuesday', 'Friday', + 'Saturday', 'Thursday', 'Tuesday'), + Question( + 'What is YouTube\'s slogan', + 'Think Different', + 'Broadcast Yourself', + 'Just Video it', + 'Watch whatever, whenever', + 'Broadcast Yourself'), + Question( + 'A euphemism for hooking up is?', + 'Amazon and party', + 'Tinder and date', + 'Netflix and Chill', + 'Hulu and hoop', + 'Netflix and Chill'), + Question( + 'Who is Mark Zuckerberg', + 'Founder of Twitter', + 'Founder of My Space', + 'Founder of Facebook', + 'Founder of Google', + 'Founder of Facebook'), + Question('In what year was Facebook launched', '2002', '2003', '2004', + '2005', '2004'), + Question( + 'What does pooshaw mean', + 'Go away', + 'I don\'t care what you have to say', + 'I gotta poo fast', + 'I have a question', + 'I don\'t care what you have to say'), + Question( + 'If you say something controversial and don\'t care about anyone\'s response, you might say?', + 'Look the other way', + 'Bye,Felicia', + 'Sorry not sorry', + 'Don\'t at me', + 'Don\'t at me') + ], + }, + 'friends': { + 'questions': [ + Question( + 'According to Ross in The One With The Cop, how many times did he and Rachel do it?', + '249', + '192', + '298', + '278', + '298'), + Question( + 'In the first ever episode Rachel ran away from her wedding to Barry. What was Barry\'s surname?', + 'Farber', + 'Felcher', + 'Former', + 'Filcher', + 'Farber'), + Question('What magazine was sent to Miss Chanandler Bong?', 'Time', + 'Good House Keeping', 'TV Guide', 'Playboy', 'TV Guide'), + Question('Who did Joey act as a butt double for?', 'Robert de Niro', + 'Andy gracia', 'Gary Oldman', 'Al Pacino', 'Al Pacino'), + Question('How Much Did Joey Accidentally Buy The Sailboat For?', '15,000', + '20,000', '25,000', '30,000 ', '20,000'), + Question( + 'What Is The Name Of The Woman Ross Slept With When He Thought He Was On A Break?', + 'Chloe', + 'Jessica', + 'Meghan', + 'Carla', + 'Chloe'), + Question('What Is Chandler\'s Middle Name?', 'Gabriel', "Toby", "Muriel", + 'Doris', 'Muriel'), + Question('What is Joey and Chandler\s code word for danger?', 'Unagi', + 'Kaw Kaw', 'Bert', 'Danger', 'Bert'), + Question( + 'What does Chandler\'s co-worker, Bob, think Chandler\'s name is?', + 'Daniel', + 'Chanandler', + 'Toby', + 'Micheal', + 'Toby'), + Question( + 'What was the reason of fire at Phoebe\'s and Rachel\'s apartment', + 'Curling iron', + 'Scented candles', + 'Flat iron', + 'Grease on stove', + 'Flat iron') + ], + }, + 'astronomy': { + 'questions': [ + Question( + 'Hydrogen bomb is based on the principle of ', + 'Nuclear Fission', + 'Natural Radioactivity', + 'Nuclear Fusion', + 'Artificial Radioactivity', + 'Nuclear Fusion'), + Question( + 'The device employed to measure the diameters of stars and our galaxy (Milky Way) is called:', + 'Photometer', + 'Barometer', + 'Viscometer', + 'Interferometer', + 'Interferometer'), + Question('What is the densest object in Universe', 'Black Hole', 'Quasar', + 'Neutron Star', 'Wormhole', 'Neutron Star'), + Question('Who invented telescope', 'Hans Lippershey', 'Johannes Kepler', + 'Galileo', 'Archimedes', 'Hans Lippershey'), + Question( + 'Which type of electromagnetic energy has the largest wavelength', + 'Infrared', + 'Ultraviolet', + 'X-ray', + 'Radiowave', + 'Radiowave'), + Question('Stars like Earth\'s sun most likely formed directly from a?', + 'Nebula', 'Red Giant', 'Supernova', 'White Dwarf', 'Nebula'), + Question('Which object in the solar Sytem has the greast density', + 'Jupiter', 'Earth', 'Sun', 'Saturn', 'Earth'), + Question('Which planet\'s orbit around the Sun is nearly circular', + 'Earth', 'Mars', 'Jupiter', 'Venus', 'Venus'), + Question( + 'Which process produces the energy that allows the star to radiate visible light', + 'Nuclear fusion', + 'Nuclear fission', + 'Insolation', + 'Radioactive decay', + 'Nuclear fusion'), + Question('Which color indicates the hottest star surface tenperature', + 'Red', 'Blue', 'White', 'Yellow', 'White') + ], + }, + 'tech': { + 'questions': [ + Question('Ctrl, Shift and Alt are called .......... keys.', 'adjustment', + 'modifier', 'function', 'alphanumeric', 'modifier'), + Question( + 'A computer cannot "boot" if it does not have the', + 'Operating System', + 'Compiler', + 'Loader', + 'Assembler', + 'Operating System'), + Question( + 'Who developed yahoo', + 'Dennis Ritchie & Ken Thompson', + 'David Filo & Jerry Yang', + 'Vint Cerf & Robert Kahn', + 'Steve Case & Jeff Bezos', + 'David Filo & Jerry Yang'), + Question('Which is the first search engine on internet', 'Google', + 'Altavista', 'Archie', 'WAIS', 'Archie'), + Question('In computer world, trojan is referred to', 'Virus', 'Worm', + 'Malware', 'Spyware', 'Malware'), + Question('A folder in windows computer can\'t be saved with name', 'con', + 'mac', 'mak', 'can', 'con'), + Question( + 'Which key combination is used to permanently delete a file or folder', + 'Alt+Delete', + 'Shift+Delete', + 'Ctrl+Delete', + 'Delete', + 'Shift+Delete'), + Question('Microsoft Office\'s personal information manager is', 'Access', + 'Internet Explorer', 'Organizer', 'Outlook', 'Outlook'), + Question('What is the limit of characters of a tweet on Twitter', '260', + '270', '280', '290', '280'), + Question( + 'Which company first introduced the Emojis internationally on their mobile phones', + 'SamSung', + 'BlackBerry', + 'Nokia', + 'Apple', + 'Apple') + ], + }, + 'mcu': { + 'questions': [ + Question( + 'In the films, what does S.H.I.E.L.D. stand for?', + 'Strategic Hazard Intervention Espionage Logistics Directorate', + 'Strategic Homeland Intervention, Enforcement and Logistics Division', + 'Supreme Headquarters, International Espionage, Law-Enforcement Division', + 'Superheroes Help In Enabling Localised Defence', + 'Strategic Homeland Intervention, Enforcement and Logistics Division'), + Question('What\'s Agent Coulson\'s first name?', 'Paul', 'Chris', 'Phil', + 'Avan', 'Phil'), + Question( + 'After which \'80s TV star did Star-Lord name his ship?', + 'Chritina AppleGate', + 'Heather Locklear', + 'Tiffani Thiessan', + 'Alyssa Milano', + 'Alyssa Milano'), + Question( + 'In the comics, who created Captain America\’s shield?', + 'Dr. Terrible', + 'Howard Stark', + 'David Myers', + 'Dr. Myron MacLain', + 'Dr. Myron MacLain'), + Question( + 'Name this alien race that appeared in \'Captain Marvel\'.', + 'The Sakaarans', + 'The Kree', + 'The Xandarians', + 'The Chitauri', + 'The Kree'), + Question( + 'In \'The Avengers\', what S.H.I.E.L.D. agent does Black Widow say first brought her into the fold?', + 'Hawkeye', + 'Nick Fury', + 'Agent Coulson', + 'Steve Rogers', + 'Hawkeye'), + Question( + 'The Fantastic Four have the headquarters in what building?', + 'Stark Tower', + 'Xavier Institute', + 'Fantastic Headquaters', + 'Baxter Building', + 'Baxter Building'), + Question( + 'What did Peggy Carter promise to Steve Rogers (Captain America) before he crashed Red Skull\'s bomber?', + 'A date', + 'A fondue', + 'A Dance', + 'A Kiss', + 'A Dance'), + Question( + 'What\'s the final movie in Marvel\'s Phase 1?', + 'Iron Man 3', + 'Avengers Endgame', + 'The Avengers', + 'Guardians of Galaxy', + 'The Avengers'), + Question( + 'Deadpool joined the Weapon X program because', + 'He had incurable cancer', + 'He wanted to fight for justice', + 'He was forced to', + 'He thought it would be fun', + 'He had incurable cancer') + ] + } +}; diff --git a/lib/questions.dart b/lib/questions.dart new file mode 100644 index 0000000..e07b54a --- /dev/null +++ b/lib/questions.dart @@ -0,0 +1,11 @@ +class Question { + String que, op1, op2, op3, op4, answer; + Question( + this.que, + this.op1, + this.op2, + this.op3, + this.op4, + this.answer, + ); +} diff --git a/lib/quizpage.dart b/lib/quizpage.dart new file mode 100644 index 0000000..bdb992e --- /dev/null +++ b/lib/quizpage.dart @@ -0,0 +1,332 @@ +import 'package:flutter/material.dart'; +import 'package:percent_indicator/circular_percent_indicator.dart'; +import 'package:quizpicableme/questionlist.dart'; +import 'dart:async'; +import 'package:quizpicableme/questions.dart'; +import 'package:quizpicableme/size_config.dart'; +import 'end.dart'; + +class QuizPage extends StatefulWidget { + final String category; + final String title; + final String imgurl; + final Color color; + + const QuizPage({Key key, this.category, this.title, this.imgurl, this.color}) + : super(key: key); + @override + _QuizPageState createState() => _QuizPageState(); +} + +class _QuizPageState extends State { + int number = 0; + int score = 0; + List _correct = []; + Timer _timer; + int counter = 30; + List _questions = []; + + @override + void initState() { + super.initState(); + _questions = genre[widget.category]['questions']; + _questions.shuffle(); + initTimer(); + } + + void initTimer() { + if (_timer != null) { + counter = 30; + _timer.cancel(); + } + _timer = Timer.periodic(Duration(seconds: 1), (t) { + if (counter > 0) { + setState(() { + counter--; + }); + } else { + _timer.cancel(); + _correct.add(false); + quesno(context, _questions, widget.color); + } + }); + } + + void quesno(context, _questions, color) { + if (number < _questions.length - 1) { + setState(() { + number++; + initTimer(); + }); + } else { + Navigator.of(context).pushReplacement(MaterialPageRoute( + builder: (context) => End(widget.title, score, color))); + } + } + + Future back(context) async { + return await showDialog( + context: context, + builder: (context) { + return AlertDialog( + title: Text('Exit Quiz'), + content: Text('Do you want to exit this quiz?'), + actions: [ + FlatButton( + onPressed: () => Navigator.of(context).pop(true), + child: Text('YES')), + FlatButton( + onPressed: () => Navigator.of(context).pop(false), + child: Text('NO')), + ], + ); + }) ?? + false; + } + + @override + Widget build(BuildContext context) { + return WillPopScope( + onWillPop: () async => back(context), + child: Scaffold( + backgroundColor: Colors.white, + appBar: AppBar( + title: Text( + widget.title, + style: TextStyle( + color: Colors.black, + fontSize: 3.1 * SizeConfig.textMultiplier, + fontWeight: FontWeight.bold, + ), + ), + centerTitle: true, + titleSpacing: 1, + backgroundColor: widget.color, + ), + body: Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage(widget.imgurl), fit: BoxFit.cover)), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + SizedBox( + height: 9.6 * SizeConfig.heightMultiplier, + child: CircularPercentIndicator( + radius: 6.91 * SizeConfig.heightMultiplier, + lineWidth: 10.0, + animationDuration: 0, + progressColor: widget.color, + backgroundColor: Color.fromRGBO(0, 0, 0, 0.8), + animation: true, + percent: 1 - counter / 30, + center: Container( + width: 10.22 * SizeConfig.widthMultiplier, + height: 4.84 * SizeConfig.heightMultiplier, + decoration: BoxDecoration( + color: Color.fromRGBO(0, 0, 0, 0.8), + shape: BoxShape.circle, + ), + alignment: Alignment.center, + child: Text( + '$counter', + style: TextStyle( + color: widget.color, + fontSize: 2.4 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w700), + ), + ), + circularStrokeCap: CircularStrokeCap.round, + ), + ), + Expanded( + flex: 4, + child: Padding( + padding: const EdgeInsets.all(15.0), + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(24)), + color: Color.fromRGBO(0, 0, 0, 0.8), + shadowColor: Color.fromRGBO(0, 0, 0, 0.8), + elevation: 8, + child: Center( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Text( + _questions[number].que, + style: TextStyle( + color: widget.color, + fontSize: 3.5 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w800), + textAlign: TextAlign.center, + ), + ), + ), + ), + ), + ), + SizedBox(height: 3.1 * SizeConfig.heightMultiplier), + Expanded( + flex: 1, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: FlatButton( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(24)), + onPressed: () { + String correct = _questions[number].answer; + if (_questions[number].op1 == correct) { + setState(() { + score++; + }); + } + setState(() { + _correct.add(_questions[number].op1 == correct); + }); + quesno(context, _questions, widget.color); + }, + child: Text( + _questions[number].op1, + style: TextStyle( + color: widget.color, + fontWeight: FontWeight.bold, + fontSize: 2.3 * SizeConfig.textMultiplier), + textAlign: TextAlign.center, + ), + color: Color.fromRGBO(51, 51, 51, 0.9)), + ), + ), + Expanded( + flex: 1, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: FlatButton( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(24)), + onPressed: () { + String correct = _questions[number].answer; + if (_questions[number].op2 == correct) { + setState(() { + score++; + }); + } + setState(() { + _correct.add(_questions[number].op2 == correct); + }); + quesno(context, _questions, widget.color); + }, + child: Text( + _questions[number].op2, + style: TextStyle( + color: widget.color, + fontWeight: FontWeight.bold, + fontSize: 2.3 * SizeConfig.textMultiplier), + textAlign: TextAlign.center, + ), + color: Color.fromRGBO(51, 51, 51, 0.9)), + ), + ), + Expanded( + flex: 1, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: FlatButton( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(24)), + onPressed: () { + String correct = _questions[number].answer; + if (_questions[number].op3 == correct) { + setState(() { + score++; + }); + } + setState(() { + _correct.add(_questions[number].op3 == correct); + }); + quesno(context, _questions, widget.color); + }, + child: Text( + _questions[number].op3, + style: TextStyle( + color: widget.color, + fontWeight: FontWeight.bold, + fontSize: 2.3 * SizeConfig.textMultiplier), + textAlign: TextAlign.center, + ), + color: Color.fromRGBO(51, 51, 51, 0.9)), + ), + ), + Expanded( + flex: 1, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: FlatButton( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(24)), + onPressed: () { + String correct = _questions[number].answer; + if (_questions[number].op4 == correct) { + setState(() { + score++; + }); + } + setState(() { + _correct.add(_questions[number].op4 == correct); + }); + quesno(context, _questions, widget.color); + }, + child: Text( + _questions[number].op4, + style: TextStyle( + color: widget.color, + fontWeight: FontWeight.bold, + fontSize: 2.4 * SizeConfig.textMultiplier), + textAlign: TextAlign.center, + ), + color: Color.fromRGBO(51, 51, 51, 0.9)), + ), + ), + SizedBox(height: 0.4 * SizeConfig.heightMultiplier), + Container( + height: 8.5 * SizeConfig.heightMultiplier, + child: ListView.separated( + scrollDirection: Axis.horizontal, + itemCount: _questions.length, + itemBuilder: (context, index) { + return Container( + alignment: Alignment.center, + child: Text( + '${index + 1}', + style: TextStyle( + fontSize: 2.3 * SizeConfig.textMultiplier, + fontWeight: FontWeight.bold, + color: widget.color, + ), + ), + decoration: BoxDecoration( + shape: BoxShape.circle, + color: Color.fromRGBO(0, 0, 0, 0.8), + border: _correct.length > index + ? Border.all( + width: 0.6 * SizeConfig.widthMultiplier, + color: + _correct[index] ? Colors.green : Colors.red) + : null, + ), + width: 9.12 * SizeConfig.widthMultiplier, + height: 5.12 * SizeConfig.heightMultiplier, + ); + }, + separatorBuilder: (context, index) { + return SizedBox(width: 0.85 * SizeConfig.widthMultiplier); + }, + ), + ), + SizedBox(height: 0.1 * SizeConfig.heightMultiplier), + ], + ), + ), + ), + ); + } +} diff --git a/lib/size_config.dart b/lib/size_config.dart new file mode 100644 index 0000000..d7411d3 --- /dev/null +++ b/lib/size_config.dart @@ -0,0 +1,21 @@ +import 'package:flutter/cupertino.dart'; + +class SizeConfig { + static double _screenWidth; + static double _screenHeight; + static double _blockSizeHorizontal; + static double _blockSizeVertical; + static double textMultiplier; + static double heightMultiplier; + static double widthMultiplier; + + void init(BoxConstraints constraints) { + _screenWidth = constraints.maxWidth; + _screenHeight = constraints.maxHeight; + _blockSizeHorizontal = _screenWidth / 100; + _blockSizeVertical = _screenHeight / 100; + textMultiplier = _blockSizeVertical; + heightMultiplier = _blockSizeVertical; + widthMultiplier = _blockSizeHorizontal; + } +} diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..7f70c88 --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,301 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + archive: + dependency: transitive + description: + name: archive + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.13" + args: + dependency: transitive + description: + name: args + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.0" + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.3" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.12" + confetti: + dependency: "direct main" + description: + name: confetti + url: "https://pub.dartlang.org" + source: hosted + version: "0.5.2" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.4" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.3" + esys_flutter_share: + dependency: "direct main" + description: + name: esys_flutter_share + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "5.2.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_launcher_icons: + dependency: "direct dev" + description: + name: flutter_launcher_icons + url: "https://pub.dartlang.org" + source: hosted + version: "0.7.5" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + image: + dependency: transitive + description: + name: image + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.12" + intl: + dependency: transitive + description: + name: intl + url: "https://pub.dartlang.org" + source: hosted + version: "0.16.1" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.6" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.8" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.4" + path_provider: + dependency: transitive + description: + name: path_provider + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.11" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.1+2" + path_provider_macos: + dependency: transitive + description: + name: path_provider_macos + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.4+3" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" + percent_indicator: + dependency: "direct main" + description: + name: percent_indicator + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.5" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.0" + platform: + dependency: transitive + description: + name: platform + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.1" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" + process: + dependency: transitive + description: + name: process + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.13" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.3" + random_color: + dependency: transitive + description: + name: random_color + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.7.0" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.3" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.15" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.0" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.dartlang.org" + source: hosted + version: "3.6.1" + yaml: + dependency: transitive + description: + name: yaml + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.1" +sdks: + dart: ">=2.7.0 <3.0.0" + flutter: ">=1.12.13+hotfix.5 <2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..4b4db1f --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,88 @@ +name: quizpicableme +description: A new Flutter project. + +# The following line prevents the package from being accidentally published to +# pub.dev using `pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: ">=2.7.0 <3.0.0" + +dependencies: + flutter: + sdk: flutter + + confetti: ^0.5.2 + percent_indicator: ^2.1.5 + esys_flutter_share: ^1.0.2 + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^0.1.3 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_launcher_icons: ^0.7.5 + +flutter_icons: + android: "launcher_icon" + ios: true + image_path: "assets/icon.png" + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + assets: + - assets/ + + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + fonts: + - family: Acme + fonts: + - asset: fonts/acme/Acme-Regular.ttf + + - family: Grenze Gotisch + fonts: + - asset: fonts/grnze/static/GrenzeGotisch-Medium.ttf + + - family: Margarine + fonts: + - asset: fonts/marg/Margarine-Regular.ttf + + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/test/widget_test.dart b/test/widget_test.dart new file mode 100644 index 0000000..ea646ac --- /dev/null +++ b/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility that Flutter provides. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:quizpicableme/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +}