├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── .gitignore ├── images └── notes.png ├── fonts ├── Tajawal.ttf └── Roboto-Regular.ttf ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── mahmoudelshahat │ │ │ │ │ └── notes_app │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── .metadata ├── lib ├── screens │ ├── NewNote.dart │ ├── Search.dart │ ├── Create.dart │ ├── Details.dart │ └── Home.dart ├── widgets │ ├── NotesButton.dart │ ├── ColorPicker.dart │ ├── CustomInputText.dart │ ├── CustomGridDelegate.dart │ └── GridItem.dart ├── models │ ├── SearchedNotesListProvider.dart │ ├── CheckedListProvider.dart │ ├── Note.dart │ └── NotesListProvider.dart ├── main.dart └── services │ └── dbhelper.dart ├── pubspec.yaml ├── .gitignore ├── test └── widget_test.dart ├── README.md └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /images/notes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/images/notes.png -------------------------------------------------------------------------------- /fonts/Tajawal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/fonts/Tajawal.ttf -------------------------------------------------------------------------------- /fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.enableR8=true 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahmoud-elshahat/FlutterNotes/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/mahmoudelshahat/notes_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.mahmoudelshahat.notes_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | app/key.properties 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.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: 198df796aa80073ef22bdf249e614e2ff33c6895 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /lib/screens/NewNote.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class NewNote extends StatefulWidget 4 | { 5 | @override 6 | State createState() { 7 | return NewNoteState(); 8 | } 9 | 10 | } 11 | 12 | class NewNoteState extends State 13 | { 14 | @override 15 | Widget build(BuildContext context) { 16 | 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /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/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /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:3.5.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 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: notes 2 | description: Notes Application 3 | version: 1.0.1+3 4 | 5 | environment: 6 | sdk: ">=2.2.2 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | cupertino_icons: ^0.1.2 12 | provider: ^4.3.2+3 13 | sqflite: 14 | path: 15 | intl: ^0.16.1 16 | auto_direction: ^0.0.4+1 17 | modal_bottom_sheet: ^1.0.0+1 18 | shared_preferences: ^0.5.12+4 19 | screenshot: ^0.2.0 20 | wc_flutter_share: ^0.2.2 21 | flutter_localizations: 22 | sdk: flutter 23 | 24 | 25 | 26 | dev_dependencies: 27 | flutter_test: 28 | sdk: flutter 29 | 30 | flutter: 31 | fonts: 32 | - family: arabic 33 | fonts: 34 | - asset: fonts/Tajawal.ttf 35 | 36 | uses-material-design: true -------------------------------------------------------------------------------- /lib/widgets/NotesButton.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class NotesButton extends StatelessWidget { 5 | final Function() callback; 6 | final IconData icon; 7 | 8 | const NotesButton({Key key, this.callback, this.icon}) : super(key: key); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Card( 13 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)), 14 | child: InkWell( 15 | child: Padding( 16 | child: Icon( 17 | icon, 18 | color: Colors.white, 19 | size: 24, 20 | ), 21 | padding: EdgeInsets.all(12), 22 | ), 23 | borderRadius: BorderRadius.circular(10), 24 | onTap: () => callback(), 25 | ), 26 | color: Color(0xFF3B3B3B), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /.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 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /lib/models/SearchedNotesListProvider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'Note.dart'; 4 | 5 | class SearchedNotesList extends ChangeNotifier { 6 | List resultNotes = new List(); 7 | String tempText = "Results will be here."; 8 | 9 | void search(List notes, String searchedText) { 10 | if (notes == null || notes.length == 0) { 11 | tempText = "There is nothing to search in."; 12 | notifyListeners(); 13 | return; 14 | } 15 | resultNotes = new List(); 16 | String text = searchedText.toLowerCase(); 17 | if (text == "" || text == " ") { 18 | notifyListeners(); 19 | return; 20 | } 21 | for (int i = 0; i < notes.length; i++) { 22 | String mainText = notes[i].title + " " + notes[i].info; 23 | if (mainText.toLowerCase().indexOf(text) != -1) { 24 | if (!resultNotes.contains(notes[i])) { 25 | resultNotes.add(notes[i]); 26 | } 27 | } 28 | } 29 | notifyListeners(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | import 'package:notes/main.dart'; 11 | 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/models/CheckedListProvider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:notes/models/NotesListProvider.dart'; 3 | import 'package:notes/services/dbhelper.dart'; 4 | import 'package:provider/provider.dart'; 5 | 6 | import 'Note.dart'; 7 | 8 | class CheckedListProvider extends ChangeNotifier{ 9 | 10 | List checkedNotes=[]; 11 | bool inCheckingState = false; 12 | void addCheckedItem(Note note) 13 | { 14 | checkedNotes.add(note); 15 | notifyListeners(); 16 | } 17 | void removeCheckedItem(Note note) 18 | { 19 | checkedNotes.remove(note); 20 | notifyListeners(); 21 | } 22 | void updateCheckedState(bool state) 23 | { 24 | inCheckingState=state; 25 | notifyListeners(); 26 | } 27 | void clear(){ 28 | inCheckingState = false; 29 | checkedNotes = new List(); 30 | notifyListeners(); 31 | } 32 | Future deleteSelected(BuildContext context) async { 33 | final dbHelper = DatabaseHelper.instance; 34 | var notesListModel = Provider.of(context, listen: false); 35 | int i; 36 | for (i = 0; i < checkedNotes.length; i++) { 37 | await dbHelper.delete(checkedNotes[i].id); 38 | notesListModel.removeItem(checkedNotes[i]); 39 | } 40 | clear(); 41 | } 42 | } -------------------------------------------------------------------------------- /lib/models/Note.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | import 'package:intl/intl.dart'; 4 | import 'package:notes/services/dbhelper.dart'; 5 | 6 | class Note{ 7 | int id; 8 | String title; 9 | String info; 10 | String date; 11 | 12 | Note( {this.id,this.title, this.info, this.date, }); 13 | Note.fromMap(Map map) { 14 | id = map['id']; 15 | title = map['title']; 16 | info = map['info']; 17 | date = map['date']; 18 | } 19 | Map toMap() { 20 | return { 21 | 'id':id, 22 | 'title': title, 23 | 'info': info, 24 | 'date': date, 25 | }; 26 | } 27 | 28 | void save()async 29 | { 30 | final dbHelper = DatabaseHelper.instance; 31 | Map row = { 32 | DatabaseHelper.columnTitle: title, 33 | DatabaseHelper.columnInfo: info, 34 | DatabaseHelper.columnDate: getCurrentDate(), 35 | }; 36 | Note note = Note.fromMap(row); 37 | await dbHelper.insert(note); 38 | } 39 | 40 | void update()async{ 41 | Note updatedNote = Note( 42 | date: getCurrentDate(), 43 | id: id, 44 | info: info, 45 | title: title); 46 | final dbHelper = DatabaseHelper.instance; 47 | await dbHelper.update(updatedNote); 48 | } 49 | 50 | String getCurrentDate(){ 51 | var now = new DateTime.now(); 52 | var formatter = new DateFormat('MMM dd,yyyy'); 53 | return formatter.format(now); 54 | } 55 | 56 | 57 | 58 | } -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:notes/models/CheckedListProvider.dart'; 4 | import 'package:notes/models/NotesListProvider.dart'; 5 | import 'package:notes/models/SearchedNotesListProvider.dart'; 6 | import 'package:notes/screens/Create.dart' as create; 7 | import 'package:notes/screens/Home.dart'; 8 | import 'package:notes/screens/Search.dart'; 9 | import 'package:notes/screens/Details.dart'; 10 | import 'package:provider/provider.dart'; 11 | 12 | void main() { 13 | runApp(MultiProvider( 14 | providers: [ 15 | ChangeNotifierProvider.value(value: NotesListProvider()), 16 | ChangeNotifierProvider.value(value: SearchedNotesList()), 17 | ChangeNotifierProvider.value(value: CheckedListProvider()), 18 | ], 19 | child: MaterialApp( 20 | home: MyApp(), 21 | theme: ThemeData(fontFamily: 'arabic'), 22 | routes: { 23 | '/Home': (BuildContext con) => new Home(), 24 | '/Details': (BuildContext con) => new Details(), 25 | '/Create': (BuildContext con) => new create.Create(), 26 | '/Search': (BuildContext con) => new Search(), 27 | }, 28 | ), 29 | )); 30 | } 31 | 32 | class MyApp extends StatelessWidget { 33 | @override 34 | Widget build(BuildContext context) { 35 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( 36 | statusBarColor: Color(0xFF252525), 37 | statusBarIconBrightness: Brightness.light, 38 | statusBarBrightness: Brightness.light, 39 | )); 40 | return Home(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /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 | notes_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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Notes App 2 | 3 | Colorful notes app written in Flutter that uses sqflite for storage and provider for state management. 4 | 5 | ## Features 6 | 7 | 1. Make Note with awesome font and save it as u like. 8 | 2. Ability to playing with ui colors. 9 | 3. Ability to change viewing style. 10 | 4. Search your notes easily. 11 | 5. Edit note that you saved previously. 12 | 6. Supporting both English and Arabic (RTL - LTR) 13 | 7. ability to share note as a screenshot with app simple ui. 14 | 15 | ## Dependencies 16 | 17 | - provider 18 | - auto_direction 19 | - sqflite 20 | - intl 21 | - modal_bottom_sheet 22 | - shared_preferences 23 | - flutter_localizations 24 | - wc_flutter_share 25 | 26 | 27 | ## Screenshots 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
splash splash splash
splash splash splash
41 | 42 | ## Run the project 43 | With Flutter installed, clone project and run `flutter run --release` in that directory 44 | 45 | 46 | ## Get it on google play 47 | [![google-play-badge](https://user-images.githubusercontent.com/33213229/59287668-13be9a00-8cad-11e9-9a13-b62a4f562cfd.png)](https://play.google.com/store/apps/details?id=com.mahmoudelshahat.notes_app&fbclid=IwAR0OhF_L50MKIrGCIZTgQrjMmjRJsOOW7vN9CbfJ7pgEskoyngZuoneZqzc) 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | ### Feedback is welcome. 56 | -------------------------------------------------------------------------------- /lib/widgets/ColorPicker.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:notes/models/NotesListProvider.dart'; 4 | import 'package:provider/provider.dart'; 5 | 6 | List colors = [ 7 | 0xFFF38FB1, 8 | 0xFFFFCC80, 9 | 0xFFE6EE9B, 10 | 0xFFCF93D9, 11 | 0xFFcfb845, 12 | 0xFFF28B83, 13 | 0xFFefb5a3, 14 | 0xFFf9813a, 15 | 0xFFffe3d8, 16 | ]; 17 | 18 | class ColorPicker extends StatefulWidget { 19 | final Function(int) onTap; 20 | final int selectedIndex; 21 | 22 | ColorPicker({this.onTap, this.selectedIndex}); 23 | 24 | @override 25 | _ColorPickerState createState() => _ColorPickerState(); 26 | } 27 | 28 | class _ColorPickerState extends State { 29 | int selectedIndex; 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | if (selectedIndex == null) { 34 | selectedIndex = widget.selectedIndex; 35 | } 36 | double width = MediaQuery.of(context).size.width; 37 | return SizedBox( 38 | width: width, 39 | height: 50, 40 | child: ListView.builder( 41 | scrollDirection: Axis.horizontal, 42 | itemCount: colors.length, 43 | itemBuilder: (BuildContext context, int index) { 44 | return Consumer(builder: (context, model, child) { 45 | return InkWell( 46 | onTap: () { 47 | setState(() { 48 | selectedIndex = index; 49 | }); 50 | widget.onTap(index); 51 | }, 52 | child: Container( 53 | padding: EdgeInsets.all(8.0), 54 | width: 50, 55 | height: 50, 56 | child: Container( 57 | child: Center( 58 | child: model.currentIndex == index 59 | ? Icon(Icons.done) 60 | : Container()), 61 | decoration: BoxDecoration( 62 | color: Color(colors[index]), 63 | shape: BoxShape.circle, 64 | border: Border.all(width: 2, color: Colors.black)), 65 | ), 66 | ), 67 | ); 68 | }); 69 | }, 70 | ), 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /lib/models/NotesListProvider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:notes/services/dbhelper.dart'; 3 | import 'package:notes/widgets/ColorPicker.dart'; 4 | import 'package:shared_preferences/shared_preferences.dart'; 5 | 6 | import 'Note.dart'; 7 | 8 | class NotesListProvider extends ChangeNotifier{ 9 | List list=[]; 10 | int gridNumberPerRow; 11 | final dbHelper = DatabaseHelper.instance; 12 | 13 | 14 | 15 | void getAllNotes() async 16 | { 17 | final allRows = await dbHelper.queryAllRows(); 18 | list = new List(); 19 | allRows.forEach((row) => list.add(Note.fromMap(row))); 20 | notifyListeners(); 21 | } 22 | void addNote(Note note){ 23 | list.add(note); 24 | notifyListeners(); 25 | } 26 | void updateNote(Note note, Note tempNote) { 27 | int updatedNoteIndex=list.indexOf(note); 28 | list[updatedNoteIndex]=tempNote; 29 | print(list[updatedNoteIndex].title + list[updatedNoteIndex].info); 30 | notifyListeners(); 31 | } 32 | void updateList(List notes){ 33 | list=notes; 34 | notifyListeners(); 35 | } 36 | 37 | updateGridStyle(int numberPerRow) 38 | { 39 | 40 | } 41 | 42 | 43 | 44 | int currentColor; 45 | int currentIndex; 46 | int numberOfItems = 2; 47 | //update settings 48 | void getSavedState() async { 49 | SharedPreferences prefs = await SharedPreferences.getInstance(); 50 | currentColor= prefs.getInt('color') ?? -1; 51 | numberOfItems=prefs.getInt('gridRowNumber')?? 2; 52 | if (currentColor == -1) 53 | currentIndex = -1; 54 | else 55 | currentIndex = colors.indexOf(currentColor); 56 | notifyListeners(); 57 | } 58 | void updateColor(int color,int index,BuildContext context) async { 59 | currentColor=color; 60 | currentIndex=index; 61 | SharedPreferences prefs = await SharedPreferences.getInstance(); 62 | await prefs.setInt('color', color); 63 | 64 | notifyListeners(); 65 | } 66 | void changeGrid() async{ 67 | numberOfItems ==2 ?numberOfItems=1:numberOfItems=2; 68 | SharedPreferences prefs = await SharedPreferences.getInstance(); 69 | await prefs.setInt('gridRowNumber', numberOfItems); 70 | notifyListeners(); 71 | } 72 | 73 | void removeItem(Note checkedNot) { 74 | list.remove(checkedNot); 75 | notifyListeners(); 76 | } 77 | 78 | 79 | } -------------------------------------------------------------------------------- /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 = '3' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.1.1' 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 | def keystoreProperties = new Properties() 29 | 30 | 31 | def keystorePropertiesFile = rootProject.file('app/key.properties') 32 | if (keystorePropertiesFile.exists()) { 33 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 34 | } 35 | 36 | android { 37 | compileSdkVersion 29 38 | 39 | sourceSets { 40 | main.java.srcDirs += 'src/main/kotlin' 41 | } 42 | 43 | lintOptions { 44 | disable 'InvalidPackage' 45 | } 46 | 47 | defaultConfig { 48 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 49 | applicationId "com.mahmoudelshahat.notes_app" 50 | minSdkVersion 16 51 | targetSdkVersion 29 52 | versionCode flutterVersionCode.toInteger() 53 | versionName flutterVersionName 54 | } 55 | 56 | 57 | signingConfigs { 58 | release { 59 | keyAlias keystoreProperties['keyAlias'] 60 | keyPassword keystoreProperties['keyPassword'] 61 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 62 | storePassword keystoreProperties['storePassword'] 63 | } 64 | } 65 | 66 | buildTypes { 67 | release { 68 | signingConfig signingConfigs.release 69 | } 70 | } 71 | } 72 | 73 | flutter { 74 | source '../..' 75 | } 76 | 77 | dependencies { 78 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 79 | } 80 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/services/dbhelper.dart: -------------------------------------------------------------------------------- 1 | import 'package:notes/models/Note.dart'; 2 | import 'package:path/path.dart'; 3 | import 'package:sqflite/sqflite.dart'; 4 | 5 | class DatabaseHelper { 6 | static final _databaseName = "notes_db.db"; 7 | static final _databaseVersion = 1; 8 | 9 | static final table = 'notes'; 10 | 11 | static final columnId = 'id'; 12 | static final columnTitle = 'title'; 13 | static final columnInfo = 'info'; 14 | static final columnDate = 'date'; 15 | 16 | DatabaseHelper._privateConstructor(); 17 | 18 | static final DatabaseHelper instance = DatabaseHelper._privateConstructor(); 19 | 20 | static Database _database; 21 | 22 | Future get database async { 23 | if (_database != null) return _database; 24 | // lazily instantiate the db the first time it is accessed 25 | _database = await _initDatabase(); 26 | return _database; 27 | } 28 | 29 | _initDatabase() async { 30 | String path = join(await getDatabasesPath(), _databaseName); 31 | return await openDatabase(path, 32 | version: _databaseVersion, onCreate: _onCreate); 33 | } 34 | 35 | // SQL code to create the database table 36 | Future _onCreate(Database db, int version) async { 37 | await db.execute(''' 38 | CREATE TABLE $table ( 39 | $columnId INTEGER PRIMARY KEY AUTOINCREMENT, 40 | $columnTitle TEXT , 41 | $columnInfo TEXT NOT NULL, 42 | $columnDate TEXT NOT NULL 43 | ) 44 | '''); 45 | } 46 | 47 | Future insert(Note note) async { 48 | Database db = await instance.database; 49 | return await db.insert(table, { 50 | columnTitle: note.title, 51 | columnInfo: note.info, 52 | columnDate: note.date 53 | }); 54 | } 55 | 56 | Future>> queryAllRows() async { 57 | Database db = await instance.database; 58 | return await db.query(table); 59 | } 60 | 61 | 62 | // We are assuming here that the id column in the map is set. The other 63 | // column values will be used to update the row. 64 | Future update(Note note) async { 65 | Database db = await instance.database; 66 | int id = note.toMap()['id']; 67 | return await db.update(table, note.toMap(), where: '$columnId = ?', whereArgs: [id]); 68 | } 69 | 70 | // Deletes the row specified by the id. The number of affected rows is 71 | // returned. This should be 1 as long as the row exists. 72 | Future delete(int id) async { 73 | Database db = await instance.database; 74 | return await db.delete(table, where: '$columnId = ?', whereArgs: [id]); 75 | } 76 | 77 | 78 | } -------------------------------------------------------------------------------- /lib/widgets/CustomInputText.dart: -------------------------------------------------------------------------------- 1 | import 'package:auto_direction/auto_direction.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class CustomInputText extends StatefulWidget { 5 | final int maxLines; 6 | final int maxLength; 7 | final bool autoFocus; 8 | final double textSize; 9 | final bool readOnly; 10 | final String hintText; 11 | final TextEditingController controller; 12 | final TextInputType inputType; 13 | FontWeight fontWeight=FontWeight.normal; 14 | 15 | CustomInputText( 16 | {@required this.maxLines, 17 | @required this.maxLength, 18 | @required this.autoFocus, 19 | @required this.textSize, 20 | @required this.readOnly, 21 | @required this.hintText, 22 | @required this.controller, 23 | @required this.inputType, 24 | this.fontWeight}); 25 | 26 | @override 27 | State createState() { 28 | return CustomInputTextState(); 29 | } 30 | } 31 | 32 | class CustomInputTextState extends State { 33 | 34 | String text = ""; 35 | 36 | @override 37 | void initState() { 38 | super.initState(); 39 | widget.controller.addListener(updateLang); 40 | setState(() { 41 | text=widget.controller.text; 42 | }); 43 | } 44 | 45 | void updateLang() { 46 | setState(() { 47 | text=widget.controller.text; 48 | }); 49 | } 50 | @override 51 | Widget build(BuildContext context) { 52 | return AutoDirection( 53 | text: text, 54 | child: TextFormField( 55 | enabled: true, 56 | controller: widget.controller, 57 | cursorColor: Colors.white, 58 | keyboardType: widget.inputType, 59 | readOnly: widget.readOnly, 60 | maxLines: widget.maxLines, 61 | maxLength: widget.maxLength, 62 | maxLengthEnforced: true, 63 | style: TextStyle( 64 | fontSize: widget.textSize, 65 | color: Colors.white, 66 | fontWeight: widget.fontWeight 67 | ), 68 | autofocus: widget.autoFocus, 69 | decoration: new InputDecoration( 70 | border: InputBorder.none, 71 | focusedBorder: InputBorder.none, 72 | enabledBorder: InputBorder.none, 73 | errorBorder: InputBorder.none, 74 | disabledBorder: InputBorder.none, 75 | counterStyle: TextStyle(color: Color(0xFF3B3B3B)), 76 | hintStyle: TextStyle( 77 | color: Color(0xFF3C3C3C), 78 | fontSize: widget.textSize, 79 | fontWeight: FontWeight.bold), 80 | contentPadding: 81 | EdgeInsets.only(left: 9, bottom: 0, top: 10, right: 10), 82 | hintText: widget.hintText, 83 | ), 84 | )); 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /lib/widgets/CustomGridDelegate.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/rendering.dart'; 3 | 4 | class SliverGridDelegateWithFixedCrossAxisCountAndFixedHeight 5 | extends SliverGridDelegate { 6 | /// Creates a delegate that makes grid layouts with a fixed number of tiles in 7 | /// the cross axis. 8 | /// 9 | /// All of the arguments must not be null. The `mainAxisSpacing` and 10 | /// `crossAxisSpacing` arguments must not be negative. The `crossAxisCount` 11 | /// and `childAspectRatio` arguments must be greater than zero. 12 | const SliverGridDelegateWithFixedCrossAxisCountAndFixedHeight({ 13 | @required this.crossAxisCount, 14 | this.mainAxisSpacing = 0.0, 15 | this.crossAxisSpacing = 0.0, 16 | this.height = 56.0, 17 | }) : assert(crossAxisCount != null && crossAxisCount > 0), 18 | assert(mainAxisSpacing != null && mainAxisSpacing >= 0), 19 | assert(crossAxisSpacing != null && crossAxisSpacing >= 0), 20 | assert(height != null && height > 0); 21 | 22 | /// The number of children in the cross axis. 23 | final int crossAxisCount; 24 | 25 | /// The number of logical pixels between each child along the main axis. 26 | final double mainAxisSpacing; 27 | 28 | /// The number of logical pixels between each child along the cross axis. 29 | final double crossAxisSpacing; 30 | 31 | /// The height of the crossAxis. 32 | final double height; 33 | 34 | bool _debugAssertIsValid() { 35 | assert(crossAxisCount > 0); 36 | assert(mainAxisSpacing >= 0.0); 37 | assert(crossAxisSpacing >= 0.0); 38 | assert(height > 0.0); 39 | return true; 40 | } 41 | 42 | @override 43 | SliverGridLayout getLayout(SliverConstraints constraints) { 44 | assert(_debugAssertIsValid()); 45 | final double usableCrossAxisExtent = 46 | constraints.crossAxisExtent - crossAxisSpacing * (crossAxisCount - 1); 47 | final double childCrossAxisExtent = usableCrossAxisExtent / crossAxisCount; 48 | final double childMainAxisExtent = height; 49 | return SliverGridRegularTileLayout( 50 | crossAxisCount: crossAxisCount, 51 | mainAxisStride: childMainAxisExtent + mainAxisSpacing, 52 | crossAxisStride: childCrossAxisExtent + crossAxisSpacing, 53 | childMainAxisExtent: childMainAxisExtent, 54 | childCrossAxisExtent: childCrossAxisExtent, 55 | reverseCrossAxis: axisDirectionIsReversed(constraints.crossAxisDirection), 56 | ); 57 | } 58 | 59 | @override 60 | bool shouldRelayout( 61 | SliverGridDelegateWithFixedCrossAxisCountAndFixedHeight oldDelegate) { 62 | return oldDelegate.crossAxisCount != crossAxisCount || 63 | oldDelegate.mainAxisSpacing != mainAxisSpacing || 64 | oldDelegate.crossAxisSpacing != crossAxisSpacing || 65 | oldDelegate.height != height; 66 | } 67 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/screens/Search.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:notes/models/Note.dart'; 3 | import 'package:notes/models/SearchedNotesListProvider.dart'; 4 | import 'package:notes/widgets/ColorPicker.dart'; 5 | import 'package:notes/widgets/CustomGridDelegate.dart'; 6 | import 'package:notes/widgets/CustomInputText.dart'; 7 | import 'package:notes/widgets/GridItem.dart'; 8 | import 'package:provider/provider.dart'; 9 | 10 | class Search extends StatelessWidget { 11 | final List notes; 12 | final searchController = new TextEditingController(); 13 | final int itemColor; 14 | 15 | Search({Key key, this.notes, this.itemColor}) : super(key: key); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | var searchedList = Provider.of(context, listen: false); 20 | searchController.addListener(()=> searchedList.search(notes,searchController.text)); 21 | return new Scaffold( 22 | backgroundColor: Color(0xFF252525), 23 | body: Padding( 24 | padding: const EdgeInsets.only( 25 | top: 50.0, bottom: 16.0, right: 16.00, left: 16.0), 26 | child: Column( 27 | children: [ 28 | CustomInputText( 29 | maxLines: 1, 30 | maxLength: null, 31 | autoFocus: true, 32 | textSize: 18, 33 | readOnly: false, 34 | hintText: "Search...", 35 | controller: searchController, 36 | inputType: TextInputType.text), 37 | Consumer(builder: (context, model, child) { 38 | if (model.resultNotes.length > 0) { 39 | return Flexible( 40 | child: GridView.builder( 41 | key: UniqueKey(), 42 | shrinkWrap: true, 43 | itemCount: model.resultNotes.length, 44 | gridDelegate: 45 | SliverGridDelegateWithFixedCrossAxisCountAndFixedHeight( 46 | crossAxisCount: 2, 47 | crossAxisSpacing: 10, 48 | mainAxisSpacing: 10, 49 | height: 190), 50 | itemBuilder: (BuildContext context, int i) { 51 | 52 | if (itemColor == -1) { 53 | return new GridItem( 54 | model.resultNotes[i], colors[i % colors.length]); 55 | } else { 56 | return new GridItem(model.resultNotes[i],itemColor); 57 | } 58 | }, 59 | ), 60 | ); 61 | } else { 62 | return Flexible( 63 | child: Center( 64 | child: Text( 65 | model.tempText, 66 | style: TextStyle(color: Colors.white, fontSize: 16), 67 | textAlign: TextAlign.center, 68 | ), 69 | )); 70 | } 71 | }) 72 | ], 73 | ))); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/screens/Create.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:notes/models/Note.dart'; 4 | import 'package:notes/models/NotesListProvider.dart'; 5 | import 'package:notes/widgets/CustomInputText.dart'; 6 | import 'package:notes/widgets/NotesButton.dart'; 7 | import 'package:provider/provider.dart'; 8 | 9 | class Create extends StatelessWidget { 10 | Future _onWillPop(BuildContext context) async { 11 | if (noteController.text.isNotEmpty || titleController.text.isNotEmpty) { 12 | return (await showDialog( 13 | context: context, 14 | builder: (context) => new AlertDialog( 15 | title: new Text('Are you sure?'), 16 | content: new Text('Do you want to discard this note'), 17 | actions: [ 18 | new FlatButton( 19 | onPressed: () => Navigator.of(context).pop(), 20 | child: new Text('No'), 21 | ), 22 | new FlatButton( 23 | onPressed: (){ 24 | Navigator.of(context).pop(); 25 | titleController.dispose(); 26 | noteController.dispose(); 27 | Navigator.of(context).pop(); 28 | 29 | }, 30 | child: new Text('Yes'), 31 | ), 32 | ], 33 | ), 34 | )); 35 | }else 36 | Navigator.of(context).pop(); 37 | return false; 38 | } 39 | 40 | final titleController = TextEditingController(); 41 | final noteController = TextEditingController(); 42 | 43 | final GlobalKey _scaffoldKey = new GlobalKey(); 44 | 45 | void _showMessageInScaffold(String message) { 46 | _scaffoldKey.currentState.showSnackBar(SnackBar( 47 | content: Text(message), 48 | )); 49 | } 50 | 51 | 52 | 53 | 54 | 55 | 56 | void _saveNote(BuildContext context) async { 57 | if (noteController.text.isEmpty && titleController.text.isEmpty) { 58 | _showMessageInScaffold("There in nothing to save."); 59 | return; 60 | } 61 | Note note = 62 | new Note(title: titleController.text, info: noteController.text); 63 | note.save(); 64 | note.date=note.getCurrentDate(); 65 | 66 | var notesList = Provider.of(context, listen: false); 67 | notesList.addNote(note); 68 | 69 | Navigator.of(context).pop(true); 70 | } 71 | 72 | 73 | 74 | 75 | @override 76 | Widget build(BuildContext context) { 77 | return WillPopScope( 78 | onWillPop:()=> _onWillPop(context), 79 | child: Scaffold( 80 | key: _scaffoldKey, 81 | backgroundColor: Color(0xFF252525), 82 | body: Padding( 83 | padding: EdgeInsets.only( 84 | top: 50.0, bottom: 16.0, right: 16.00, left: 16.0), 85 | child: Column( 86 | children: [ 87 | Row( 88 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 89 | crossAxisAlignment: CrossAxisAlignment.start, 90 | children: [ 91 | NotesButton( 92 | callback:() => _onWillPop(context), 93 | icon: Icons.arrow_back_ios_outlined), 94 | RaisedButton( 95 | shape: RoundedRectangleBorder( 96 | borderRadius: BorderRadius.circular(10)), 97 | child: new Text( 98 | "Save", 99 | style: TextStyle(fontSize: 17), 100 | ), 101 | padding: EdgeInsets.only( 102 | top: 15, left: 15, bottom: 13, right: 15), 103 | textColor: Colors.white, 104 | color: Color(0xFF3B3B3B), 105 | onPressed: () => _saveNote(context), 106 | ) 107 | ], 108 | ), 109 | Container( 110 | padding: EdgeInsets.all(8), 111 | ), 112 | CustomInputText( 113 | maxLines: 2, 114 | maxLength: null, 115 | autoFocus: true, 116 | textSize: 26, 117 | readOnly: false, 118 | hintText: "Title", 119 | controller: titleController, 120 | inputType: TextInputType.text, 121 | ), 122 | Expanded( 123 | child: CustomInputText( 124 | maxLines: 50, 125 | maxLength: null, 126 | autoFocus: false, 127 | textSize: 20, 128 | readOnly: false, 129 | hintText: "Type something...", 130 | controller: noteController, 131 | inputType: TextInputType.multiline, 132 | ), 133 | ) 134 | ], 135 | ), 136 | ), 137 | ), 138 | ); 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /lib/widgets/GridItem.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:notes/models/CheckedListProvider.dart'; 3 | import 'package:notes/models/Note.dart'; 4 | import 'package:notes/models/NotesListProvider.dart'; 5 | import 'package:notes/screens/Details.dart'; 6 | import 'package:intl/intl.dart' as intl; 7 | import 'package:provider/provider.dart'; 8 | 9 | 10 | typedef NotesCallback = void Function(bool val); 11 | 12 | class GridItem extends StatefulWidget { 13 | final Note note; 14 | final int color; 15 | 16 | GridItem(this.note, this.color); 17 | 18 | @override 19 | State createState() { 20 | return GridItemState(note, color); 21 | } 22 | } 23 | 24 | 25 | class GridItemState extends State { 26 | final Note note; 27 | final int color; 28 | 29 | bool isVisible = true; 30 | double _height = 5; 31 | var _maxLines = 4; 32 | 33 | GridItemState(this.note, this.color); 34 | 35 | var crossAxis = CrossAxisAlignment.start; 36 | var isArabic = false; 37 | var notesListModel ; 38 | var checkedListModel; 39 | 40 | @override 41 | void initState() { 42 | super.initState(); 43 | notesListModel= Provider.of(context, listen: false); 44 | checkedListModel= Provider.of(context, listen: false); 45 | if (note.title.isEmpty) { 46 | isVisible = false; 47 | _height = 0; 48 | _maxLines = 6; 49 | } 50 | if (isRTL(note.info)) { 51 | crossAxis = CrossAxisAlignment.end; 52 | isArabic = true; 53 | } else { 54 | crossAxis = CrossAxisAlignment.start; 55 | isArabic = false; 56 | } 57 | } 58 | 59 | bool isRTL(String text) { 60 | return intl.Bidi.detectRtlDirectionality(text); 61 | } 62 | 63 | void viewSelectableItems(Note note) { 64 | if (notesListModel.list == null) return; 65 | checkedListModel.inCheckingState = true; 66 | if (checkedListModel.checkedNotes.contains(note)) 67 | checkedListModel.removeCheckedItem(note); 68 | else 69 | checkedListModel.addCheckedItem(note); 70 | } 71 | 72 | @override 73 | Widget build(BuildContext context) { 74 | return new Card( 75 | shape: RoundedRectangleBorder( 76 | borderRadius: BorderRadius.circular(12), 77 | ), 78 | color: Color(color), 79 | child: new InkWell( 80 | onLongPress: () => viewSelectableItems(note), 81 | onTap: _openItemDetails, 82 | child: new Padding( 83 | padding: const EdgeInsets.all(16.0), 84 | child: Column( 85 | mainAxisAlignment: MainAxisAlignment.start, 86 | crossAxisAlignment: crossAxis, 87 | mainAxisSize: MainAxisSize.max, 88 | children: [ 89 | Row( 90 | children: [ 91 | Flexible( 92 | child: Visibility( 93 | child: Align( 94 | child: Text( 95 | note.title, 96 | overflow: TextOverflow.ellipsis, 97 | maxLines: 1, 98 | style: TextStyle( 99 | fontSize: 18, 100 | fontWeight: FontWeight.bold, 101 | color: Color(0xFF252525), 102 | ), 103 | textDirection: 104 | isArabic ? TextDirection.rtl : TextDirection.ltr, 105 | ), 106 | alignment: isArabic ? Alignment.topRight: Alignment.topLeft 107 | ), 108 | visible: isVisible, 109 | ), 110 | ), 111 | 112 | Consumer(builder: (context,model,child){ 113 | if (checkedListModel.checkedNotes.contains(note)) 114 | return Icon(Icons.check_box_rounded, color: Color(0xff252525)); 115 | 116 | if (checkedListModel.inCheckingState && !checkedListModel.checkedNotes.contains(note)) 117 | return Icon(Icons.check_box_outline_blank_sharp, 118 | color: Color(0xff252525)); 119 | return Center(); 120 | }) 121 | 122 | ], 123 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 124 | ), 125 | SizedBox( 126 | height: _height, 127 | ), 128 | Text( 129 | note.info, 130 | overflow: TextOverflow.ellipsis, 131 | maxLines: _maxLines, 132 | style: TextStyle( 133 | fontSize: 15, 134 | color: Color(0xFF252525), 135 | ), 136 | textDirection: 137 | isArabic ? TextDirection.rtl : TextDirection.ltr, 138 | ), 139 | Spacer(), 140 | Align( 141 | alignment: isArabic 142 | ? FractionalOffset.bottomLeft 143 | : FractionalOffset.bottomRight, 144 | child: Text( 145 | note.date, 146 | style: TextStyle(fontSize: 14, color: Colors.black54), 147 | ), 148 | ), 149 | ], 150 | )), 151 | ), 152 | ); 153 | } 154 | 155 | void _openItemDetails() { 156 | if (notesListModel.list != null) { 157 | if (checkedListModel.inCheckingState) { 158 | if (checkedListModel.checkedNotes.contains(note)) 159 | checkedListModel.removeCheckedItem(note); 160 | else 161 | checkedListModel.addCheckedItem(note); 162 | return; 163 | } 164 | } 165 | 166 | Navigator.of(context) 167 | .push(MaterialPageRoute(builder: (context) => Details(note: note))); 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /lib/screens/Details.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:ui'; 3 | import 'package:intl/intl.dart' as intl; 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter/rendering.dart'; 7 | import 'package:notes/models/Note.dart'; 8 | import 'package:notes/models/NotesListProvider.dart'; 9 | import 'package:notes/widgets/CustomInputText.dart'; 10 | import 'package:notes/widgets/NotesButton.dart'; 11 | import 'package:provider/provider.dart'; 12 | import 'package:screenshot/screenshot.dart'; 13 | import 'package:wc_flutter_share/wc_flutter_share.dart'; 14 | 15 | // ignore: must_be_immutable 16 | class Details extends StatelessWidget { 17 | Note note; 18 | 19 | Details({Key key, @required this.note}) : super(key: key) 20 | { 21 | int x =0; 22 | } 23 | var titleController = TextEditingController(); 24 | var noteController = TextEditingController(); 25 | 26 | final GlobalKey _scaffoldKey = new GlobalKey(); 27 | var screenshotKey= new GlobalKey(); 28 | 29 | void _showMessageInScaffold(String message) { 30 | _scaffoldKey.currentState.showSnackBar(SnackBar( 31 | content: Text(message), 32 | )); 33 | } 34 | 35 | // ignore: missing_return 36 | Future _onWillPop(BuildContext context) async { 37 | if (note.title == titleController.text && 38 | note.info == noteController.text) { 39 | Navigator.of(context).pop(); 40 | return false; 41 | } 42 | 43 | if (note.title != titleController.text || 44 | note.info != noteController.text) { 45 | await showDialog( 46 | context: context, 47 | builder: (context) => new AlertDialog( 48 | title: new Text('Are you sure?'), 49 | content: new Text('Do you want to discard changes ?'), 50 | actions: [ 51 | new FlatButton( 52 | onPressed: () => Navigator.of(context).pop(), 53 | child: new Text('No'), 54 | ), 55 | new FlatButton( 56 | onPressed: () { 57 | Navigator.of(context).pop(); 58 | Navigator.of(context).pop(); 59 | }, 60 | child: new Text('Yes'), 61 | ), 62 | ], 63 | ), 64 | ); 65 | } 66 | } 67 | 68 | updateNote(BuildContext context) async { 69 | if (note.title == titleController.text && 70 | note.info == noteController.text) { 71 | _showMessageInScaffold("No changes!"); 72 | return; 73 | } 74 | Note tempNote = new Note( 75 | id: note.id, info: noteController.text, title: titleController.text); 76 | tempNote.update(); 77 | 78 | //update provider state 79 | tempNote.date = note.getCurrentDate(); 80 | 81 | var notesList = Provider.of(context, listen: false); 82 | notesList.updateNote(note, tempNote); 83 | 84 | note = tempNote; 85 | _showMessageInScaffold("Note has been updated!"); 86 | } 87 | 88 | ScreenshotController screenshotController = ScreenshotController(); 89 | Future shareImage() async { 90 | RenderRepaintBoundary boundary = screenshotKey.currentContext.findRenderObject(); 91 | var image = await boundary.toImage(); 92 | var byteData = await image.toByteData(format: ImageByteFormat.png); 93 | var pngBytes = byteData.buffer.asUint8List(); 94 | 95 | 96 | await WcFlutterShare.share( 97 | sharePopupTitle: 'Share Note', 98 | fileName: 'note.png', 99 | mimeType: 'image/png', 100 | bytesOfFile: pngBytes); 101 | // Share.file("Notes App",note.title, pngBytes, 'image/jpg'); 102 | } 103 | 104 | bool isRTL(String text) { 105 | return intl.Bidi.detectRtlDirectionality(text); 106 | } 107 | @override 108 | Widget build(BuildContext context) { 109 | return WillPopScope( 110 | onWillPop: () => _onWillPop(context), 111 | child: Scaffold( 112 | 113 | key: _scaffoldKey, 114 | backgroundColor: Color(0xFF252525), 115 | body: RepaintBoundary( 116 | key: screenshotKey, 117 | child: Padding( 118 | padding: EdgeInsets.only( 119 | top: 50.0, bottom: 16.0, right: 16.00, left: 16.0), 120 | child: Column( 121 | crossAxisAlignment: CrossAxisAlignment.start, 122 | children: [ 123 | 124 | Row( 125 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 126 | children: [ 127 | NotesButton( 128 | callback: () => _onWillPop(context), 129 | icon: Icons.arrow_back_ios_outlined, 130 | ), 131 | Spacer(), 132 | NotesButton( 133 | callback: () => shareImage(), 134 | icon: Icons.share_outlined, 135 | ), SizedBox(width: 4,), 136 | 137 | RaisedButton( 138 | shape: RoundedRectangleBorder( 139 | borderRadius: BorderRadius.circular(10)), 140 | child: new Text( 141 | "Update", 142 | style: TextStyle(fontSize: 17), 143 | ), 144 | padding: EdgeInsets.only( 145 | top: 15, left: 15, bottom: 13, right: 15), 146 | textColor: Colors.white, 147 | color: Color(0xFF3B3B3B), 148 | onPressed: () => updateNote(context), 149 | ), 150 | 151 | ], 152 | 153 | ), 154 | SizedBox( 155 | height: 10, 156 | width: 10, 157 | ), 158 | CustomInputText( 159 | maxLines: null, 160 | maxLength: null, 161 | autoFocus: false, 162 | textSize: 26, 163 | readOnly: false, 164 | hintText: "Title", 165 | fontWeight: FontWeight.bold, 166 | controller: titleController..text = note.title, 167 | inputType: TextInputType.text, 168 | ), 169 | Padding( 170 | child: Text( 171 | note.date, 172 | style: TextStyle(color: Colors.white54, fontSize: 16), 173 | textAlign: TextAlign.start, 174 | ), 175 | padding: 176 | EdgeInsets.only(top: 12, left: 9, right: 16, bottom: 12), 177 | ), 178 | Expanded( 179 | child: CustomInputText( 180 | maxLines: 50, 181 | maxLength: null, 182 | autoFocus: false, 183 | textSize: 16, 184 | readOnly: false, 185 | hintText: "Type something...", 186 | controller: noteController..text = note.info, 187 | inputType: TextInputType.multiline, 188 | ), 189 | ) 190 | ], 191 | ), 192 | ), 193 | ), 194 | ), 195 | ); 196 | } 197 | } 198 | -------------------------------------------------------------------------------- /lib/screens/Home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:modal_bottom_sheet/modal_bottom_sheet.dart'; 4 | import 'package:notes/models/CheckedListProvider.dart'; 5 | import 'package:notes/models/Note.dart'; 6 | import 'package:notes/models/NotesListProvider.dart'; 7 | import 'package:notes/services/dbhelper.dart'; 8 | import 'package:notes/widgets/ColorPicker.dart'; 9 | import 'package:notes/widgets/CustomGridDelegate.dart'; 10 | import 'package:notes/widgets/GridItem.dart'; 11 | import 'package:notes/widgets/NotesButton.dart'; 12 | import 'package:provider/provider.dart'; 13 | import 'Search.dart'; 14 | 15 | class Home extends StatefulWidget { 16 | @override 17 | State createState() { 18 | return HomeState(); 19 | } 20 | } 21 | 22 | class HomeState extends State { 23 | var notesListModel; 24 | var checkedListModel; 25 | 26 | @override 27 | void initState() { 28 | super.initState(); 29 | 30 | WidgetsBinding.instance.addPostFrameCallback((_) { 31 | checkedListModel = 32 | Provider.of(context, listen: false); 33 | //get saved notes 34 | notesListModel = Provider.of(context, listen: false); 35 | notesListModel.getAllNotes(); 36 | //get saved settings 37 | notesListModel.getSavedState(); 38 | }); 39 | } 40 | 41 | void openColorsList(BuildContext context) { 42 | showMaterialModalBottomSheet( 43 | backgroundColor: Color(0xFF252525), 44 | context: this.context, 45 | builder: (context) => Padding( 46 | padding: EdgeInsets.all(16.0), 47 | child: SizedBox( 48 | height: 110, 49 | child: Column( 50 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 51 | children: [ 52 | Row( 53 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 54 | children: [ 55 | NotesButton( 56 | callback: () { 57 | Navigator.of(context).pop(); 58 | }, 59 | icon: Icons.arrow_back_ios_outlined), 60 | RaisedButton( 61 | shape: RoundedRectangleBorder( 62 | borderRadius: BorderRadius.circular(10)), 63 | child: new Text("Combination"), 64 | padding: EdgeInsets.only( 65 | top: 16, left: 16, bottom: 14, right: 16), 66 | textColor: Colors.white, 67 | color: Color(0xFF3B3B3B), 68 | onPressed: () => 69 | notesListModel.updateColor(-1, -1, context), 70 | ), 71 | ], 72 | ), 73 | Consumer(builder: (context, model, child) { 74 | return ColorPicker( 75 | onTap: (index) { 76 | notesListModel.updateColor( 77 | colors[index], index, context); 78 | }, 79 | selectedIndex: model.currentIndex); 80 | }) 81 | ], 82 | ), 83 | ))); 84 | } 85 | 86 | // ignore: missing_return 87 | Future _onWillPop() async { 88 | checkedListModel.inCheckingState 89 | ? checkedListModel.clear() 90 | : SystemChannels.platform.invokeMethod('SystemNavigator.pop'); 91 | } 92 | 93 | Widget notCheckingState() { 94 | return (Row( 95 | children: [ 96 | NotesButton( 97 | callback: () => openColorsList(context), 98 | icon: Icons.color_lens_outlined), 99 | NotesButton( 100 | callback: () => notesListModel.changeGrid(), 101 | icon: Icons.format_align_center_outlined, 102 | ), 103 | NotesButton(callback: () => openSearch(context), icon: Icons.search), 104 | ], 105 | )); 106 | } 107 | 108 | Widget checkingState() { 109 | return (NotesButton( 110 | callback: _deleteSelectedNotes, 111 | icon: Icons.delete_outline_outlined, 112 | )); 113 | } 114 | 115 | void _deleteSelectedNotes() async { 116 | if (checkedListModel.checkedNotes.length == 0) return; 117 | checkedListModel.deleteSelected(context); 118 | // Navigator.pushNamedAndRemoveUntil(context, '/Home', (route) => false); 119 | } 120 | 121 | @override 122 | Widget build(BuildContext context) { 123 | return WillPopScope( 124 | onWillPop: _onWillPop, 125 | child: new Scaffold( 126 | //0xFF3B3B3B 127 | floatingActionButton: FloatingActionButton( 128 | backgroundColor: Color(0xFFFF9F1C), 129 | child: Icon(Icons.add), 130 | onPressed: () => Navigator.of(this.context).pushNamed("/Create"), 131 | foregroundColor: Colors.white, 132 | elevation: 5, 133 | ), 134 | backgroundColor: Color(0xFF252525), 135 | body: Padding( 136 | padding: const EdgeInsets.only( 137 | top: 50.0, bottom: 16.0, right: 16.00, left: 16.0), 138 | child: Column( 139 | children: [ 140 | Align( 141 | alignment: Alignment.topLeft, 142 | child: Row( 143 | mainAxisAlignment: MainAxisAlignment.end, 144 | children: [ 145 | Padding( 146 | padding: EdgeInsets.only(left: 6), 147 | child: Consumer( 148 | builder: (context, model, child) { 149 | return Text( 150 | !model.inCheckingState 151 | ? "Notes" 152 | : model.checkedNotes.length.toString() + 153 | " Selected", 154 | style: TextStyle( 155 | fontSize: 30, color: Colors.white), 156 | ); 157 | })), 158 | Spacer(), 159 | Consumer( 160 | builder: (context, model, child) { 161 | return model.inCheckingState 162 | ? checkingState() 163 | : notCheckingState(); 164 | }) 165 | ], 166 | )), 167 | Consumer(builder: (context, model, child) { 168 | if (model.list.length > 0) { 169 | return Flexible( 170 | child: GridView.builder( 171 | key: UniqueKey(), 172 | shrinkWrap: true, 173 | itemCount: model.list.length, 174 | gridDelegate: 175 | SliverGridDelegateWithFixedCrossAxisCountAndFixedHeight( 176 | crossAxisCount: notesListModel.numberOfItems, 177 | crossAxisSpacing: 10, 178 | mainAxisSpacing: 10, 179 | height: 190), 180 | itemBuilder: (BuildContext context, int i) { 181 | if (notesListModel.currentColor == -1) { 182 | return new GridItem( 183 | model.list[i], colors[i % colors.length]); 184 | } else { 185 | return new GridItem( 186 | model.list[i], notesListModel.currentColor); 187 | } 188 | }, 189 | ), 190 | ); 191 | } else { 192 | return Flexible( 193 | child: Center( 194 | child: Text( 195 | "No notes yet, create a one!", 196 | style: TextStyle(color: Colors.white, fontSize: 18), 197 | textAlign: TextAlign.center, 198 | ), 199 | )); 200 | } 201 | }) 202 | ], 203 | ))), 204 | ); 205 | } 206 | 207 | void openSearch(BuildContext context) { 208 | { 209 | Navigator.of(context).push(MaterialPageRoute( 210 | builder: (context) => Search( 211 | notes: notesListModel.list, 212 | itemColor: notesListModel.currentColor))); 213 | } 214 | } 215 | } 216 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.5.0-nullsafety.1" 11 | auto_direction: 12 | dependency: "direct main" 13 | description: 14 | name: auto_direction 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.0.4+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-nullsafety.1" 25 | characters: 26 | dependency: transitive 27 | description: 28 | name: characters 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.1.0-nullsafety.3" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.2.0-nullsafety.1" 39 | clock: 40 | dependency: transitive 41 | description: 42 | name: clock 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.0-nullsafety.1" 46 | collection: 47 | dependency: transitive 48 | description: 49 | name: collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.15.0-nullsafety.3" 53 | cupertino_icons: 54 | dependency: "direct main" 55 | description: 56 | name: cupertino_icons 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.1.3" 60 | fake_async: 61 | dependency: transitive 62 | description: 63 | name: fake_async 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.2.0-nullsafety.1" 67 | ffi: 68 | dependency: transitive 69 | description: 70 | name: ffi 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.3" 74 | file: 75 | dependency: transitive 76 | description: 77 | name: file 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "5.2.1" 81 | flutter: 82 | dependency: "direct main" 83 | description: flutter 84 | source: sdk 85 | version: "0.0.0" 86 | flutter_localizations: 87 | dependency: "direct main" 88 | description: flutter 89 | source: sdk 90 | version: "0.0.0" 91 | flutter_test: 92 | dependency: "direct dev" 93 | description: flutter 94 | source: sdk 95 | version: "0.0.0" 96 | flutter_web_plugins: 97 | dependency: transitive 98 | description: flutter 99 | source: sdk 100 | version: "0.0.0" 101 | intl: 102 | dependency: "direct main" 103 | description: 104 | name: intl 105 | url: "https://pub.dartlang.org" 106 | source: hosted 107 | version: "0.16.1" 108 | js: 109 | dependency: transitive 110 | description: 111 | name: js 112 | url: "https://pub.dartlang.org" 113 | source: hosted 114 | version: "0.6.3-nullsafety.1" 115 | matcher: 116 | dependency: transitive 117 | description: 118 | name: matcher 119 | url: "https://pub.dartlang.org" 120 | source: hosted 121 | version: "0.12.10-nullsafety.1" 122 | meta: 123 | dependency: transitive 124 | description: 125 | name: meta 126 | url: "https://pub.dartlang.org" 127 | source: hosted 128 | version: "1.3.0-nullsafety.4" 129 | modal_bottom_sheet: 130 | dependency: "direct main" 131 | description: 132 | name: modal_bottom_sheet 133 | url: "https://pub.dartlang.org" 134 | source: hosted 135 | version: "1.0.0+1" 136 | nested: 137 | dependency: transitive 138 | description: 139 | name: nested 140 | url: "https://pub.dartlang.org" 141 | source: hosted 142 | version: "0.0.4" 143 | path: 144 | dependency: "direct main" 145 | description: 146 | name: path 147 | url: "https://pub.dartlang.org" 148 | source: hosted 149 | version: "1.8.0-nullsafety.1" 150 | path_provider: 151 | dependency: transitive 152 | description: 153 | name: path_provider 154 | url: "https://pub.dartlang.org" 155 | source: hosted 156 | version: "1.6.24" 157 | path_provider_linux: 158 | dependency: transitive 159 | description: 160 | name: path_provider_linux 161 | url: "https://pub.dartlang.org" 162 | source: hosted 163 | version: "0.0.1+2" 164 | path_provider_macos: 165 | dependency: transitive 166 | description: 167 | name: path_provider_macos 168 | url: "https://pub.dartlang.org" 169 | source: hosted 170 | version: "0.0.4+6" 171 | path_provider_platform_interface: 172 | dependency: transitive 173 | description: 174 | name: path_provider_platform_interface 175 | url: "https://pub.dartlang.org" 176 | source: hosted 177 | version: "1.0.4" 178 | path_provider_windows: 179 | dependency: transitive 180 | description: 181 | name: path_provider_windows 182 | url: "https://pub.dartlang.org" 183 | source: hosted 184 | version: "0.0.4+3" 185 | platform: 186 | dependency: transitive 187 | description: 188 | name: platform 189 | url: "https://pub.dartlang.org" 190 | source: hosted 191 | version: "2.2.1" 192 | plugin_platform_interface: 193 | dependency: transitive 194 | description: 195 | name: plugin_platform_interface 196 | url: "https://pub.dartlang.org" 197 | source: hosted 198 | version: "1.0.3" 199 | process: 200 | dependency: transitive 201 | description: 202 | name: process 203 | url: "https://pub.dartlang.org" 204 | source: hosted 205 | version: "3.0.13" 206 | provider: 207 | dependency: "direct main" 208 | description: 209 | name: provider 210 | url: "https://pub.dartlang.org" 211 | source: hosted 212 | version: "4.3.2+3" 213 | screenshot: 214 | dependency: "direct main" 215 | description: 216 | name: screenshot 217 | url: "https://pub.dartlang.org" 218 | source: hosted 219 | version: "0.2.0" 220 | shared_preferences: 221 | dependency: "direct main" 222 | description: 223 | name: shared_preferences 224 | url: "https://pub.dartlang.org" 225 | source: hosted 226 | version: "0.5.12+4" 227 | shared_preferences_linux: 228 | dependency: transitive 229 | description: 230 | name: shared_preferences_linux 231 | url: "https://pub.dartlang.org" 232 | source: hosted 233 | version: "0.0.2+4" 234 | shared_preferences_macos: 235 | dependency: transitive 236 | description: 237 | name: shared_preferences_macos 238 | url: "https://pub.dartlang.org" 239 | source: hosted 240 | version: "0.0.1+11" 241 | shared_preferences_platform_interface: 242 | dependency: transitive 243 | description: 244 | name: shared_preferences_platform_interface 245 | url: "https://pub.dartlang.org" 246 | source: hosted 247 | version: "1.0.4" 248 | shared_preferences_web: 249 | dependency: transitive 250 | description: 251 | name: shared_preferences_web 252 | url: "https://pub.dartlang.org" 253 | source: hosted 254 | version: "0.1.2+7" 255 | shared_preferences_windows: 256 | dependency: transitive 257 | description: 258 | name: shared_preferences_windows 259 | url: "https://pub.dartlang.org" 260 | source: hosted 261 | version: "0.0.1+3" 262 | sky_engine: 263 | dependency: transitive 264 | description: flutter 265 | source: sdk 266 | version: "0.0.99" 267 | source_span: 268 | dependency: transitive 269 | description: 270 | name: source_span 271 | url: "https://pub.dartlang.org" 272 | source: hosted 273 | version: "1.8.0-nullsafety.2" 274 | sqflite: 275 | dependency: "direct main" 276 | description: 277 | name: sqflite 278 | url: "https://pub.dartlang.org" 279 | source: hosted 280 | version: "1.3.2+1" 281 | sqflite_common: 282 | dependency: transitive 283 | description: 284 | name: sqflite_common 285 | url: "https://pub.dartlang.org" 286 | source: hosted 287 | version: "1.0.2+1" 288 | stack_trace: 289 | dependency: transitive 290 | description: 291 | name: stack_trace 292 | url: "https://pub.dartlang.org" 293 | source: hosted 294 | version: "1.10.0-nullsafety.2" 295 | stream_channel: 296 | dependency: transitive 297 | description: 298 | name: stream_channel 299 | url: "https://pub.dartlang.org" 300 | source: hosted 301 | version: "2.1.0-nullsafety.1" 302 | string_scanner: 303 | dependency: transitive 304 | description: 305 | name: string_scanner 306 | url: "https://pub.dartlang.org" 307 | source: hosted 308 | version: "1.1.0-nullsafety.1" 309 | synchronized: 310 | dependency: transitive 311 | description: 312 | name: synchronized 313 | url: "https://pub.dartlang.org" 314 | source: hosted 315 | version: "2.2.0+2" 316 | term_glyph: 317 | dependency: transitive 318 | description: 319 | name: term_glyph 320 | url: "https://pub.dartlang.org" 321 | source: hosted 322 | version: "1.2.0-nullsafety.1" 323 | test_api: 324 | dependency: transitive 325 | description: 326 | name: test_api 327 | url: "https://pub.dartlang.org" 328 | source: hosted 329 | version: "0.2.19-nullsafety.2" 330 | typed_data: 331 | dependency: transitive 332 | description: 333 | name: typed_data 334 | url: "https://pub.dartlang.org" 335 | source: hosted 336 | version: "1.3.0-nullsafety.3" 337 | vector_math: 338 | dependency: transitive 339 | description: 340 | name: vector_math 341 | url: "https://pub.dartlang.org" 342 | source: hosted 343 | version: "2.1.0-nullsafety.3" 344 | wc_flutter_share: 345 | dependency: "direct main" 346 | description: 347 | name: wc_flutter_share 348 | url: "https://pub.dartlang.org" 349 | source: hosted 350 | version: "0.2.2" 351 | win32: 352 | dependency: transitive 353 | description: 354 | name: win32 355 | url: "https://pub.dartlang.org" 356 | source: hosted 357 | version: "1.7.4" 358 | xdg_directories: 359 | dependency: transitive 360 | description: 361 | name: xdg_directories 362 | url: "https://pub.dartlang.org" 363 | source: hosted 364 | version: "0.1.2" 365 | sdks: 366 | dart: ">=2.10.2 <=2.11.0-213.1.beta" 367 | flutter: ">=1.22.2 <2.0.0" 368 | -------------------------------------------------------------------------------- /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 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.mahmoud-elshahat.notesApp; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.mahmoud-elshahat.notesApp; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.mahmoud-elshahat.notesApp; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | --------------------------------------------------------------------------------