diff --git a/GmailApp/.gitignore b/GmailApp/.gitignore new file mode 100644 index 0000000..1ba9c33 --- /dev/null +++ b/GmailApp/.gitignore @@ -0,0 +1,43 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Exceptions to above rules. +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/GmailApp/.metadata b/GmailApp/.metadata new file mode 100644 index 0000000..6ac2303 --- /dev/null +++ b/GmailApp/.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: f7a6a7906be96d2288f5d63a5a54c515a6e987fe + channel: stable + +project_type: app diff --git a/GmailApp/README.md b/GmailApp/README.md new file mode 100644 index 0000000..da24187 --- /dev/null +++ b/GmailApp/README.md @@ -0,0 +1,16 @@ +# GmailApp + +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/GmailApp/android/.gitignore b/GmailApp/android/.gitignore new file mode 100644 index 0000000..bc2100d --- /dev/null +++ b/GmailApp/android/.gitignore @@ -0,0 +1,7 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java diff --git a/GmailApp/android/app/build.gradle b/GmailApp/android/app/build.gradle new file mode 100644 index 0000000..b0ebbd4 --- /dev/null +++ b/GmailApp/android/app/build.gradle @@ -0,0 +1,63 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 28 + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + lintOptions { + disable 'InvalidPackage' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.GmailApp" + minSdkVersion 16 + targetSdkVersion 28 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/GmailApp/android/app/src/debug/AndroidManifest.xml b/GmailApp/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..4712ffd --- /dev/null +++ b/GmailApp/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/GmailApp/android/app/src/main/AndroidManifest.xml b/GmailApp/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c02057a --- /dev/null +++ b/GmailApp/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + diff --git a/GmailApp/android/app/src/main/kotlin/com/example/GmailApp/MainActivity.kt b/GmailApp/android/app/src/main/kotlin/com/example/GmailApp/MainActivity.kt new file mode 100644 index 0000000..2f5bf85 --- /dev/null +++ b/GmailApp/android/app/src/main/kotlin/com/example/GmailApp/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.GmailApp + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/GmailApp/android/app/src/main/res/drawable/launch_background.xml b/GmailApp/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/GmailApp/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/GmailApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/GmailApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/GmailApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/GmailApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/GmailApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/GmailApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/GmailApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/GmailApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/GmailApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/GmailApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/GmailApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/GmailApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/GmailApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/GmailApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/GmailApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/GmailApp/android/app/src/main/res/values/styles.xml b/GmailApp/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..1f83a33 --- /dev/null +++ b/GmailApp/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/GmailApp/android/app/src/profile/AndroidManifest.xml b/GmailApp/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..4712ffd --- /dev/null +++ b/GmailApp/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/GmailApp/android/build.gradle b/GmailApp/android/build.gradle new file mode 100644 index 0000000..3100ad2 --- /dev/null +++ b/GmailApp/android/build.gradle @@ -0,0 +1,31 @@ +buildscript { + ext.kotlin_version = '1.3.50' + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.5.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/GmailApp/android/gradle.properties b/GmailApp/android/gradle.properties new file mode 100644 index 0000000..38c8d45 --- /dev/null +++ b/GmailApp/android/gradle.properties @@ -0,0 +1,4 @@ +org.gradle.jvmargs=-Xmx1536M +android.enableR8=true +android.useAndroidX=true +android.enableJetifier=true diff --git a/GmailApp/android/gradle/wrapper/gradle-wrapper.properties b/GmailApp/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..296b146 --- /dev/null +++ b/GmailApp/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/GmailApp/android/settings.gradle b/GmailApp/android/settings.gradle new file mode 100644 index 0000000..5a2f14f --- /dev/null +++ b/GmailApp/android/settings.gradle @@ -0,0 +1,15 @@ +include ':app' + +def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() + +def plugins = new Properties() +def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') +if (pluginsFile.exists()) { + pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } +} + +plugins.each { name, path -> + def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() + include ":$name" + project(":$name").projectDir = pluginDirectory +} diff --git a/GmailApp/fonts/BalsamiqSans-Bold.ttf b/GmailApp/fonts/BalsamiqSans-Bold.ttf new file mode 100644 index 0000000..840ff31 Binary files /dev/null and b/GmailApp/fonts/BalsamiqSans-Bold.ttf differ diff --git a/GmailApp/fonts/BalsamiqSans-BoldItalic.ttf b/GmailApp/fonts/BalsamiqSans-BoldItalic.ttf new file mode 100644 index 0000000..9a8d756 Binary files /dev/null and b/GmailApp/fonts/BalsamiqSans-BoldItalic.ttf differ diff --git a/GmailApp/fonts/BalsamiqSans-Italic.ttf b/GmailApp/fonts/BalsamiqSans-Italic.ttf new file mode 100644 index 0000000..6c749d4 Binary files /dev/null and b/GmailApp/fonts/BalsamiqSans-Italic.ttf differ diff --git a/GmailApp/fonts/BalsamiqSans-Regular.ttf b/GmailApp/fonts/BalsamiqSans-Regular.ttf new file mode 100644 index 0000000..5f3febf Binary files /dev/null and b/GmailApp/fonts/BalsamiqSans-Regular.ttf differ diff --git a/GmailApp/images/Noresult.jpg b/GmailApp/images/Noresult.jpg new file mode 100644 index 0000000..fd89983 Binary files /dev/null and b/GmailApp/images/Noresult.jpg differ diff --git a/GmailApp/images/Yash.jpg b/GmailApp/images/Yash.jpg new file mode 100644 index 0000000..582d257 Binary files /dev/null and b/GmailApp/images/Yash.jpg differ diff --git a/GmailApp/ios/.gitignore b/GmailApp/ios/.gitignore new file mode 100644 index 0000000..e96ef60 --- /dev/null +++ b/GmailApp/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/GmailApp/ios/Flutter/AppFrameworkInfo.plist b/GmailApp/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..6b4c0f7 --- /dev/null +++ b/GmailApp/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 8.0 + + diff --git a/GmailApp/ios/Flutter/Debug.xcconfig b/GmailApp/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/GmailApp/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/GmailApp/ios/Flutter/Release.xcconfig b/GmailApp/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/GmailApp/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/GmailApp/ios/Runner.xcodeproj/project.pbxproj b/GmailApp/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..39316ca --- /dev/null +++ b/GmailApp/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,506 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.GmailApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.GmailApp; + 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.GmailApp; + 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/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/GmailApp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/GmailApp/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/GmailApp/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..a28140c --- /dev/null +++ b/GmailApp/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GmailApp/ios/Runner.xcworkspace/contents.xcworkspacedata b/GmailApp/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/GmailApp/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/GmailApp/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/GmailApp/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/GmailApp/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/GmailApp/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/GmailApp/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/GmailApp/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/GmailApp/ios/Runner/AppDelegate.swift b/GmailApp/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..70693e4 --- /dev/null +++ b/GmailApp/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/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/GmailApp/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/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..28c6bf0 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..f091b6b Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cde121 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..d0ef06e Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..dcdc230 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..c8f9ed8 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..75b2d16 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..c4df70d Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..6a84f41 Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/GmailApp/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/GmailApp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/GmailApp/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/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/GmailApp/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/GmailApp/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/GmailApp/ios/Runner/Base.lproj/LaunchScreen.storyboard b/GmailApp/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/GmailApp/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GmailApp/ios/Runner/Base.lproj/Main.storyboard b/GmailApp/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/GmailApp/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GmailApp/ios/Runner/Info.plist b/GmailApp/ios/Runner/Info.plist new file mode 100644 index 0000000..a334c8a --- /dev/null +++ b/GmailApp/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + GmailApp + 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/GmailApp/ios/Runner/Runner-Bridging-Header.h b/GmailApp/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/GmailApp/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/GmailApp/lib/GmailList/DismissibleStyle.dart b/GmailApp/lib/GmailList/DismissibleStyle.dart new file mode 100644 index 0000000..b287d86 --- /dev/null +++ b/GmailApp/lib/GmailList/DismissibleStyle.dart @@ -0,0 +1,29 @@ +import 'package:flutter/material.dart'; + +class Style extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Container( + color: Colors.red, + padding: EdgeInsets.symmetric(horizontal: 20), + alignment: AlignmentDirectional.centerStart, + child: Icon( + Icons.delete, + color: Colors.white, + )); + } +} + +class SecondStyle extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Container( + color: Colors.red, + padding: EdgeInsets.symmetric(horizontal: 20), + alignment: AlignmentDirectional.centerEnd, + child: Icon( + Icons.delete, + color: Colors.white, + )); + } +} diff --git a/GmailApp/lib/GmailList/Drawer.dart b/GmailApp/lib/GmailList/Drawer.dart new file mode 100644 index 0000000..ec838de --- /dev/null +++ b/GmailApp/lib/GmailList/Drawer.dart @@ -0,0 +1,52 @@ +import 'package:flutter/material.dart'; + +class Drawers extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Drawer( + child: ListView( + children: [ + UserAccountsDrawerHeader( + decoration: BoxDecoration(color: Colors.blue), + accountName: Container( + margin: EdgeInsets.only(top: 10), + child: Text( + 'Yash Jain', + style: TextStyle(fontFamily: 'BalsamiqSans', fontSize: 15), + ), + ), + accountEmail: Text('Jainism987e@gmail.com', + style: TextStyle(fontFamily: 'BalsamiqSans', fontSize: 15)), + currentAccountPicture: CircleAvatar( + backgroundImage: AssetImage('images/Yash.jpg'), + ), + ), + ListTile( + leading: Icon(Icons.inbox), + title: Text('Inbox'), + ), + ListTile( + leading: Icon(Icons.send), + title: Text('Sent'), + ), + ListTile( + leading: Icon(Icons.drafts), + title: Text('Draft'), + ), + ListTile( + leading: Icon(Icons.mail_outline), + title: Text('All mail'), + ), + ListTile( + leading: Icon(Icons.settings), + title: Text('Settings'), + ), + ListTile( + leading: Icon(Icons.help_outline), + title: Text('Help and Feedback'), + ), + ], + ), + ); + } +} diff --git a/GmailApp/lib/GmailList/Floating_button.dart b/GmailApp/lib/GmailList/Floating_button.dart new file mode 100644 index 0000000..5174644 --- /dev/null +++ b/GmailApp/lib/GmailList/Floating_button.dart @@ -0,0 +1,36 @@ +import 'package:flutter/material.dart'; + +class Floatingpainter extends CustomPainter { + @override + void paint(Canvas canvas, Size size) { + Paint amber = Paint() + ..color = Colors.amber + ..strokeWidth = 5; + + Paint green = Paint() + ..color = Colors.green + ..strokeWidth = 5; + + Paint blue = Paint() + ..color = Colors.blue + ..strokeWidth = 5; + + Paint red = Paint() + ..color = Colors.red + ..strokeWidth = 5; + + canvas.drawLine(Offset(size.width * 0.27, size.height * 0.5), + Offset(size.width * 0.5, size.height * 0.5), amber); + canvas.drawLine(Offset(size.width * 0.5, size.height * 0.5), + Offset(size.width * 0.5, size.height - (size.height * 0.27)), green); + canvas.drawLine(Offset(size.width * 0.5, size.height * 0.5), + Offset(size.width - (size.width * 0.27), size.height * 0.5), blue); + canvas.drawLine(Offset(size.width * 0.5, size.height * 0.48), + Offset(size.width * 0.5, size.height * 0.27), red); + } + + @override + bool shouldRepaint(CustomPainter oldDelegate) { + return false; + } +} diff --git a/GmailApp/lib/GmailList/List.dart b/GmailApp/lib/GmailList/List.dart new file mode 100644 index 0000000..5c1831c --- /dev/null +++ b/GmailApp/lib/GmailList/List.dart @@ -0,0 +1,300 @@ +import 'dart:async'; +import 'package:flutter/material.dart'; +import 'package:floating_search_bar/floating_search_bar.dart'; +import 'package:sqflite/sqflite.dart'; +import '../compose/compose.dart'; +import '../model/Email.dart'; +import '../utils/database_helper.dart'; +import './Search_bar.dart'; +import './Floating_button.dart'; +import '../email_description/email_description.dart'; +import './DismissibleStyle.dart'; +import './RouteTransition.dart'; +import './Drawer.dart'; + +class Gmaillist extends StatefulWidget { + @override + State createState() { + return _Gmaillist(); + } +} + +class _Gmaillist extends State { + Email email = Email('', '', '', '', '', 1, ''); + Databasehelper databasehelper = Databasehelper(); + List emaillist; + Email refemail = Email('', '', '', '', '', 1, ''); + int count = 0; + + final GlobalKey _scaffoldkey = GlobalKey(); + + @override + Widget build(BuildContext context) { + TextStyle titlestyle = Theme.of(context).textTheme.subtitle1; + if (emaillist == null) { + emaillist = List(); + updateemail(); + } + + return Scaffold( + key: _scaffoldkey, + body: Builder( + builder: (context) => Container( + margin: EdgeInsets.only( + top: 10.0, + ), + child: FloatingSearchBar.builder( + itemCount: count, + itemBuilder: (BuildContext context, int position) { + return Dismissible( + key: UniqueKey(), + background: Style(), + secondaryBackground: SecondStyle(), + onDismissed: (direction) { + _deleteEmail(context, this.emaillist[position]); + }, + child: Card( + margin: EdgeInsets.only( + top: 1.0, bottom: 1.0, left: 10.0, right: 10.0), + elevation: 3.0, + child: ListTile( + leading: CircleAvatar( + backgroundColor: Color( + int.parse(this.emaillist[position].color)), + child: Text( + this.emaillist[position].subject[0].toUpperCase(), + style: TextStyle( + fontWeight: FontWeight.w500, + fontSize: 20, + color: Colors.white), + ), + ), + title: Column( + children: [ + Container( + padding: EdgeInsets.only(top: 5.0, bottom: 0), + child: SizedBox( + height: 25, + child: Row( + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: Text( + ('To: ' + + this + .emaillist[position] + .reciever + .split('@')[0]), + overflow: TextOverflow.ellipsis, + style: TextStyle(fontSize: 18), + )), + Padding( + padding: EdgeInsets.only(left: 3), + child: Text( + this + .emaillist[position] + .date + .split(',')[0], + style: titlestyle, + ), + ) + ], + ), + )), + Row( + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + children: [ + Container( + width: MediaQuery.of(context).size.width * + 0.57, + child: Text( + this.emaillist[position].subject, + overflow: TextOverflow.ellipsis, + style: TextStyle(fontSize: 16), + ), + ), + ], + ), + ], + ), + subtitle: Container( + margin: EdgeInsets.only(bottom: 3), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: Text( + this.emaillist[position].compose, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 15, color: Colors.black54), + )), + Container( + padding: EdgeInsets.only(left: 5), + child: GestureDetector( + onTap: () { + star(position); + }, + child: emaillist[position].star == 1 + ? Icon(Icons.star_border) + : Icon( + Icons.star, + color: Colors.yellow, + ), + ), + ) + ], + ), + ), + onTap: () { + Icon ref = emaillist[position].star == 1 + ? const Icon(Icons.star_border) + : const Icon( + Icons.star, + color: Colors.yellow, + ); + navigatetodescription( + this.emaillist[position], ref, context); + }, + ), + ), + ); + }, + trailing: CircleAvatar( + backgroundImage: AssetImage('images/Yash.jpg'), + ), + drawer: Drawers(), + onTap: () async { + final searches = subjects(); + + Email result = await showSearch( + context: context, + delegate: Searchbar(searches), + ); + + if (result != null) { + navigatetodescription( + result, + result.star == 1 + ? const Icon(Icons.star_border) + : const Icon( + Icons.star, + color: Colors.yellow, + ), + context); + } + + FocusScope.of(context).requestFocus(FocusNode()); + }, + decoration: + InputDecoration.collapsed(hintText: "Search mail"), + ))), + floatingActionButton: Container( + margin: EdgeInsets.only(bottom: 25), + child: FloatingActionButton( + backgroundColor: Colors.white, + tooltip: 'Compose Email', + child: CustomPaint( + child: Container(), + foregroundPainter: Floatingpainter(), + ), + onPressed: () { + navigatetocompose(email); + }, + ), + )); + } + + void navigatetocompose(Email email) async { + var result = + await Navigator.push(context, Transition(page: Compose(email))); + + if (result == true) { + updateemail(); + } + } + + void navigatetodescription( + Email email, Icon icon, BuildContext context) async { + var result = await Navigator.push( + context, Transition(page: Description(email, icon))); + if (result == 1) { + updateemail(); + } else { + _deleteEmail(context, result); + updateemail(); + } + } + + void _deleteEmail(BuildContext context, Email email) async { + refemail = Email(email.sender, email.reciever, email.subject, email.compose, + email.date, email.star, email.color); + int result = await databasehelper.deleteEmail(email.id); + if (result != 0) { + showsnackbar(context, 'Email deleted Successfully'); + updateemail(); + } + } + + void star(int pos) async { + if (this.emaillist[pos].star == 1) { + this.emaillist[pos].star = 2; + int result = await databasehelper.updateemail(emaillist[pos]); + if (result != 0) { + setState(() {}); + } + } else { + this.emaillist[pos].star = 1; + int result = await databasehelper.updateemail(emaillist[pos]); + if (result != 0) { + setState(() {}); + } + } + } + + void undo(Email email) async { + await databasehelper.insertEmail(email); + updateemail(); + } + + void showsnackbar(BuildContext context, String message) { + Scaffold.of(context).showSnackBar(SnackBar( + content: Text(message), + duration: Duration(seconds: 2), + behavior: SnackBarBehavior.fixed, + action: SnackBarAction( + label: 'Undo', + onPressed: () { + Scaffold.of(context).hideCurrentSnackBar(); + undo(refemail); + refemail = Email('', '', '', '', '', 1, ''); + }), + )); + } + + void updateemail() { + final Future dbfuture = databasehelper.initializeDatabase(); + dbfuture.then((emailList) { + Future> emailListFuture = databasehelper.getEmaillist(); + emailListFuture.then((emailList) { + setState(() { + this.emaillist = emailList; + this.count = emailList.length; + }); + }); + }); + } + + List> subjects() { + int count = emaillist.length; + List> searches = new List.generate(count, (i) => new List(2)); + + for (int i = 0; i < count; i++) { + searches[i][0] = this.emaillist[i].subject; + searches[i][1] = this.emaillist[i].color; + } + return searches; + } +} diff --git a/GmailApp/lib/GmailList/RouteTransition.dart b/GmailApp/lib/GmailList/RouteTransition.dart new file mode 100644 index 0000000..c10d84c --- /dev/null +++ b/GmailApp/lib/GmailList/RouteTransition.dart @@ -0,0 +1,27 @@ +import 'package:flutter/material.dart'; + +class Transition extends PageRouteBuilder { + final page; + Transition({this.page}) + : super( + pageBuilder: ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) => + page, + transitionsBuilder: ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) => + SlideTransition( + position: Tween( + begin: const Offset(2, 0), + end: Offset.zero, + ).animate(animation), + child: child, + ), + ); +} diff --git a/GmailApp/lib/GmailList/Search_bar.dart b/GmailApp/lib/GmailList/Search_bar.dart new file mode 100644 index 0000000..096d27d --- /dev/null +++ b/GmailApp/lib/GmailList/Search_bar.dart @@ -0,0 +1,152 @@ +import 'package:flutter/material.dart'; +import '../model/Email.dart'; +import '../utils/database_helper.dart'; + +class Searchbar extends SearchDelegate { + List> search; + + Searchbar(this.search); + + Databasehelper databasehelper = Databasehelper(); + Email email; + List ref = []; + List recentsearch = []; + BuildContext context; + + Future _query(query) async { + final row = await databasehelper.getitem(query); + row.forEach((row) => ref.add(Email.fromMapObject(row))); + return ref; + } + + @override + String get searchFieldLabel => 'Search by Subject'; + + @override + List buildActions(BuildContext context) { + return [ + IconButton( + icon: Icon(Icons.clear), + onPressed: () { + query = ''; + }) + ]; + } + + @override + Widget buildLeading(BuildContext context) { + return IconButton( + icon: AnimatedIcon( + icon: AnimatedIcons.menu_arrow, progress: transitionAnimation), + onPressed: () { + Navigator.pop(context, null); + }); + } + + @override + Widget buildResults(BuildContext context) { + void navigatetodescription(ourquery) async { + await _query(ourquery); + List email; + + email = ref.where((element) => element.subject == ourquery).toList(); + navigate(context, email); + } + + final suggestions = + search.where((searching) => searching[0].startsWith(query)).toList(); + + if (query.isEmpty) { + return Container(); + } else { + if (suggestions.isEmpty) { + return Container( + width: MediaQuery.of(context).size.width, + height: MediaQuery.of(context).size.height, + child: Image.asset('images/Noresult.jpg'), + ); + } else { + return ListView.builder( + itemCount: suggestions.length, + itemBuilder: (context, index) => Container( + margin: EdgeInsets.only(top: 10), + child: ListTile( + onTap: () { + this.query = suggestions[index][0]; + navigatetodescription(this.query); + }, + leading: CircleAvatar( + backgroundColor: + Color(int.parse(suggestions[index][1])), + child: Text( + suggestions[index][0][0].toUpperCase(), + style: TextStyle( + fontWeight: FontWeight.w500, + fontSize: 20, + color: Colors.white), + ), + ), + title: Text( + suggestions[index][0], + style: TextStyle(fontSize: 20), + )), + )); + } + } + } + + @override + Widget buildSuggestions(BuildContext context) { + void navigatetodescription(ourquery) async { + await _query(ourquery); + List email; + + email = ref.where((element) => element.subject == ourquery).toList(); + + navigate(context, email); + } + + final suggestions = + search.where((searching) => searching[0].contains(query)).toList(); + + if (query.isEmpty) { + return Container(); + } else { + if (suggestions.isEmpty) { + return Center( + child: Text("No Matching Email for '$query'"), + ); + } else { + return ListView.builder( + itemCount: suggestions.length, + itemBuilder: (context, index) => Container( + margin: EdgeInsets.only(top: 10), + child: ListTile( + onTap: () { + this.query = suggestions[index][0]; + navigatetodescription(this.query); + }, + leading: CircleAvatar( + backgroundColor: + Color(int.parse(suggestions[index][1])), + child: Text( + suggestions[index][0][0].toUpperCase(), + style: TextStyle( + fontWeight: FontWeight.w500, + fontSize: 20, + color: Colors.white), + ), + ), + title: Text( + suggestions[index][0], + style: TextStyle(fontSize: 20), + )), + )); + } + } + } + + void navigate(BuildContext context, List email) async { + close(context, email[0]); + } +} diff --git a/GmailApp/lib/compose/compose.dart b/GmailApp/lib/compose/compose.dart new file mode 100644 index 0000000..c476748 --- /dev/null +++ b/GmailApp/lib/compose/compose.dart @@ -0,0 +1,234 @@ +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; +import 'dart:math'; +import '../model/Email.dart'; +import '../utils/database_helper.dart'; +import './inputdecoration.dart'; + +class Compose extends StatefulWidget { + final Email email; + Compose(this.email); + @override + State createState() { + return _Compose(this.email); + } +} + +class _Compose extends State { + var _formkey = GlobalKey(); + + TextEditingController sender = TextEditingController(); + TextEditingController reciever = TextEditingController(); + TextEditingController subject = TextEditingController(); + TextEditingController compose = TextEditingController(); + + Databasehelper databasehelper = Databasehelper(); + Email email; + + _Compose(this.email); + + @override + Widget build(BuildContext context) { + return WillPopScope( + onWillPop: () { + moveback(); + return null; + }, + child: Scaffold( + resizeToAvoidBottomPadding: false, + appBar: AppBar( + backgroundColor: Colors.white, + elevation: 0.0, + leading: IconButton( + color: Colors.black, + icon: Icon(Icons.arrow_back), + onPressed: () { + moveback(); + }), + title: Text( + "Compose", + style: TextStyle(color: Colors.black), + ), + actions: [ + IconButton( + color: Colors.blue, + icon: Icon(Icons.send), + onPressed: () { + setState(() { + if (_formkey.currentState.validate()) { + sender.clear(); + reciever.clear(); + subject.clear(); + compose.clear(); + _send(); + } + }); + }), + IconButton( + color: Colors.black, + icon: Icon(Icons.attach_file), + onPressed: () {}), + ], + ), + body: Form( + key: _formkey, + child: SingleChildScrollView( + child: Column(children: [ + Padding( + padding: EdgeInsets.only( + top: 20, + left: 20, + right: 20, + ), + child: TextFormField( + keyboardType: TextInputType.emailAddress, + controller: sender, + validator: _validateEmail, + style: TextStyle(fontSize: 20.0), + decoration: decoration('From', context), + onChanged: (value) { + email.sender = sender.text; + }, + )), + Padding( + padding: EdgeInsets.only( + top: 20, + left: 20, + right: 20, + ), + child: TextFormField( + keyboardType: TextInputType.emailAddress, + controller: reciever, + validator: _validateEmail, + style: TextStyle(fontSize: 20.0), + decoration: decoration('To', context), + onChanged: (value) { + email.reciever = reciever.text; + }, + )), + Padding( + padding: EdgeInsets.only( + top: 20, + left: 20, + right: 20, + ), + child: TextFormField( + style: TextStyle(fontSize: 20.0), + keyboardType: TextInputType.text, + controller: subject, + validator: (String value) { + if (value.isEmpty) { + return 'Please enter Subject'; + } + return null; + }, + decoration: decoration('Subject', context), + onChanged: (value) { + email.subject = subject.text; + }, + )), + Padding( + padding: EdgeInsets.only( + top: 20, + left: 20, + right: 20, + ), + child: TextFormField( + maxLines: 2, + keyboardType: TextInputType.text, + controller: compose, + validator: (String value) { + if (value.isEmpty) { + return 'Please Enter Compose'; + } + return null; + }, + style: TextStyle(fontSize: 20.0), + decoration: decoration('Compose Email', context), + onChanged: (value) { + email.compose = compose.text; + }, + )), + ]), + ), + ))); + } + + void _send() async { + moveback(); + + email.date = DateFormat.MMMd().format(DateTime.now()) + + ', ' + + DateFormat.jm().format(DateTime.now()); + email.color = random(); + int result = await databasehelper.insertEmail(email); + + if (result != 0) { + _showAlertDialog('Status', 'Email Sent Successfully'); + } else { + _showAlertDialog('Status', 'Error Sending Email'); + } + } + + void _showAlertDialog(String title, String message) { + AlertDialog alertDialog = AlertDialog( + title: Text(title), + content: Text(message), + ); + showDialog(context: context, builder: (_) => alertDialog); + } + + void moveback() { + Navigator.pop(context, true); + } + + String _validateEmail(String value) { + if (value.isEmpty) { + return "Enter email address"; + } + String p = "[a-zA-Z0-9\+\.\_\%\-\+]{1,256}" + + "\\@" + + "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}" + + "(" + + "\\." + + "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,25}" + + ")+"; + RegExp regExp = new RegExp(p); + + if (regExp.hasMatch(value)) { + if (sender.text == reciever.text) { + return 'Emails are Equal'; + } else { + return null; + } + } + + return 'Email is not valid'; + } + + String random() { + var rand = Random(); + int number = rand.nextInt(10); + if (number == 1) { + return '0xFFFF4848'; + } else if (number == 2) { + return '0xFF0A79DF'; + } else if (number == 3) { + return '0xFF67E6DC'; + } else if (number == 4) { + return '0xFFBB2CD9'; + } else if (number == 5) { + return '0xFFE74292'; + } else if (number == 6) { + return '0xFFA3CB37'; + } else if (number == 7) { + return '0xFFEEC213'; + } else if (number == 8) { + return '0xFFF9DDA4'; + } else if (number == 9) { + return '0xFF758AA2'; + } else { + return '0xFF4BCFFA'; + } + } +} diff --git a/GmailApp/lib/compose/inputdecoration.dart b/GmailApp/lib/compose/inputdecoration.dart new file mode 100644 index 0000000..b3850f2 --- /dev/null +++ b/GmailApp/lib/compose/inputdecoration.dart @@ -0,0 +1,20 @@ +import 'package:flutter/material.dart'; + +InputDecoration decoration(String str, BuildContext context) { + TextStyle title = Theme.of(context).textTheme.subtitle1; + return InputDecoration( + hintText: str, + labelStyle: title, + errorBorder: OutlineInputBorder( + borderSide: BorderSide(color: Colors.redAccent), + borderRadius: BorderRadius.all(Radius.circular(20))), + focusedErrorBorder: OutlineInputBorder( + borderSide: BorderSide(color: Colors.greenAccent), + borderRadius: BorderRadius.all(Radius.circular(20))), + enabledBorder: OutlineInputBorder( + borderSide: BorderSide(color: Colors.redAccent), + borderRadius: BorderRadius.all(Radius.circular(20))), + focusedBorder: OutlineInputBorder( + borderSide: BorderSide(color: Colors.greenAccent), + borderRadius: BorderRadius.all(Radius.circular(20)))); +} diff --git a/GmailApp/lib/email_description/Sender_description.dart b/GmailApp/lib/email_description/Sender_description.dart new file mode 100644 index 0000000..1324a73 --- /dev/null +++ b/GmailApp/lib/email_description/Sender_description.dart @@ -0,0 +1,88 @@ +import 'package:flutter/material.dart'; + +class Details extends StatelessWidget { + final String sender; + final String reciever; + final String date; + final int width; + final int height; + Details(this.sender, this.reciever, this.date, this.width, this.height); + + @override + Widget build(BuildContext context) { + return Container( + margin: EdgeInsets.only(top: 10), + height: height.toDouble(), + width: width.toDouble(), + decoration: BoxDecoration( + color: Colors.blue, + border: Border.all(), + borderRadius: BorderRadius.all(Radius.circular(5))), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Padding( + padding: EdgeInsets.only(left: 15), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + "From :", + style: TextStyle(fontSize: 20, color: Colors.white), + ), + Expanded( + child: Padding( + padding: EdgeInsets.only(left: 20), + child: Text( + sender, + style: TextStyle(fontSize: 20, color: Colors.white), + ), + )) + ], + ), + ), + Padding( + padding: EdgeInsets.only(left: 15), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + "To :", + style: TextStyle(fontSize: 20, color: Colors.white), + ), + Expanded( + child: Padding( + padding: EdgeInsets.only(left: 45), + child: Text( + reciever, + style: TextStyle(fontSize: 20, color: Colors.white), + ), + )) + ], + ), + ), + Padding( + padding: EdgeInsets.only(left: 15), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + "Date :", + style: TextStyle(fontSize: 20, color: Colors.white), + ), + Expanded( + child: Padding( + padding: EdgeInsets.only(left: 20), + child: Text( + date, + style: TextStyle(fontSize: 20, color: Colors.white), + ), + )) + ], + ), + ) + ], + ), + ); + } +} diff --git a/GmailApp/lib/email_description/email_description.dart b/GmailApp/lib/email_description/email_description.dart new file mode 100644 index 0000000..d1a8834 --- /dev/null +++ b/GmailApp/lib/email_description/email_description.dart @@ -0,0 +1,229 @@ +import 'package:GmailApp/GmailList/RouteTransition.dart'; +import 'package:flutter/material.dart'; +import '../utils/database_helper.dart'; +import '../model/Email.dart'; +import './Sender_description.dart'; +import '../compose/compose.dart'; + +class Description extends StatefulWidget { + final Email email; + final Icon icon; + + Description(this.email, this.icon); + @override + State createState() { + return _Description(this.email, this.icon); + } +} + +class _Description extends State { + Databasehelper databasehelper = Databasehelper(); + List emaillist; + int count = 0; + Email email; + Email newEmail = Email('', '', '', '', '', 1, ''); + Icon _icon; + bool sender = true; + int value; + + _Description(this.email, this._icon); + + @override + Widget build(BuildContext context) { + return WillPopScope( + onWillPop: () { + moveback(1); + return null; + }, + child: Scaffold( + appBar: PreferredSize( + preferredSize: Size.fromHeight(60.0), + child: AppBar( + elevation: 0.0, + backgroundColor: Colors.white, + leading: IconButton( + icon: Icon( + Icons.arrow_back, + color: Colors.black, + ), + onPressed: () { + moveback(1); + }), + actions: [ + IconButton( + icon: Icon( + Icons.delete, + color: Colors.black, + ), + onPressed: () { + moveback(2); + }), + ], + ), + ), + body: SingleChildScrollView( + child: Container( + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Container( + width: (MediaQuery.of(context).size.width * 0.85), + padding: EdgeInsets.only(top: 30, left: 30), + child: Text( + this.email.subject, + style: TextStyle( + fontSize: 30, fontWeight: FontWeight.w100), + ), + ), + Container( + padding: EdgeInsets.only(right: 20, top: 30), + child: _icon), + ], + ), + Card( + margin: EdgeInsets.only(top: 25), + elevation: 0, + child: ListTile( + leading: CircleAvatar( + backgroundColor: Color(int.parse(this.email.color)), + child: Text( + this.email.subject[0].toUpperCase(), + style: TextStyle( + fontWeight: FontWeight.w500, + fontSize: 20, + color: Colors.white), + ), + ), + title: SizedBox( + child: Row( + children: [ + Padding( + padding: EdgeInsets.only(right: 10), + child: Text( + "Yash Jain", + style: TextStyle(fontSize: 22), + ), + ), + Text( + this.email.date, + style: + TextStyle(fontSize: 13, color: Colors.grey), + ) + ], + ), + ), + trailing: IconButton( + icon: icon, + onPressed: () { + setState(() { + show(); + }); + })), + ), + Details( + email.sender, email.reciever, email.date, width, height), + Container( + margin: EdgeInsets.only(top: 60, right: 20, left: 20), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Expanded( + child: Container( + margin: EdgeInsets.only(bottom: 40), + child: Text( + this.email.compose, + style: TextStyle(fontSize: 20), + ), + )), + ], + ), + ), + Container( + margin: EdgeInsets.only(top: 70, bottom: 50), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Container( + decoration: BoxDecoration( + border: Border.all(), + borderRadius: + BorderRadius.all(Radius.elliptical(5, 3))), + margin: EdgeInsets.only(left: 30), + width: (MediaQuery.of(context).size.width * 0.35), + height: (MediaQuery.of(context).size.height * 0.06), + child: FlatButton( + color: Color(0xFFEA7773), + textColor: Colors.white, + onPressed: () { + navigatetocompose(newEmail); + }, + child: Text( + 'Reply All', + style: TextStyle(fontSize: 20), + )), + ), + Container( + decoration: BoxDecoration( + border: Border.all(), + borderRadius: + BorderRadius.all(Radius.elliptical(5, 3))), + margin: EdgeInsets.only(right: 30), + width: (MediaQuery.of(context).size.width * 0.35), + height: (MediaQuery.of(context).size.height * 0.06), + child: FlatButton( + color: Color(0xFFEA7773), + textColor: Colors.white, + onPressed: () { + navigatetocompose(newEmail); + }, + child: Text( + 'Reply', + style: TextStyle(fontSize: 20), + )), + ) + ], + ), + ) + ], + )), + ), + )); + } + + void moveback(int num) { + if (num == 1) { + Navigator.pop(context, 1); + } else { + Navigator.pop(context, this.email); + } + } + + void navigatetocompose(Email email) async { + var result = + await Navigator.push(context, Transition(page: Compose(email))); + + if (result == true) { + moveback(1); + } + } + + int width = 0; + int height = 0; + Icon icon = Icon(Icons.keyboard_arrow_down); + void show() { + if (sender) { + width = (MediaQuery.of(context).size.width * 0.9).toInt(); + height = (MediaQuery.of(context).size.height * 0.3).toInt(); + sender = !sender; + icon = Icon(Icons.keyboard_arrow_up); + } else { + width = 0; + height = 0; + sender = !sender; + icon = Icon(Icons.keyboard_arrow_down); + } + } +} diff --git a/GmailApp/lib/main.dart b/GmailApp/lib/main.dart new file mode 100644 index 0000000..c17dcc5 --- /dev/null +++ b/GmailApp/lib/main.dart @@ -0,0 +1,22 @@ +import 'package:flutter/material.dart'; +import './GmailList/List.dart'; + +void main() { + runApp(MyApp()); +} + +class MyApp extends StatelessWidget { + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + title: "Gmail App", + theme: ThemeData( + primarySwatch: Colors.red, + brightness: Brightness.light, + textTheme: + Theme.of(context).textTheme.apply(fontFamily: 'BalsamiqSans')), + home: Gmaillist(), + ); + } +} diff --git a/GmailApp/lib/model/Email.dart b/GmailApp/lib/model/Email.dart new file mode 100644 index 0000000..e6196c6 --- /dev/null +++ b/GmailApp/lib/model/Email.dart @@ -0,0 +1,87 @@ +class Email { + int _id; + String _sender; + String _reciever; + String _subject; + String _compose; + String _date; + int _star; + String _color; + + Email(this._sender, this._reciever, this._subject, this._compose, this._date, + this._star, this._color); + + Email.withId(this._id, this._sender, this._reciever, this._compose, + this._subject, this._date, this._star, this._color); + + int get id => _id; + String get sender => _sender; + String get reciever => _reciever; + String get subject => _subject; + String get compose => _compose; + String get date => _date; + int get star => _star; + String get color => _color; + + set sender(String newSender) { + this._sender = newSender; + } + + set reciever(String newReciever) { + this._reciever = newReciever; + } + + set subject(String newSubject) { + if (newSubject.length <= 255) { + this._subject = newSubject; + } + } + + set compose(String newCompose) { + if (newCompose.length <= 255) { + this._compose = newCompose; + } + } + + set date(String newDate) { + this._date = newDate; + } + + set star(int newStar) { + if (newStar >= 1 && newStar <= 2) { + this._star = newStar; + } + } + + set color(String newColor) { + this._color = newColor; + } + + Map toMap() { + var map = Map(); + + if (id != null) { + map['id'] = _id; + } + map['sender'] = _sender; + map['reciever'] = _reciever; + map['subject'] = _subject; + map['compose'] = _compose; + map['date'] = _date; + map['star'] = _star; + map['color'] = _color; + + return map; + } + + Email.fromMapObject(Map map) { + this._id = map['id']; + this._sender = map['sender']; + this._reciever = map['reciever']; + this._subject = map['subject']; + this._compose = map['compose']; + this._date = map['date']; + this._star = map['star']; + this._color = map['color']; + } +} diff --git a/GmailApp/lib/utils/database_helper.dart b/GmailApp/lib/utils/database_helper.dart new file mode 100644 index 0000000..1f0572d --- /dev/null +++ b/GmailApp/lib/utils/database_helper.dart @@ -0,0 +1,100 @@ +import 'package:sqflite/sqflite.dart'; +import 'dart:async'; +import 'dart:io'; +import 'package:path_provider/path_provider.dart'; +import '../model/Email.dart'; + +class Databasehelper { + static Databasehelper _databasehelper; + static Database _database; + Databasehelper._createinstance(); + + String emailTable = 'email_table'; + String emailid = 'id'; + String emailsender = 'sender'; + String emailreciever = 'reciever'; + String emailsubject = 'subject'; + String emailcompose = 'compose'; + String emaildate = 'date'; + String emailstar = 'star'; + String color = 'color'; + + factory Databasehelper() { + if (_databasehelper == null) { + _databasehelper = Databasehelper._createinstance(); + } + return _databasehelper; + } + + Future get database async { + if (_database == null) { + _database = await initializeDatabase(); + } + return _database; + } + + Future initializeDatabase() async { + Directory directory = await getApplicationDocumentsDirectory(); + String path = directory.path + 'emails.db'; + + var database = await openDatabase(path, version: 1, onCreate: _createDb); + return database; + } + + void _createDb(Database db, int newVersion) async { + await db.execute( + 'CREATE TABLE $emailTable($emailid INTEGER PRIMARY KEY AUTOINCREMENT, $emailsender TEXT, $emailreciever TEXT, $emailsubject TEXT, $emailcompose TEXT, $emaildate TEXT, $emailstar INTEGER, $color TEXT)'); + } + + Future>> getEmailMapList() async { + Database db = await this.database; + + var emails = await db.query(emailTable, orderBy: '$emailid DESC'); + return emails; + } + + Future>> getitem(String sub) async { + Database db = await this.database; + var ref = await db.query(emailTable, where: "$emailsubject LIKE '%$sub%'"); + + return ref; + } + + Future insertEmail(Email email) async { + Database db = await this.database; + var emails = await db.insert(emailTable, email.toMap()); + return emails; + } + + Future deleteEmail(int id) async { + var db = await this.database; + int email = + await db.rawDelete('DELETE FROM $emailTable WHERE $emailid = $id'); + return email; + } + + Future updateemail(Email email) async { + var db = await this.database; + var result = await db.update(emailTable, email.toMap(), + where: '$emailid = ?', whereArgs: [email.id]); + return result; + } + + Future getCount() async { + Database db = await this.database; + List> x = await db.query(emailTable); + int numberofemails = Sqflite.firstIntValue(x); + return numberofemails; + } + + Future> getEmaillist() async { + var emailmaplist = await getEmailMapList(); + int count = emailmaplist.length; + List emailList = List(); + + for (int i = 0; i < count; i++) { + emailList.add(Email.fromMapObject(emailmaplist[i])); + } + return emailList; + } +} diff --git a/GmailApp/pubspec.lock b/GmailApp/pubspec.lock new file mode 100644 index 0000000..6f75570 --- /dev/null +++ b/GmailApp/pubspec.lock @@ -0,0 +1,259 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + archive: + dependency: transitive + description: + name: archive + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.13" + args: + dependency: transitive + description: + name: args + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.0" + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.3" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.12" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.4" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.3" + floating_search_bar: + dependency: "direct main" + description: + name: floating_search_bar + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + image: + dependency: transitive + description: + name: image + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.12" + intl: + dependency: "direct main" + description: + name: intl + url: "https://pub.dartlang.org" + source: hosted + version: "0.16.1" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.6" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.8" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.4" + path_provider: + dependency: "direct main" + description: + name: path_provider + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.8" + path_provider_macos: + dependency: transitive + description: + name: path_provider_macos + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.4+3" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.0" + platform: + dependency: transitive + description: + name: platform + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.1" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.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.7.0" + sqflite: + dependency: "direct main" + description: + name: sqflite + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.0+1" + sqflite_common: + dependency: transitive + description: + name: sqflite_common + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.3" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + synchronized: + dependency: transitive + description: + name: synchronized + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.0" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.15" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.dartlang.org" + source: hosted + version: "3.6.1" +sdks: + dart: ">=2.7.0 <3.0.0" + flutter: ">=1.12.13+hotfix.5 <2.0.0" diff --git a/GmailApp/pubspec.yaml b/GmailApp/pubspec.yaml new file mode 100644 index 0000000..47a36b5 --- /dev/null +++ b/GmailApp/pubspec.yaml @@ -0,0 +1,80 @@ +name: GmailApp +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 + floating_search_bar: ^0.3.0 + sqflite: any + path_provider: any + intl: ^0.16.1 + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^0.1.3 + +dev_dependencies: + flutter_test: + sdk: flutter + +# 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: + - images/Yash.jpg + - images/Noresult.jpg + + # 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: BalsamiqSans + fonts: + - asset: fonts/BalsamiqSans-Regular.ttf + - asset: fonts/BalsamiqSans-Bold.ttf + # style: Bold + # - 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/GmailApp/test/widget_test.dart b/GmailApp/test/widget_test.dart new file mode 100644 index 0000000..7b36c40 --- /dev/null +++ b/GmailApp/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:GmailApp/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); + }); +} diff --git a/app.apk b/app.apk new file mode 100644 index 0000000..738b913 Binary files /dev/null and b/app.apk differ