├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── rohit_app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── codeigniter-api
└── app
│ └── Controllers
│ ├── BaseController.php
│ ├── Home.php
│ ├── Users.php
│ └── myapp.sql
├── dartapp.jpg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── add_notes.dart
├── config.dart
├── dash.dart
├── dataModel.dart
├── forget.dart
├── input_field.dart
├── main.dart
├── settings.dart
├── sidebar.dart
└── time.dart
├── pubspec.lock
├── pubspec.yaml
└── screenshots.jpg
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 | /screenshots/*
34 |
35 | # Web related
36 | lib/generated_plugin_registrant.dart
37 |
38 | # Symbolication related
39 | app.*.symbols
40 |
41 | # Obfuscation related
42 | app.*.map.json
43 |
44 | # Android Studio will place build artifacts here
45 | /android/app/debug
46 | /android/app/profile
47 | /android/app/release
48 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Rohit Chouhan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
NoteBox
2 | A simple note mobile application for Android and iOS, wherein users can easily create and save personal notes on their smartphones.
3 |
4 | ### Highlighted Feature
5 | - Log-in/Sign-up
6 | - Forget Password (via SMTP Server)
7 | - Dashboard
8 | - Add New Notes
9 | - Settings
10 | - Dark Mode
11 |
12 | ### Built with
13 | - *Flutter*. UI design
14 | - *PHP (CodeIgniter Framework)*. CRUD operations with API JSON
15 |
16 | ## Getting Started
17 |
18 | ### CodeIgniter Application
19 | All the back-end/API code is developed in PHP, which is commited on folder `codeigniter-api`. Open the folder and publish to your shared hosting and connect your domain to dart application in `config.dart` file. You can replace the host name with your host name where you published your CodeIgniter application.
20 |
21 | ### Set-up Codeigniter:
22 | - Download latest CodeIgniter application from https://codeigniter.com/download.
23 | - Extract the zip file.
24 | - Copy the `app` folder from here (repository), paste to the extracted folder and replace all the files.
25 | - Deploy to hosting. Database file is also available in `app/controllers` folder. Import to hosting, then enjoy coding!
26 |
27 | > (Tutorial) How Deploy CodeIgniter 4 to Shared Hosting : https://www.youtube.com/watch?v=k943H5OiIdE
28 |
29 | ### Set-up Flutter:
30 | - Open VS Code.
31 | - Go to File.
32 | - Select Open Workspace..
33 | - Select project and open it.
34 | - Enjoy coding!!!
35 |
36 | > (Tutorial) Flutter Setup in Visual Studio Code & Running first Flutter app in Android Device : https://www.youtube.com/watch?v=WepTtmHKcoI
37 |
38 | ## API Parameters
39 | An API Parameter will be passed in CodeIgniter/PHP application from Flutter.
40 | | name| description | parameter | request type|
41 | | ------------ | ------------ | ------------ | ------------ |
42 | | /addUser | Create new user | `name` `email` `password`| POST |
43 | | /login | Authorize user | `email` `password`| POST |
44 | | /reset | Forget user account| `email` | POST |
45 | | /createNote | Create new note | `user_id` `heading` `note` | POST |
46 | | /getNotes | Get all notes by user | `id` | GET |
47 | | /getuser | Get user information | `id` | GET |
48 | | /updateUser | Update user information | `id` `name` `email` | POST |
49 | | /updatePass | Update user | `id` `cpassword` `password` | POST |
50 |
51 | ## Workflow
52 | Here is the simple workflow of how the application works:
53 |
54 |
55 | ## Screeshots
56 |
57 |
58 | ## About
59 | This application is developed by Rohit Chouhan ❤️
60 | Create an issue and pull request if you find any problem. Thank you!
61 |
62 |
63 | Last updated: 2025-06-08 12:00:37
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 30
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.example.rohit_app"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/rohit_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.rohit_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/codeigniter-api/app/Controllers/BaseController.php:
--------------------------------------------------------------------------------
1 | session = \Config\Services::session();
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/codeigniter-api/app/Controllers/Home.php:
--------------------------------------------------------------------------------
1 | conn = \Config\Database::connect();
12 | }
13 |
14 | //creating new user
15 | public function addUser(){
16 | $q = $this->conn->table('users');
17 | $cemail = $q->where('email',$this->request->getVar('email'))->countAllResults(); //email checking
18 | $data = [
19 | 'name' => $this->request->getVar('name'),
20 | 'email' => $this->request->getVar('email'),
21 | 'password' => $this->request->getVar('password')
22 | ];
23 | if($cemail>=1){
24 | echo json_encode(array(
25 | "status"=>false,
26 | "msg"=>"Email is already in used!"
27 | ));
28 | } else {
29 | if($q->insert($data)){
30 | echo json_encode(array(
31 | "status"=>true,
32 | "msg"=>"Register Successfully!"
33 | ));
34 | } else {
35 | echo json_encode(array(
36 | "status"=>false,
37 | "msg"=>"Internal Server Problem!"
38 | ));
39 | }
40 | }
41 | }
42 |
43 | //login user
44 | public function login(){
45 | $count = $this->conn->table('users')
46 | ->where('email',$this->request->getVar('email'))
47 | ->where('password',$this->request->getVar('password'))
48 | ->countAllResults();
49 | if($count==1){
50 |
51 | $u = $this->conn->table('users')->select(['id','name','email'])
52 | ->where('email',$this->request->getVar('email'))
53 | ->where('password',$this->request->getVar('password'))
54 | ->get()->getRow();
55 | $u->status = true;
56 | echo json_encode($u);
57 | // echo json_encode(array(
58 | // "status"=>true,
59 | // "msg"=>"Login Successfully!"
60 | // ));
61 | } else {
62 | echo json_encode(array(
63 | "status"=>false,
64 | "msg"=>"Invalid Username or Password"
65 | ));
66 | }
67 | }
68 |
69 | //forget password
70 | public function reset(){
71 | $useremail = $this->request->getVar('email');
72 | $newpass= random_string('alnum',12);
73 | $email = \Config\Services::email();
74 |
75 | $query = $this->conn->query("SELECT * FROM users WHERE email='$useremail'")->getRow();
76 |
77 | try {
78 | if($useremail==$query->email){
79 | $email->setTo($useremail);
80 | $email->setFrom($email->SMTPUser, $email->userAgent);
81 |
82 | $email->setSubject("Your New Password");
83 | $email->setMessage("Your New Generated Password is: ".$newpass);
84 |
85 | if ($email->send())
86 | {
87 | $q= $this->conn->table("users");
88 | $data = [
89 | 'password' => $newpass
90 | ];
91 | $q->where('email',$useremail);
92 | $q->update($data);
93 | echo '{
94 | "status":true,
95 | "msg":"New password has been sent"
96 | }';
97 | }
98 | else
99 | {
100 | echo '{
101 | "status":false,
102 | "msg":"Internal Problem"
103 | }';
104 | }
105 | } else {
106 | echo '{
107 | "status":false,
108 | "msg":"Invalid Email Address"
109 | }';
110 | }
111 | } catch (\Throwable $th) {
112 | echo '{
113 | "status":false,
114 | "msg":"Invalid Email Address"
115 | }';
116 | }
117 |
118 | }
119 |
120 | //geting all notes by user
121 | public function getNotes(){
122 | $u = $this->conn->table('notes')->select(['id','heading','date','note'])
123 | ->where('user_id',$this->request->getVar('id'))
124 | ->get()->getResult();
125 | echo json_encode($u);
126 | }
127 |
128 | public function createNote(){
129 | $q = $this->conn->table('notes');
130 | $data = [
131 | 'user_id' => $this->request->getVar('user_id'),
132 | 'heading' => $this->request->getVar('heading'),
133 | 'note' => $this->request->getVar('note'),
134 | ];
135 | if($q->insert($data)){
136 | echo json_encode(array(
137 | "status"=>true,
138 | "msg"=>"Note created successfully"
139 | ));
140 | } else {
141 | echo json_encode(array(
142 | "status"=>false,
143 | "msg"=>"Something is wrong"
144 | ));
145 | }
146 | }
147 |
148 | //get user info by id
149 | public function getuser(){
150 | $u = $this->conn->table('users')->select(['id','name','email'])
151 | ->where('id',$this->request->getVar('id'))
152 | ->get()->getRow();
153 | echo json_encode($u);
154 | }
155 |
156 | public function updatePass(){
157 |
158 | $u = $this->conn->table('users')->select(['id','name','email','password'])
159 | ->where('id',$this->request->getVar('id'))
160 | ->get()->getRow();
161 |
162 | if($u->password == $this->request->getVar('cpassword'))
163 | {
164 | $q = $this->conn->table('users');
165 | $data = [
166 | 'password' => $this->request->getVar('password')
167 | ];
168 | $q->where('id',$this->request->getVar('id'));
169 | if($q->update($data)){
170 | echo json_encode(array("status"=>true, "msg"=>"Password Changed"));
171 | } else {
172 | echo json_encode(array("status"=>false,"msg"=>"Something is wrong"));
173 | }
174 | } else{
175 | echo json_encode(array("status"=>false,"msg"=>"Incorrect current password"));
176 | }
177 | }
178 |
179 | //user update
180 | public function updateUser(){
181 | $q = $this->conn->table('users');
182 | $data = [
183 | 'name' => $this->request->getVar('name'),
184 | 'email' => $this->request->getVar('email')
185 | ];
186 | $q->where('id',$this->request->getVar('id'));
187 | if($q->update($data)){
188 | echo json_encode(array(
189 | "status"=>true,
190 | "msg"=>"Updated Successfully"
191 | ));
192 | } else {
193 | echo json_encode(array(
194 | "status"=>false,
195 | "msg"=>"Something is wrong"
196 | ));
197 | }
198 | }
199 | }
200 |
--------------------------------------------------------------------------------
/codeigniter-api/app/Controllers/myapp.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 5.1.1
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Aug 24, 2021 at 05:42 PM
7 | -- Server version: 10.4.20-MariaDB
8 | -- PHP Version: 8.0.8
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | START TRANSACTION;
12 | SET time_zone = "+00:00";
13 |
14 |
15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
18 | /*!40101 SET NAMES utf8mb4 */;
19 |
20 | --
21 | -- Database: `myapp`
22 | --
23 |
24 | -- --------------------------------------------------------
25 |
26 | --
27 | -- Table structure for table `notes`
28 | --
29 |
30 | CREATE TABLE `notes` (
31 | `id` int(11) NOT NULL,
32 | `user_id` int(11) DEFAULT NULL,
33 | `heading` varchar(30) DEFAULT NULL,
34 | `note` longtext DEFAULT NULL,
35 | `date` datetime NOT NULL DEFAULT current_timestamp()
36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
37 |
38 | -- --------------------------------------------------------
39 |
40 | --
41 | -- Table structure for table `users`
42 | --
43 |
44 | CREATE TABLE `users` (
45 | `id` int(11) NOT NULL,
46 | `name` varchar(20) NOT NULL,
47 | `email` varchar(35) NOT NULL,
48 | `password` varchar(30) NOT NULL
49 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
50 |
51 | --
52 | -- Dumping data for table `users`
53 | --
54 |
55 | INSERT INTO `users` (`id`, `name`, `email`, `password`) VALUES
56 | (1, 'Rohit Chouhan', 'itsrohitofficial@gmail.com', '123'),
57 | (2, 'Rahul', 'itsvrahul@outlook.com', '123');
58 |
59 | --
60 | -- Indexes for dumped tables
61 | --
62 |
63 | --
64 | -- Indexes for table `notes`
65 | --
66 | ALTER TABLE `notes`
67 | ADD PRIMARY KEY (`id`);
68 |
69 | --
70 | -- Indexes for table `users`
71 | --
72 | ALTER TABLE `users`
73 | ADD PRIMARY KEY (`id`);
74 |
75 | --
76 | -- AUTO_INCREMENT for dumped tables
77 | --
78 |
79 | --
80 | -- AUTO_INCREMENT for table `notes`
81 | --
82 | ALTER TABLE `notes`
83 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
84 |
85 | --
86 | -- AUTO_INCREMENT for table `users`
87 | --
88 | ALTER TABLE `users`
89 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
90 | COMMIT;
91 |
92 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
93 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
94 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
95 |
--------------------------------------------------------------------------------
/dartapp.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/dartapp.jpg
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.rohitApp;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.rohitApp;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.rohitApp;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | rohit_app
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/add_notes.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'package:cool_alert/cool_alert.dart';
3 | import 'package:flutter/cupertino.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:get_storage/get_storage.dart';
6 | import 'package:http/http.dart' as http;
7 | import 'package:myapp/dash.dart';
8 | import 'package:myapp/input_field.dart';
9 |
10 | import 'config.dart';
11 |
12 | class Add extends StatefulWidget {
13 | @override
14 | _AddState createState() => _AddState();
15 | }
16 |
17 | class _AddState extends State {
18 | String btntxt = "Create Note";
19 | TextEditingController heading = new TextEditingController();
20 | TextEditingController note = new TextEditingController();
21 | Future createnote() async {
22 | GetStorage box = GetStorage();
23 | var user_id = box.read('user_id');
24 | setState(() {
25 | btntxt = "Creating";
26 | });
27 | final response =
28 | await http.post(Uri.parse(site_url + "/createnote"), body: {
29 | "user_id": user_id,
30 | "heading": heading.text,
31 | "note": note.text,
32 | });
33 | Map js = jsonDecode(response.body);
34 | if (js['status'] == true) {
35 | CoolAlert.show(
36 | context: context,
37 | type: CoolAlertType.success,
38 | title: "Good Job",
39 | text: js['msg'],
40 | );
41 | setState(() {
42 | btntxt = "Create Note";
43 | });
44 | } else {
45 | CoolAlert.show(
46 | context: context,
47 | type: CoolAlertType.error,
48 | title: "Oops",
49 | text: js['msg'],
50 | );
51 | setState(() {
52 | btntxt = "Create Note";
53 | });
54 | }
55 | setState(() {
56 | heading = TextEditingController();
57 | note = TextEditingController();
58 | });
59 | }
60 |
61 | @override
62 | Widget build(BuildContext context) {
63 | return Scaffold(
64 | appBar: AppBar(
65 | title: Text("Create New Notes"),
66 | automaticallyImplyLeading: false,
67 | leading: IconButton(
68 | icon: Icon(Icons.arrow_back),
69 | onPressed: () => Navigator.push(
70 | context,
71 | MaterialPageRoute(
72 | builder: (context) => MyDash(),
73 | )),
74 | )),
75 | body: SingleChildScrollView(
76 | child: Padding(
77 | padding: const EdgeInsets.all(8.0),
78 | child: Container(
79 | child: Card(
80 | child: Padding(
81 | padding: const EdgeInsets.all(8.0),
82 | child: Column(
83 | children: [
84 | InputField(
85 | controller: heading,
86 | hint: "Heading",
87 | icon: Icons.add,
88 | ),
89 | TextField(
90 | controller: note,
91 | decoration: InputDecoration(
92 | labelText: "Note",
93 | border: OutlineInputBorder(),
94 | ),
95 | keyboardType: TextInputType.multiline,
96 | minLines: 1, //Normal textInputField will be displayed
97 | maxLines:
98 | 5, // when user presses enter it will adapt to it
99 | ),
100 | SizedBox(height: 18),
101 | SizedBox(
102 | height: 50,
103 | width: double.infinity,
104 | child: ElevatedButton(
105 | onPressed: () => {createnote()},
106 | child: Text(
107 | btntxt,
108 | style: TextStyle(fontSize: 18),
109 | ),
110 | ),
111 | ),
112 | SizedBox(height: 8),
113 | ],
114 | ),
115 | ),
116 | ),
117 | ),
118 | ),
119 | ),
120 | );
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/lib/config.dart:
--------------------------------------------------------------------------------
1 | //Developed by Rohit Chouhan
2 | const String site_url = 'http://192.168.43.163/myapp/users';
3 |
--------------------------------------------------------------------------------
/lib/dash.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'package:timeago/timeago.dart' as timeago;
3 | import 'package:clipboard/clipboard.dart';
4 | import 'package:flutter/cupertino.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:get/get.dart';
7 | import 'package:get_storage/get_storage.dart';
8 | import 'package:http/http.dart' as http;
9 | import 'package:myapp/add_notes.dart';
10 | import 'package:myapp/dataModel.dart';
11 | import 'package:myapp/main.dart';
12 | import 'package:myapp/settings.dart';
13 | import 'package:myapp/sidebar.dart';
14 | import 'package:share/share.dart';
15 |
16 | import 'config.dart';
17 |
18 | class MyDash extends StatefulWidget {
19 | @override
20 | _MyDashState createState() => _MyDashState();
21 | }
22 |
23 | class _MyDashState extends State {
24 | GetStorage box = GetStorage();
25 | bool st = false;
26 | String name = '{name}';
27 |
28 | Future> fetch() async {
29 | getUser();
30 | var user_id = box.read('user_id');
31 | var response =
32 | await http.get(Uri.parse(site_url + "/getnotes?id=" + user_id));
33 | if (response.statusCode == 200) {
34 | return notesFromJson(response.body);
35 | } else {
36 | throw Exception("Faild");
37 | }
38 | }
39 |
40 | void getUser() async {
41 | GetStorage box = GetStorage();
42 | var user_id = box.read('user_id');
43 | var response =
44 | await http.get(Uri.parse(site_url + "/getuser?id=" + user_id));
45 | if (response.statusCode == 200) {
46 | var users = jsonDecode(response.body);
47 | setState(() {
48 | name = users['name'];
49 | box.write('uname', users['name']);
50 | box.write('uemail', users['email']);
51 | });
52 | } else {
53 | throw Exception("Failed");
54 | }
55 | }
56 |
57 | @override
58 | Widget build(BuildContext context) {
59 | return WillPopScope(
60 | onWillPop: () async {
61 | bool willLeave = false;
62 | await showDialog(
63 | context: context,
64 | builder: (_) => AlertDialog(
65 | title: Text('Are you sure want to Logout?'),
66 | actions: [
67 | ElevatedButton(
68 | onPressed: () {
69 | willLeave = true;
70 | box.remove('user_id');
71 | box.write('theme', false);
72 | Get.changeTheme(ThemeData.light());
73 | Get.to(MyApp());
74 | },
75 | child: Text('Logout')),
76 | TextButton(
77 | onPressed: () => Get.back(), child: Text('Not Now'))
78 | ],
79 | ));
80 | return willLeave;
81 | },
82 | child: Scaffold(
83 | appBar: AppBar(
84 | title: Text("My Notes"),
85 | ),
86 | floatingActionButton: FloatingActionButton.extended(
87 | label: const Text("Add New"),
88 | icon: Icon(Icons.add),
89 | onPressed: () => Get.to(Add()),
90 | ),
91 | drawer: Drawer(
92 | child: ListView(
93 | padding: EdgeInsets.zero,
94 | children: [
95 | Container(
96 | child: DrawerHeader(
97 | decoration: BoxDecoration(
98 | color: Colors.blue,
99 | ),
100 | child: Text(
101 | 'Hy, ' + name,
102 | style: TextStyle(color: Colors.white),
103 | ),
104 | ),
105 | ),
106 | Container(
107 | child: ListTile(
108 | leading: Icon(Icons.add),
109 | title: const Text('Add New'),
110 | onTap: () => Get.to(Add()),
111 | ),
112 | ),
113 | ListTile(
114 | leading: Icon(Icons.settings),
115 | title: const Text('Settings'),
116 | onTap: () {
117 | Get.to(MySettings());
118 | },
119 | ),
120 | ListTile(
121 | leading: Icon(Icons.logout),
122 | title: const Text('Logout'),
123 | onTap: () {
124 | box.remove('user_id');
125 | box.write('theme', false);
126 | Get.changeTheme(ThemeData.light());
127 | Get.to(MyApp());
128 | },
129 | ),
130 | SwitchListTile(
131 | value: box.read('theme'),
132 | onChanged: (newSt) {
133 | setState(() {
134 | st = newSt;
135 | if (st == true) {
136 | box.write('theme', true);
137 | Get.changeTheme(ThemeData.dark());
138 | } else {
139 | box.write('theme', false);
140 | Get.changeTheme(ThemeData.light());
141 | }
142 | });
143 | },
144 | title: Text('Dark Mode'),
145 | ),
146 | ListTile(
147 | title: Text('About Me'),
148 | onTap: () {
149 | Get.defaultDialog(
150 | title: "About",
151 | content: Text(
152 | "This Application is Developed by\nRohit Chouhan\n\n www.rohitchouhan.com",
153 | textAlign: TextAlign.center,
154 | ));
155 | },
156 | ),
157 | ],
158 | ),
159 | ),
160 | body: FutureBuilder>(
161 | future: fetch(),
162 | builder: (context, snapshot) {
163 | final data = snapshot.data;
164 | if (snapshot.hasData) {
165 | return ListView.builder(
166 | itemCount: data!.length,
167 | itemBuilder: (context, index) {
168 | return Column(
169 | children: [
170 | Padding(
171 | padding: const EdgeInsets.all(8.0),
172 | child: Card(
173 | child: Padding(
174 | padding: const EdgeInsets.all(10.0),
175 | child: Column(
176 | crossAxisAlignment: CrossAxisAlignment.stretch,
177 | children: [
178 | Text(
179 | data[index].heading!,
180 | style: TextStyle(fontSize: 20),
181 | ),
182 | SizedBox(
183 | height: 4,
184 | ),
185 | RichText(
186 | text: TextSpan(
187 | children: [
188 | WidgetSpan(
189 | child: Icon(
190 | Icons.timelapse,
191 | size: 14,
192 | color: box.read('theme')
193 | ? Colors.white
194 | : Colors.black54,
195 | ),
196 | ),
197 | TextSpan(
198 | text:
199 | " ${timeago.format(DateTime.parse(data[index].dates.toString()))}",
200 | style: TextStyle(
201 | color: box.read('theme')
202 | ? Colors.white
203 | : Colors.black54),
204 | ),
205 | ],
206 | ),
207 | ),
208 | SizedBox(
209 | height: 4,
210 | ),
211 | Text(
212 | data[index].note!,
213 | style: TextStyle(fontSize: 20),
214 | textAlign: TextAlign.justify,
215 | ),
216 | Row(
217 | children: [
218 | ElevatedButton(
219 | onPressed: () {
220 | FlutterClipboard.copy(
221 | data[index].note!);
222 | Get.snackbar(
223 | data[index].heading!, "Copied!",
224 | snackPosition:
225 | SnackPosition.BOTTOM,
226 | backgroundColor: Colors.blue,
227 | colorText: Colors.white);
228 | },
229 | child: Text("Copy")),
230 | SizedBox(
231 | width: 5,
232 | ),
233 | ElevatedButton(
234 | onPressed: () {
235 | Share.share(data[index].note!);
236 | },
237 | child: Text("Share")),
238 | ],
239 | )
240 | ],
241 | ),
242 | ),
243 | ),
244 | )
245 | ],
246 | );
247 | });
248 | } else {
249 | return Center(child: CircularProgressIndicator());
250 | }
251 | },
252 | ),
253 | ),
254 | );
255 | }
256 | }
257 |
--------------------------------------------------------------------------------
/lib/dataModel.dart:
--------------------------------------------------------------------------------
1 | // To parse this JSON data, do
2 | //
3 | // final notes = notesFromJson(jsonString);
4 |
5 | import 'dart:convert';
6 |
7 | List notesFromJson(String str) =>
8 | List.from(json.decode(str).map((x) => Notes.fromJson(x)));
9 |
10 | String notesToJson(List data) =>
11 | json.encode(List.from(data.map((x) => x.toJson())));
12 |
13 | class Notes {
14 | Notes({
15 | this.heading,
16 | this.dates,
17 | this.note,
18 | });
19 |
20 | String? heading;
21 | String? dates;
22 | String? note;
23 |
24 | factory Notes.fromJson(Map json) => Notes(
25 | heading: json["heading"],
26 | dates: json["date"],
27 | note: json["note"],
28 | );
29 |
30 | Map toJson() => {
31 | "heading": heading,
32 | "date": dates,
33 | "note": note,
34 | };
35 | }
36 |
--------------------------------------------------------------------------------
/lib/forget.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'package:cool_alert/cool_alert.dart';
3 | import 'package:flutter/cupertino.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:http/http.dart' as http;
6 | import 'package:myapp/input_field.dart';
7 |
8 | import 'config.dart';
9 |
10 | class MyForget extends StatefulWidget {
11 | const MyForget({Key? key}) : super(key: key);
12 |
13 | @override
14 | _MyForgetState createState() => _MyForgetState();
15 | }
16 |
17 | class _MyForgetState extends State {
18 | String forgetTxt = "Reset Password";
19 | TextEditingController email = new TextEditingController();
20 |
21 | Future reset() async {
22 | setState(() {
23 | forgetTxt = "Sending.....";
24 | });
25 | final response = await http
26 | .post(Uri.parse(site_url + "/reset"), body: {"email": email.text});
27 | Map js = jsonDecode(response.body);
28 | if (js['status'] == true) {
29 | CoolAlert.show(
30 | context: context,
31 | type: CoolAlertType.success,
32 | title: "Good Job",
33 | text: js['msg'],
34 | );
35 | } else {
36 | CoolAlert.show(
37 | context: context,
38 | type: CoolAlertType.error,
39 | title: "Oops",
40 | text: js['msg'],
41 | );
42 | }
43 |
44 | setState(() {
45 | forgetTxt = "Reset Password";
46 | email = TextEditingController();
47 | });
48 | }
49 |
50 | @override
51 | Widget build(BuildContext context) {
52 | return Scaffold(
53 | appBar: AppBar(
54 | title: Text("Forget Password"),
55 | ),
56 | body: Padding(
57 | padding: const EdgeInsets.all(12.0),
58 | child: SingleChildScrollView(
59 | child: Column(
60 | children: [
61 | Text("Enter your email to sent new password"),
62 | SizedBox(
63 | height: 10,
64 | ),
65 | InputField(
66 | icon: Icons.email, controller: email, hint: "Enter Email"),
67 | SizedBox(
68 | height: 50,
69 | width: double.infinity,
70 | child: ElevatedButton(
71 | onPressed: () => reset(),
72 | child: Text(
73 | forgetTxt,
74 | style: TextStyle(fontSize: 18),
75 | ),
76 | ),
77 | ),
78 | ],
79 | ),
80 | ),
81 | ),
82 | );
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/lib/input_field.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class InputField extends StatelessWidget {
4 | final IconData? icon;
5 | final TextEditingController? controller;
6 | final String? hint;
7 | InputField({this.icon, this.controller, this.hint});
8 | @override
9 | Widget build(BuildContext context) {
10 | return Column(
11 | children: [
12 | TextField(
13 | controller: controller,
14 | decoration: InputDecoration(
15 | labelText: hint,
16 | prefixIcon: Icon(icon),
17 | border: OutlineInputBorder(),
18 | ),
19 | ),
20 | SizedBox(height: 18)
21 | ],
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:io';
3 | import 'package:cool_alert/cool_alert.dart';
4 | import 'package:flutter/cupertino.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:get/get.dart';
7 | import 'package:get_storage/get_storage.dart';
8 | import 'package:http/http.dart' as http;
9 | import 'package:myapp/dash.dart';
10 | import 'package:myapp/forget.dart';
11 | import 'package:myapp/input_field.dart';
12 | import 'add_notes.dart';
13 | import 'config.dart';
14 |
15 | void main() async {
16 | await GetStorage.init();
17 | GetStorage box = GetStorage();
18 | if (box.read('theme') == true) {
19 | Get.changeTheme(ThemeData.dark());
20 | } else if (box.read('theme') == null || box.read('theme') == false) {
21 | Get.changeTheme(ThemeData.light());
22 | }
23 | runApp(GetMaterialApp(
24 | getPages: [
25 | GetPage(
26 | name: '/',
27 | page: () {
28 | return box.hasData('user_id') ? MyDash() : MyApp();
29 | })
30 | ],
31 | debugShowCheckedModeBanner: false,
32 | ));
33 | }
34 |
35 | enum Type { login, signup }
36 |
37 | class MyApp extends StatefulWidget {
38 | @override
39 | _MyAppState createState() => _MyAppState();
40 | }
41 |
42 | class _MyAppState extends State {
43 | GetStorage box = GetStorage();
44 | Type selectedType = Type.login;
45 | String loginData = 'Already have an account?';
46 | String signupData = 'Want to create a new account?';
47 | TextEditingController name = new TextEditingController(text: "Rohit Chouhan");
48 | TextEditingController email =
49 | new TextEditingController(text: "itsrohitofficial@gmail.com");
50 | TextEditingController password = new TextEditingController(text: "123");
51 |
52 | Future signUp() async {
53 | final response = await http.post(Uri.parse(site_url + "/addUser"), body: {
54 | "name": name.text,
55 | "email": email.text,
56 | "password": password.text,
57 | });
58 | Map js = jsonDecode(response.body);
59 | if (js['status'] == true) {
60 | CoolAlert.show(
61 | context: context,
62 | type: CoolAlertType.success,
63 | title: "Good Job",
64 | text: 'Signup Successfully!',
65 | );
66 | } else {
67 | CoolAlert.show(
68 | context: context,
69 | type: CoolAlertType.error,
70 | title: "Oops",
71 | text: js['msg'],
72 | );
73 | }
74 | }
75 |
76 | Future login() async {
77 | final response = await http.post(Uri.parse(site_url + "/login"), body: {
78 | "email": email.text,
79 | "password": password.text,
80 | });
81 | Map js = jsonDecode(response.body);
82 | if (js['status'] == true) {
83 | box.write('user_id', js['id']);
84 | Navigator.push(
85 | context, MaterialPageRoute(builder: (context) => MyDash()));
86 | } else {
87 | CoolAlert.show(
88 | context: context,
89 | type: CoolAlertType.error,
90 | title: "Oops",
91 | text: js['msg'],
92 | );
93 | }
94 | }
95 |
96 | @override
97 | Widget build(BuildContext context) {
98 | return Scaffold(
99 | appBar: AppBar(
100 | //leading: Icon(Icons.person),
101 | title: Text("NoteBox"),
102 | backgroundColor: Colors.blue,
103 | automaticallyImplyLeading: false,
104 | actions: [
105 | IconButton(
106 | icon: Icon(
107 | Icons.info,
108 | color: Colors.white,
109 | ),
110 | onPressed: () {
111 | Get.defaultDialog(
112 | title: "About",
113 | content: Text(
114 | "This Application is Developed by\nRohit Chouhan\n\n www.rohitchouhan.com",
115 | textAlign: TextAlign.center,
116 | ));
117 | },
118 | )
119 | ],
120 | ),
121 | body: SingleChildScrollView(
122 | child: Padding(
123 | padding: const EdgeInsets.symmetric(horizontal: 18),
124 | child: Column(
125 | crossAxisAlignment: CrossAxisAlignment.center,
126 | children: [
127 | Container(
128 | margin: EdgeInsets.only(top: 50),
129 | width: double.infinity,
130 | ),
131 | CircleAvatar(
132 | radius: 100,
133 | backgroundImage: NetworkImage(
134 | "https://static-media-prod-cdn.itsre-sumo.mozilla.net/static/sumo/img/default-FFA-avatar.png"),
135 | ),
136 | SizedBox(height: 40),
137 | selectedType == Type.signup
138 | ? InputField(
139 | controller: name,
140 | hint: 'Your Name',
141 | icon: Icons.person,
142 | )
143 | : Container(),
144 | InputField(
145 | controller: email,
146 | hint: 'Your Email',
147 | icon: Icons.email,
148 | ),
149 | InputField(
150 | controller: password,
151 | hint: 'Enter Password',
152 | icon: Icons.lock,
153 | ),
154 | SizedBox(height: 10),
155 | SizedBox(
156 | height: 50,
157 | width: double.infinity,
158 | child: ElevatedButton(
159 | onPressed: () =>
160 | selectedType == Type.signup ? signUp() : login(),
161 | child: Text(
162 | selectedType == Type.signup ? 'Signup' : 'Login',
163 | style: TextStyle(fontSize: 18),
164 | ),
165 | ),
166 | ),
167 | SizedBox(height: 10),
168 | GestureDetector(
169 | onTap: () {
170 | setState(() {
171 | selectedType == Type.login
172 | ? selectedType = Type.signup
173 | : selectedType = Type.login;
174 | });
175 | },
176 | child:
177 | Text(selectedType == Type.signup ? loginData : signupData),
178 | ),
179 | SizedBox(
180 | height: 10,
181 | ),
182 | GestureDetector(
183 | onTap: () {
184 | Navigator.push(context,
185 | MaterialPageRoute(builder: (context) => MyForget()));
186 | },
187 | child: Text("Forget Password?"),
188 | )
189 | ],
190 | ),
191 | ),
192 | ),
193 | );
194 | }
195 | }
196 |
--------------------------------------------------------------------------------
/lib/settings.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'package:cool_alert/cool_alert.dart';
4 | import 'package:flutter/cupertino.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:get_storage/get_storage.dart';
7 | import 'package:http/http.dart' as http;
8 | import 'package:myapp/dash.dart';
9 | import 'package:myapp/input_field.dart';
10 |
11 | import 'config.dart';
12 |
13 | class MySettings extends StatefulWidget {
14 | const MySettings({Key? key}) : super(key: key);
15 |
16 | @override
17 | _MySettingsState createState() => _MySettingsState();
18 | }
19 |
20 | class _MySettingsState extends State {
21 | TextEditingController? name = TextEditingController();
22 | TextEditingController email = new TextEditingController();
23 | TextEditingController cpassword = new TextEditingController();
24 | TextEditingController password = new TextEditingController();
25 | String btntxt = 'Update';
26 | String pbtntxt = 'Change Password';
27 | String uname = '';
28 | String uemail = '';
29 | @override
30 | void initState() {
31 | GetStorage box = GetStorage();
32 | setState(() {
33 | name = TextEditingController(text: box.read('uname'));
34 | email = TextEditingController(text: box.read('uemail'));
35 | });
36 | super.initState();
37 | }
38 |
39 | // void getUser() async {
40 | // GetStorage box = GetStorage();
41 | // var user_id = box.read('user_id');
42 | // var response =
43 | // await http.get(Uri.parse(site_url + "/getuser?id=" + user_id));
44 | // if (response.statusCode == 200) {
45 | // var users = jsonDecode(response.body);
46 | // // setState(() {
47 | // Timer(Duration(seconds: 1), () {
48 | // name = TextEditingController(text: users['name']);
49 | // email = TextEditingController(text: users['email']);
50 | // });
51 |
52 | // // });
53 | // } else {
54 | // throw Exception("Failed");
55 | // }
56 | // }
57 |
58 | //update user
59 | Future updateuser() async {
60 | GetStorage box = GetStorage();
61 | var user_id = box.read('user_id');
62 | setState(() {
63 | btntxt = "Updating...";
64 | });
65 | final response = await http.post(Uri.parse(site_url + "/updateuser"),
66 | body: {"id": box.read('user_id'), "name": uname, "email": uemail});
67 | Map js = jsonDecode(response.body);
68 | if (js['status'] == true) {
69 | CoolAlert.show(
70 | context: context,
71 | type: CoolAlertType.success,
72 | title: "Good Job",
73 | text: js['msg'],
74 | );
75 | } else {
76 | CoolAlert.show(
77 | context: context,
78 | type: CoolAlertType.error,
79 | title: "Oops",
80 | text: js['msg'],
81 | );
82 | }
83 | setState(() {
84 | // name = new TextEditingController(text: uname);
85 | // email = new TextEditingController(text: uemail);
86 | btntxt = "Update";
87 | });
88 | }
89 |
90 | //updatepass
91 | Future updatepass() async {
92 | GetStorage box = GetStorage();
93 | var user_id = box.read('user_id');
94 | setState(() {
95 | pbtntxt = "Changing..";
96 | });
97 | final response =
98 | await http.post(Uri.parse(site_url + "/updatepass"), body: {
99 | "id": box.read('user_id'),
100 | "cpassword": cpassword.text,
101 | "password": password.text
102 | });
103 | Map js = jsonDecode(response.body);
104 | if (js['status'] == true) {
105 | CoolAlert.show(
106 | context: context,
107 | type: CoolAlertType.success,
108 | title: "Good Job",
109 | text: js['msg'],
110 | );
111 | } else {
112 | CoolAlert.show(
113 | context: context,
114 | type: CoolAlertType.error,
115 | title: "Oops",
116 | text: js['msg'],
117 | );
118 | }
119 | setState(() {
120 | cpassword = new TextEditingController();
121 | password = new TextEditingController();
122 | pbtntxt = "Change Password";
123 | });
124 | }
125 |
126 | @override
127 | Widget build(BuildContext context) {
128 | return Scaffold(
129 | appBar: AppBar(
130 | title: Text("Settings"),
131 | automaticallyImplyLeading: false,
132 | leading: IconButton(
133 | icon: Icon(Icons.arrow_back),
134 | onPressed: () => Navigator.push(
135 | context,
136 | MaterialPageRoute(
137 | builder: (context) => MyDash(),
138 | )),
139 | )),
140 | body: SingleChildScrollView(
141 | child: Padding(
142 | padding: const EdgeInsets.all(8.0),
143 | child: Column(
144 | children: [
145 | SizedBox(
146 | height: 10,
147 | ),
148 | Text("Personal Information"),
149 | Container(
150 | child: Card(
151 | child: Padding(
152 | padding: const EdgeInsets.all(8.0),
153 | child: Column(
154 | children: [
155 | TextField(
156 | controller: name,
157 | decoration: InputDecoration(
158 | labelText: "Name",
159 | prefixIcon: Icon(Icons.person),
160 | border: OutlineInputBorder(),
161 | ),
162 | onChanged: (value) {
163 | uname = value;
164 | },
165 | ),
166 | SizedBox(height: 18),
167 | TextField(
168 | controller: email,
169 | decoration: InputDecoration(
170 | labelText: "Email",
171 | prefixIcon: Icon(Icons.email),
172 | border: OutlineInputBorder(),
173 | ),
174 | onChanged: (evalue) {
175 | uemail = evalue;
176 | },
177 | ),
178 | SizedBox(height: 18),
179 | SizedBox(
180 | height: 50,
181 | width: double.infinity,
182 | child: ElevatedButton(
183 | onPressed: () => updateuser(),
184 | child: Text(
185 | btntxt,
186 | style: TextStyle(fontSize: 18),
187 | ),
188 | ),
189 | ),
190 | SizedBox(height: 8),
191 | ],
192 | ),
193 | ),
194 | ),
195 | ),
196 | SizedBox(
197 | height: 20,
198 | ),
199 | Text("Password Setting"),
200 | Container(
201 | child: Card(
202 | child: Padding(
203 | padding: const EdgeInsets.all(8.0),
204 | child: Column(
205 | children: [
206 | TextField(
207 | controller: cpassword,
208 | decoration: InputDecoration(
209 | labelText: "Current Password",
210 | prefixIcon: Icon(Icons.lock),
211 | border: OutlineInputBorder(),
212 | ),
213 | ),
214 | SizedBox(height: 18),
215 | TextField(
216 | controller: password,
217 | decoration: InputDecoration(
218 | labelText: "New Password",
219 | prefixIcon: Icon(Icons.lock),
220 | border: OutlineInputBorder(),
221 | ),
222 | ),
223 | SizedBox(height: 18),
224 | SizedBox(
225 | height: 50,
226 | width: double.infinity,
227 | child: ElevatedButton(
228 | onPressed: () => {updatepass()},
229 | child: Text(
230 | pbtntxt,
231 | style: TextStyle(fontSize: 18),
232 | ),
233 | ),
234 | ),
235 | SizedBox(height: 8),
236 | ],
237 | ),
238 | ),
239 | ),
240 | ),
241 | ],
242 | ),
243 | ),
244 | ),
245 | );
246 | }
247 | }
248 |
--------------------------------------------------------------------------------
/lib/sidebar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SideBar extends StatefulWidget {
4 | @override
5 | _SideBarState createState() => _SideBarState();
6 | }
7 |
8 | class _SideBarState extends State {
9 | @override
10 | Widget build(BuildContext context) {
11 | return Drawer(
12 | child: ListView(
13 | children: [
14 | Container(
15 | child: DrawerHeader(
16 | child: Text("Hello"),
17 | ),
18 | ),
19 | Column(
20 | mainAxisAlignment: MainAxisAlignment.spaceAround,
21 | children: [
22 | ListTile(
23 | title: Text('Hello'),
24 | ),
25 | ListTile(
26 | title: Text('Hello'),
27 | ),
28 | ],
29 | ),
30 | ],
31 | ),
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/time.dart:
--------------------------------------------------------------------------------
1 | import 'package:intl/intl.dart';
2 |
3 | class TimeAgo {
4 | static String timeAgoSinceDate(String dateString,
5 | {bool numericDates = true}) {
6 | DateTime notificationDate =
7 | DateFormat("yyyy-mm-dd h:m:s").parse(dateString);
8 | final date2 = DateTime.now();
9 | final difference = date2.difference(notificationDate);
10 |
11 | if (difference.inDays > 8) {
12 | return dateString;
13 | } else if ((difference.inDays / 7).floor() >= 1) {
14 | return (numericDates) ? '1 week ago' : 'Last week';
15 | } else if (difference.inDays >= 2) {
16 | return '${difference.inDays} days ago';
17 | } else if (difference.inDays >= 1) {
18 | return (numericDates) ? '1 day ago' : 'Yesterday';
19 | } else if (difference.inHours >= 2) {
20 | return '${difference.inHours} hours ago';
21 | } else if (difference.inHours >= 1) {
22 | return (numericDates) ? '1 hour ago' : 'An hour ago';
23 | } else if (difference.inMinutes >= 2) {
24 | return '${difference.inMinutes} minutes ago';
25 | } else if (difference.inMinutes >= 1) {
26 | return (numericDates) ? '1 minute ago' : 'A minute ago';
27 | } else if (difference.inSeconds >= 3) {
28 | return '${difference.inSeconds} seconds ago';
29 | } else {
30 | return 'Just now';
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "3.1.2"
11 | async:
12 | dependency: transitive
13 | description:
14 | name: async
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.6.1"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.1.0"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.2.0"
39 | clipboard:
40 | dependency: "direct main"
41 | description:
42 | name: clipboard
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "0.1.3"
46 | clock:
47 | dependency: transitive
48 | description:
49 | name: clock
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.1.0"
53 | collection:
54 | dependency: transitive
55 | description:
56 | name: collection
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.15.0"
60 | cool_alert:
61 | dependency: "direct main"
62 | description:
63 | name: cool_alert
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.1.0"
67 | crypto:
68 | dependency: transitive
69 | description:
70 | name: crypto
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "3.0.1"
74 | cupertino_icons:
75 | dependency: "direct main"
76 | description:
77 | name: cupertino_icons
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.0.3"
81 | fake_async:
82 | dependency: transitive
83 | description:
84 | name: fake_async
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.2.0"
88 | ffi:
89 | dependency: transitive
90 | description:
91 | name: ffi
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "1.1.2"
95 | file:
96 | dependency: transitive
97 | description:
98 | name: file
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "6.1.2"
102 | flare_flutter:
103 | dependency: transitive
104 | description:
105 | name: flare_flutter
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "3.0.2"
109 | flutter:
110 | dependency: "direct main"
111 | description: flutter
112 | source: sdk
113 | version: "0.0.0"
114 | flutter_test:
115 | dependency: "direct dev"
116 | description: flutter
117 | source: sdk
118 | version: "0.0.0"
119 | get:
120 | dependency: "direct main"
121 | description:
122 | name: get
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "4.3.8"
126 | get_storage:
127 | dependency: "direct main"
128 | description:
129 | name: get_storage
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "2.0.3"
133 | http:
134 | dependency: "direct main"
135 | description:
136 | name: http
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "0.13.3"
140 | http_parser:
141 | dependency: transitive
142 | description:
143 | name: http_parser
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "4.0.0"
147 | intl:
148 | dependency: "direct main"
149 | description:
150 | name: intl
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "0.17.0"
154 | lottie:
155 | dependency: transitive
156 | description:
157 | name: lottie
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "1.1.0"
161 | matcher:
162 | dependency: transitive
163 | description:
164 | name: matcher
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "0.12.10"
168 | meta:
169 | dependency: transitive
170 | description:
171 | name: meta
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "1.3.0"
175 | mime:
176 | dependency: transitive
177 | description:
178 | name: mime
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "1.0.0"
182 | path:
183 | dependency: transitive
184 | description:
185 | name: path
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "1.8.0"
189 | path_provider:
190 | dependency: transitive
191 | description:
192 | name: path_provider
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "2.0.2"
196 | path_provider_linux:
197 | dependency: transitive
198 | description:
199 | name: path_provider_linux
200 | url: "https://pub.dartlang.org"
201 | source: hosted
202 | version: "2.0.2"
203 | path_provider_macos:
204 | dependency: transitive
205 | description:
206 | name: path_provider_macos
207 | url: "https://pub.dartlang.org"
208 | source: hosted
209 | version: "2.0.2"
210 | path_provider_platform_interface:
211 | dependency: transitive
212 | description:
213 | name: path_provider_platform_interface
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "2.0.1"
217 | path_provider_windows:
218 | dependency: transitive
219 | description:
220 | name: path_provider_windows
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "2.0.3"
224 | pedantic:
225 | dependency: transitive
226 | description:
227 | name: pedantic
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "1.11.1"
231 | platform:
232 | dependency: transitive
233 | description:
234 | name: platform
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "3.0.2"
238 | plugin_platform_interface:
239 | dependency: transitive
240 | description:
241 | name: plugin_platform_interface
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "2.0.1"
245 | process:
246 | dependency: transitive
247 | description:
248 | name: process
249 | url: "https://pub.dartlang.org"
250 | source: hosted
251 | version: "4.2.3"
252 | share:
253 | dependency: "direct main"
254 | description:
255 | name: share
256 | url: "https://pub.dartlang.org"
257 | source: hosted
258 | version: "2.0.4"
259 | sky_engine:
260 | dependency: transitive
261 | description: flutter
262 | source: sdk
263 | version: "0.0.99"
264 | source_span:
265 | dependency: transitive
266 | description:
267 | name: source_span
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "1.8.1"
271 | stack_trace:
272 | dependency: transitive
273 | description:
274 | name: stack_trace
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.10.0"
278 | stream_channel:
279 | dependency: transitive
280 | description:
281 | name: stream_channel
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "2.1.0"
285 | string_scanner:
286 | dependency: transitive
287 | description:
288 | name: string_scanner
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.1.0"
292 | term_glyph:
293 | dependency: transitive
294 | description:
295 | name: term_glyph
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "1.2.0"
299 | test_api:
300 | dependency: transitive
301 | description:
302 | name: test_api
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "0.3.0"
306 | timeago:
307 | dependency: "direct main"
308 | description:
309 | name: timeago
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "3.1.0"
313 | typed_data:
314 | dependency: transitive
315 | description:
316 | name: typed_data
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "1.3.0"
320 | vector_math:
321 | dependency: transitive
322 | description:
323 | name: vector_math
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "2.1.0"
327 | win32:
328 | dependency: transitive
329 | description:
330 | name: win32
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "2.2.5"
334 | xdg_directories:
335 | dependency: transitive
336 | description:
337 | name: xdg_directories
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "0.2.0"
341 | sdks:
342 | dart: ">=2.13.0 <3.0.0"
343 | flutter: ">=2.0.0"
344 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: myapp
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 | http: ^0.13.3
27 | cool_alert: ^1.1.0
28 | intl: ^0.17.0
29 | clipboard: ^0.1.3
30 | get: ^4.3.8
31 | share: ^2.0.4
32 | get_storage: ^2.0.3
33 | timeago: ^3.1.0
34 |
35 |
36 | # The following adds the Cupertino Icons font to your application.
37 | # Use with the CupertinoIcons class for iOS style icons.
38 | cupertino_icons: ^1.0.2
39 |
40 | dev_dependencies:
41 | flutter_test:
42 | sdk: flutter
43 |
44 | # For information on the generic Dart part of this file, see the
45 | # following page: https://dart.dev/tools/pub/pubspec
46 |
47 | # The following section is specific to Flutter.
48 | flutter:
49 |
50 | # The following line ensures that the Material Icons font is
51 | # included with your application, so that you can use the icons in
52 | # the material Icons class.
53 | uses-material-design: true
54 |
55 | # To add assets to your application, add an assets section, like this:
56 | # assets:
57 | # - images/a_dot_burr.jpeg
58 | # - images/a_dot_ham.jpeg
59 |
60 | # An image asset can refer to one or more resolution-specific "variants", see
61 | # https://flutter.dev/assets-and-images/#resolution-aware.
62 |
63 | # For details regarding adding assets from package dependencies, see
64 | # https://flutter.dev/assets-and-images/#from-packages
65 |
66 | # To add custom fonts to your application, add a fonts section here,
67 | # in this "flutter" section. Each entry in this list should have a
68 | # "family" key with the font family name, and a "fonts" key with a
69 | # list giving the asset and other descriptors for the font. For
70 | # example:
71 | # fonts:
72 | # - family: Schyler
73 | # fonts:
74 | # - asset: fonts/Schyler-Regular.ttf
75 | # - asset: fonts/Schyler-Italic.ttf
76 | # style: italic
77 | # - family: Trajan Pro
78 | # fonts:
79 | # - asset: fonts/TrajanPro.ttf
80 | # - asset: fonts/TrajanPro_Bold.ttf
81 | # weight: 700
82 | #
83 | # For details regarding fonts from package dependencies,
84 | # see https://flutter.dev/custom-fonts/#from-packages
85 |
--------------------------------------------------------------------------------
/screenshots.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohit-chouhan/notebox-flutter-application/f71da8973689933dbfba5a2c39068337ce405303/screenshots.jpg
--------------------------------------------------------------------------------