diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9d532b1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,41 @@
+# 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/
+**/ios/Flutter/.last_build_id
+.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
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..24544cb
--- /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: 84f3d28555368a70270e9ac8390a9441df95e752
+ channel: stable
+
+project_type: app
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..59714c3
--- /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": "bharat_mystery",
+ "request": "launch",
+ "type": "dart"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ea02467
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# bharat_mystery
+
+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..0a741cb
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,11 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..46607b3
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,65 @@
+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 29
+
+ 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.bharat_mystery"
+ minSdkVersion 21
+ targetSdkVersion 29
+ 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"
+
+}
+apply plugin: 'com.google.gms.google-services'
diff --git a/android/app/google-services.json b/android/app/google-services.json
new file mode 100644
index 0000000..a309f86
--- /dev/null
+++ b/android/app/google-services.json
@@ -0,0 +1,39 @@
+{
+ "project_info": {
+ "project_number": "539587749552",
+ "project_id": "toycathon-talking-toy",
+ "storage_bucket": "toycathon-talking-toy.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:539587749552:android:df783f7d79e359be66bd75",
+ "android_client_info": {
+ "package_name": "com.example.bharat_mystery"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "539587749552-tgjtnfsabtneb7a4g2gsc78826pvmii3.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyC5F2yia0PyFeTS75Ers5F5GyzVDNE9hNk"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "539587749552-tgjtnfsabtneb7a4g2gsc78826pvmii3.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..3f1a0cd
--- /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..5f80a91
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/bharat_mystery/MainActivity.kt b/android/app/src/main/kotlin/com/example/bharat_mystery/MainActivity.kt
new file mode 100644
index 0000000..ed37347
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/bharat_mystery/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.bharat_mystery
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
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..448ff1e
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ -
+
+
+
diff --git a/android/app/src/main/res/drawable/logo_bm.png b/android/app/src/main/res/drawable/logo_bm.png
new file mode 100644
index 0000000..23c8a66
Binary files /dev/null and b/android/app/src/main/res/drawable/logo_bm.png differ
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..d015318
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-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..403213c
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-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..85bf2e7
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-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..0a3ba3f
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-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..6de1903
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/values/colors.xml b/android/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..b153392
--- /dev/null
+++ b/android/app/src/main/res/values/colors.xml
@@ -0,0 +1,4 @@
+
+
+ #FFFFFF
+
\ No newline at end of file
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..3f1a0cd
--- /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..f716ae7
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,32 @@
+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"
+ classpath 'com.google.gms:google-services:4.3.3' // new
+ }
+}
+
+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..a673820
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,4 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
+android.enableR8=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..44e62bc
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,11 @@
+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/fonts/LexendDeca-Regular.ttf b/fonts/LexendDeca-Regular.ttf
new file mode 100644
index 0000000..6b42154
Binary files /dev/null and b/fonts/LexendDeca-Regular.ttf differ
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..f2872cf
--- /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
+ 9.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..de68c68
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,495 @@
+// !$*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 */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ 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;
+ 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 = 9.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.bharatMystery;
+ 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;
+ 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 = 9.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ 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 = 9.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.bharatMystery;
+ 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.bharatMystery;
+ 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..dc9ada4
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..28c6bf0
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..2ccbfd9
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..f091b6b
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..4cde121
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..d0ef06e
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..dcdc230
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..2ccbfd9
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..c8f9ed8
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..a6d6b86
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-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..a6d6b86
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..75b2d16
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-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..c4df70d
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..6a84f41
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..d0e1f58
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..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
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/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..e7dc162
--- /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
+ bharat_mystery
+ 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/main.dart b/lib/main.dart
new file mode 100644
index 0000000..5edb603
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,63 @@
+import 'package:bharat_mystery/screens/homepage.dart';
+import 'package:bharat_mystery/screens/selectMonument.dart';
+import 'package:bharat_mystery/screens/theme_provider.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'screens/login.dart';
+import 'screens/forgot.dart';
+import 'screens/register.dart';
+import 'screens/auth_screen.dart';
+import 'package:firebase_core/firebase_core.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:provider/provider.dart';
+
+// ignore: avoid_init_to_null
+String uid = null;
+void main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp();
+ final prefs = await SharedPreferences.getInstance();
+ uid = prefs.getString('GLOBAL_USER_DATA');
+ runApp(MyApp());
+}
+
+class MyApp extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitDown,
+ DeviceOrientation.portraitUp,
+ ]);
+ return ChangeNotifierProvider(
+ create: (_) => ThemeNotifier(),
+ child: Consumer(
+ builder: (context, ThemeNotifier notifier, child) {
+ return MaterialApp(
+ title: "Bharat Mystery",
+ theme: notifier.darkTheme ? dark : light,
+ initialRoute: '/',
+ routes: {
+ '/': (_) => Wrapper(),
+ '/login-page': (_) => LoginPage(),
+ '/auth-screen': (_) => AuthScreen(),
+ '/register-page': (_) => RegisterPage(),
+ '/home-page': (_) => HomePage(),
+ '/forgot-password-page': (_) => ForgotPage(),
+ '/select-monument': (_) => SelectMonument()
+ });
+ },
+ ),
+ );
+ }
+}
+
+class Wrapper extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ //On App start, if user logged in, show HomePage page, else show AuthScreen
+ if (uid != null) {
+ return HomePage();
+ }
+ return AuthScreen();
+ }
+}
diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart
new file mode 100644
index 0000000..d7e0815
--- /dev/null
+++ b/lib/screens/auth_screen.dart
@@ -0,0 +1,154 @@
+import 'package:bharat_mystery/screens/login.dart';
+import 'package:bharat_mystery/screens/register.dart';
+import 'package:flutter/material.dart';
+import 'package:cached_network_image/cached_network_image.dart';
+import 'package:flutter/services.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+import 'homepage.dart';
+
+class AuthScreen extends StatefulWidget {
+ @override
+ _AuthScreenState createState() => _AuthScreenState();
+}
+
+class _AuthScreenState extends State {
+ String uid;
+ @override
+ void initState() {
+ super.initState();
+ _asyncMethodInnitState();
+ }
+
+ //god this was hell, wasted like 3 hours, trying to update the name of the user, after welcome.
+ void _asyncMethodInnitState() async {
+ final prefs = await SharedPreferences.getInstance();
+ uid = prefs.getString('GLOBAL_USER_DATA');
+ if (uid != null) {
+ Navigator.push(context,
+ MaterialPageRoute(builder: (BuildContext context) => HomePage()));
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitDown,
+ DeviceOrientation.portraitUp,
+ ]);
+
+ return MaterialApp(
+ home: Scaffold(
+ backgroundColor: Colors.white,
+ body: SingleChildScrollView(
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Container(
+ height: MediaQuery.of(context).size.height * 0.80,
+ width: MediaQuery.of(context).size.width,
+ decoration: BoxDecoration(
+ color: Theme.of(context).accentColor,
+ borderRadius: BorderRadius.only(
+ bottomLeft: Radius.circular(50.0),
+ bottomRight: Radius.circular(50.0)),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(0, 100.0, 0, 40.0),
+ child: SingleChildScrollView(
+ child: Column(
+ children: [
+ Container(
+ child: CachedNetworkImage(
+ imageUrl: "https://i.imgur.com/9JCxapv.png",
+ height: MediaQuery.of(context).size.height * 0.27,
+ placeholder: (context, url) =>
+ CircularProgressIndicator(),
+ ),
+ ),
+ SizedBox(
+ height: 30.0,
+ ),
+ Text(
+ "Bharat Mystery",
+ style: TextStyle(
+ color: Theme.of(context).highlightColor,
+ fontSize: 30.0,
+ fontFamily: 'LexendDeca',
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ SizedBox(
+ height: 40.0,
+ ),
+ MaterialButton(
+ splashColor: Colors.white,
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 43.0),
+ elevation: 10.0,
+ shape: StadiumBorder(),
+ onPressed: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ RegisterPage(),
+ ));
+ },
+ color: Theme.of(context).highlightColor,
+ child: Text(
+ "Register",
+ style: TextStyle(
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor,
+ ),
+ ),
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+ MaterialButton(
+ splashColor: Colors.white,
+ padding: EdgeInsets.symmetric(horizontal: 53.0),
+ height: 50.0,
+ elevation: 10.0,
+ shape: StadiumBorder(),
+ onPressed: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ LoginPage(),
+ ));
+ },
+ color: Theme.of(context).highlightColor,
+ child: Text(
+ "Login",
+ style: TextStyle(
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.fromLTRB(0, 60.0, 0, 40.0),
+ child: Text(
+ "*Amity International School, Sector-46",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 15.0,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/screens/directions.dart b/lib/screens/directions.dart
new file mode 100644
index 0000000..8ccd1b9
--- /dev/null
+++ b/lib/screens/directions.dart
@@ -0,0 +1,55 @@
+import 'package:flutter/material.dart';
+import 'package:geolocator/geolocator.dart';
+import 'package:webview_flutter/webview_flutter.dart';
+
+class Directions extends StatefulWidget {
+ final double elong;
+ final double elat;
+ Directions({this.elat, this.elong});
+
+ @override
+ _DirectionsState createState() => _DirectionsState();
+}
+
+class _DirectionsState extends State {
+ Future getCurrentPos() async {
+ Position position = await Geolocator.getCurrentPosition(
+ desiredAccuracy: LocationAccuracy.high);
+ slong = position.longitude;
+ slat = position.latitude;
+ return [slong, slat];
+ }
+
+ var slong;
+ var slat;
+
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ home: FutureBuilder(
+ future: getCurrentPos(),
+ builder: (context, snapshot) {
+ if (!snapshot.hasData) {
+ return Scaffold(
+ backgroundColor: Theme.of(context).focusColor,
+ body: Center(
+ child: CircularProgressIndicator(
+ valueColor:
+ new AlwaysStoppedAnimation(Colors.black)),
+ ),
+ );
+ }
+
+ final result = snapshot.data;
+
+ return Scaffold(
+ body: WebView(
+ initialUrl:
+ "https://bharat-mystery-api.herokuapp.com/map?elong=${widget.elong}&elat=${widget.elat}&slong=${result[0]}&slat=${result[1]}",
+ javascriptMode: JavascriptMode.unrestricted,
+ ),
+ );
+ }),
+ );
+ }
+}
diff --git a/lib/screens/forgot.dart b/lib/screens/forgot.dart
new file mode 100644
index 0000000..62185d2
--- /dev/null
+++ b/lib/screens/forgot.dart
@@ -0,0 +1,196 @@
+import 'package:bharat_mystery/screens/login.dart';
+import 'package:flutter/material.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/services.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:bharat_mystery/screens/register.dart';
+
+class ForgotPage extends StatefulWidget {
+ @override
+ _ForgotPageState createState() => _ForgotPageState();
+}
+
+class _ForgotPageState extends State {
+ String _forgotEmail;
+ final GlobalKey _formKey = GlobalKey();
+ final FirebaseAuth auth = FirebaseAuth.instance;
+
+ @override
+ Widget build(BuildContext context) {
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitDown,
+ DeviceOrientation.portraitUp,
+ ]);
+ return MaterialApp(
+ home: Scaffold(
+ body: SingleChildScrollView(
+ child: Column(
+ children: [
+ //bharat mystery logo and image
+ Padding(
+ padding: const EdgeInsets.fromLTRB(0, 30.0, 0, 70.0),
+ child: Container(
+ width: MediaQuery.of(context).size.width,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ Container(
+ child: Image.network('https://i.imgur.com/W0fE4FL.png'),
+ ),
+ Text(
+ "Bharat Mystery",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 30.0,
+ fontWeight: FontWeight.bold,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ],
+ ),
+ ),
+ ),
+ Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height * 0.6,
+ decoration: BoxDecoration(
+ color: Theme.of(context).accentColor,
+ borderRadius: BorderRadius.only(
+ topLeft: Radius.circular(50.0),
+ topRight: Radius.circular(50.0),
+ ),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(20.0, 30.0, 20.0, 10.0),
+ child: Column(
+ children: [
+ //login text
+ Text(
+ "Forgot Page",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 25.0,
+ fontWeight: FontWeight.bold,
+ color: Theme.of(context).highlightColor),
+ ),
+ SizedBox(
+ height: 25.0,
+ ),
+ Form(
+ key: _formKey,
+ child: Column(
+ children: [
+ //textfield email
+ TextFormField(
+ autocorrect: false,
+ autofocus: false,
+ validator: (input) {
+ if (input.isEmpty) {
+ return 'Please provide an email';
+ }
+ return null;
+ },
+ decoration: InputDecoration(
+ hintText: "Email",
+ border: OutlineInputBorder(
+ borderSide:
+ BorderSide(color: Colors.grey[50]),
+ borderRadius: BorderRadius.circular(30.0),
+ ),
+ fillColor: Colors.grey[200],
+ filled: true,
+ contentPadding: EdgeInsets.all(20.0)),
+ onSaved: (input) => this._forgotEmail = input,
+ keyboardType: TextInputType.emailAddress,
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+
+ //don't have an account register.--useless
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ //change page to register.--useless
+ TextButton(
+ onPressed: () {
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ RegisterPage(),
+ ),
+ );
+ },
+ child: Text(
+ "Don't have an account? Register",
+ style: TextStyle(
+ fontFamily: "LexendDeca",
+ fontSize: 14.0,
+ color:
+ Theme.of(context).highlightColor),
+ ),
+ )
+ ],
+ ),
+ SizedBox(
+ height: 15.0,
+ ),
+ MaterialButton(
+ onPressed: forgotPassword,
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 40.0),
+ shape: StadiumBorder(),
+ child: Text(
+ "Submit",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor),
+ ),
+ color: Theme.of(context).highlightColor,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+
+ Future forgotPassword() async {
+ final formState = _formKey.currentState;
+ if (formState.validate()) {
+ formState.save();
+ //Forgot Password
+ try {
+ auth.sendPasswordResetEmail(email: this._forgotEmail);
+ Fluttertoast.showToast(
+ msg:
+ 'a forgot password email has been sent, please reset your password through it.',
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ //navigate to a new screen --change the screen below
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(
+ builder: (context) => LoginPage(),
+ ));
+ _forgotEmail = null;
+ } catch (e) {
+ Fluttertoast.showToast(
+ msg: 'Incorrect Email or Email does not have an account',
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ }
+ }
+ }
+}
diff --git a/lib/screens/homepage.dart b/lib/screens/homepage.dart
new file mode 100644
index 0000000..36e801d
--- /dev/null
+++ b/lib/screens/homepage.dart
@@ -0,0 +1,64 @@
+import 'package:bharat_mystery/screens/profile.dart';
+import 'package:bharat_mystery/screens/selectMonument.dart';
+import 'package:bharat_mystery/screens/theme_provider.dart';
+import 'package:flutter/material.dart';
+import 'package:curved_navigation_bar/curved_navigation_bar.dart';
+import 'package:provider/provider.dart';
+
+class HomePage extends StatefulWidget {
+ @override
+ _HomePageState createState() => _HomePageState();
+}
+
+class _HomePageState extends State {
+ PageController _pageController = PageController();
+ List _screens = [
+ SelectMonument(),
+ Profile(),
+ ];
+
+ void _itemTapped(int selectedIndex) {
+ _pageController.jumpToPage(selectedIndex);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return ChangeNotifierProvider(
+ create: (_) => ThemeNotifier(),
+ child: Consumer(
+ builder: (context, ThemeNotifier notifier, child) {
+ return MaterialApp(
+ theme: notifier.darkTheme ? dark : light,
+ home: Scaffold(
+ body: PageView(
+ controller: _pageController,
+ children: _screens,
+ physics: NeverScrollableScrollPhysics(),
+ ),
+ bottomNavigationBar: CurvedNavigationBar(
+ color: Theme.of(context).cardColor,
+ onTap: _itemTapped,
+ backgroundColor: Theme.of(context).focusColor,
+ animationDuration: Duration(milliseconds: 1000),
+ animationCurve: Curves.fastLinearToSlowEaseIn,
+ height: 52.0,
+ items: [
+ Icon(
+ Icons.info,
+ size: 20.0,
+ color: Theme.of(context).highlightColor,
+ ),
+ Icon(
+ Icons.settings,
+ size: 20.0,
+ color: Theme.of(context).highlightColor,
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ ),
+ );
+ }
+}
diff --git a/lib/screens/login.dart b/lib/screens/login.dart
new file mode 100644
index 0000000..770d487
--- /dev/null
+++ b/lib/screens/login.dart
@@ -0,0 +1,281 @@
+import 'package:bharat_mystery/screens/forgot.dart';
+import 'package:flutter/material.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/services.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:bharat_mystery/screens/register.dart';
+import 'package:bharat_mystery/screens/homepage.dart' as HomePage;
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:cached_network_image/cached_network_image.dart';
+
+class LoginPage extends StatefulWidget {
+ @override
+ _LoginPageState createState() => _LoginPageState();
+}
+
+class _LoginPageState extends State {
+ String _loginEmail, _loginPassword;
+ final GlobalKey _formKey = GlobalKey();
+ final FirebaseAuth auth = FirebaseAuth.instance;
+ bool _passwordVisible = true;
+
+ @override
+ Widget build(BuildContext context) {
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitDown,
+ DeviceOrientation.portraitUp,
+ ]);
+
+ return MaterialApp(
+ home: Scaffold(
+ body: SingleChildScrollView(
+ child: Column(
+ children: [
+ //bharat mystery logo and image
+ Container(
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(0, 40.0, 0, 60.0),
+ child: Container(
+ width: MediaQuery.of(context).size.width,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ Container(
+ child: CachedNetworkImage(
+ imageUrl: "https://i.imgur.com/9JCxapv.png",
+ height: MediaQuery.of(context).size.height * 0.27,
+ placeholder: (context, url) =>
+ CircularProgressIndicator(),
+ ),
+ ),
+ Text(
+ "Bharat Mystery",
+ style: TextStyle(
+ color: Colors.black,
+ fontFamily: 'LexendDeca',
+ fontSize: 30.0,
+ fontWeight: FontWeight.bold,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height * 0.62,
+ decoration: BoxDecoration(
+ color: Theme.of(context).accentColor,
+ borderRadius: BorderRadius.only(
+ topLeft: Radius.circular(50.0),
+ topRight: Radius.circular(50.0),
+ ),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(20.0, 30.0, 20.0, 10.0),
+ child: Column(
+ children: [
+ //login text
+ Text(
+ "Login",
+ style: TextStyle(
+ color: Theme.of(context).highlightColor,
+ fontFamily: 'LexendDeca',
+ fontSize: 25.0,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ SizedBox(
+ height: 25.0,
+ ),
+ Form(
+ key: _formKey,
+ child: Column(
+ children: [
+ //textfield email
+ TextFormField(
+ autocorrect: false,
+ autofocus: false,
+ validator: (input) {
+ if (input.isEmpty) {
+ return 'Please provide an email';
+ }
+ return null;
+ },
+ decoration: InputDecoration(
+ hintText: "Email",
+ border: OutlineInputBorder(
+ borderSide:
+ BorderSide(color: Colors.grey[50]),
+ borderRadius: BorderRadius.circular(30.0),
+ ),
+ fillColor: Colors.grey[200],
+ filled: true,
+ contentPadding: EdgeInsets.all(20.0)),
+ onSaved: (input) => _loginEmail = input,
+ keyboardType: TextInputType.emailAddress,
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+
+ //textfield password
+ TextFormField(
+ autocorrect: false,
+ autofocus: false,
+ validator: (input) {
+ if (input.isEmpty) {
+ return 'Please provide a password';
+ } else if (input.length < 6) {
+ return 'Password needs to be atleast 6 digits';
+ }
+ return null;
+ },
+ obscureText: this._passwordVisible,
+ decoration: InputDecoration(
+ suffixIcon: IconButton(
+ icon: Icon(
+ Icons.remove_red_eye,
+ color: this._passwordVisible
+ ? Colors.black
+ : Colors.grey,
+ ),
+ onPressed: () {
+ setState(() => this._passwordVisible =
+ !this._passwordVisible);
+ },
+ ),
+ hintText: "Password",
+ border: OutlineInputBorder(
+ borderSide:
+ BorderSide(color: Colors.grey[50]),
+ borderRadius: BorderRadius.circular(30.0),
+ ),
+ fillColor: Colors.grey[200],
+ filled: true,
+ contentPadding: EdgeInsets.all(20.0)),
+ onSaved: (input) => _loginPassword = input,
+ keyboardType: TextInputType.visiblePassword,
+ ),
+ SizedBox(
+ height: 5.0,
+ ),
+
+ //forgot password--useless
+ Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ Padding(
+ padding: const EdgeInsets.only(right: 10.0),
+ child: TextButton(
+ onPressed: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ ForgotPage(),
+ ),
+ );
+ },
+ child: Text(
+ "Forgot Password?",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 13.0,
+ color:
+ Theme.of(context).highlightColor),
+ ),
+ ),
+ ),
+ ],
+ ),
+
+ //don't have an account register.--useless
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ //change page to register.--useless
+ TextButton(
+ onPressed: () {
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ RegisterPage(),
+ ),
+ );
+ },
+ child: Text(
+ "Don't have an account? Register",
+ style: TextStyle(
+ fontFamily: "LexendDeca",
+ fontSize: 14.0,
+ color:
+ Theme.of(context).highlightColor),
+ ),
+ )
+ ],
+ ),
+ SizedBox(
+ height: 15.0,
+ ),
+ MaterialButton(
+ onPressed: signIn,
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 40.0),
+ shape: StadiumBorder(),
+ child: Text(
+ "Login",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor),
+ ),
+ color: Theme.of(context).highlightColor,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+
+ Future signIn() async {
+ final formState = _formKey.currentState;
+ if (formState.validate()) {
+ formState.save();
+ //LOGIN FIREBASE AUTH
+ try {
+ User user = (await auth.signInWithEmailAndPassword(
+ email: _loginEmail, password: _loginPassword))
+ .user;
+ final prefs = await SharedPreferences.getInstance();
+ await prefs.setString('GLOBAL_USER_DATA', user.uid);
+ //navigate to a new screen --change the screen below
+ Navigator.pushAndRemoveUntil(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) => HomePage.HomePage()),
+ (Route route) => false);
+ _loginEmail = null;
+ _loginPassword = null;
+ } catch (e) {
+ print("some shit happened in login screen heres a report " + e.message);
+ Fluttertoast.showToast(
+ msg: 'Incorrect Email or Password',
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ }
+ }
+ }
+}
diff --git a/lib/screens/monument.dart b/lib/screens/monument.dart
new file mode 100644
index 0000000..4cb89c1
--- /dev/null
+++ b/lib/screens/monument.dart
@@ -0,0 +1,486 @@
+import 'dart:convert';
+import 'package:bharat_mystery/screens/directions.dart';
+import 'package:bharat_mystery/screens/quiz.dart';
+import 'package:bharat_mystery/screens/streetview.dart';
+import 'package:cloud_firestore/cloud_firestore.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_map/flutter_map.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:latlong/latlong.dart';
+import "package:flutter_tts/flutter_tts.dart";
+import 'package:http/http.dart' as http;
+import 'package:cached_network_image/cached_network_image.dart';
+//import 'package:shared_preferences/shared_preferences.dart';
+import 'package:url_launcher/url_launcher.dart';
+
+class MapUtils {
+ MapUtils._();
+
+ static Future openMap(double latitude, double longitude) async {
+ String googleUrl =
+ 'https://www.google.com/maps/search/?api=1&query=$latitude,$longitude';
+ if (await canLaunch(googleUrl)) {
+ await launch(googleUrl);
+ } else {
+ throw 'Could not open the map.';
+ }
+ }
+}
+
+class Monument extends StatefulWidget {
+ final int snumber;
+ Monument({Key key, this.snumber}) : super(key: key);
+
+ @override
+ _MonumentState createState() => _MonumentState();
+}
+
+class _MonumentState extends State {
+ Future _onWillPop() {
+ return showDialog(
+ context: context,
+ builder: (context) {
+ Navigator.of(context).pop(true);
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ //exit app on back pressed
+ return WillPopScope(
+ onWillPop: _onWillPop,
+ child: MonumentContent(
+ snumber: widget.snumber,
+ ));
+ }
+}
+
+class MonumentContent extends StatefulWidget {
+ final int snumber;
+ MonumentContent({Key key, this.snumber}) : super(key: key);
+
+ @override
+ _MonumentContentState createState() => _MonumentContentState();
+}
+
+class _MonumentContentState extends State {
+ FirebaseFirestore firestore = FirebaseFirestore.instance;
+ CollectionReference users = FirebaseFirestore.instance.collection('users');
+ String uid;
+ Future getMonument(int snumber) async {
+ final getMonumentEndpoint =
+ 'https://bharat-mystery-api.herokuapp.com/monuments?sno=$snumber';
+ final response = await http.get(getMonumentEndpoint);
+ print(snumber);
+ if (response.statusCode == 200) {
+ print(json.decode(response.body));
+ return response.body;
+ }
+ return null;
+ }
+
+ final FlutterTts flutterTts = FlutterTts();
+ Icon icon = Icon(Icons.volume_up, color: Colors.black);
+ bool isSpeaking = false, allowRead = true, showNotAllowed = false;
+
+ var text = '';
+
+ speak(text) async {
+ await flutterTts.setLanguage('hi-IN');
+ await flutterTts.setPitch(1);
+ await flutterTts.setSpeechRate(0.9);
+ await flutterTts.speak(text);
+ setState(() {
+ if (isSpeaking == true) {
+ flutterTts.stop();
+ icon = Icon(Icons.volume_up, color: Colors.black);
+ isSpeaking = false;
+ } else {
+ icon = Icon(Icons.volume_off, color: Colors.black);
+ isSpeaking = true;
+ }
+ });
+ }
+
+ /*Future getAllowRead() async {
+ final prefs = await SharedPreferences.getInstance();
+ uid = prefs.getString('GLOBAL_USER_DATA');
+
+ await users
+ .doc(uid.toString())
+ .collection(widget.snumber.toString())
+ .doc(widget.snumber.toString())
+ .get()
+ .then((documentSnapshot) {
+ if (widget.snumber == 1) {
+ setState(() {
+ allowRead = true;
+ showNotAllowed = false;
+ });
+ } else if (documentSnapshot.exists) {
+ if (documentSnapshot.data()[widget.snumber.toString()] == true) {
+ setState(() {
+ allowRead = true;
+ showNotAllowed = false;
+ });
+ } else {
+ setState(() {
+ allowRead = false;
+ showNotAllowed = true;
+ });
+ }
+ } else {
+ setState(() {
+ allowRead = false;
+ showNotAllowed = true;
+ });
+ }
+ });
+ }*/
+
+ /*@override
+ void initState() {
+ super.initState();
+ _asyncMethodInnitState();
+ }*/
+
+ /*god this was hell, wasted like 3 hours, trying to update the name of the user, after welcome.
+ void _asyncMethodInnitState() async {
+ await getAllowRead();
+ }*/
+
+ @override
+ Widget build(BuildContext context) {
+ return FutureBuilder(
+ future: getMonument(widget.snumber),
+ builder: (context, snapshot) {
+ if (!snapshot.hasData) {
+ return Scaffold(
+ backgroundColor: Theme.of(context).focusColor,
+ body: Center(
+ child: CircularProgressIndicator(),
+ ),
+ );
+ }
+
+ final result = json.decode(snapshot.data);
+
+ return Scaffold(
+ body: Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height,
+ decoration: BoxDecoration(
+ color: Theme.of(context).accentColor,
+ ),
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(20.0, 30.0, 20.0, 0.0),
+ child: SingleChildScrollView(
+ child: Column(
+ children: [
+ Container(
+ margin: EdgeInsets.only(top: 10.0),
+ height: MediaQuery.of(context).size.height * 0.83,
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(25.0),
+ color: Colors.white,
+ ),
+ child: SingleChildScrollView(
+ child: Column(
+ children: [
+ //image
+ ClipRRect(
+ borderRadius: BorderRadius.vertical(
+ top: Radius.circular(25.0)),
+ child: CachedNetworkImage(
+ imageUrl: result["image"].toString(),
+ placeholder: (context, url) =>
+ CircularProgressIndicator(),
+ ),
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+
+ //text
+ Text(
+ result["name"].toString(),
+ style: TextStyle(
+ color: Colors.black,
+ fontFamily: 'LexendDeca',
+ fontSize: 24.0,
+ fontWeight: FontWeight.w900),
+ ),
+ SizedBox(
+ height: 5.0,
+ ),
+ Text(
+ result["place"].toString(),
+ style: TextStyle(
+ color: Colors.black,
+ fontFamily: 'LexendDeca',
+ fontSize: 18.0,
+ fontWeight: FontWeight.w500),
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+ //get street views
+ MaterialButton(
+ splashColor: Colors.white,
+ padding: EdgeInsets.symmetric(horizontal: 35.0),
+ height: 30.0,
+ elevation: 5.0,
+ shape: StadiumBorder(),
+ onPressed: () {
+ if (result["streetview"] == "") {
+ Fluttertoast.showToast(
+ msg:
+ 'Street View not available for this monument',
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ } else {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ StreetView(
+ url: result["streetview"],
+ ),
+ ));
+ }
+ },
+ color: Colors.black,
+ child: Text(
+ "Open Street View",
+ style: TextStyle(
+ fontSize: 13.0,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+ ClipRRect(
+ borderRadius: BorderRadius.circular(25.0),
+ child: FractionallySizedBox(
+ widthFactor: 0.95,
+ child: Container(
+ height: 180.0,
+ child: FlutterMap(
+ options: MapOptions(
+ center: LatLng(result["latitude"],
+ result["longitude"]),
+ zoom: 13.0,
+ ),
+ layers: [
+ TileLayerOptions(
+ urlTemplate:
+ "https://api.mapbox.com/styles/v1/chim2/ckleuvk5n65ak17pnwxgoyo7l/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1IjoiY2hpbTIiLCJhIjoiY2tsZXBjOWI1MTJvczJ2bWpiZWE5azNlNyJ9.-LB_CjjYIksqNZTdiSmFNg",
+ additionalOptions: {
+ // to be hidden later
+ 'accessToken':
+ 'pk.eyJ1IjoiY2hpbTIiLCJhIjoiY2tsZXBjOWI1MTJvczJ2bWpiZWE5azNlNyJ9.-LB_CjjYIksqNZTdiSmFNg',
+ 'id': ''
+ },
+ ),
+ MarkerLayerOptions(
+ markers: [
+ Marker(
+ width: 80.0,
+ height: 80.0,
+ point: LatLng(result["latitude"],
+ result["longitude"]),
+ builder: (ctx) => Container(
+ child: Icon(
+ Icons.location_on,
+ color: Colors.red,
+ )),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+
+ //get directions button
+ MaterialButton(
+ splashColor: Colors.white,
+ padding: EdgeInsets.symmetric(horizontal: 35.0),
+ height: 30.0,
+ elevation: 5.0,
+ shape: StadiumBorder(),
+ onPressed: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ Directions(
+ elong: result["longitude"],
+ elat: result["latitude"]),
+ ));
+ },
+ color: Colors.black,
+ child: Text(
+ "Get Directions",
+ style: TextStyle(
+ fontSize: 13.0,
+ color: Colors.white,
+ ),
+ ),
+ ),
+
+ //drive using google maps
+ MaterialButton(
+ splashColor: Colors.white,
+ padding: EdgeInsets.symmetric(horizontal: 35.0),
+ height: 30.0,
+ elevation: 5.0,
+ shape: StadiumBorder(),
+ onPressed: () {
+ MapUtils.openMap(
+ result["latitude"], result["longitude"]);
+ },
+ color: Colors.black,
+ child: Text(
+ "Drive there using Google-Maps",
+ style: TextStyle(
+ fontSize: 13.0,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ SizedBox(
+ height: 5.0,
+ ),
+
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Text(
+ "Information",
+ style: TextStyle(
+ color: Colors.black,
+ fontFamily: 'LexendDeca',
+ fontSize: 20.0,
+ ),
+ ),
+ IconButton(
+ icon: icon,
+ onPressed: () {
+ text = result['info'];
+ speak(text);
+ },
+ )
+ ],
+ ),
+ Divider(
+ height: 20.0,
+ endIndent: 40.0,
+ indent: 40.0,
+ color: Colors.black,
+ ),
+ // play quiz button
+ MaterialButton(
+ splashColor: Colors.white,
+ padding: EdgeInsets.symmetric(horizontal: 35.0),
+ height: 30.0,
+ elevation: 5.0,
+ shape: StadiumBorder(),
+ onPressed: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ Quiz(snumber: widget.snumber),
+ ));
+ },
+ color: Colors.black,
+ child: Text(
+ "Play Quiz",
+ style: TextStyle(
+ fontSize: 13.0,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ FractionallySizedBox(
+ widthFactor: 0.9,
+ child: Container(
+ child: Text(
+ result["info"].toString(),
+ style: TextStyle(
+ color: Colors.black,
+ fontFamily: 'LexendDeca',
+ fontSize: 15.0,
+ ),
+ ),
+ ),
+ ),
+ SizedBox(
+ height: 15.0,
+ ),
+ ],
+ ),
+ ),
+ ),
+
+ /*Visibility(
+ visible: showNotAllowed,
+ child: Container(
+ height: MediaQuery.of(context).size.height * 0.5,
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ Text(
+ "Please complete the previous quiz to read about this monument",
+ style: TextStyle(
+ color: Theme.of(context).highlightColor,
+ fontFamily: 'LexendDeca',
+ fontSize: 24.0,
+ fontWeight: FontWeight.w900,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ SizedBox(
+ height: 5.0,
+ ),
+ ],
+ ),
+ ),
+ ),*/
+ SizedBox(
+ height: 15.0,
+ ),
+ MaterialButton(
+ onPressed: () {
+ Navigator.pop(context);
+ },
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 40.0),
+ shape: StadiumBorder(),
+ child: Text(
+ "Back",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor),
+ ),
+ color: Theme.of(context).highlightColor,
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ },
+ );
+ }
+}
diff --git a/lib/screens/profile.dart b/lib/screens/profile.dart
new file mode 100644
index 0000000..f85a693
--- /dev/null
+++ b/lib/screens/profile.dart
@@ -0,0 +1,233 @@
+import 'package:bharat_mystery/main.dart';
+import 'package:bharat_mystery/screens/login.dart';
+import 'package:bharat_mystery/screens/theme_provider.dart';
+import 'package:cloud_firestore/cloud_firestore.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:provider/provider.dart';
+import 'package:flutter_phoenix/flutter_phoenix.dart';
+
+class Profile extends StatefulWidget {
+ @override
+ _ProfileState createState() => _ProfileState();
+}
+
+class _ProfileState extends State with AutomaticKeepAliveClientMixin {
+ FirebaseFirestore firestore = FirebaseFirestore.instance;
+ CollectionReference users = FirebaseFirestore.instance.collection('users');
+ String uid, userName = "user", verified = "not verified";
+ bool senvermail = true;
+
+ @override
+ void initState() {
+ super.initState();
+ _asyncMethodInnitState();
+ }
+
+ //god this was hell, wasted like 3 hours, trying to update the name of the user, after welcome.
+ void _asyncMethodInnitState() async {
+ await getUserName().then((value) {
+ setState(() {
+ userName = value;
+ });
+ });
+ await getUserVerified().then((value) {
+ setState(() {
+ verified = value;
+ });
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitDown,
+ DeviceOrientation.portraitUp,
+ ]);
+
+ super.build(context);
+ return Scaffold(
+ body: Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height,
+ decoration: BoxDecoration(
+ color: Theme.of(context).cardColor,
+ ),
+ child: Stack(
+ children: [
+ Padding(
+ padding: const EdgeInsets.fromLTRB(
+ 20.0, 300.0, 20.0, 0), //text username
+ child: Column(
+ children: [
+ new Text(
+ "Welcome $userName",
+ style: TextStyle(
+ color: Theme.of(context).highlightColor,
+ fontFamily: 'LexendDeca',
+ fontSize: 25.0,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+
+ //text of verification status
+ new Text(
+ "Verification Status: $verified",
+ style: TextStyle(
+ color: Theme.of(context).highlightColor,
+ fontFamily: 'LexendDeca',
+ fontSize: 16.0,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+
+ //visibilty so that if user is verified, the verification mail is not seen again and again
+ Visibility(
+ visible: senvermail,
+ child: TextButton(
+ onPressed: sendUserVerificationMail,
+ child: Text(
+ "Send verification mail again?",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 14.0,
+ color: Theme.of(context).highlightColor),
+ ))),
+
+ //switchlisttile switch
+ Padding(
+ padding: EdgeInsets.only(top: 20),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Consumer(
+ builder: (context, notifier, child) => SwitchListTile(
+ title: Text("Dark Mode"),
+ onChanged: (value) {
+ showDialog(
+ context: context,
+ builder: (context) => AlertDialog(
+ title: Text('Are you sure?'),
+ content: Text('This will restart the app?'),
+ actions: [
+ TextButton(
+ onPressed: () =>
+ Navigator.of(context).pop(false),
+ child: Text('No'),
+ ),
+ TextButton(
+ onPressed: () => {
+ notifier.toggleTheme(),
+ Navigator.pushAndRemoveUntil(
+ context,
+ MaterialPageRoute(
+ builder:
+ (BuildContext context) =>
+ MyApp()),
+ (route) => false)
+ },
+ child: Text('Yes'),
+ ),
+ ],
+ ),
+ );
+ },
+ value: notifier.darkTheme,
+ ),
+ ),
+ ],
+ ),
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+ //logout button
+ MaterialButton(
+ onPressed: logoutUser,
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 40.0),
+ shape: StadiumBorder(),
+ child: Text(
+ "Logout",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor),
+ ),
+ color: Theme.of(context).highlightColor,
+ ),
+ ],
+ ),
+ ),
+ Positioned(
+ bottom: 0,
+ child: Container(
+ width: MediaQuery.of(context).size.width,
+ height: 20.0,
+ color: Theme.of(context).focusColor,
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ //get user's verification status
+ Future getUserVerified() async {
+ String _verfy;
+ User user = FirebaseAuth.instance.currentUser;
+ if (user.emailVerified == true) {
+ _verfy = "Verified";
+ senvermail = false;
+ } else {
+ _verfy = "Not Verified";
+ senvermail = true;
+ }
+ return _verfy;
+ }
+
+ // get's user's name.
+ Future getUserName() async {
+ String _username;
+ final prefs = await SharedPreferences.getInstance();
+ uid = prefs.getString('GLOBAL_USER_DATA');
+ await users.doc(uid.toString()).get().then((documentSnapshot) {
+ _username = documentSnapshot.data()['name'].toString();
+ });
+ return _username;
+ }
+
+ //logs user's out
+ Future logoutUser() async {
+ //logout user
+ final prefs = await SharedPreferences.getInstance();
+ await prefs.setString('GLOBAL_USER_DATA', null);
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) => LoginPage(),
+ ),
+ );
+ }
+
+ //send user verification mail
+ Future sendUserVerificationMail() async {
+ User user = FirebaseAuth.instance.currentUser;
+ user.sendEmailVerification().catchError((e) {
+ Fluttertoast.showToast(
+ msg: "verification mail failed to be sent" + e.toString());
+ });
+ Fluttertoast.showToast(msg: "verification mail sent");
+ }
+
+ @override
+ // wantKeepAlive
+ bool get wantKeepAlive => true;
+}
diff --git a/lib/screens/quiz.dart b/lib/screens/quiz.dart
new file mode 100644
index 0000000..7597a56
--- /dev/null
+++ b/lib/screens/quiz.dart
@@ -0,0 +1,288 @@
+import 'dart:convert';
+import 'dart:ffi';
+
+import 'package:cloud_firestore/cloud_firestore.dart';
+import 'package:flutter/material.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:http/http.dart' as http;
+import 'package:shared_preferences/shared_preferences.dart';
+
+class Quiz extends StatefulWidget {
+ final int snumber;
+ Quiz({this.snumber});
+
+ @override
+ _QuizState createState() => _QuizState();
+}
+
+class _QuizState extends State {
+ final GlobalKey _formKey = GlobalKey();
+
+ FirebaseFirestore firestore = FirebaseFirestore.instance;
+ CollectionReference users = FirebaseFirestore.instance.collection('users');
+
+ getAllQuestions() async {
+ final getAllMonumentsEndpoint =
+ 'https://bharat-mystery-api.herokuapp.com/quiz?sno=${widget.snumber}';
+ final response = await http.get(getAllMonumentsEndpoint);
+ if (response.statusCode == 200) {
+ return response.body;
+ }
+ return null;
+ }
+
+ String ans1;
+ String ans2;
+ String ans3;
+ String uid;
+
+ @override
+ Widget build(BuildContext context) {
+ return FutureBuilder(
+ future: getAllQuestions(),
+ builder: (context, snapshot) {
+ if (!snapshot.hasData) {
+ return Scaffold(
+ backgroundColor: Theme.of(context).focusColor,
+ body: Center(
+ child: CircularProgressIndicator(),
+ ),
+ );
+ }
+
+ final allQues = json.decode(snapshot.data);
+
+ bool checkAns() {
+ var totalScore = 0;
+ if (ans1.toLowerCase() == allQues[0]["ans"].toLowerCase()) {
+ totalScore++;
+ }
+ if (ans2.toLowerCase() == allQues[1]["ans"].toLowerCase()) {
+ totalScore++;
+ }
+ if (ans3.toLowerCase() == allQues[2]["ans"].toLowerCase()) {
+ totalScore++;
+ }
+
+ if (totalScore >= 2) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ Future testPassed() async {
+ final prefs = await SharedPreferences.getInstance();
+ uid = prefs.getString('GLOBAL_USER_DATA');
+
+ Map mapTrue = {
+ (widget.snumber + 1).toString(): true
+ };
+
+ await users
+ .doc(uid.toString())
+ .collection((widget.snumber + 1).toString())
+ .doc((widget.snumber + 1).toString())
+ .set(mapTrue);
+ }
+
+ return Scaffold(
+ backgroundColor: Theme.of(context).accentColor,
+ body: Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height * 1.3,
+ child: SingleChildScrollView(
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(10.0, 60.0, 10.0, 10.0),
+ child: Column(
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Text(
+ "Quiz Time",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 27.0,
+ fontWeight: FontWeight.w700,
+ color: Theme.of(context).highlightColor),
+ ),
+ ],
+ ),
+ SizedBox(
+ height: 30.0,
+ ),
+ Form(
+ key: _formKey,
+ child: Column(
+ children: [
+ //ques 1
+ Text(
+ (allQues[0])["ques"],
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 20.0,
+ fontWeight: FontWeight.w200,
+ color: Theme.of(context).highlightColor),
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+ //answer field
+ TextFormField(
+ style: TextStyle(
+ color: Colors.black,
+ ),
+ onChanged: (val) {
+ setState(() {
+ ans1 = val;
+ });
+ },
+ validator: (val) =>
+ val.isEmpty ? 'Please enter the answer' : null,
+ decoration: InputDecoration(
+ hintText: "Answer",
+ filled: true,
+ fillColor: Colors.white,
+ hintStyle: TextStyle(color: Colors.black),
+ border: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.black, width: 1.5),
+ borderRadius: BorderRadius.circular(10.0),
+ ),
+ contentPadding: EdgeInsets.all(17.0)),
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+
+ //ques 2
+ Text(
+ (allQues[1])["ques"],
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 20.0,
+ fontWeight: FontWeight.w200,
+ color: Theme.of(context).highlightColor),
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+ //answer field
+ TextFormField(
+ style: TextStyle(
+ color: Colors.black,
+ ),
+ onChanged: (val) {
+ setState(() {
+ ans2 = val;
+ });
+ },
+ validator: (val) =>
+ val.isEmpty ? 'Please enter the answer' : null,
+ decoration: InputDecoration(
+ hintText: "Answer",
+ filled: true,
+ fillColor: Colors.white,
+ hintStyle: TextStyle(color: Colors.black),
+ border: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.black, width: 1.5),
+ borderRadius: BorderRadius.circular(10.0),
+ ),
+ contentPadding: EdgeInsets.all(17.0)),
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+
+ //ques3
+ Text(
+ (allQues[2])["ques"],
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 20.0,
+ fontWeight: FontWeight.w200,
+ color: Theme.of(context).highlightColor),
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+ //answer field
+ TextFormField(
+ style: TextStyle(
+ color: Colors.black,
+ ),
+ onChanged: (val) {
+ setState(() {
+ ans3 = val;
+ });
+ },
+ validator: (val) =>
+ val.isEmpty ? 'Please enter the answer' : null,
+ decoration: InputDecoration(
+ hintText: "Answer",
+ filled: true,
+ fillColor: Colors.white,
+ hintStyle: TextStyle(color: Colors.black),
+ border: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.black, width: 1.5),
+ borderRadius: BorderRadius.circular(10.0),
+ ),
+ contentPadding: EdgeInsets.all(17.0)),
+ ),
+ SizedBox(
+ height: 25.0,
+ ),
+ //submit button
+ MaterialButton(
+ onPressed: () {
+ final formState = _formKey.currentState;
+ if (formState.validate()) {
+ formState.save();
+
+ if (checkAns()) {
+ // Remove this and add Unlocking code and then add the toast that next monument has been unlocked then pop the screen
+ Fluttertoast.showToast(
+ msg: 'Test Passed',
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ testPassed();
+ Navigator.of(context).pop();
+ } else {
+ Fluttertoast.showToast(
+ msg:
+ "You need atleast 2 correct answers to unlock the next monument, please check spelling's too",
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ }
+ }
+ },
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 40.0),
+ shape: StadiumBorder(),
+ child: Text(
+ "Submit",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor),
+ ),
+ color: Theme.of(context).highlightColor,
+ ),
+ ],
+ ),
+ )
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ },
+ );
+ }
+}
diff --git a/lib/screens/register.dart b/lib/screens/register.dart
new file mode 100644
index 0000000..b91cb10
--- /dev/null
+++ b/lib/screens/register.dart
@@ -0,0 +1,330 @@
+import 'package:bharat_mystery/screens/login.dart';
+import 'package:flutter/material.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/services.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:cloud_firestore/cloud_firestore.dart';
+import 'package:intl/intl.dart';
+import 'package:cached_network_image/cached_network_image.dart';
+
+class RegisterPage extends StatefulWidget {
+ @override
+ _RegisterPageState createState() => _RegisterPageState();
+}
+
+class _RegisterPageState extends State {
+ String _registerName, _registerEmail, _registerPassword;
+ final GlobalKey _formKey = GlobalKey();
+ final FirebaseAuth auth = FirebaseAuth.instance;
+ bool _passwordVisible = true;
+ FirebaseFirestore firestore = FirebaseFirestore.instance;
+ CollectionReference users = FirebaseFirestore.instance.collection('users');
+
+ // @override
+ // void initState() {
+ // // TODO: implement initState
+ // super.initState();
+ // WidgetsBinding.instance.addPostFrameCallback((_) => getAllMonuments());
+ // }
+
+ @override
+ Widget build(BuildContext context) {
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitDown,
+ DeviceOrientation.portraitUp,
+ ]);
+
+ return MaterialApp(
+ home: Scaffold(
+ body: SingleChildScrollView(
+ child: Column(
+ children: [
+ //bharat mystery logo and image
+ Padding(
+ padding: const EdgeInsets.fromLTRB(0, 40.0, 0, 30.0),
+ child: Container(
+ width: MediaQuery.of(context).size.width,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ Container(
+ child: CachedNetworkImage(
+ imageUrl: "https://i.imgur.com/9JCxapv.png",
+ height: MediaQuery.of(context).size.height * 0.27,
+ placeholder: (context, url) =>
+ CircularProgressIndicator(),
+ ),
+ ),
+ Text(
+ "Bharat Mystery",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 30.0,
+ fontWeight: FontWeight.bold,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ],
+ ),
+ ),
+ ),
+ Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height * 0.7,
+ decoration: BoxDecoration(
+ color: Theme.of(context).accentColor,
+ borderRadius: BorderRadius.only(
+ topLeft: Radius.circular(50.0),
+ topRight: Radius.circular(50.0),
+ ),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(20.0, 30.0, 20.0, 10.0),
+ child: Column(
+ children: [
+ //register text
+ Text(
+ "Register",
+ style: TextStyle(
+ color: Theme.of(context).highlightColor,
+ fontFamily: 'LexendDeca',
+ fontSize: 25.0,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ SizedBox(
+ height: 25.0,
+ ),
+ Form(
+ key: _formKey,
+ child: Column(
+ children: [
+ //name
+ TextFormField(
+ autocorrect: false,
+ autofocus: false,
+ onSaved: (input) => _registerName = input,
+ validator: (input) {
+ if (input.isEmpty) {
+ return 'Please provide a name';
+ }
+ return null;
+ },
+ decoration: InputDecoration(
+ hintText: "Name",
+ border: OutlineInputBorder(
+ borderSide:
+ BorderSide(color: Colors.grey[50]),
+ borderRadius: BorderRadius.circular(30.0),
+ ),
+ fillColor: Colors.grey[200],
+ filled: true,
+ contentPadding: EdgeInsets.all(20.0)),
+ keyboardType: TextInputType.emailAddress,
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+
+ //email
+ TextFormField(
+ autocorrect: false,
+ autofocus: false,
+ validator: (input) {
+ if (input.isEmpty) {
+ return 'Please provide an email';
+ }
+ return null;
+ },
+ onSaved: (input) => _registerEmail = input,
+ decoration: InputDecoration(
+ hintText: "Email",
+ border: OutlineInputBorder(
+ borderSide:
+ BorderSide(color: Colors.grey[50]),
+ borderRadius: BorderRadius.circular(30.0),
+ ),
+ fillColor: Colors.grey[200],
+ filled: true,
+ contentPadding: EdgeInsets.all(20.0)),
+ keyboardType: TextInputType.emailAddress,
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+
+ //password
+ TextFormField(
+ autocorrect: false,
+ autofocus: false,
+ validator: (input) {
+ if (input.isEmpty) {
+ return 'Please provide a password';
+ } else if (input.length < 6) {
+ return 'Password needs to be atleast 6 digits';
+ }
+ return null;
+ },
+ onSaved: (input) => _registerPassword = input,
+ obscureText: this._passwordVisible,
+ decoration: InputDecoration(
+ suffixIcon: IconButton(
+ icon: Icon(
+ Icons.remove_red_eye,
+ color: this._passwordVisible
+ ? Colors.black
+ : Colors.grey,
+ ),
+ onPressed: () {
+ setState(() => this._passwordVisible =
+ !this._passwordVisible);
+ },
+ ),
+ hintText: "Password",
+ border: OutlineInputBorder(
+ borderSide:
+ BorderSide(color: Colors.grey[50]),
+ borderRadius: BorderRadius.circular(30.0),
+ ),
+ fillColor: Colors.grey[200],
+ filled: true,
+ contentPadding: EdgeInsets.all(20.0)),
+ keyboardType: TextInputType.visiblePassword,
+ ),
+ SizedBox(
+ height: 10.0,
+ ),
+
+ //already have an account login --useless
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ //change page to register.--useless
+ TextButton(
+ onPressed: () {
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) =>
+ LoginPage(),
+ ),
+ );
+ },
+ child: Text(
+ "Already have an account? Login",
+ style: TextStyle(
+ fontFamily: "LexendDeca",
+ fontSize: 14.0,
+ color:
+ Theme.of(context).highlightColor),
+ ),
+ ),
+ ],
+ ),
+ SizedBox(
+ height: 15.0,
+ ),
+ MaterialButton(
+ onPressed: registerUser,
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 40.0),
+ shape: StadiumBorder(),
+ child: Text(
+ "Register",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ fontSize: 16.0,
+ color: Theme.of(context).cardColor),
+ ),
+ color: Theme.of(context).highlightColor,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+
+ // var allMonuments;
+
+ // getAllMonuments() async {
+ // final getAllMonumentsEndpoint =
+ // 'https://bharat-mystery-api.herokuapp.com/allmonuments';
+ // final response = await http.get(getAllMonumentsEndpoint);
+ // if (response.statusCode == 200) {
+ // allMonuments = json.decode(response.body);
+ // print(allMonuments);
+ // }
+ // allMonuments = null;
+ // }
+
+ Future registerUser() async {
+ final formState = _formKey.currentState;
+ if (formState.validate()) {
+ formState.save();
+ //Register FIREBASE AUTH and send email verification
+ try {
+ //create a user.
+ User user = (await auth.createUserWithEmailAndPassword(
+ email: _registerEmail, password: _registerPassword))
+ .user;
+
+ //user verification by email
+ user.sendEmailVerification();
+
+ //get current date and time
+ DateTime now = DateTime.now();
+ String _formattedDate = DateFormat('yyyy-MM-dd – kk:mm').format(now);
+
+ // Map _levels = {};
+ // for (var i = 1; i < allMonuments.length + 1; i++) {
+ // if (i == 1) {
+ // _levels[i] = true;
+ // } else {
+ // _levels[i] = false;
+ // }
+ // }
+
+ //create a map with name email and registration date
+ Map userData = {
+ "name": this._registerName,
+ "email": this._registerEmail,
+ "registered_On": _formattedDate,
+ // "levels": _levels,
+ };
+ //upload the map
+ users.doc(user.uid).set(userData);
+ Fluttertoast.showToast(
+ msg: "email verification sent, please verify " + _registerName);
+ _registerEmail = null;
+ _registerPassword = null;
+ _registerName = null;
+ Fluttertoast.showToast(
+ msg: 'Registered successfully, please login',
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ //change user screen so that he can login
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(
+ builder: (context) => LoginPage(),
+ ));
+ } catch (e) {
+ print("some shit happened in login screen heres a report " + e.message);
+ Fluttertoast.showToast(
+ msg: 'Registeration Failed, please try again',
+ toastLength: Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1);
+ }
+ }
+ }
+}
diff --git a/lib/screens/selectMonument.dart b/lib/screens/selectMonument.dart
new file mode 100644
index 0000000..1e1e2d2
--- /dev/null
+++ b/lib/screens/selectMonument.dart
@@ -0,0 +1,135 @@
+import 'dart:convert';
+import 'package:bharat_mystery/screens/monument.dart';
+import 'package:flutter/services.dart';
+import 'package:http/http.dart' as http;
+import 'package:flutter/material.dart';
+
+class SelectMonument extends StatefulWidget {
+ SelectMonument({Key pagekey, this.title}) : super(key: pagekey);
+ final String title;
+
+ @override
+ _SelectMonumentState createState() => _SelectMonumentState();
+}
+
+class _SelectMonumentState extends State
+ with AutomaticKeepAliveClientMixin {
+ Future _onWillPop() {
+ return showDialog(
+ context: context,
+ builder: (context) => AlertDialog(
+ title: Text('Are you sure?'),
+ content: Text('Do you want to exit the app?'),
+ actions: [
+ TextButton(
+ onPressed: () => Navigator.of(context).pop(false),
+ child: Text('No'),
+ ),
+ TextButton(
+ onPressed: () => SystemNavigator.pop(),
+ child: Text('Yes'),
+ ),
+ ],
+ ),
+ ) ??
+ false;
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ super.build(context);
+ //exit app on back pressed
+ return WillPopScope(onWillPop: _onWillPop, child: SelectMonumentContent());
+ }
+
+ @override
+ // TODO: implement wantKeepAlive
+ bool get wantKeepAlive => true;
+}
+
+class SelectMonumentContent extends StatefulWidget {
+ @override
+ _SelectMonumentContentState createState() => _SelectMonumentContentState();
+}
+
+class _SelectMonumentContentState extends State {
+ getAllMonuments() async {
+ final getAllMonumentsEndpoint =
+ 'https://bharat-mystery-api.herokuapp.com/allmonuments';
+ final response = await http.get(getAllMonumentsEndpoint);
+ if (response.statusCode == 200) {
+ return response.body;
+ }
+ return null;
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return FutureBuilder(
+ future: getAllMonuments(),
+ builder: (context, snapshot) {
+ if (!snapshot.hasData) {
+ return Scaffold(
+ backgroundColor: Theme.of(context).focusColor,
+ body: Center(
+ child: CircularProgressIndicator(
+ valueColor: new AlwaysStoppedAnimation(Colors.black),
+ )),
+ );
+ }
+ final allmonuments = json.decode(snapshot.data);
+
+ return Scaffold(
+ body: Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height,
+ decoration: BoxDecoration(
+ color: Theme.of(context).focusColor,
+ ),
+ child: Stack(
+ children: [
+ Padding(
+ padding: const EdgeInsets.fromLTRB(10.0, 20.0, 10.0, 20.0),
+ child: ListView.builder(
+ itemCount: allmonuments
+ .length, // response from db (json decoded)
+ itemBuilder: (context, index) {
+ return Card(
+ child: ListTile(
+ leading: Icon(Icons.place,
+ color: Theme.of(context).highlightColor),
+ title: Text((allmonuments[index])["name"],
+ style: TextStyle(
+ color: Theme.of(context).highlightColor)),
+ tileColor: Theme.of(context).cardColor,
+
+ // name property of indexed monument
+ onTap: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => Monument(
+ snumber: (allmonuments[index])["Snumber"],
+ ),
+ ));
+ },
+ ),
+ );
+ },
+ ),
+ ),
+ Positioned(
+ bottom: 0,
+ child: Container(
+ width: MediaQuery.of(context).size.width,
+ height: 20.0,
+ color: Theme.of(context).focusColor,
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ });
+ }
+}
diff --git a/lib/screens/streetview.dart b/lib/screens/streetview.dart
new file mode 100644
index 0000000..db3a5c9
--- /dev/null
+++ b/lib/screens/streetview.dart
@@ -0,0 +1,40 @@
+import 'package:flutter/material.dart';
+import 'package:webview_flutter/webview_flutter.dart';
+
+class StreetView extends StatefulWidget {
+ final String url;
+ StreetView({this.url});
+
+ @override
+ _StreetViewState createState() => _StreetViewState();
+}
+
+class _StreetViewState extends State {
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ home: Scaffold(
+ appBar: AppBar(
+ backgroundColor: Theme.of(context).accentColor,
+ leading: IconButton(
+ icon: Icon(
+ Icons.arrow_back,
+ color: Theme.of(context).highlightColor,
+ ),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ title: Text(
+ "Street View",
+ style: TextStyle(
+ fontFamily: 'LexendDeca',
+ color: Theme.of(context).highlightColor),
+ ),
+ ),
+ body: WebView(
+ initialUrl: widget.url,
+ javascriptMode: JavascriptMode.unrestricted,
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/screens/theme_provider.dart b/lib/screens/theme_provider.dart
new file mode 100644
index 0000000..c35ed13
--- /dev/null
+++ b/lib/screens/theme_provider.dart
@@ -0,0 +1,50 @@
+import 'package:flutter/material.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+ThemeData light = ThemeData(
+ brightness: Brightness.light,
+ accentColor: Color(0xffA0E7E5),
+ highlightColor: Colors.black,
+ cardColor: Colors.white,
+ focusColor: Color(0xffA0E7E5));
+
+ThemeData dark = ThemeData(
+ brightness: Brightness.dark,
+ accentColor: Colors.black,
+ highlightColor: Colors.white,
+ cardColor: Colors.black,
+ focusColor: Colors.white);
+
+class ThemeNotifier extends ChangeNotifier {
+ final String key = "theme";
+ SharedPreferences _pref;
+ bool _darkTheme;
+
+ bool get darkTheme => _darkTheme;
+
+ ThemeNotifier() {
+ _darkTheme = true;
+ _loadFromPrefs();
+ }
+
+ toggleTheme() {
+ _darkTheme = !_darkTheme;
+ _saveToPrefs();
+ notifyListeners();
+ }
+
+ _initPrefs() async {
+ if (_pref == null) _pref = await SharedPreferences.getInstance();
+ }
+
+ _loadFromPrefs() async {
+ await _initPrefs();
+ _darkTheme = _pref.getBool(key) ?? true;
+ notifyListeners();
+ }
+
+ _saveToPrefs() async {
+ await _initPrefs();
+ _pref.setBool(key, _darkTheme);
+ }
+}
diff --git a/pubspec.lock b/pubspec.lock
new file mode 100644
index 0000000..9aa42bf
--- /dev/null
+++ b/pubspec.lock
@@ -0,0 +1,726 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+ ansicolor:
+ dependency: transitive
+ description:
+ name: ansicolor
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.1"
+ 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.5.0"
+ boolean_selector:
+ dependency: transitive
+ description:
+ name: boolean_selector
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ cached_network_image:
+ dependency: "direct main"
+ description:
+ name: cached_network_image
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.5.0"
+ characters:
+ dependency: transitive
+ description:
+ name: characters
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ charcode:
+ dependency: transitive
+ description:
+ name: charcode
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ clock:
+ dependency: transitive
+ description:
+ name: clock
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ cloud_firestore:
+ dependency: "direct main"
+ description:
+ name: cloud_firestore
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.16.0+1"
+ cloud_firestore_platform_interface:
+ dependency: transitive
+ description:
+ name: cloud_firestore_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.2"
+ cloud_firestore_web:
+ dependency: transitive
+ description:
+ name: cloud_firestore_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.3.0+2"
+ collection:
+ dependency: transitive
+ description:
+ name: collection
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.15.0"
+ console_log_handler:
+ dependency: transitive
+ description:
+ name: console_log_handler
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.6"
+ 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.5"
+ cupertino_icons:
+ dependency: "direct main"
+ description:
+ name: cupertino_icons
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.0"
+ curved_navigation_bar:
+ dependency: "direct main"
+ description:
+ name: curved_navigation_bar
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.3.7"
+ fake_async:
+ dependency: transitive
+ description:
+ name: fake_async
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ ffi:
+ dependency: transitive
+ description:
+ name: ffi
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.3"
+ file:
+ dependency: transitive
+ description:
+ name: file
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "5.2.1"
+ firebase_auth:
+ dependency: "direct main"
+ description:
+ name: firebase_auth
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.20.1"
+ firebase_auth_platform_interface:
+ dependency: transitive
+ description:
+ name: firebase_auth_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.1.0"
+ firebase_auth_web:
+ dependency: transitive
+ description:
+ name: firebase_auth_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.3.3"
+ firebase_core:
+ dependency: "direct main"
+ description:
+ name: firebase_core
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.7.0"
+ firebase_core_platform_interface:
+ dependency: transitive
+ description:
+ name: firebase_core_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.1"
+ firebase_core_web:
+ dependency: transitive
+ description:
+ name: firebase_core_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.2.1+3"
+ flutter:
+ dependency: "direct main"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_blurhash:
+ dependency: transitive
+ description:
+ name: flutter_blurhash
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.5.0"
+ flutter_cache_manager:
+ dependency: transitive
+ description:
+ name: flutter_cache_manager
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.1"
+ flutter_image:
+ dependency: transitive
+ description:
+ name: flutter_image
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.0"
+ flutter_map:
+ dependency: "direct main"
+ description:
+ name: flutter_map
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.11.0"
+ flutter_phoenix:
+ dependency: "direct main"
+ description:
+ name: flutter_phoenix
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.0"
+ flutter_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_tts:
+ dependency: "direct main"
+ description:
+ name: flutter_tts
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ flutter_web_plugins:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ fluttertoast:
+ dependency: "direct main"
+ description:
+ name: fluttertoast
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "7.1.8"
+ geolocator:
+ dependency: "direct main"
+ description:
+ name: geolocator
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "6.2.1"
+ geolocator_platform_interface:
+ dependency: transitive
+ description:
+ name: geolocator_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.9"
+ geolocator_web:
+ dependency: transitive
+ description:
+ name: geolocator_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.1"
+ http:
+ dependency: "direct main"
+ description:
+ name: http
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.12.2"
+ http_parser:
+ dependency: transitive
+ description:
+ name: http_parser
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.1.4"
+ image:
+ dependency: transitive
+ description:
+ name: image
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.19"
+ intl:
+ dependency: transitive
+ description:
+ name: intl
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.16.1"
+ js:
+ dependency: transitive
+ description:
+ name: js
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.6.3"
+ latlong:
+ dependency: transitive
+ description:
+ name: latlong
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.6.1"
+ lists:
+ dependency: transitive
+ description:
+ name: lists
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.6"
+ lite_rolling_switch:
+ dependency: "direct main"
+ description:
+ name: lite_rolling_switch
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.1"
+ logging:
+ dependency: transitive
+ description:
+ name: logging
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.11.4"
+ matcher:
+ dependency: transitive
+ description:
+ name: matcher
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.12.10"
+ meta:
+ dependency: transitive
+ description:
+ name: meta
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.3.0"
+ mgrs_dart:
+ dependency: transitive
+ description:
+ name: mgrs_dart
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.1"
+ nested:
+ dependency: transitive
+ description:
+ name: nested
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.4"
+ octo_image:
+ dependency: transitive
+ description:
+ name: octo_image
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.3.0"
+ path:
+ dependency: transitive
+ description:
+ name: path
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.8.0"
+ path_provider:
+ dependency: transitive
+ description:
+ name: path_provider
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.6.27"
+ 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+8"
+ path_provider_platform_interface:
+ dependency: transitive
+ description:
+ name: path_provider_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.4"
+ path_provider_windows:
+ dependency: transitive
+ description:
+ name: path_provider_windows
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.4+3"
+ pedantic:
+ dependency: transitive
+ description:
+ name: pedantic
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.9.2"
+ petitparser:
+ dependency: transitive
+ description:
+ name: petitparser
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.1.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.3"
+ positioned_tap_detector:
+ dependency: transitive
+ description:
+ name: positioned_tap_detector
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.3"
+ process:
+ dependency: transitive
+ description:
+ name: process
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.13"
+ proj4dart:
+ dependency: transitive
+ description:
+ name: proj4dart
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.5"
+ provider:
+ dependency: "direct main"
+ description:
+ name: provider
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.3.3"
+ quiver:
+ dependency: transitive
+ description:
+ name: quiver
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.5"
+ rxdart:
+ dependency: transitive
+ description:
+ name: rxdart
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.25.0"
+ shared_preferences:
+ dependency: "direct main"
+ description:
+ name: shared_preferences
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.5.12+4"
+ shared_preferences_linux:
+ dependency: transitive
+ description:
+ name: shared_preferences_linux
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.2+4"
+ shared_preferences_macos:
+ dependency: transitive
+ description:
+ name: shared_preferences_macos
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.1+11"
+ shared_preferences_platform_interface:
+ dependency: transitive
+ description:
+ name: shared_preferences_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.4"
+ shared_preferences_web:
+ dependency: transitive
+ description:
+ name: shared_preferences_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.2+7"
+ shared_preferences_windows:
+ dependency: transitive
+ description:
+ name: shared_preferences_windows
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.2+3"
+ 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.8.0"
+ sqflite:
+ dependency: transitive
+ description:
+ name: sqflite
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.3.2+3"
+ sqflite_common:
+ dependency: transitive
+ description:
+ name: sqflite_common
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.3+1"
+ stack_trace:
+ dependency: transitive
+ description:
+ name: stack_trace
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.10.0"
+ stream_channel:
+ dependency: transitive
+ description:
+ name: stream_channel
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ string_scanner:
+ dependency: transitive
+ description:
+ name: string_scanner
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ synchronized:
+ dependency: transitive
+ description:
+ name: synchronized
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.2.0+2"
+ term_glyph:
+ dependency: transitive
+ description:
+ name: term_glyph
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ test_api:
+ dependency: transitive
+ description:
+ name: test_api
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.2.19"
+ transparent_image:
+ dependency: transitive
+ description:
+ name: transparent_image
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.0"
+ tuple:
+ dependency: transitive
+ description:
+ name: tuple
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.3"
+ typed_data:
+ dependency: transitive
+ description:
+ name: typed_data
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.3.0"
+ unicode:
+ dependency: transitive
+ description:
+ name: unicode
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.2.4"
+ url_launcher:
+ dependency: "direct main"
+ description:
+ name: url_launcher
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "5.7.10"
+ url_launcher_linux:
+ dependency: transitive
+ description:
+ name: url_launcher_linux
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.1+4"
+ url_launcher_macos:
+ dependency: transitive
+ description:
+ name: url_launcher_macos
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.1+9"
+ url_launcher_platform_interface:
+ dependency: transitive
+ description:
+ name: url_launcher_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.9"
+ url_launcher_web:
+ dependency: transitive
+ description:
+ name: url_launcher_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.5+3"
+ url_launcher_windows:
+ dependency: transitive
+ description:
+ name: url_launcher_windows
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.1+3"
+ uuid:
+ dependency: transitive
+ description:
+ name: uuid
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.2.2"
+ validate:
+ dependency: transitive
+ description:
+ name: validate
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.7.0"
+ vector_math:
+ dependency: transitive
+ description:
+ name: vector_math
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ webview_flutter:
+ dependency: "direct main"
+ description:
+ name: webview_flutter
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.7"
+ win32:
+ dependency: transitive
+ description:
+ name: win32
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.7.4+1"
+ wkt_parser:
+ dependency: transitive
+ description:
+ name: wkt_parser
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.7"
+ xdg_directories:
+ dependency: transitive
+ description:
+ name: xdg_directories
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.2"
+ xml:
+ dependency: transitive
+ description:
+ name: xml
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.5.1"
+sdks:
+ dart: ">=2.12.0-0.0 <3.0.0"
+ flutter: ">=1.22.2"
diff --git a/pubspec.yaml b/pubspec.yaml
new file mode 100644
index 0000000..6a7766f
--- /dev/null
+++ b/pubspec.yaml
@@ -0,0 +1,88 @@
+name: bharat_mystery
+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
+ flutter_map: ^0.11.0
+ curved_navigation_bar: ^0.3.4
+ firebase_auth: ^0.20.1
+ firebase_core : ^0.7.0
+ flutter_tts: ^2.1.0
+ fluttertoast: ^7.1.8
+ cloud_firestore: ^0.16.0+1
+ shared_preferences: ^0.5.12+4
+ http: ^0.12.2
+ cached_network_image: ^2.5.0
+ webview_flutter: ^1.0.7
+ geolocator: ^6.2.1
+ url_launcher: ^5.7.10
+ lite_rolling_switch: ^0.1.1
+ provider: ^4.3.3
+ flutter_phoenix: "^0.1.0"
+
+ # The following adds the Cupertino Icons font to your application.
+ # Use with the CupertinoIcons class for iOS style icons.
+ cupertino_icons: ^1.0.0
+
+dev_dependencies:
+ flutter_test:
+ sdk: flutter
+
+# 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/images/logo.png
+
+ # 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: LexendDeca
+ fonts:
+ - asset: fonts/LexendDeca-Regular.ttf
+ # - family: Trajan Pro
+ # fonts:
+ # - asset: fonts/TrajanPro.ttf
+ # - asset: fonts/TrajanPro_Bold.ttf
+ # weight: 700
+ #
+ # 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..95ae1a1
--- /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:bharat_mystery/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);
+ });
+}