├── .fvm ├── flutter_sdk └── fvm_config.json ├── .gitignore ├── LICENSE ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── note_app_flutter_sqflite_provider │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ └── splash.png │ │ │ ├── drawable-mdpi │ │ │ └── splash.png │ │ │ ├── drawable-night-v21 │ │ │ ├── background.png │ │ │ └── launch_background.xml │ │ │ ├── drawable-night │ │ │ ├── background.png │ │ │ └── launch_background.xml │ │ │ ├── drawable-v21 │ │ │ ├── background.png │ │ │ └── launch_background.xml │ │ │ ├── drawable-xhdpi │ │ │ └── splash.png │ │ │ ├── drawable-xxhdpi │ │ │ └── splash.png │ │ │ ├── drawable-xxxhdpi │ │ │ └── splash.png │ │ │ ├── drawable │ │ │ ├── background.png │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── app_preview ├── Google-Pixel-4-XL-Presentation-2.png └── Google-Pixel-4-XL-Presentation.png ├── assets └── images │ ├── coding.png │ ├── note.png │ ├── note_logo.png │ └── placeholder-image.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ ├── LaunchBackground.imageset │ │ ├── Contents.json │ │ ├── background.png │ │ └── darkbackground.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── l10n.yaml ├── lib ├── constants │ ├── app_constants.dart │ └── assets_path.dart ├── functions │ ├── future_functions.dart │ └── picker_functions.dart ├── helpers │ ├── database_helper.dart │ ├── label_database_helper.dart │ └── note_database_helper.dart ├── l10n │ ├── app_ar.arb │ ├── app_en.arb │ ├── app_vi.arb │ └── l10n.dart ├── main.dart ├── models │ ├── label.dart │ └── note.dart ├── providers │ ├── label_provider.dart │ ├── locale_provider.dart │ └── note_provider.dart ├── screens │ ├── all_labels_screen.dart │ ├── all_notes_by_label_screen.dart │ ├── all_notes_screen.dart │ ├── app_infor_screen.dart │ ├── drawer_screen.dart │ ├── edit_note_screen.dart │ ├── image_detail_screen.dart │ ├── pick_label_screen.dart │ └── settings_screen.dart ├── utils │ ├── app_dialogs.dart │ └── note_search.dart └── widgets │ ├── custom_list_tile_widget.dart │ ├── dialog_label_widget.dart │ ├── images_staggered_grid_view_widget.dart │ ├── label_card_widget.dart │ ├── note_card_widget.dart │ ├── note_form_widget.dart │ ├── note_list_view_widget.dart │ ├── note_note_ui_widget.dart │ └── unordered_list_widget.dart ├── pubspec.lock ├── pubspec.yaml ├── test └── widget_test.dart └── web ├── favicon.png ├── icons ├── Icon-192.png ├── Icon-512.png ├── Icon-maskable-192.png └── Icon-maskable-512.png ├── index.html ├── manifest.json └── splash ├── img ├── dark-1x.png ├── dark-2x.png ├── dark-3x.png ├── dark-4x.png ├── light-1x.png ├── light-2x.png ├── light-3x.png └── light-4x.png └── style.css /.fvm/flutter_sdk: -------------------------------------------------------------------------------- 1 | C:/Users/anhca/fvm/versions/2.8.1 -------------------------------------------------------------------------------- /.fvm/fvm_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "flutterSdkVersion": "2.8.1", 3 | "flavors": {} 4 | } -------------------------------------------------------------------------------- /.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 | 48 | # Sign the app 49 | android/key.properties 50 | android/app/upload-keystore.jks 51 | 52 | .fvm/ 53 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Tran Huy Canh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # note_app_flutter_sqflite_provider 2 | 3 | ## 👋 Introduce 4 | 5 | This is a note taking app made with **[Flutter](https://flutter.dev/)** that helps you to take notes of important things on your phone anytime without internet connection. (Design ideas based on Google Keep App) 6 | 7 | The application I created for the purpose of learning to review knowledge such as CRUD SQlite, Provider (state management) and learn some new knowledge such as application internationalization, freeing memory. 8 | 9 | During the implementation process, I encountered some errors and promptly fixed them. Difficulties I have encountered: 10 | 11 | - delete image files and cache when not in use 12 | - error when undoing a note 13 | - listen for changes when creating new labels 14 | - display grid list of images 15 | - meet some errors on performance related async/await, query sqlite 16 | - and there are some more problems 17 | 18 | Finally after a while looking for a fix, I finished this application. I tried to optimize the lines of code to the best of my ability (at the time of project implementation). To make it better, I look forward to receiving your contributions. 19 | 20 | **_Don't hesitate to give this project 1 🌟 if you like it. Thank you_** 21 | 22 | ## 👀 App preview 23 | 24 | ![app preview 1](app_preview/Google-Pixel-4-XL-Presentation.png) 25 | ![app preview 2](app_preview/Google-Pixel-4-XL-Presentation-2.png) 26 | 27 | ## 📙 How to Use the Project 28 | 29 | You can use the app by installing [Play Store][app_for_android] (applicable to android devices) 30 | 31 | ## 🥰 The main functions of the application 32 | 33 | - add, delete, edit, undo, search notes 34 | - add, delete, edit labels 35 | - add images from camera and gallery 36 | - change note background color 37 | - show notes by label 38 | - display list of notes, labels 39 | - Support 3 languages: Vietnamese, English, Arabic (If the device does not use the above 3 languages, the first installation will default to Vietnamese) 40 | - all data will be saved in local storage 41 | 42 | ## ℹ️ Version and packages used 43 | 44 | - Flutter 3.19.1 45 | - Dart 3.3.0 46 | - perform operations with path: [path][path] 47 | - find commonly used locations on the file system: [path_provider][path_provider] 48 | - store data locally: [sqflite][sqflite] 49 | - state management: [provider][provider] 50 | - use font of google: [google_fonts][google_fonts] 51 | - create staggered grid list: [flutter_staggered_grid_view][flutter_staggered_grid_view] 52 | - store data as key-value (in this project is to save the view mode): [shared_preferences][shared_preferences] 53 | - lauch URL: [url_launcher][url_launcher] 54 | - pick image from camera and gallery: [image_picker][image_picker] 55 | - pick color: [flutter_colorpicker][flutter_colorpicker] 56 | - format date and localizations: [intl][intl] 57 | - zoomable image: [photo_view][photo_view] 58 | - create splash screen: [flutter_native_splash][flutter_native_splash] 59 | - updating app's launcher icon: [flutter_launcher_icons][flutter_launcher_icons] 60 | 61 | ## 📝 License 62 | 63 | You can use the free source code for learning purposes. If you use for other purposes, please quote the source. 64 | 65 |
66 | 67 | [app_for_android]: https://play.google.com/store/apps/details?id=github.ck1412.noteApp 68 | [app_apk]: https://drive.google.com/file/d/1TYwtfyO335ej8BSNzWC5NQU_UO7vnAyr/view?usp=sharing 69 | 70 | 71 | 72 | [path]: https://pub.dev/packages/path 73 | [path_provider]: https://pub.dev/packages/path_provider 74 | [sqflite]: https://pub.dev/packages/sqflite 75 | [provider]: https://pub.dev/packages/provider 76 | [google_fonts]: https://pub.dev/packages/google_fonts 77 | [flutter_staggered_grid_view]: https://pub.dev/packages/flutter_staggered_grid_view 78 | [shared_preferences]: https://pub.dev/packages/shared_preferences 79 | [url_launcher]: https://pub.dev/packages/url_launcher 80 | [image_picker]: https://pub.dev/packages/image_picker 81 | [flutter_colorpicker]: https://pub.dev/packages/flutter_colorpicker 82 | [intl]: https://pub.dev/packages/intl 83 | [photo_view]: https://pub.dev/packages/photo_view 84 | [flutter_native_splash]: https://pub.dev/packages/flutter_native_splash 85 | [flutter_launcher_icons]: https://pub.dev/packages/flutter_launcher_icons 86 | 87 | 91 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | analyzer: 13 | errors: 14 | # Ignore invalid annotations since freezed annotation and json serializable required it 15 | invalid_annotation_target: ignore 16 | exclude: 17 | # Ignore warnings in files from json_serializable, built_value and most generators 18 | - 'lib/**.g.dart' 19 | # Ignore warnings in files generated by Freezed specifically. 20 | - 'lib/**.freezed.dart' 21 | - 'lib/l10n/generated/**' 22 | 23 | linter: 24 | rules: 25 | # https://github.com/dart-lang/linter/blob/master/example/all.yaml 26 | - avoid_relative_lib_imports 27 | - prefer_relative_imports 28 | - avoid_empty_else 29 | - avoid_print 30 | - avoid_slow_async_io 31 | - avoid_types_as_parameter_names 32 | - avoid_web_libraries_in_flutter 33 | - cancel_subscriptions 34 | - close_sinks 35 | - collection_methods_unrelated_type 36 | - control_flow_in_finally 37 | - empty_statements 38 | - hash_and_equals 39 | - implicit_reopen 40 | - invalid_case_patterns 41 | - literal_only_boolean_expressions 42 | - no_duplicate_case_values 43 | - no_logic_in_create_state 44 | - prefer_void_to_null 45 | - test_types_in_equals 46 | - throw_in_finally 47 | - unnecessary_statements 48 | - unrelated_type_equality_checks 49 | - unsafe_html 50 | - use_build_context_synchronously 51 | - use_key_in_widget_constructors 52 | - valid_regexps 53 | - always_declare_return_types 54 | - always_put_control_body_on_new_line 55 | - annotate_overrides 56 | - avoid_annotating_with_dynamic 57 | - avoid_bool_literals_in_conditional_expressions 58 | - avoid_double_and_int_checks 59 | - avoid_final_parameters 60 | - avoid_function_literals_in_foreach_calls 61 | - avoid_init_to_null 62 | - avoid_multiple_declarations_per_line 63 | - avoid_null_checks_in_equality_operators 64 | - avoid_positional_boolean_parameters 65 | - avoid_private_typedef_functions 66 | - avoid_renaming_method_parameters 67 | - avoid_return_types_on_setters 68 | - avoid_returning_null_for_void 69 | - avoid_returning_this 70 | - avoid_setters_without_getters 71 | - avoid_shadowing_type_parameters 72 | - avoid_single_cascade_in_expression_statements 73 | - avoid_unnecessary_containers 74 | - avoid_unused_constructor_parameters 75 | - avoid_void_async 76 | - await_only_futures 77 | - camel_case_extensions 78 | - cast_nullable_to_non_nullable 79 | - combinators_ordering 80 | - conditional_uri_does_not_exist 81 | - constant_identifier_names 82 | - curly_braces_in_flow_control_structures 83 | - directives_ordering 84 | - do_not_use_environment 85 | - empty_catches 86 | - empty_constructor_bodies 87 | - eol_at_end_of_file 88 | - exhaustive_cases 89 | - file_names 90 | - flutter_style_todos 91 | - implementation_imports 92 | - join_return_with_assignment 93 | - leading_newlines_in_multiline_strings 94 | - library_names 95 | - library_prefixes 96 | - library_private_types_in_public_api 97 | - matching_super_parameters 98 | - missing_whitespace_between_adjacent_strings 99 | - no_leading_underscores_for_library_prefixes 100 | - no_leading_underscores_for_local_identifiers 101 | - no_literal_bool_comparisons 102 | - non_constant_identifier_names 103 | - noop_primitive_operations 104 | - null_check_on_nullable_type_parameter 105 | - null_closures 106 | - only_throw_errors 107 | - overridden_fields 108 | - parameter_assignments 109 | - prefer_adjacent_string_concatenation 110 | - prefer_asserts_in_initializer_lists 111 | - prefer_asserts_with_message 112 | - prefer_collection_literals 113 | - prefer_conditional_assignment 114 | - prefer_const_constructors 115 | - prefer_const_constructors_in_immutables 116 | - prefer_const_declarations 117 | - prefer_const_literals_to_create_immutables 118 | - prefer_constructors_over_static_methods 119 | - prefer_contains 120 | - prefer_final_fields 121 | - prefer_final_in_for_each 122 | - prefer_final_locals 123 | - prefer_for_elements_to_map_fromIterable 124 | - prefer_foreach 125 | - prefer_function_declarations_over_variables 126 | - prefer_generic_function_type_aliases 127 | - prefer_if_elements_to_conditional_expressions 128 | - prefer_if_null_operators 129 | - prefer_initializing_formals 130 | - prefer_inlined_adds 131 | - prefer_int_literals 132 | - prefer_interpolation_to_compose_strings 133 | - prefer_is_empty 134 | - prefer_is_not_empty 135 | - prefer_is_not_operator 136 | - prefer_iterable_whereType 137 | - prefer_null_aware_method_calls 138 | - prefer_null_aware_operators 139 | - prefer_spread_collections 140 | - prefer_typing_uninitialized_variables 141 | - provide_deprecation_message 142 | - recursive_getters 143 | - require_trailing_commas 144 | - sized_box_for_whitespace 145 | - sized_box_shrink_expand 146 | - slash_for_doc_comments 147 | - sort_child_properties_last 148 | - type_annotate_public_apis 149 | - type_init_formals 150 | - type_literal_in_constant_pattern 151 | - unawaited_futures 152 | - unnecessary_brace_in_string_interps 153 | - unnecessary_breaks 154 | - unnecessary_const 155 | - unnecessary_constructor_name 156 | - unnecessary_getters_setters 157 | - unnecessary_late 158 | - unnecessary_new 159 | - unnecessary_null_aware_assignments 160 | - unnecessary_null_checks 161 | - unnecessary_null_in_if_null_operators 162 | - unnecessary_nullable_for_final_variable_declarations 163 | - unnecessary_parenthesis 164 | - unnecessary_raw_strings 165 | - unnecessary_string_interpolations 166 | - unnecessary_this 167 | - unnecessary_to_list_in_spreads 168 | - unreachable_from_main 169 | - use_colored_box 170 | - use_decorated_box 171 | - use_enums 172 | - use_function_type_syntax_for_parameters 173 | - use_if_null_to_convert_nulls_to_bools 174 | - use_is_even_rather_than_modulo 175 | - use_named_constants 176 | - use_raw_strings 177 | - use_rethrow_when_possible 178 | - use_string_buffers 179 | - use_super_parameters 180 | - use_to_and_as_if_applicable 181 | - void_checks 182 | - depend_on_referenced_packages 183 | - package_names 184 | - secure_pubspec_urls 185 | 186 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | def keystoreProperties = new Properties() 26 | def keystorePropertiesFile = rootProject.file('key.properties') 27 | if (keystorePropertiesFile.exists()) { 28 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 29 | } 30 | 31 | android { 32 | compileSdk 34 33 | 34 | namespace 'com.example.note_app_flutter_sqflite_provider' 35 | 36 | compileOptions { 37 | sourceCompatibility JavaVersion.VERSION_1_8 38 | targetCompatibility JavaVersion.VERSION_1_8 39 | } 40 | 41 | kotlinOptions { 42 | jvmTarget = '1.8' 43 | } 44 | 45 | sourceSets { 46 | main.java.srcDirs += 'src/main/kotlin' 47 | } 48 | 49 | defaultConfig { 50 | applicationId "github.ck1412.noteApp" 51 | minSdkVersion 21 52 | targetSdkVersion 34 53 | versionCode flutterVersionCode.toInteger() 54 | versionName flutterVersionName 55 | multiDexEnabled true 56 | } 57 | 58 | signingConfigs { 59 | release { 60 | keyAlias keystoreProperties['keyAlias'] 61 | keyPassword keystoreProperties['keyPassword'] 62 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 63 | storePassword keystoreProperties['storePassword'] 64 | } 65 | } 66 | buildTypes { 67 | debug { 68 | signingConfig signingConfigs.debug 69 | } 70 | release { 71 | signingConfig signingConfigs.release 72 | } 73 | } 74 | 75 | } 76 | 77 | flutter { 78 | source '../..' 79 | } 80 | 81 | dependencies { 82 | implementation "androidx.multidex:multidex:2.0.1" 83 | } 84 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 16 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/note_app_flutter_sqflite_provider/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.note_app_flutter_sqflite_provider 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night-v21/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-night-v21/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-night/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-v21/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/drawable/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-hdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-mdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 16 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 16 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | 7 | subprojects { 8 | afterEvaluate { project -> 9 | if (project.hasProperty('android')) { 10 | project.android { 11 | if (namespace == null) { 12 | namespace project.group 13 | } 14 | } 15 | } 16 | } 17 | } 18 | } 19 | 20 | rootProject.buildDir = '../build' 21 | subprojects { 22 | project.buildDir = "${rootProject.buildDir}/${project.name}" 23 | } 24 | subprojects { 25 | project.evaluationDependsOn(':app') 26 | } 27 | 28 | tasks.register("clean", Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | }() 9 | 10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") 11 | 12 | repositories { 13 | google() 14 | mavenCentral() 15 | gradlePluginPortal() 16 | } 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 21 | id "com.android.application" version "7.4.2" apply false 22 | id "org.jetbrains.kotlin.android" version "1.7.10" apply false 23 | } 24 | 25 | include ":app" 26 | -------------------------------------------------------------------------------- /app_preview/Google-Pixel-4-XL-Presentation-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/app_preview/Google-Pixel-4-XL-Presentation-2.png -------------------------------------------------------------------------------- /app_preview/Google-Pixel-4-XL-Presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/app_preview/Google-Pixel-4-XL-Presentation.png -------------------------------------------------------------------------------- /assets/images/coding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/assets/images/coding.png -------------------------------------------------------------------------------- /assets/images/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/assets/images/note.png -------------------------------------------------------------------------------- /assets/images/note_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/assets/images/note_logo.png -------------------------------------------------------------------------------- /assets/images/placeholder-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/assets/images/placeholder-image.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 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 = 1300; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = ( 294 | "$(inherited)", 295 | "@executable_path/Frameworks", 296 | ); 297 | PRODUCT_BUNDLE_IDENTIFIER = github.ck1412.noteApp; 298 | PRODUCT_NAME = "$(TARGET_NAME)"; 299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 300 | SWIFT_VERSION = 5.0; 301 | VERSIONING_SYSTEM = "apple-generic"; 302 | }; 303 | name = Profile; 304 | }; 305 | 97C147031CF9000F007C117D /* Debug */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 311 | CLANG_CXX_LIBRARY = "libc++"; 312 | CLANG_ENABLE_MODULES = YES; 313 | CLANG_ENABLE_OBJC_ARC = YES; 314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_COMMA = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 320 | CLANG_WARN_EMPTY_BODY = YES; 321 | CLANG_WARN_ENUM_CONVERSION = YES; 322 | CLANG_WARN_INFINITE_RECURSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 329 | CLANG_WARN_STRICT_PROTOTYPES = YES; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNREACHABLE_CODE = YES; 332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = dwarf; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | ENABLE_TESTABILITY = YES; 338 | GCC_C_LANGUAGE_STANDARD = gnu99; 339 | GCC_DYNAMIC_NO_PIC = NO; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_OPTIMIZATION_LEVEL = 0; 342 | GCC_PREPROCESSOR_DEFINITIONS = ( 343 | "DEBUG=1", 344 | "$(inherited)", 345 | ); 346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 348 | GCC_WARN_UNDECLARED_SELECTOR = YES; 349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 350 | GCC_WARN_UNUSED_FUNCTION = YES; 351 | GCC_WARN_UNUSED_VARIABLE = YES; 352 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 353 | MTL_ENABLE_DEBUG_INFO = YES; 354 | ONLY_ACTIVE_ARCH = YES; 355 | SDKROOT = iphoneos; 356 | TARGETED_DEVICE_FAMILY = "1,2"; 357 | }; 358 | name = Debug; 359 | }; 360 | 97C147041CF9000F007C117D /* Release */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | ALWAYS_SEARCH_USER_PATHS = NO; 364 | CLANG_ANALYZER_NONNULL = YES; 365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_COMMA = YES; 372 | CLANG_WARN_CONSTANT_CONVERSION = YES; 373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 375 | CLANG_WARN_EMPTY_BODY = YES; 376 | CLANG_WARN_ENUM_CONVERSION = YES; 377 | CLANG_WARN_INFINITE_RECURSION = YES; 378 | CLANG_WARN_INT_CONVERSION = YES; 379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 384 | CLANG_WARN_STRICT_PROTOTYPES = YES; 385 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 386 | CLANG_WARN_UNREACHABLE_CODE = YES; 387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 389 | COPY_PHASE_STRIP = NO; 390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 391 | ENABLE_NS_ASSERTIONS = NO; 392 | ENABLE_STRICT_OBJC_MSGSEND = YES; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_NO_COMMON_BLOCKS = YES; 395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 397 | GCC_WARN_UNDECLARED_SELECTOR = YES; 398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 399 | GCC_WARN_UNUSED_FUNCTION = YES; 400 | GCC_WARN_UNUSED_VARIABLE = YES; 401 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 402 | MTL_ENABLE_DEBUG_INFO = NO; 403 | SDKROOT = iphoneos; 404 | SUPPORTED_PLATFORMS = iphoneos; 405 | SWIFT_COMPILATION_MODE = wholemodule; 406 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 407 | TARGETED_DEVICE_FAMILY = "1,2"; 408 | VALIDATE_PRODUCT = YES; 409 | }; 410 | name = Release; 411 | }; 412 | 97C147061CF9000F007C117D /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 415 | buildSettings = { 416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 417 | CLANG_ENABLE_MODULES = YES; 418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 419 | ENABLE_BITCODE = NO; 420 | INFOPLIST_FILE = Runner/Info.plist; 421 | LD_RUNPATH_SEARCH_PATHS = ( 422 | "$(inherited)", 423 | "@executable_path/Frameworks", 424 | ); 425 | PRODUCT_BUNDLE_IDENTIFIER = github.ck1412.noteApp; 426 | PRODUCT_NAME = "$(TARGET_NAME)"; 427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 429 | SWIFT_VERSION = 5.0; 430 | VERSIONING_SYSTEM = "apple-generic"; 431 | }; 432 | name = Debug; 433 | }; 434 | 97C147071CF9000F007C117D /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CLANG_ENABLE_MODULES = YES; 440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 441 | ENABLE_BITCODE = NO; 442 | INFOPLIST_FILE = Runner/Info.plist; 443 | LD_RUNPATH_SEARCH_PATHS = ( 444 | "$(inherited)", 445 | "@executable_path/Frameworks", 446 | ); 447 | PRODUCT_BUNDLE_IDENTIFIER = github.ck1412.noteApp; 448 | PRODUCT_NAME = "$(TARGET_NAME)"; 449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 450 | SWIFT_VERSION = 5.0; 451 | VERSIONING_SYSTEM = "apple-generic"; 452 | }; 453 | name = Release; 454 | }; 455 | /* End XCBuildConfiguration section */ 456 | 457 | /* Begin XCConfigurationList section */ 458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147031CF9000F007C117D /* Debug */, 462 | 97C147041CF9000F007C117D /* Release */, 463 | 249021D3217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 469 | isa = XCConfigurationList; 470 | buildConfigurations = ( 471 | 97C147061CF9000F007C117D /* Debug */, 472 | 97C147071CF9000F007C117D /* Release */, 473 | 249021D4217E4FDB00AE95B9 /* Profile */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | /* End XCConfigurationList section */ 479 | }; 480 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 481 | } -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/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/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "background.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "appearances" : [ 10 | { 11 | "appearance" : "luminosity", 12 | "value" : "dark" 13 | } 14 | ], 15 | "filename" : "darkbackground.png", 16 | "idiom" : "universal", 17 | "scale" : "1x" 18 | }, 19 | { 20 | "idiom" : "universal", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "appearances" : [ 25 | { 26 | "appearance" : "luminosity", 27 | "value" : "dark" 28 | } 29 | ], 30 | "idiom" : "universal", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "universal", 35 | "scale" : "3x" 36 | }, 37 | { 38 | "appearances" : [ 39 | { 40 | "appearance" : "luminosity", 41 | "value" : "dark" 42 | } 43 | ], 44 | "idiom" : "universal", 45 | "scale" : "3x" 46 | } 47 | ], 48 | "info" : { 49 | "author" : "xcode", 50 | "version" : 1 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "LaunchImage.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "LaunchImage@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "LaunchImage@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CK1412/note_app_flutter_sqflite_provider/a6de3de796b6eb55bff6902551e581022d1f768d/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /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 | CFBundleDisplayName 8 | Note App Flutter Sqflite Provider 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Note 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | UIStatusBarHidden 47 | 48 | 49 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /l10n.yaml: -------------------------------------------------------------------------------- 1 | arb-dir: lib/l10n 2 | template-arb-file: app_vi.arb 3 | output-localization-file: app_localizations.dart -------------------------------------------------------------------------------- /lib/constants/app_constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; 3 | import 'package:google_fonts/google_fonts.dart'; 4 | 5 | class ColorsConstant { 6 | static const bgScaffoldColor = Color(0xff212121); 7 | static const bgDrawerColor = Color(0xff292B2D); 8 | static const whiteColor = Color(0xffF7EDE2); 9 | static const grayColor = Color(0xff343A40); 10 | static const textColor = Color(0xffE8E8E8); 11 | static const blueColor = Color(0xff3C8DAD); 12 | 13 | static const List bgColors = [ 14 | Color(0xffC68B59), 15 | Color(0xff46624E), 16 | Color(0xff21556E), 17 | Color(0xff944E6C), 18 | Color(0xffD0637C), 19 | Color(0xff6E3CBC), 20 | Color(0xffB13441), 21 | Color(0xff666653), 22 | Color(0xff547174), 23 | Color(0xff9B4D3C), 24 | Color(0xffBD903F), 25 | ]; 26 | } 27 | 28 | class TextStyleConstants { 29 | static const titleStyle1 = TextStyle( 30 | fontSize: 22, 31 | fontWeight: FontWeight.w500, 32 | color: ColorsConstant.textColor, 33 | ); 34 | 35 | static const titleStyle2 = TextStyle( 36 | fontSize: 18, 37 | color: ColorsConstant.whiteColor, 38 | fontWeight: FontWeight.w500, 39 | overflow: TextOverflow.ellipsis, 40 | ); 41 | 42 | static const titleStyle3 = TextStyle( 43 | fontSize: 16, 44 | color: ColorsConstant.whiteColor, 45 | fontWeight: FontWeight.w400, 46 | overflow: TextOverflow.ellipsis, 47 | ); 48 | 49 | static const contentStyle2 = TextStyle( 50 | fontSize: 18, 51 | fontWeight: FontWeight.w400, 52 | color: ColorsConstant.textColor, 53 | // overflow: TextOverflow.ellipsis, 54 | ); 55 | 56 | static const contentStyle3 = TextStyle( 57 | color: ColorsConstant.textColor, 58 | fontSize: 16, 59 | fontWeight: FontWeight.w300, 60 | overflow: TextOverflow.ellipsis, 61 | ); 62 | 63 | static const contentStyle4 = TextStyle( 64 | color: ColorsConstant.textColor, 65 | fontSize: 14, 66 | // overflow: TextOverflow.ellipsis, 67 | ); 68 | 69 | static const titleAppBarStyle = TextStyle( 70 | color: ColorsConstant.whiteColor, 71 | ); 72 | } 73 | 74 | ThemeData customThemeData(BuildContext context) => ThemeData( 75 | primaryColor: ColorsConstant.blueColor, 76 | visualDensity: VisualDensity.adaptivePlatformDensity, 77 | scaffoldBackgroundColor: ColorsConstant.bgScaffoldColor, 78 | brightness: Brightness.dark, 79 | colorScheme: const ColorScheme.dark( 80 | primary: Color(0xff39A9CB), 81 | secondary: Color(0xffFEE440), 82 | ), 83 | textTheme: GoogleFonts.arimoTextTheme(Theme.of(context).textTheme), 84 | appBarTheme: const AppBarTheme( 85 | backgroundColor: Colors.transparent, 86 | elevation: 0, 87 | iconTheme: IconThemeData(color: ColorsConstant.whiteColor), 88 | ), 89 | drawerTheme: const DrawerThemeData( 90 | backgroundColor: ColorsConstant.bgScaffoldColor, 91 | ), 92 | floatingActionButtonTheme: const FloatingActionButtonThemeData( 93 | backgroundColor: ColorsConstant.grayColor, 94 | ), 95 | iconTheme: const IconThemeData(color: ColorsConstant.whiteColor), 96 | dialogTheme: const DialogTheme( 97 | titleTextStyle: TextStyleConstants.titleStyle2, 98 | contentTextStyle: TextStyleConstants.contentStyle3, 99 | ), 100 | ); 101 | 102 | Widget messageText(String text) { 103 | return Center( 104 | child: Padding( 105 | padding: const EdgeInsets.all(16), 106 | child: Text( 107 | text, 108 | style: TextStyleConstants.contentStyle3.copyWith(color: Colors.white70), 109 | textAlign: TextAlign.center, 110 | ), 111 | ), 112 | ); 113 | } 114 | 115 | enum LimitedQuantity { 116 | yes, 117 | no, 118 | } 119 | 120 | enum ViewMode { 121 | staggeredGrid, 122 | list, 123 | } 124 | 125 | StaggeredTile getStaggeredTile({required int total, required int index}) { 126 | switch (total % 3) { 127 | case 1: 128 | if (index == total - 1) { 129 | return const StaggeredTile.count(3, 2); 130 | } 131 | return const StaggeredTile.count(1, 1); 132 | case 2: 133 | if (index == total - 1) { 134 | return const StaggeredTile.count(2, 2); 135 | } else if (index == total - 2) { 136 | return const StaggeredTile.count(1, 2); 137 | } 138 | return const StaggeredTile.count(1, 1); 139 | default: 140 | return const StaggeredTile.count(1, 1); 141 | } 142 | } 143 | 144 | Widget linearGradientIconAdd = ShaderMask( 145 | blendMode: BlendMode.srcATop, 146 | shaderCallback: (bounds) => const LinearGradient( 147 | begin: Alignment.topLeft, 148 | end: Alignment.bottomRight, 149 | colors: [ 150 | Color(0xff4E9F3D), 151 | Color(0xffFF2626), 152 | Color(0xffFFC900), 153 | Color(0xff548CFF), 154 | Color(0xff49BCF6), 155 | Color(0xff1E2A78), 156 | ], 157 | ).createShader(bounds), 158 | child: const Icon( 159 | Icons.add, 160 | size: 40, 161 | ), 162 | ); 163 | -------------------------------------------------------------------------------- /lib/constants/assets_path.dart: -------------------------------------------------------------------------------- 1 | class AssetsPath { 2 | static String coding = 'assets/images/coding.png'; 3 | static String note = 'assets/images/note.png'; 4 | static String placeholderImage = 'assets/images/placeholder-image.png'; 5 | } 6 | -------------------------------------------------------------------------------- /lib/functions/future_functions.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:path_provider/path_provider.dart'; 5 | import 'package:provider/provider.dart'; 6 | import 'package:shared_preferences/shared_preferences.dart'; 7 | import 'package:url_launcher/url_launcher.dart'; 8 | 9 | import '../constants/app_constants.dart'; 10 | import '../providers/label_provider.dart'; 11 | import '../providers/note_provider.dart'; 12 | 13 | Future refreshOrGetData(BuildContext context) async { 14 | // * dùng kiểu này bị lỗi 15 | // await context.read().fetchAndSet(); 16 | // context.read().fetchAndSet(); 17 | 18 | await Provider.of(context, listen: false) 19 | .fetchAndSet() 20 | .whenComplete(() { 21 | Provider.of(context, listen: false).fetchAndSet(); 22 | }); 23 | } 24 | 25 | Future? openLink(String urlString) async { 26 | if (await canLaunchUrl(Uri.parse(urlString))) { 27 | await canLaunchUrl(Uri.parse(urlString)); 28 | } else { 29 | throw Exception('Could not launch $urlString'); 30 | } 31 | } 32 | 33 | Future getViewMode() async { 34 | final prefs = await SharedPreferences.getInstance(); 35 | if (!prefs.containsKey('view-mode')) { 36 | return ViewMode.staggeredGrid.name; 37 | } 38 | 39 | return prefs.getString('view-mode') ?? ViewMode.staggeredGrid.name; 40 | } 41 | 42 | Future changeViewMode(String viewMode) async { 43 | final prefs = await SharedPreferences.getInstance(); 44 | late final String newViewMode; 45 | if (viewMode == ViewMode.list.name) { 46 | newViewMode = ViewMode.staggeredGrid.name; 47 | } else { 48 | newViewMode = ViewMode.list.name; 49 | } 50 | await prefs.setString('view-mode', newViewMode); 51 | return newViewMode; 52 | } 53 | 54 | Future deleteFile(File file) async { 55 | try { 56 | if (file.existsSync()) { 57 | await file.delete(); 58 | } 59 | } catch (e) { 60 | throw Exception('file read error'); 61 | } 62 | } 63 | 64 | Future deleteFileList(List fileList) async { 65 | for (final file in fileList) { 66 | await deleteFile(file); 67 | } 68 | } 69 | 70 | Future deleteCacheDir() async { 71 | final cacheDir = await getTemporaryDirectory(); 72 | if (cacheDir.existsSync()) { 73 | cacheDir.deleteSync(recursive: true); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/functions/picker_functions.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_colorpicker/flutter_colorpicker.dart'; 5 | import 'package:flutter_gen/gen_l10n/app_localizations.dart'; 6 | import 'package:image_picker/image_picker.dart'; 7 | import 'package:path/path.dart'; 8 | import 'package:path_provider/path_provider.dart'; 9 | 10 | import '../constants/app_constants.dart'; 11 | 12 | Future pickImage(ImageSource imageSource) async { 13 | final ImagePicker imagePicker = ImagePicker(); 14 | final XFile? imageFile = await imagePicker.pickImage( 15 | source: imageSource, 16 | maxHeight: 2340, 17 | maxWidth: 1080, 18 | ); 19 | 20 | if (imageFile == null) { 21 | return null; 22 | } 23 | 24 | // convert XFile to File 25 | final File tmpImageFile = File(imageFile.path); 26 | 27 | // get Filename of image 28 | final imageFileName = basename(imageFile.path); 29 | 30 | final appDir = await getApplicationDocumentsDirectory(); 31 | 32 | // create a Folder contain images inside appDir 33 | var imagesDir = Directory('${appDir.path}/images/'); 34 | 35 | if (!imagesDir.existsSync()) { 36 | imagesDir = await imagesDir.create(recursive: true); 37 | } 38 | 39 | // copy image file to the images folder 40 | final newFile = await tmpImageFile.copy('${imagesDir.path}/$imageFileName'); 41 | 42 | return newFile; 43 | } 44 | 45 | Future?> pickManyImages() async { 46 | final imagePicker = ImagePicker(); 47 | 48 | // get list file images 49 | final List imageFileList = await imagePicker.pickMultiImage( 50 | maxHeight: 2340, 51 | maxWidth: 1080, 52 | ); 53 | 54 | // convert XFile to File 55 | final List tmpImageFile = 56 | imageFileList.map((e) => File(e.path)).toList(); 57 | 58 | final appDir = await getApplicationDocumentsDirectory(); 59 | 60 | // create a Folder contain images inside appDir 61 | var imagesDir = Directory('${appDir.path}/images/'); 62 | if (!imagesDir.existsSync()) { 63 | imagesDir = await imagesDir.create(recursive: true); 64 | } 65 | 66 | // copy image file list to the images folder 67 | for (int i = 0; i < tmpImageFile.length; i++) { 68 | final String fileName = basename(tmpImageFile[i].path); 69 | tmpImageFile[i] = await tmpImageFile[i].copy('${imagesDir.path}/$fileName'); 70 | } 71 | return tmpImageFile; 72 | } 73 | 74 | void pickColor({ 75 | required BuildContext context, 76 | required Color selectedColor, 77 | required Function(Color) changeColor, 78 | }) { 79 | final screenSize = MediaQuery.of(context).size; 80 | final radius = screenSize.width * .1; 81 | 82 | showModalBottomSheet( 83 | backgroundColor: ColorsConstant.whiteColor, 84 | shape: RoundedRectangleBorder( 85 | borderRadius: BorderRadius.only( 86 | topLeft: Radius.circular(radius), 87 | topRight: Radius.circular(radius), 88 | ), 89 | ), 90 | context: context, 91 | builder: (context) => Container( 92 | height: screenSize.height * .4, 93 | width: double.infinity, 94 | padding: const EdgeInsets.all(8), 95 | child: Column( 96 | children: [ 97 | Padding( 98 | padding: const EdgeInsets.only(top: 8, bottom: 20), 99 | child: Text( 100 | AppLocalizations.of(context)! 101 | .choose_your_favorite_background_color, 102 | style: 103 | TextStyleConstants.titleStyle2.copyWith(color: Colors.black), 104 | ), 105 | ), 106 | Expanded( 107 | child: BlockPicker( 108 | pickerColor: selectedColor, 109 | availableColors: const [ 110 | ColorsConstant.bgScaffoldColor, 111 | ...ColorsConstant.bgColors, 112 | ], 113 | onColorChanged: changeColor, 114 | ), 115 | ), 116 | ], 117 | ), 118 | ), 119 | ); 120 | } 121 | -------------------------------------------------------------------------------- /lib/helpers/database_helper.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:path/path.dart'; 4 | import 'package:path_provider/path_provider.dart'; 5 | import 'package:sqflite/sqflite.dart'; 6 | 7 | import '../models/label.dart'; 8 | import '../models/note.dart'; 9 | 10 | class DatabaseHelper { 11 | static const dbName = 'note_app.db'; 12 | 13 | static final DatabaseHelper instance = DatabaseHelper._init(); 14 | DatabaseHelper._init(); 15 | 16 | static Database? _database; 17 | 18 | Future get database async { 19 | if (_database != null) { 20 | return _database!; 21 | } 22 | 23 | _database = await _initDb(dbName); 24 | 25 | return _database!; 26 | } 27 | 28 | Future _initDb(String dbName) async { 29 | final appDir = await getApplicationDocumentsDirectory(); 30 | 31 | final String path = join(appDir.path, dbName); 32 | 33 | return await openDatabase( 34 | path, 35 | version: 1, 36 | onCreate: (db, version) async { 37 | await db.execute(''' 38 | CREATE TABLE $noteTable ( 39 | ${NoteField.id} INTEGER PRIMARY KEY, 40 | ${NoteField.title} TEXT, 41 | ${NoteField.content} TEXT, 42 | ${NoteField.label} TEXT, 43 | ${NoteField.imagePaths} TEXT, 44 | ${NoteField.bgColor} INTEGER, 45 | ${NoteField.createdTime} TEXT 46 | ) 47 | ''',); 48 | 49 | await db.execute(''' 50 | CREATE TABLE $labelTable ( 51 | ${LabelField.id} INTEGER PRIMARY KEY AUTOINCREMENT, 52 | ${LabelField.title} TEXT 53 | ) 54 | ''',); 55 | }, 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /lib/helpers/label_database_helper.dart: -------------------------------------------------------------------------------- 1 | import '../models/label.dart'; 2 | import 'database_helper.dart'; 3 | 4 | class LabelDatabaseHelper { 5 | static final LabelDatabaseHelper instance = LabelDatabaseHelper._init(); 6 | LabelDatabaseHelper._init(); 7 | 8 | Future