├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── rpapps │ │ │ │ │ └── quiz │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── main.m │ ├── AppDelegate.m │ ├── Info.plist │ └── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner.xcodeproj │ ├── project.xcworkspace │ └── contents.xcworkspacedata │ ├── xcshareddata │ └── xcschemes │ │ └── Runner.xcscheme │ └── project.pbxproj ├── assets ├── fonts │ ├── slabo.ttf │ └── like_dislike.ttf └── icon │ └── icon.png ├── README.md ├── .metadata ├── lib ├── main.dart ├── like_dislike_icon.dart └── pages │ ├── menu │ ├── chip_select.dart │ ├── menu_page.dart │ └── menu_option.dart │ ├── error │ ├── no_ques.dart │ └── no_connection.dart │ ├── quiz │ ├── quiz_page.dart │ └── quiz_format.dart │ └── result │ └── result_page.dart ├── .gitignore ├── pubspec.yaml └── pubspec.lock /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /assets/fonts/slabo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/assets/fonts/slabo.ttf -------------------------------------------------------------------------------- /assets/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/assets/icon/icon.png -------------------------------------------------------------------------------- /assets/fonts/like_dislike.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/assets/fonts/like_dislike.ttf -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajpar29/Quiz/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Quiz 2 | 3 | A Quiz app Made with Flutter and openTDB API. 4 | 5 | Feel Free to give any suggestions or pointing out mistakes or reporting bugs. 6 | 7 | Known bug : 8 | State of quiz lost when app switched. 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rpapps/quiz/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rpapps.quiz; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import './pages/menu/menu_page.dart'; 4 | import 'package:flutter/rendering.dart'; 5 | 6 | void main() { 7 | runApp(MyApp()); 8 | //debugPaintSizeEnabled = true; 9 | 10 | SystemChrome.setEnabledSystemUIOverlays([]); 11 | SystemChrome.setPreferredOrientations([ 12 | DeviceOrientation.portraitUp, 13 | DeviceOrientation.portraitDown, 14 | ]); 15 | return; 16 | } 17 | 18 | class MyApp extends StatelessWidget { 19 | @override 20 | Widget build(BuildContext context) { 21 | return MaterialApp(theme: ThemeData(fontFamily: 'Slabo'), home: MenuPage()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/like_dislike_icon.dart: -------------------------------------------------------------------------------- 1 | /// Flutter icons MyFlutterApp 2 | /// Copyright (C) 2019 by original authors @ fluttericon.com, fontello.com 3 | /// This font was generated by FlutterIcon.com, which is derived from Fontello. 4 | /// 5 | /// To use this font, place it in your fonts/ directory and include the 6 | /// following in your pubspec.yaml 7 | /// 8 | /// flutter: 9 | /// fonts: 10 | /// - family: MyFlutterApp 11 | /// fonts: 12 | /// - asset: fonts/MyFlutterApp.ttf 13 | /// 14 | /// 15 | /// * Font Awesome, Copyright (C) 2016 by Dave Gandy 16 | /// Author: Dave Gandy 17 | /// License: SIL () 18 | /// Homepage: http://fortawesome.github.com/Font-Awesome/ 19 | /// 20 | /// 21 | 22 | 23 | 24 | /// 25 | ////// 26 | /// 27 | /// Like and Dislike Icons 28 | /// 29 | /// 30 | import 'package:flutter/widgets.dart'; 31 | 32 | class LikeDislike { 33 | LikeDislike._(); 34 | 35 | static const _kFontFam = 'LikeDislike'; 36 | 37 | static const IconData thumbs_up_alt = const IconData(0xf164, fontFamily: _kFontFam); 38 | static const IconData thumbs_down_alt = const IconData(0xf165, fontFamily: _kFontFam); 39 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # Credentials 13 | 14 | key.properties 15 | 16 | # IntelliJ related 17 | *.iml 18 | *.ipr 19 | *.iws 20 | .idea/ 21 | 22 | # Visual Studio Code related 23 | .vscode/ 24 | 25 | # Flutter/Dart/Pub related 26 | **/doc/api/ 27 | .dart_tool/ 28 | .flutter-plugins 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Android related 35 | **/android/**/gradle-wrapper.jar 36 | **/android/.gradle 37 | **/android/captures/ 38 | **/android/gradlew 39 | **/android/gradlew.bat 40 | **/android/local.properties 41 | **/android/**/GeneratedPluginRegistrant.java 42 | 43 | # iOS/XCode related 44 | **/ios/**/*.mode1v3 45 | **/ios/**/*.mode2v3 46 | **/ios/**/*.moved-aside 47 | **/ios/**/*.pbxuser 48 | **/ios/**/*.perspectivev3 49 | **/ios/**/*sync/ 50 | **/ios/**/.sconsign.dblite 51 | **/ios/**/.tags* 52 | **/ios/**/.vagrant/ 53 | **/ios/**/DerivedData/ 54 | **/ios/**/Icon? 55 | **/ios/**/Pods/ 56 | **/ios/**/.symlinks/ 57 | **/ios/**/profile 58 | **/ios/**/xcuserdata 59 | **/ios/.generated/ 60 | **/ios/Flutter/App.framework 61 | **/ios/Flutter/Flutter.framework 62 | **/ios/Flutter/Generated.xcconfig 63 | **/ios/Flutter/app.flx 64 | **/ios/Flutter/app.zip 65 | **/ios/Flutter/flutter_assets/ 66 | **/ios/ServiceDefinitions.json 67 | **/ios/Runner/GeneratedPluginRegistrant.* 68 | 69 | # Exceptions to above rules. 70 | !**/ios/**/default.mode1v3 71 | !**/ios/**/default.mode2v3 72 | !**/ios/**/default.pbxuser 73 | !**/ios/**/default.perspectivev3 74 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 75 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | quiz_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/pages/menu/chip_select.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Widget to select difficulty and no. of questions. 3 | /// 4 | 5 | 6 | import 'package:flutter/material.dart'; 7 | 8 | class SelectChip extends StatefulWidget { 9 | final List reportList; 10 | Function update; 11 | String defaultValue; 12 | 13 | SelectChip(this.reportList, this.update, this.defaultValue) { 14 | print(defaultValue); 15 | } 16 | @override 17 | _SelectChipState createState() => _SelectChipState(defaultValue); 18 | } 19 | 20 | class _SelectChipState extends State { 21 | // this function will build and return the choice list 22 | String selectedChoice = ""; 23 | _SelectChipState(this.selectedChoice); //Taking Default Selected Value 24 | 25 | _buildChoiceList() { //Creating List Of Chips For A Given List 26 | List choices = List(); 27 | widget.reportList.forEach((item) { 28 | choices.add(Container( 29 | padding: const EdgeInsets.all(2.0), 30 | child: Transform( // Increasing Size. 31 | transform: new Matrix4.identity()..scale(1.5), 32 | child: ChoiceChip( 33 | label: Text(item), 34 | selected: selectedChoice == item, 35 | onSelected: (selected) { // Selection Changed 36 | setState(() { 37 | selectedChoice = item; 38 | widget.update(selectedChoice); // Update in Parent Widget 39 | }); 40 | }, 41 | ), 42 | ), 43 | )); 44 | }); 45 | return choices; 46 | } 47 | 48 | @override 49 | Widget build(BuildContext context) { 50 | return Flexible( 51 | child: Column( 52 | children: [ 53 | Row( 54 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 55 | children: _buildChoiceList(), 56 | ), 57 | ], 58 | ), 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 11 | 12 | 16 | 23 | 27 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /lib/pages/error/no_ques.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:quiz_app/pages/menu/menu_page.dart'; 3 | 4 | 5 | /// 6 | /// TO display When question are not available 7 | /// 8 | class NoQuesError extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Card( 12 | elevation: 10.0, 13 | shape: RoundedRectangleBorder( 14 | borderRadius: BorderRadius.circular(15.0), 15 | ), 16 | color: Colors.blue, 17 | child: new InkWell( 18 | onTap: () { //Redirect to Menu Page 19 | print("calling Function"); 20 | Navigator.push( 21 | context, 22 | MaterialPageRoute( 23 | builder: (BuildContext context) => MenuPage(), 24 | fullscreenDialog: true, 25 | )); 26 | }, 27 | child: Column( 28 | mainAxisAlignment: MainAxisAlignment.center, 29 | children: [ 30 | Icon( 31 | Icons.error, 32 | color: Colors.yellow, 33 | size: 100, 34 | ), 35 | SizedBox( 36 | height: 20, 37 | ), 38 | Text( 39 | "We Are Getting More Questions, \nPlease Select Different Setings", 40 | textAlign: TextAlign.center, 41 | style: TextStyle( 42 | fontSize: 24, 43 | color: Colors.white, 44 | fontWeight: FontWeight.bold), 45 | ), 46 | SizedBox( 47 | height: 40, 48 | ), 49 | Text( 50 | "Tap To Retry", 51 | textAlign: TextAlign.center, 52 | style: TextStyle( 53 | fontSize: 24, 54 | color: Colors.white, 55 | fontWeight: FontWeight.bold), 56 | ), 57 | ], 58 | ), 59 | ), 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /lib/pages/error/no_connection.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:quiz_app/pages/menu/menu_page.dart'; 3 | 4 | /// TO Display an error page when no internet is available. 5 | /// 6 | /// 7 | class NoConnectionError extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Card( 11 | elevation: 10.0, 12 | shape: RoundedRectangleBorder( 13 | borderRadius: BorderRadius.circular(15.0), 14 | ), 15 | color: Colors.blue, 16 | child: new InkWell( 17 | onTap: () { //Redirect to Menu Page 18 | print("calling Function"); 19 | Navigator.push( 20 | context, 21 | MaterialPageRoute( 22 | builder: (BuildContext context) => MenuPage(), 23 | fullscreenDialog: true, 24 | )); 25 | }, 26 | child: Column( 27 | mainAxisAlignment: MainAxisAlignment.center, 28 | children: [ 29 | Icon( 30 | Icons.error, 31 | color: Colors.yellow, 32 | size: 100, 33 | ), 34 | SizedBox( 35 | height: 20, 36 | ), 37 | Text( 38 | "Can't reach the servers,\n Please check your internet connection", 39 | textAlign: TextAlign.center, 40 | style: TextStyle( 41 | fontSize: 24, 42 | color: Colors.white, 43 | fontWeight: FontWeight.bold), 44 | ), 45 | SizedBox( 46 | height: 40, 47 | ), 48 | Text( 49 | "Tap To Retry", 50 | textAlign: TextAlign.center, 51 | style: TextStyle( 52 | fontSize: 24, 53 | color: Colors.white, 54 | fontWeight: FontWeight.bold), 55 | ), 56 | ], 57 | ), 58 | ), 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | def keystorePropertiesFile = rootProject.file("key.properties") 28 | 29 | def keystoreProperties = new Properties() 30 | 31 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 32 | 33 | android { 34 | compileSdkVersion 28 35 | 36 | lintOptions { 37 | disable 'InvalidPackage' 38 | } 39 | 40 | defaultConfig { 41 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 42 | applicationId "com.rpapps.quiz" 43 | minSdkVersion 16 44 | targetSdkVersion 28 45 | versionCode flutterVersionCode.toInteger() 46 | versionName flutterVersionName 47 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 48 | } 49 | 50 | signingConfigs { 51 | release { 52 | keyAlias keystoreProperties['keyAlias'] 53 | keyPassword keystoreProperties['keyPassword'] 54 | storeFile file(keystoreProperties['storeFile']) 55 | storePassword keystoreProperties['storePassword'] 56 | } 57 | } 58 | buildTypes { 59 | release { 60 | signingConfig signingConfigs.release 61 | } 62 | } 63 | } 64 | 65 | flutter { 66 | source '../..' 67 | } 68 | 69 | dependencies { 70 | testImplementation 'junit:junit:4.12' 71 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 72 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 73 | } 74 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: quiz_app 2 | description: A quiz game made with Flutter. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | flutter_staggered_grid_view: "^0.2.7" 23 | http: "^0.12.0+2" 24 | html_unescape: "^1.0.1+2" 25 | flutter_launcher_icons: "^0.7.1" 26 | 27 | # The following adds the Cupertino Icons font to your application. 28 | # Use with the CupertinoIcons class for iOS style icons. 29 | cupertino_icons: ^0.1.2 30 | 31 | dev_dependencies: 32 | flutter_test: 33 | sdk: flutter 34 | 35 | flutter_icons: 36 | android: true 37 | ios: true 38 | image_path: "assets/icon/icon.png" 39 | 40 | 41 | # For information on the generic Dart part of this file, see the 42 | # following page: https://www.dartlang.org/tools/pub/pubspec 43 | 44 | # The following section is specific to Flutter. 45 | flutter: 46 | 47 | # The following line ensures that the Material Icons font is 48 | # included with your application, so that you can use the icons in 49 | # the material Icons class. 50 | uses-material-design: true 51 | 52 | # To add assets to your application, add an assets section, like this: 53 | # assets: 54 | # - images/a_dot_burr.jpeg 55 | # - images/a_dot_ham.jpeg 56 | 57 | # An image asset can refer to one or more resolution-specific "variants", see 58 | # https://flutter.dev/assets-and-images/#resolution-aware. 59 | 60 | # For details regarding adding assets from package dependencies, see 61 | # https://flutter.dev/assets-and-images/#from-packages 62 | 63 | # To add custom fonts to your application, add a fonts section here, 64 | # in this "flutter" section. Each entry in this list should have a 65 | # "family" key with the font family name, and a "fonts" key with a 66 | # list giving the asset and other descriptors for the font. For 67 | # example: 68 | fonts: 69 | - family: Slabo 70 | fonts: 71 | - asset: assets/fonts/slabo.ttf 72 | - family: LikeDislike 73 | fonts: 74 | - asset: assets/fonts/like_dislike.ttf 75 | 76 | 77 | # For details regarding fonts from package dependencies, 78 | # see https://flutter.dev/custom-fonts/#from-packages 79 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lib/pages/menu/menu_page.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// For Displaying All the Categories of Quiz 3 | /// 4 | 5 | 6 | import 'package:flutter/material.dart'; 7 | import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; 8 | import './menu_option.dart'; 9 | 10 | class MenuPage extends StatefulWidget { 11 | createState() => MenuState(); 12 | } 13 | 14 | class MenuState extends State { 15 | // List of Categories 16 | List categories = [ 17 | {"id": 9, "name": "General Knowledge"}, 18 | {"id": 10, "name": "Books"}, 19 | {"id": 11, "name": "Film"}, 20 | {"id": 12, "name": "Music"}, 21 | {"id": 13, "name": "Musicals & Theatres"}, 22 | {"id": 14, "name": "Television"}, 23 | {"id": 15, "name": "Video Games"}, 24 | {"id": 16, "name": "Board Games"}, 25 | {"id": 17, "name": "Science & Nature"}, 26 | {"id": 18, "name": "Computers"}, 27 | {"id": 19, "name": "Mathematics"}, 28 | {"id": 20, "name": "Mythology"}, 29 | {"id": 21, "name": "Sports"}, 30 | {"id": 22, "name": "Geography"}, 31 | {"id": 23, "name": "History"}, 32 | {"id": 24, "name": "Politics"}, 33 | {"id": 25, "name": "Art"}, 34 | {"id": 26, "name": "Celebrities"}, 35 | {"id": 27, "name": "Animals"}, 36 | {"id": 28, "name": "Vehicles"}, 37 | {"id": 29, "name": "Comics"}, 38 | {"id": 30, "name": "Gadgets"}, 39 | {"id": 31, "name": "Japanese Anime & Manga"}, 40 | {"id": 32, "name": "Cartoon & Animations"} 41 | ]; 42 | List tileColors = [ 43 | Colors.green, 44 | Colors.blue, 45 | Colors.purple, 46 | Colors.pink, 47 | Colors.indigo, 48 | Colors.lightBlue, 49 | Colors.amber, 50 | Colors.deepOrange, 51 | Colors.red, 52 | Colors.brown 53 | ]; // Colors for tiles 54 | @override 55 | Widget build(BuildContext context) { 56 | return Scaffold( 57 | body: Padding( 58 | padding: const EdgeInsets.only(top: 12.0), 59 | child: StaggeredGridView.countBuilder( 60 | crossAxisCount: 4, // Total cross axis Columns 61 | itemCount: categories.length, 62 | itemBuilder: (BuildContext context, int index) => new Tile( 63 | // Choosing Random Colour 64 | (tileColors..shuffle()).first, categories[index]["name"], categories[index]["id"]), 65 | staggeredTileBuilder: (int index) { 66 | int tileHeight = 3; //Deciding Height of Tiles 67 | if (index == categories.length - 1 || index == 0) { 68 | tileHeight = 2; 69 | } 70 | return StaggeredTile.count(2, tileHeight); // Width and Height of TIle 71 | }, 72 | mainAxisSpacing: 4.0, 73 | crossAxisSpacing: 4.0, 74 | )), 75 | ); 76 | } 77 | } 78 | 79 | class Tile extends StatelessWidget { 80 | const Tile(this.backgroundColor, this.category, this.id); 81 | 82 | // Data for Tiles 83 | final Color backgroundColor; 84 | final String category; 85 | final int id; 86 | 87 | @override 88 | Widget build(BuildContext context) { 89 | return new Card( 90 | elevation: 10.0, 91 | shape: RoundedRectangleBorder( 92 | borderRadius: BorderRadius.circular(15.0), 93 | ), 94 | color: backgroundColor, 95 | child: new InkWell( // For Touch Events 96 | onTap: () { 97 | Navigator.push( // Navigate to Options Page for Difficulty selection. 98 | context, 99 | MaterialPageRoute( 100 | builder: (BuildContext context) => OptionPage(category,id), 101 | fullscreenDialog: true, 102 | )); 103 | }, 104 | child: Center( 105 | child: Text( 106 | category, 107 | textAlign: TextAlign.center, 108 | style: TextStyle( 109 | fontSize: 24, color: Colors.white, fontWeight: FontWeight.bold), 110 | ), 111 | ), 112 | ), 113 | ); 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /lib/pages/quiz/quiz_page.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// The quiz page with list of questions and storing score. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'quiz_format.dart'; 7 | import '../result/result_page.dart'; 8 | import '../menu/menu_page.dart'; 9 | 10 | class QuizPage extends StatefulWidget { 11 | List questions; 12 | QuizPage(this.questions) { 13 | for (Map ques in questions) { 14 | List temp = []; 15 | temp.addAll(ques["incorrect_answers"]); 16 | temp.add(ques["correct_answer"]); 17 | temp.shuffle(); 18 | ques.putIfAbsent("options", () => temp); 19 | } 20 | } 21 | 22 | int index = 0; // index of question in list 23 | double score = 0.0; // for Storing Score 24 | int correctAnswers = 0; // No. of Correct Answers 25 | 26 | int incorrectAnswers = 0; // No. of Incorrect Answers 27 | createState() => QuizState(); 28 | } 29 | 30 | class QuizState extends State with AutomaticKeepAliveClientMixin { 31 | Future _onWillPop() { // on pressed Back button 32 | return showDialog( 33 | context: context, 34 | builder: (context) => new AlertDialog( 35 | title: new Text('Are you sure?'), 36 | content: new Text('Do you want to quit the Quiz?'), 37 | actions: [ 38 | new FlatButton( 39 | onPressed: () { // no Action 40 | Navigator.pop(context); 41 | }, 42 | child: new Text('No'), 43 | ), 44 | new FlatButton( 45 | onPressed: () { // NAvigating Back to The Menu Page 46 | Navigator.pop(context); 47 | Navigator.of(context).pushReplacement(MaterialPageRoute( 48 | builder: (BuildContext context) => MenuPage())); 49 | }, 50 | child: new Text('Yes'), 51 | ), 52 | ], 53 | ), 54 | ) ?? 55 | false; 56 | } 57 | 58 | @override 59 | Widget build(BuildContext context) { 60 | return WillPopScope( //Wrapping for listening back button 61 | onWillPop: _onWillPop, 62 | child: Scaffold( 63 | backgroundColor: Color(0xFF363333), 64 | body: Column( 65 | children: [ 66 | SizedBox( 67 | height: 20, 68 | ), 69 | Container( 70 | margin: EdgeInsets.only(left: 10, right: 10), 71 | child: Row( 72 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 73 | children: [ 74 | Text( // Displaing Question number 75 | ' QUESTION ' + 76 | (widget.index + 1).toString() + 77 | ' / ' + 78 | (widget.questions.length).toString(), 79 | style: TextStyle( 80 | color: Colors.white, 81 | fontSize: 18.0, 82 | ), 83 | ), 84 | Text( 85 | "Score:" + widget.score.toInt().toString(), // TO display Score 86 | style: TextStyle( 87 | color: Colors.white, 88 | fontSize: 18.0, 89 | ), 90 | ), 91 | ], 92 | ), 93 | ), 94 | // Child widget for Displaying questions and options 95 | Flexible(child: QuizFormat(widget.questions[widget.index], update)), 96 | ], 97 | ), 98 | ), 99 | ); 100 | } 101 | // Updating the score and number of correct, incorrect answers 102 | update(double scoreUpdate) { 103 | if (scoreUpdate == 100.0) { 104 | widget.correctAnswers++; 105 | } else { 106 | widget.incorrectAnswers++; 107 | } 108 | 109 | setState( 110 | () { 111 | if (widget.index < widget.questions.length - 1) { // if Still questions in list 112 | widget.index += 1; 113 | widget.score += scoreUpdate; 114 | } else { // Questions over 115 | Navigator.pushReplacement( 116 | context, 117 | MaterialPageRoute( 118 | builder: (BuildContext context) => ResultPage({ 119 | 'score': widget.score, 120 | 'correct': widget.correctAnswers, 121 | 'incorrect': widget.incorrectAnswers 122 | }), 123 | ), 124 | ); 125 | } 126 | }, 127 | ); 128 | } 129 | 130 | @override 131 | bool get wantKeepAlive => true; 132 | } 133 | -------------------------------------------------------------------------------- /lib/pages/quiz/quiz_format.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Widget For Displaying Questions and options. 3 | /// 4 | 5 | import 'dart:async'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:html_unescape/html_unescape.dart'; 8 | 9 | class QuizFormat extends StatefulWidget { 10 | Map question; 11 | Function update; 12 | QuizFormat(this.question, this.update); 13 | 14 | List buttonClicked = [ // List to keep track of ["is button Pressed", The colour of button After pressed] 15 | [false, Colors.red[300]], 16 | [false, Colors.red[300]], 17 | [false, Colors.red[300]], 18 | [false, Colors.red[300]], 19 | ]; 20 | @override 21 | State createState() { 22 | return QuizState(); 23 | } 24 | } 25 | 26 | class QuizState extends State { 27 | @override 28 | Widget build(BuildContext context) { 29 | return Column( 30 | children: [ 31 | SizedBox( 32 | height: 20, 33 | ), 34 | _question(widget.question["question"]), 35 | Flexible( 36 | child: Container(), 37 | ), 38 | _optionButton( 39 | widget.question["options"][0], 40 | widget.buttonClicked[0][0] 41 | ? widget.buttonClicked[0][1] 42 | : Colors.white, 43 | 0), 44 | _optionButton( 45 | widget.question["options"][1], 46 | widget.buttonClicked[1][0] 47 | ? widget.buttonClicked[1][1] 48 | : Colors.white, 49 | 1), 50 | _optionButton( 51 | widget.question["options"][2], 52 | widget.buttonClicked[2][0] 53 | ? widget.buttonClicked[2][1] 54 | : Colors.white, 55 | 2), 56 | _optionButton( 57 | widget.question["options"][3], 58 | widget.buttonClicked[3][0] 59 | ? widget.buttonClicked[3][1] 60 | : Colors.white, 61 | 3), 62 | ], 63 | ); 64 | } 65 | 66 | _question(String ques) { 67 | return Container( 68 | margin: EdgeInsets.only(top: 20, bottom: 20, left: 10, right: 10), 69 | child: Text( 70 | HtmlUnescape().convert(ques), // To create " sign 71 | style: TextStyle( 72 | color: Colors.white, 73 | fontSize: 28.0, 74 | fontWeight: FontWeight.w500, 75 | ), 76 | textAlign: TextAlign.center, 77 | ), 78 | ); 79 | } 80 | 81 | _optionButton(optionValue, buttonColor, buttonNo) { 82 | buttonPressed() { 83 | { 84 | if (optionValue == widget.question["correct_answer"]) { // Check if Answer was right 85 | setState(() { 86 | widget.buttonClicked[buttonNo][0] = true; // Set button is clicked 87 | 88 | widget.buttonClicked[buttonNo][1] = Colors.green[300]; // Change correct option to Green colour 89 | }); 90 | 91 | double tempScoreCalc = 0.0; //for score calculation 92 | for (var item in widget.buttonClicked) { 93 | if (item[0] == false) { // check how may buttons were pressed 94 | tempScoreCalc += 25.0; // if only one button is pressed then score will be 100, i.e. only correct option was selected 95 | } 96 | } 97 | tempScoreCalc += 25.0; 98 | Future.delayed(const Duration(milliseconds: 500), // delay of half second so that user can see the right option 99 | () => widget.update(tempScoreCalc)); //updating the score and question in parent widget 100 | 101 | // Wrong Option Selected 102 | } else { 103 | setState(() { 104 | widget.buttonClicked[buttonNo][0] = true; //Set button pressed and color will be red 105 | }); 106 | } 107 | } 108 | } 109 | 110 | return Row( // Option Button Widget 111 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 112 | children: [ 113 | Expanded( 114 | child: Container( 115 | padding: EdgeInsets.all(5), 116 | margin: EdgeInsets.only(left: 10, right: 10), 117 | child: RaisedButton( 118 | child: Text( 119 | HtmlUnescape().convert(optionValue), 120 | style: TextStyle(color: Color(0xFF333333), fontSize: 24.0), 121 | textAlign: TextAlign.center, 122 | ), 123 | elevation: 4.0, 124 | color: buttonColor, 125 | splashColor: Colors.white70, 126 | shape: RoundedRectangleBorder( 127 | borderRadius: new BorderRadius.circular(6.0), 128 | ), 129 | onPressed: buttonPressed), 130 | ), 131 | ), 132 | ], 133 | ); 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /lib/pages/result/result_page.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// To display the Score or result 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | import '../../like_dislike_icon.dart'; 7 | import '../menu/menu_page.dart'; 8 | 9 | class ResultPage extends StatefulWidget { 10 | Map data; 11 | 12 | ResultPage(this.data); 13 | createState() => ResultState(); 14 | } 15 | 16 | class ResultState extends State { 17 | 18 | Future _onWillPop() { // to check for exit on back button press 19 | return showDialog( 20 | context: context, 21 | builder: (context) => new AlertDialog( 22 | title: new Text('Are you sure?'), 23 | content: new Text('Do you want to quit?'), 24 | actions: [ 25 | new FlatButton( 26 | onPressed: () { 27 | Navigator.pop(context); 28 | }, 29 | child: new Text('No'), 30 | ), 31 | new FlatButton( 32 | onPressed: () { 33 | Navigator.pop(context); 34 | Navigator.of(context).pushReplacement(MaterialPageRoute( 35 | builder: (BuildContext context) => MenuPage())); 36 | }, 37 | child: new Text('Yes'), 38 | ), 39 | ], 40 | ), 41 | ) ?? 42 | false; 43 | } 44 | @override 45 | Widget build(BuildContext context) { 46 | return WillPopScope( 47 | onWillPop: _onWillPop, 48 | child: Scaffold( 49 | body: Column( 50 | children: [ 51 | SizedBox( 52 | height: 40, 53 | ), 54 | // Display Score 55 | Text("Score: " + widget.data["score"].toInt().toString(), 56 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 40, color: Color(0xFF333333))), 57 | SizedBox( 58 | height: 40, 59 | ), 60 | 61 | // Display Correct and incorrect no. of questions 62 | Row( 63 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 64 | children: [ 65 | Column( 66 | children: [ 67 | Icon(LikeDislike.thumbs_up_alt, 68 | color: Colors.greenAccent, size: 80), 69 | Text( 70 | "RIGHT", 71 | style: TextStyle( 72 | color: Colors.grey, fontWeight: FontWeight.bold), 73 | ), 74 | Text( 75 | widget.data["correct"].toString(), 76 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30,color: Color(0xFF333333)), 77 | ), 78 | ], 79 | ), 80 | Container( 81 | height: 100.0, 82 | width: 1.0, 83 | color: Colors.grey, 84 | margin: const EdgeInsets.only(left: 10.0, right: 10.0), 85 | ), 86 | Column( 87 | children: [ 88 | Icon(LikeDislike.thumbs_down_alt, 89 | color: Colors.redAccent, size: 80), 90 | Text( 91 | "WRONG", 92 | style: TextStyle( 93 | color: Colors.grey, fontWeight: FontWeight.bold), 94 | ), 95 | Text(widget.data["incorrect"].toString(), 96 | style: 97 | TextStyle(fontWeight: FontWeight.bold, fontSize: 30, color: Color(0xFF333333))), 98 | ], 99 | ) 100 | ], 101 | ), 102 | Row( 103 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 104 | children: [], 105 | ), 106 | Row( 107 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 108 | children: [], 109 | ), 110 | Flexible(child: Container(),), 111 | 112 | // Play again, NAvigate to Menu Page 113 | _optionButton("Play Again", Colors.green[300]), 114 | SizedBox(height: 40,) 115 | ], 116 | ), 117 | ),); 118 | } 119 | 120 | _optionButton(optionValue, buttonColor) { // button Widget 121 | buttonPressed() { 122 | Navigator.pushReplacement(context, MaterialPageRoute(builder: (BuildContext context)=> MenuPage())); 123 | } 124 | 125 | return Row( 126 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 127 | children: [ 128 | Expanded( 129 | child: Container( 130 | padding: EdgeInsets.all(5), 131 | margin: EdgeInsets.only(left: 10, right: 10), 132 | child: RaisedButton( 133 | child: Text( 134 | optionValue, 135 | style: TextStyle(color: Colors.white, fontSize: 24.0), 136 | textAlign: TextAlign.center, 137 | ), 138 | elevation: 4.0, 139 | color: buttonColor, 140 | splashColor: Colors.white70, 141 | shape: RoundedRectangleBorder( 142 | borderRadius: new BorderRadius.circular(6.0), 143 | ), 144 | onPressed: buttonPressed), 145 | ), 146 | ), 147 | ], 148 | ); 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /lib/pages/menu/menu_option.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'dart:io'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter/widgets.dart'; 5 | import 'package:http/http.dart' as http; 6 | import 'package:quiz_app/pages/error/no_connection.dart'; 7 | import '../quiz/quiz_page.dart'; 8 | import './chip_select.dart'; 9 | import '../error/no_ques.dart'; 10 | 11 | class OptionPage extends StatefulWidget { 12 | String category = "General Knowledge"; /// Defualt Values 13 | int id = 9; 14 | OptionPage(this.category, this.id); 15 | createState() => OptionState(); 16 | } 17 | 18 | class OptionState extends State { 19 | String difficulty = 'easy'; /// Defualt Values 20 | String noOfQues = '10'; 21 | changeDifficulty(String diff) { /// For Selection of Settings 22 | difficulty = diff.toLowerCase(); 23 | print(difficulty); 24 | } 25 | 26 | changeNoOfQues(String newNoOfQues) { /// For Selection of Settings 27 | noOfQues = newNoOfQues; 28 | print(noOfQues); 29 | } 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | return Scaffold( 34 | appBar: AppBar( 35 | title: Text( 36 | widget.category, 37 | style: TextStyle( 38 | fontSize: 24.0, 39 | color: Colors.white, 40 | fontWeight: FontWeight.w500), 41 | ), 42 | leading: IconButton( // Closing Button For Page 43 | icon: Icon(Icons.close), 44 | onPressed: () => Navigator.pop(context), 45 | )), 46 | body: Column( 47 | mainAxisAlignment: MainAxisAlignment.center, 48 | crossAxisAlignment: CrossAxisAlignment.center, 49 | children: [ 50 | SizedBox( 51 | height: 50, 52 | ), 53 | 54 | SizedBox( 55 | height: 50, 56 | ), 57 | Text( // No. of Question Selection 58 | 'Number of questions', 59 | style: TextStyle(fontSize: 30.0, color: Color(0xFF333333)), 60 | ), 61 | SelectChip(['10', '20', '30', '40', '50'], changeNoOfQues, "10"), 62 | Text( 63 | 'Difficulty', 64 | style: TextStyle(fontSize: 30.0, color: Color(0xFF333333)), 65 | ), 66 | SelectChip(['Easy', 'Medium', 'Hard'], changeDifficulty, "Easy"), // Difficulty Selection 67 | Builder( 68 | builder: (context) => 69 | _optionButton("Star Quiz", Colors.green[300], context), 70 | ) 71 | ], 72 | ), 73 | ); 74 | } 75 | 76 | _optionButton(optionValue, buttonColor, BuildContext context) { 77 | fetchData(String url, bool defaultRequest) async { // For retriving Quiz in Json Form 78 | final response = await http.get(url); 79 | if (response.statusCode == 200) { 80 | List result = json.decode(response.body)["results"]; 81 | if (result.length == 0 && defaultRequest == true) { // If not enough questions at particular difficulty 82 | // then request ques from all difficulty levels. 83 | Navigator.pushReplacement( 84 | context, MaterialPageRoute(builder: (context) => NoQuesError())); 85 | } else if (result.length == 0 && defaultRequest == false) { // requesting questions for given settings 86 | String defaultUrl = "https://opentdb.com/api.php?amount=" + 87 | noOfQues.toString().toLowerCase() + 88 | "&category=" + 89 | widget.id.toString() + 90 | "&type=multiple"; //Creating Default request URL 91 | fetchData(defaultUrl, true); 92 | return; 93 | } else { 94 | Navigator.pushReplacement(context, 95 | MaterialPageRoute(builder: (context) => QuizPage(result))); // Pass Data to Quiz Page 96 | } 97 | } else { 98 | // If that response was not OK, throw an error. 99 | throw Exception('Failed to load post'); 100 | } 101 | } 102 | 103 | request(BuildContext context, String noOfQues, String difficulty) async { 104 | final snackBar = SnackBar( //To show loading sign while quiz is fetched from API 105 | content: Text('Loading...'), 106 | duration: Duration(minutes: 1), 107 | ); 108 | Scaffold.of(context).showSnackBar(snackBar); 109 | 110 | print("REquesting"); 111 | var url = "https://opentdb.com/api.php?amount=" + 112 | noOfQues.toString().toLowerCase() + 113 | "&category=" + 114 | widget.id.toString() + 115 | "&difficulty=" + 116 | difficulty.toLowerCase() + 117 | "&type=multiple"; 118 | print(url); 119 | try { //Check Connectivity with API 120 | final result = await InternetAddress.lookup('opentdb.com'); 121 | if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) { 122 | print('connected'); 123 | } 124 | } on SocketException catch (_) { 125 | Navigator.pushReplacement(context, 126 | MaterialPageRoute(builder: (context) => NoConnectionError())); 127 | } 128 | fetchData(url, false); 129 | } 130 | 131 | buttonPressed() { 132 | request(context, noOfQues, difficulty); //Create URL and fetch Data 133 | } 134 | 135 | return Row( 136 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 137 | children: [ 138 | Expanded( 139 | child: Container( 140 | padding: EdgeInsets.all(5), 141 | margin: EdgeInsets.only(left: 10, right: 10), 142 | child: RaisedButton( 143 | child: Text( 144 | optionValue, 145 | style: TextStyle(color: Colors.white, fontSize: 24.0), 146 | textAlign: TextAlign.center, 147 | ), 148 | elevation: 4.0, 149 | color: buttonColor, 150 | splashColor: Colors.white70, 151 | shape: RoundedRectangleBorder( 152 | borderRadius: new BorderRadius.circular(6.0), 153 | ), 154 | onPressed: buttonPressed), 155 | ), 156 | ), 157 | ], 158 | ); 159 | } 160 | } 161 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.9" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.1" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.1.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.4" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.0.6" 60 | cupertino_icons: 61 | dependency: "direct main" 62 | description: 63 | name: cupertino_icons 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.1.2" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_launcher_icons: 73 | dependency: "direct main" 74 | description: 75 | name: flutter_launcher_icons 76 | url: "https://pub.dartlang.org" 77 | source: hosted 78 | version: "0.7.1" 79 | flutter_staggered_grid_view: 80 | dependency: "direct main" 81 | description: 82 | name: flutter_staggered_grid_view 83 | url: "https://pub.dartlang.org" 84 | source: hosted 85 | version: "0.2.7" 86 | flutter_test: 87 | dependency: "direct dev" 88 | description: flutter 89 | source: sdk 90 | version: "0.0.0" 91 | html_unescape: 92 | dependency: "direct main" 93 | description: 94 | name: html_unescape 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.0.1+2" 98 | http: 99 | dependency: "direct main" 100 | description: 101 | name: http 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "0.12.0+2" 105 | http_parser: 106 | dependency: transitive 107 | description: 108 | name: http_parser 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "3.1.3" 112 | image: 113 | dependency: transitive 114 | description: 115 | name: image 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.1.1" 119 | matcher: 120 | dependency: transitive 121 | description: 122 | name: matcher 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "0.12.5" 126 | meta: 127 | dependency: transitive 128 | description: 129 | name: meta 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "1.1.6" 133 | path: 134 | dependency: transitive 135 | description: 136 | name: path 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "1.6.2" 140 | pedantic: 141 | dependency: transitive 142 | description: 143 | name: pedantic 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "1.5.0" 147 | petitparser: 148 | dependency: transitive 149 | description: 150 | name: petitparser 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "2.2.1" 154 | quiver: 155 | dependency: transitive 156 | description: 157 | name: quiver 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "2.0.2" 161 | sky_engine: 162 | dependency: transitive 163 | description: flutter 164 | source: sdk 165 | version: "0.0.99" 166 | source_span: 167 | dependency: transitive 168 | description: 169 | name: source_span 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.5.5" 173 | stack_trace: 174 | dependency: transitive 175 | description: 176 | name: stack_trace 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "1.9.3" 180 | stream_channel: 181 | dependency: transitive 182 | description: 183 | name: stream_channel 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "2.0.0" 187 | string_scanner: 188 | dependency: transitive 189 | description: 190 | name: string_scanner 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "1.0.4" 194 | term_glyph: 195 | dependency: transitive 196 | description: 197 | name: term_glyph 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "1.1.0" 201 | test_api: 202 | dependency: transitive 203 | description: 204 | name: test_api 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "0.2.4" 208 | typed_data: 209 | dependency: transitive 210 | description: 211 | name: typed_data 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.1.6" 215 | vector_math: 216 | dependency: transitive 217 | description: 218 | name: vector_math 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "2.0.8" 222 | xml: 223 | dependency: transitive 224 | description: 225 | name: xml 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "3.4.1" 229 | yaml: 230 | dependency: transitive 231 | description: 232 | name: yaml 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "2.1.15" 236 | sdks: 237 | dart: ">=2.2.0 <3.0.0" 238 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 97C146EF1CF9000F007C117D /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146EE1CF9000F007C117D /* Runner.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 97C146F01CF9000F007C117D /* Runner */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 107 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 110 | 97C147021CF9000F007C117D /* Info.plist */, 111 | 97C146F11CF9000F007C117D /* Supporting Files */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146F21CF9000F007C117D /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 97C146ED1CF9000F007C117D /* Runner */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 132 | buildPhases = ( 133 | 9740EEB61CF901F6004384FC /* Run Script */, 134 | 97C146EA1CF9000F007C117D /* Sources */, 135 | 97C146EB1CF9000F007C117D /* Frameworks */, 136 | 97C146EC1CF9000F007C117D /* Resources */, 137 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Runner; 145 | productName = Runner; 146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 97C146E61CF9000F007C117D /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastUpgradeCheck = 0910; 156 | ORGANIZATIONNAME = "The Chromium Authors"; 157 | TargetAttributes = { 158 | 97C146ED1CF9000F007C117D = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = English; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = 97C146E51CF9000F007C117D; 172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | 97C146ED1CF9000F007C117D /* Runner */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 97C146EC1CF9000F007C117D /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Thin Binary"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 210 | }; 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Run Script"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 224 | }; 225 | /* End PBXShellScriptBuildPhase section */ 226 | 227 | /* Begin PBXSourcesBuildPhase section */ 228 | 97C146EA1CF9000F007C117D /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 233 | 97C146F31CF9000F007C117D /* main.m in Sources */, 234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | 97C146FB1CF9000F007C117D /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 97C147001CF9000F007C117D /* Base */, 253 | ); 254 | name = LaunchScreen.storyboard; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXVariantGroup section */ 258 | 259 | /* Begin XCBuildConfiguration section */ 260 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 263 | buildSettings = { 264 | ALWAYS_SEARCH_USER_PATHS = NO; 265 | CLANG_ANALYZER_NONNULL = YES; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 275 | CLANG_WARN_EMPTY_BODY = YES; 276 | CLANG_WARN_ENUM_CONVERSION = YES; 277 | CLANG_WARN_INFINITE_RECURSION = YES; 278 | CLANG_WARN_INT_CONVERSION = YES; 279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 283 | CLANG_WARN_STRICT_PROTOTYPES = YES; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | VALIDATE_PRODUCT = YES; 305 | }; 306 | name = Profile; 307 | }; 308 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 309 | isa = XCBuildConfiguration; 310 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 311 | buildSettings = { 312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 313 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 314 | DEVELOPMENT_TEAM = S8QB4VV633; 315 | ENABLE_BITCODE = NO; 316 | FRAMEWORK_SEARCH_PATHS = ( 317 | "$(inherited)", 318 | "$(PROJECT_DIR)/Flutter", 319 | ); 320 | INFOPLIST_FILE = Runner/Info.plist; 321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 322 | LIBRARY_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "$(PROJECT_DIR)/Flutter", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = com.example.quizApp; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | VERSIONING_SYSTEM = "apple-generic"; 329 | }; 330 | name = Profile; 331 | }; 332 | 97C147031CF9000F007C117D /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 354 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 355 | CLANG_WARN_STRICT_PROTOTYPES = YES; 356 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 357 | CLANG_WARN_UNREACHABLE_CODE = YES; 358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 360 | COPY_PHASE_STRIP = NO; 361 | DEBUG_INFORMATION_FORMAT = dwarf; 362 | ENABLE_STRICT_OBJC_MSGSEND = YES; 363 | ENABLE_TESTABILITY = YES; 364 | GCC_C_LANGUAGE_STANDARD = gnu99; 365 | GCC_DYNAMIC_NO_PIC = NO; 366 | GCC_NO_COMMON_BLOCKS = YES; 367 | GCC_OPTIMIZATION_LEVEL = 0; 368 | GCC_PREPROCESSOR_DEFINITIONS = ( 369 | "DEBUG=1", 370 | "$(inherited)", 371 | ); 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 379 | MTL_ENABLE_DEBUG_INFO = YES; 380 | ONLY_ACTIVE_ARCH = YES; 381 | SDKROOT = iphoneos; 382 | TARGETED_DEVICE_FAMILY = "1,2"; 383 | }; 384 | name = Debug; 385 | }; 386 | 97C147041CF9000F007C117D /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 389 | buildSettings = { 390 | ALWAYS_SEARCH_USER_PATHS = NO; 391 | CLANG_ANALYZER_NONNULL = YES; 392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 393 | CLANG_CXX_LIBRARY = "libc++"; 394 | CLANG_ENABLE_MODULES = YES; 395 | CLANG_ENABLE_OBJC_ARC = YES; 396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 397 | CLANG_WARN_BOOL_CONVERSION = YES; 398 | CLANG_WARN_COMMA = YES; 399 | CLANG_WARN_CONSTANT_CONVERSION = YES; 400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 401 | CLANG_WARN_EMPTY_BODY = YES; 402 | CLANG_WARN_ENUM_CONVERSION = YES; 403 | CLANG_WARN_INFINITE_RECURSION = YES; 404 | CLANG_WARN_INT_CONVERSION = YES; 405 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 406 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 407 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 408 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 409 | CLANG_WARN_STRICT_PROTOTYPES = YES; 410 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 411 | CLANG_WARN_UNREACHABLE_CODE = YES; 412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 414 | COPY_PHASE_STRIP = NO; 415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 416 | ENABLE_NS_ASSERTIONS = NO; 417 | ENABLE_STRICT_OBJC_MSGSEND = YES; 418 | GCC_C_LANGUAGE_STANDARD = gnu99; 419 | GCC_NO_COMMON_BLOCKS = YES; 420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 422 | GCC_WARN_UNDECLARED_SELECTOR = YES; 423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 424 | GCC_WARN_UNUSED_FUNCTION = YES; 425 | GCC_WARN_UNUSED_VARIABLE = YES; 426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 427 | MTL_ENABLE_DEBUG_INFO = NO; 428 | SDKROOT = iphoneos; 429 | TARGETED_DEVICE_FAMILY = "1,2"; 430 | VALIDATE_PRODUCT = YES; 431 | }; 432 | name = Release; 433 | }; 434 | 97C147061CF9000F007C117D /* Debug */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 440 | ENABLE_BITCODE = NO; 441 | FRAMEWORK_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "$(PROJECT_DIR)/Flutter", 444 | ); 445 | INFOPLIST_FILE = Runner/Info.plist; 446 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 447 | LIBRARY_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | PRODUCT_BUNDLE_IDENTIFIER = com.example.quizApp; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | VERSIONING_SYSTEM = "apple-generic"; 454 | }; 455 | name = Debug; 456 | }; 457 | 97C147071CF9000F007C117D /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 460 | buildSettings = { 461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 462 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 463 | ENABLE_BITCODE = NO; 464 | FRAMEWORK_SEARCH_PATHS = ( 465 | "$(inherited)", 466 | "$(PROJECT_DIR)/Flutter", 467 | ); 468 | INFOPLIST_FILE = Runner/Info.plist; 469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 470 | LIBRARY_SEARCH_PATHS = ( 471 | "$(inherited)", 472 | "$(PROJECT_DIR)/Flutter", 473 | ); 474 | PRODUCT_BUNDLE_IDENTIFIER = com.example.quizApp; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | VERSIONING_SYSTEM = "apple-generic"; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 97C147031CF9000F007C117D /* Debug */, 487 | 97C147041CF9000F007C117D /* Release */, 488 | 249021D3217E4FDB00AE95B9 /* Profile */, 489 | ); 490 | defaultConfigurationIsVisible = 0; 491 | defaultConfigurationName = Release; 492 | }; 493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 97C147061CF9000F007C117D /* Debug */, 497 | 97C147071CF9000F007C117D /* Release */, 498 | 249021D4217E4FDB00AE95B9 /* Profile */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | defaultConfigurationName = Release; 502 | }; 503 | /* End XCConfigurationList section */ 504 | }; 505 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 506 | } 507 | --------------------------------------------------------------------------------