├── linux ├── .gitignore ├── main.cc ├── flutter │ ├── generated_plugin_registrant.h │ ├── generated_plugins.cmake │ ├── generated_plugin_registrant.cc │ └── CMakeLists.txt ├── my_application.h ├── my_application.cc └── CMakeLists.txt ├── metadata └── en-US │ ├── changelogs │ ├── 1.txt │ └── 2.txt │ ├── short_description.txt │ ├── images │ ├── icon.png │ └── phoneScreenshots │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ └── 4.png │ └── full_description.txt ├── fonts └── Manrope │ └── Manrope-Regular.ttf ├── .gitmodules ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ ├── ic_launcher_background.png │ │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ │ └── ic_launcher_monochrome.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ ├── ic_launcher_background.png │ │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ │ └── ic_launcher_monochrome.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ ├── ic_launcher_background.png │ │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ │ └── ic_launcher_monochrome.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ ├── ic_launcher_background.png │ │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ │ └── ic_launcher_monochrome.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ ├── ic_launcher_background.png │ │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ │ └── ic_launcher_monochrome.png │ │ │ │ ├── values │ │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── drawable │ │ │ │ │ ├── launch_background.xml │ │ │ │ │ ├── ic_launcher_monochrome.xml │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── bored │ │ │ │ │ └── codebyk │ │ │ │ │ └── mint_task │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle └── settings.gradle ├── lib ├── pages │ ├── views.dart │ ├── settings.dart │ ├── components │ │ ├── listview.dart │ │ └── listitemcard.dart │ ├── sublist.dart │ ├── base.dart │ ├── edit.dart │ └── home.dart ├── controller │ ├── pref.dart │ ├── tasklist.dart │ ├── todosettings.dart │ ├── settings_model.dart │ ├── route.dart │ └── db.dart ├── model │ ├── customlist.dart │ └── task.dart └── main.dart ├── CHANGELOG.md ├── assets ├── github-mark-white.svg └── github-mark.svg ├── .gitignore ├── .metadata ├── test └── widget_test.dart ├── pubspec.yaml ├── README.md ├── analysis_options.yaml ├── .github └── workflows │ └── main.yml ├── LICENSE └── pubspec.lock /linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/1.txt: -------------------------------------------------------------------------------- 1 | First release -------------------------------------------------------------------------------- /metadata/en-US/short_description.txt: -------------------------------------------------------------------------------- 1 | Simple todo manager. -------------------------------------------------------------------------------- /metadata/en-US/changelogs/2.txt: -------------------------------------------------------------------------------- 1 | Added option to edit each todo, delete from edit page and sort and filter method. -------------------------------------------------------------------------------- /metadata/en-US/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/metadata/en-US/images/icon.png -------------------------------------------------------------------------------- /fonts/Manrope/Manrope-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/fonts/Manrope/Manrope-Regular.ttf -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "flutter"] 2 | path = flutter 3 | url = https://github.com/flutter/flutter.git 4 | branch = stable 5 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /lib/pages/views.dart: -------------------------------------------------------------------------------- 1 | export 'home.dart'; 2 | export 'base.dart'; 3 | export 'settings.dart'; 4 | export 'edit.dart'; 5 | export 'sublist.dart'; 6 | -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/metadata/en-US/images/phoneScreenshots/1.png -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/metadata/en-US/images/phoneScreenshots/2.png -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/metadata/en-US/images/phoneScreenshots/3.png -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/metadata/en-US/images/phoneScreenshots/4.png -------------------------------------------------------------------------------- /android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/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/boredcodebyk/minttask/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/boredcodebyk/minttask/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/boredcodebyk/minttask/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/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boredcodebyk/minttask/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #E3E5C1 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | - Updated UI 3 | - List by Category (WIP) 4 | - Using AppFlowy as rich text editor with Markdown support 5 | 6 | (and i lost motivation again...be back after a while) 7 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/bored/codebyk/mint_task/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package bored.codebyk.mint_task 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() -------------------------------------------------------------------------------- /linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /metadata/en-US/full_description.txt: -------------------------------------------------------------------------------- 1 | A simple todo manager for Android made using Flutter with Material Design 3. 2 | 3 | Features 4 | - Add todo 5 | - Edit and manage todo 6 | - Separate description page 7 | - Custom theme and dynamic theme -------------------------------------------------------------------------------- /lib/controller/pref.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 2 | import 'package:shared_preferences/shared_preferences.dart'; 3 | 4 | final sharedPreferencesProvider = 5 | Provider((ref) => throw UnimplementedError()); 6 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip 6 | -------------------------------------------------------------------------------- /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/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = "../build" 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(":app") 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/pages/settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SettingsView extends StatelessWidget { 4 | const SettingsView({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | body: CustomScrollView( 10 | slivers: [ 11 | SliverAppBar.large( 12 | title: Text("Settings"), 13 | ) 14 | ], 15 | ), 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /lib/controller/tasklist.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 2 | 3 | import '../model/customlist.dart'; 4 | import '../model/task.dart'; 5 | import 'pref.dart'; 6 | 7 | final taskListProvider = StateProvider>((ref) { 8 | List taskList = []; 9 | return taskList; 10 | }); 11 | 12 | final customListProvider = StateProvider>((ref) { 13 | List customList = []; 14 | return customList; 15 | }); 16 | 17 | final hideCompleted = StateProvider((ref) { 18 | final prefs = ref.watch(sharedPreferencesProvider); 19 | final hide = prefs.getBool("hideCompleted") ?? false; 20 | ref.listenSelf((previous, next) { 21 | prefs.setBool("hideCompleted", next); 22 | }); 23 | return hide; 24 | }); 25 | -------------------------------------------------------------------------------- /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.3.0" apply false 22 | id "org.jetbrains.kotlin.android" version "1.7.10" apply false 23 | } 24 | 25 | include ":app" 26 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | dynamic_color 7 | printing 8 | url_launcher_linux 9 | ) 10 | 11 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 12 | ) 13 | 14 | set(PLUGIN_BUNDLED_LIBRARIES) 15 | 16 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 17 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 18 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 20 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 21 | endforeach(plugin) 22 | 23 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 24 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 25 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 26 | endforeach(ffi_plugin) 27 | -------------------------------------------------------------------------------- /assets/github-mark-white.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/github-mark.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | android/*.jks 46 | android/key.properties 47 | keybase64.txt -------------------------------------------------------------------------------- /lib/controller/todosettings.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 2 | 3 | import 'pref.dart'; 4 | import '../model/task.dart'; 5 | 6 | final filterProvider = StateProvider((ref) { 7 | final prefs = ref.watch(sharedPreferencesProvider); 8 | final filterSelected = Filter.values.firstWhere( 9 | (element) => element.toString() == prefs.getString("filter"), 10 | orElse: () => Filter.id, 11 | ); 12 | ref.listenSelf( 13 | (previous, next) => prefs.setString("filter", next.name), 14 | ); 15 | return filterSelected; 16 | }); 17 | 18 | final sortProvider = StateProvider((ref) { 19 | final prefs = ref.watch(sharedPreferencesProvider); 20 | final sortSelected = Sort.values.firstWhere( 21 | (element) => element.toString() == prefs.getString("sort"), 22 | orElse: () => Sort.desc, 23 | ); 24 | ref.listenSelf( 25 | (previous, next) => prefs.setString("sort", next.name), 26 | ); 27 | return sortSelected; 28 | }); 29 | -------------------------------------------------------------------------------- /lib/model/customlist.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | class CustomList { 4 | int? id; 5 | String? name; 6 | bool? trash; 7 | 8 | CustomList({ 9 | this.id, 10 | this.name, 11 | this.trash, 12 | }); 13 | 14 | CustomList copyWith({ 15 | int? id, 16 | String? name, 17 | bool? trash, 18 | }) => 19 | CustomList( 20 | id: id ?? this.id, 21 | name: name ?? this.name, 22 | trash: trash ?? this.trash, 23 | ); 24 | 25 | factory CustomList.fromRawJson(String str) => 26 | CustomList.fromJson(json.decode(str)); 27 | 28 | String toRawJson() => json.encode(toJson()); 29 | 30 | factory CustomList.fromJson(Map json) => CustomList( 31 | id: json["id"], 32 | name: json["name"], 33 | trash: json["trash"] == 0 ? false : true, 34 | ); 35 | 36 | Map toJson() => { 37 | "id": id, 38 | "name": name, 39 | "trash": trash! ? 1 : 0, 40 | }; 41 | } 42 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | void fl_register_plugins(FlPluginRegistry* registry) { 14 | g_autoptr(FlPluginRegistrar) dynamic_color_registrar = 15 | fl_plugin_registry_get_registrar_for_plugin(registry, "DynamicColorPlugin"); 16 | dynamic_color_plugin_register_with_registrar(dynamic_color_registrar); 17 | g_autoptr(FlPluginRegistrar) printing_registrar = 18 | fl_plugin_registry_get_registrar_for_plugin(registry, "PrintingPlugin"); 19 | printing_plugin_register_with_registrar(printing_registrar); 20 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = 21 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); 22 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); 23 | } 24 | -------------------------------------------------------------------------------- /.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: "5dcb86f68f239346676ceb1ed1ea385bd215fba1" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 17 | base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 18 | - platform: linux 19 | create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 20 | base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 21 | 22 | # User provided section 23 | 24 | # List of Local paths (relative to this file) that should be 25 | # ignored by the migrate tool. 26 | # 27 | # Files that are not part of the templates will be ignored by default. 28 | unmanaged_files: 29 | - 'lib/main.dart' 30 | - 'ios/Runner.xcodeproj/project.pbxproj' 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_launcher_monochrome.xml: -------------------------------------------------------------------------------- 1 | 6 | 10 | 17 | 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 in the flutter_test package. 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 | 11 | import 'package:minttask/main.dart'; 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(const 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 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: minttask 2 | description: A simple todo manager for Android made using Flutter with Material Design 3. 3 | 4 | publish_to: "none" 5 | 6 | version: 2.0.0+200 7 | 8 | environment: 9 | sdk: ">=3.0.0 <4.0.0" 10 | 11 | dependencies: 12 | animations: ^2.0.7 13 | appflowy_editor: ^3.1.0 14 | cupertino_icons: ^1.0.2 15 | dynamic_color: ^1.7.0 16 | flutter: 17 | sdk: flutter 18 | flutter_colorpicker: ^1.0.3 19 | flutter_riverpod: ^2.5.1 20 | flutter_svg: ^2.0.6 21 | go_router: ^14.2.3 22 | intl: ^0.19.0 23 | material_color_utilities: ^0.11.1 24 | package_info_plus: ^8.0.2 25 | path: ^1.8.3 26 | shared_preferences: ^2.1.1 27 | sqflite: ^2.2.8+4 28 | sqflite_common_ffi: ^2.3.3 29 | url_launcher: ^6.1.11 30 | uuid: ^4.4.2 31 | 32 | dev_dependencies: 33 | custom_lint: ^0.6.4 34 | flutter_lints: ^4.0.0 35 | flutter_test: 36 | sdk: flutter 37 | riverpod_lint: ^2.3.10 38 | 39 | flutter: 40 | uses-material-design: true 41 | assets: 42 | - assets/github-mark-white.svg 43 | - assets/github-mark.svg 44 | fonts: 45 | - family: Manrope 46 | fonts: 47 | - asset: fonts/Manrope/Manrope-Regular.ttf 48 | # - asset: fonts/Schyler-Italic.ttf 49 | # style: italic 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Mint Task 2 | 3 | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/boredcodebyk/minttask?color=%23fffcf3&logoColor=%231c1c17&style=for-the-badge) 4 | 5 | ## Update 6 | Recently, I thought to ditch the idea of a todo.txt file-based to-do list and work with SQLite again to work with Android Widgets and background tasks. But, sadly, I came across major setbacks. One of them is, old task made in v1.0.0 do not show up in the new version of the app when I was testing, even though the database structure remains the same, and so I'm starting to lose motivation again and stuff IRL and focus on my career. I'm happy with how the app turned out, but I can't keep up with the setbacks. I'll archive the repository for now. Thank you. 7 | 8 | --- 9 | 10 | A simple todo manager for Android made using Flutter with Material Design 3. 11 | 12 | ## Features 13 | - Add todo 14 | - Edit and manage todo 15 | - Separate description page 16 | - Custom theme and dynamic theme 17 | 18 | ## Work in progress 19 | - Reminder/Alarm functionality 20 | The work is in progress for this app. If any issues arises or if you have any suggestions to put forward, please open an issue ticket with label either "bug" or "feature request" respectively. 21 | -------------------------------------------------------------------------------- /lib/pages/components/listview.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:minttask/model/task.dart'; 3 | 4 | import 'listitemcard.dart'; 5 | 6 | class ListViewCard extends StatelessWidget { 7 | const ListViewCard({super.key, required this.list}); 8 | 9 | final List list; 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Card( 14 | elevation: 0, 15 | clipBehavior: Clip.antiAlias, 16 | color: Colors.transparent, 17 | shape: RoundedRectangleBorder( 18 | borderRadius: BorderRadius.circular(18), 19 | ), 20 | child: ListView.separated( 21 | shrinkWrap: true, 22 | padding: EdgeInsets.zero, 23 | physics: const NeverScrollableScrollPhysics(), 24 | itemCount: list.length, 25 | separatorBuilder: (context, index) => Divider( 26 | color: Theme.of(context).brightness == Brightness.dark 27 | ? Theme.of(context).colorScheme.surfaceContainer 28 | : Theme.of(context).colorScheme.surfaceContainerHighest, 29 | height: 2, 30 | ), 31 | itemBuilder: (context, index) { 32 | var task = list[index]; 33 | return ListItemCard( 34 | task: task, 35 | ); 36 | }, 37 | ), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 6 | 10 | 18 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /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 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | analyzer: 31 | plugins: 32 | - custom_lint -------------------------------------------------------------------------------- /lib/pages/components/listitemcard.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:go_router/go_router.dart'; 4 | 5 | import '../../controller/db.dart'; 6 | import '../../controller/tasklist.dart'; 7 | import '../../controller/todosettings.dart'; 8 | import '../../model/task.dart'; 9 | 10 | class ListItemCard extends ConsumerStatefulWidget { 11 | const ListItemCard({super.key, required this.task}); 12 | final Task task; 13 | 14 | @override 15 | ConsumerState createState() => _ListItemCardState(); 16 | } 17 | 18 | class _ListItemCardState extends ConsumerState { 19 | Future updateTodos(sortbycol, filter) async { 20 | final dbHelper = DatabaseHelper.instance; 21 | final todolist = await dbHelper.getTodos(sortbycol, filter); 22 | 23 | ref.read(taskListProvider.notifier).state = todolist 24 | .map( 25 | (e) => Task.fromJson(e), 26 | ) 27 | .toList(); 28 | } 29 | 30 | Future _toggleTodoStatus(int id, int isDone) async { 31 | final dbHelper = DatabaseHelper.instance; 32 | await dbHelper.updateTodoStauts( 33 | id, isDone, DateTime.now().millisecondsSinceEpoch); 34 | updateTodos(ref.watch(filterProvider).name, ref.watch(sortProvider).name); 35 | } 36 | 37 | @override 38 | Widget build(BuildContext context) { 39 | return ListTile( 40 | tileColor: Theme.of(context).brightness == Brightness.dark 41 | ? Theme.of(context).colorScheme.surfaceContainerHigh 42 | : Theme.of(context).colorScheme.surfaceContainerLowest, 43 | leading: Checkbox( 44 | value: widget.task.isDone, 45 | onChanged: (value) { 46 | _toggleTodoStatus(widget.task.id!, value! ? 1 : 0); 47 | }), 48 | title: Text( 49 | widget.task.title ?? "", 50 | style: TextStyle( 51 | decoration: widget.task.isDone! 52 | ? TextDecoration.lineThrough 53 | : TextDecoration.none), 54 | ), 55 | onTap: () => context.push("/task/${widget.task.id}"), 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /lib/controller/settings_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | 4 | import 'pref.dart'; 5 | 6 | final themeModeProvider = StateProvider((ref) { 7 | final prefs = ref.watch(sharedPreferencesProvider); 8 | final selectedThemeMode = ThemeMode.values.firstWhere( 9 | (element) => element.toString() == prefs.getString('themeMode'), 10 | orElse: () => ThemeMode.system); 11 | ref.listenSelf((previous, next) { 12 | prefs.setString('themeMode', next.toString()); 13 | }); 14 | return selectedThemeMode; 15 | }); 16 | 17 | final useDynamicColor = StateProvider((ref) { 18 | final prefs = ref.watch(sharedPreferencesProvider); 19 | final usingDynamicColor = prefs.getBool("useDynamicColor") ?? false; 20 | ref.listenSelf((previous, next) { 21 | prefs.setBool("useDynamicColor", next); 22 | }); 23 | return usingDynamicColor; 24 | }); 25 | 26 | final useCustomColor = StateProvider((ref) { 27 | final prefs = ref.watch(sharedPreferencesProvider); 28 | final usingCustomColor = prefs.getBool("useCustomColor") ?? false; 29 | ref.listenSelf((previous, next) { 30 | prefs.setBool("useCustomColor", next); 31 | }); 32 | return usingCustomColor; 33 | }); 34 | 35 | final selectedCustomColor = StateProvider((ref) { 36 | final prefs = ref.watch(sharedPreferencesProvider); 37 | final customColor = prefs.getInt('customColor') ?? 16777215; 38 | ref.listenSelf((previous, next) { 39 | prefs.setInt('customColor', next); 40 | }); 41 | return customColor; 42 | }); 43 | 44 | final runSetup = StateProvider((ref) { 45 | final prefs = ref.watch(sharedPreferencesProvider); 46 | final runSetup = prefs.getBool("runSetup") ?? false; 47 | ref.listenSelf((previous, next) { 48 | prefs.setBool("runSetup", next); 49 | }); 50 | return runSetup; 51 | }); 52 | 53 | final minimalView = StateProvider((ref) { 54 | final prefs = ref.watch(sharedPreferencesProvider); 55 | final mini = prefs.getBool("minimalView") ?? false; 56 | ref.listenSelf( 57 | (previous, next) { 58 | prefs.setBool("minimalView", next); 59 | }, 60 | ); 61 | return mini; 62 | }); 63 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Release Build 2 | 3 | on: 4 | push: 5 | tags: 6 | - '*' 7 | workflow_dispatch: 8 | 9 | env: 10 | APK_BUILD_DIR: "/tmp/build" 11 | jobs: 12 | build: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - name: Checkout the code 16 | uses: actions/checkout@v3 17 | 18 | - name: Setup Java to compile Android project 19 | uses: actions/setup-java@v3 20 | with: 21 | distribution: 'temurin' 22 | java-version: '17' 23 | 24 | - name: Get version from pubspec.yaml 25 | id: get_version 26 | run: | 27 | VERSION=$(sed -n 's/^version: \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' pubspec.yaml) 28 | echo "version=$VERSION" >> $GITHUB_OUTPUT 29 | 30 | - name: Copy files to env.APK_BUILD_DIR 31 | run: | 32 | mkdir -p $APK_BUILD_DIR 33 | cp -r . $APK_BUILD_DIR 34 | 35 | - name: Setup Flutter 36 | uses: subosito/flutter-action@v2 37 | with: 38 | channel: 'stable' 39 | 40 | - name: Flutter version 41 | run: | 42 | flutter config --no-analytics 43 | flutter --version 44 | 45 | - name: Decode key.properties file 46 | working-directory: ${{ env.APK_BUILD_DIR }} 47 | env: 48 | ENCODED_STRING: ${{ secrets.ANDROID_KEY_PROPERTIES }} 49 | run: echo $ENCODED_STRING | base64 -di > android/key.properties 50 | 51 | - name: Decode android-keystore.jks file 52 | working-directory: ${{ env.APK_BUILD_DIR }} 53 | env: 54 | ENCODED_STRING: ${{ secrets.KEY_JKS }} 55 | run: echo $ENCODED_STRING | base64 -di > android/key.jks 56 | 57 | - name: Dependencies 58 | working-directory: ${{ env.APK_BUILD_DIR }} 59 | run: flutter pub get 60 | 61 | - name: Build APK 62 | working-directory: ${{ env.APK_BUILD_DIR }} 63 | run: flutter build apk --release 64 | 65 | - name: Upload artifacts 66 | uses: actions/upload-artifact@v3 67 | with: 68 | name: release-apk 69 | path: ${{ env.APK_BUILD_DIR }}/build/app/outputs/flutter-apk/app-release.apk 70 | 71 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. 5 | id "dev.flutter.flutter-gradle-plugin" 6 | } 7 | 8 | def localProperties = new Properties() 9 | def localPropertiesFile = rootProject.file("local.properties") 10 | if (localPropertiesFile.exists()) { 11 | localPropertiesFile.withReader("UTF-8") { reader -> 12 | localProperties.load(reader) 13 | } 14 | } 15 | 16 | def flutterVersionCode = localProperties.getProperty("flutter.versionCode") 17 | if (flutterVersionCode == null) { 18 | flutterVersionCode = "1" 19 | } 20 | 21 | def flutterVersionName = localProperties.getProperty("flutter.versionName") 22 | if (flutterVersionName == null) { 23 | flutterVersionName = "1.0" 24 | } 25 | 26 | def keystoreProperties = new Properties() 27 | def keystorePropertiesFile = rootProject.file('key.properties') 28 | if (keystorePropertiesFile.exists()) { 29 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 30 | } 31 | 32 | 33 | android { 34 | namespace = "bored.codebyk.mint_task" 35 | compileSdk = flutter.compileSdkVersion 36 | ndkVersion = flutter.ndkVersion 37 | 38 | compileOptions { 39 | sourceCompatibility = JavaVersion.VERSION_1_8 40 | targetCompatibility = JavaVersion.VERSION_1_8 41 | } 42 | 43 | defaultConfig { 44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 45 | applicationId = "bored.codebyk.mint_task" 46 | // You can update the following values to match your application needs. 47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 48 | minSdk = 23 49 | targetSdk = 34 50 | versionCode = flutterVersionCode.toInteger() 51 | versionName = flutterVersionName 52 | } 53 | 54 | signingConfigs { 55 | release { 56 | keyAlias keystoreProperties['keyAlias'] 57 | keyPassword keystoreProperties['keyPassword'] 58 | storeFile = file("../key.jks") ? file("../key.jks") : null 59 | storePassword keystoreProperties['storePassword'] 60 | v1SigningEnabled true 61 | v2SigningEnabled true 62 | } 63 | } 64 | 65 | buildTypes { 66 | release { 67 | // TODO: Add your own signing config for the release build. 68 | // Signing with the debug keys for now, so `flutter run --release` works. 69 | signingConfig = signingConfigs.release 70 | } 71 | } 72 | } 73 | 74 | flutter { 75 | source = "../.." 76 | } 77 | -------------------------------------------------------------------------------- /lib/model/task.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | enum Filter { 4 | id(filterName: "Default"), 5 | title(filterName: "Title"), 6 | // ignore: constant_identifier_filterNames, constant_identifier_names 7 | date_modified(filterName: "Date Modified"), 8 | // ignore: constant_identifier_filterNames, constant_identifier_names 9 | date_created(filterName: "Date Created"); 10 | 11 | const Filter({required this.filterName}); 12 | 13 | final String filterName; 14 | } 15 | 16 | enum Sort { 17 | asc(sortName: "Ascending"), 18 | desc(sortName: "Descending"); 19 | 20 | const Sort({required this.sortName}); 21 | 22 | final String sortName; 23 | } 24 | 25 | class Task { 26 | int? id; 27 | String? title; 28 | DateTime? dateCreated; 29 | DateTime? dateModified; 30 | String? description; 31 | bool? isDone; 32 | List? customList; 33 | bool? trash; 34 | 35 | Task({ 36 | this.id, 37 | this.title, 38 | this.dateCreated, 39 | this.dateModified, 40 | this.description, 41 | this.isDone, 42 | this.customList, 43 | this.trash, 44 | }); 45 | 46 | Task copyWith({ 47 | int? id, 48 | String? title, 49 | DateTime? dateCreated, 50 | DateTime? dateModified, 51 | String? description, 52 | bool? isDone, 53 | List? customList, 54 | bool? trash, 55 | }) => 56 | Task( 57 | id: id ?? this.id, 58 | title: title ?? this.title, 59 | dateCreated: dateCreated ?? this.dateCreated, 60 | dateModified: dateModified ?? this.dateModified, 61 | description: description ?? this.description, 62 | isDone: isDone ?? this.isDone, 63 | customList: customList ?? this.customList, 64 | trash: trash ?? this.trash, 65 | ); 66 | 67 | factory Task.fromRawJson(String str) => Task.fromJson(json.decode(str)); 68 | 69 | String toRawJson() => json.encode(toJson()); 70 | 71 | factory Task.fromJson(Map json) => Task( 72 | id: json["id"], 73 | title: json["title"], 74 | dateCreated: DateTime.fromMillisecondsSinceEpoch(json["date_created"]), 75 | dateModified: 76 | DateTime.fromMillisecondsSinceEpoch(json["date_modified"]), 77 | description: json["description"], 78 | isDone: json["is_done"] == 0 ? false : true, 79 | customList: json["custom_list"].length > 0 80 | ? jsonDecode(json["custom_list"]) 81 | : [], 82 | trash: json["trash"] == 0 ? false : true, 83 | ); 84 | 85 | Map toJson() => { 86 | "id": id, 87 | "title": title, 88 | "date_created": dateCreated!.millisecondsSinceEpoch, 89 | "date_modified": dateModified!.millisecondsSinceEpoch, 90 | "description": description, 91 | "is_done": isDone! ? 1 : 0, 92 | "custom_list": jsonEncode(customList), 93 | "trash": trash! ? 1 : 0 94 | }; 95 | } 96 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:appflowy_editor/appflowy_editor.dart'; 2 | import 'package:dynamic_color/dynamic_color.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter/services.dart'; 5 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 6 | import 'package:minttask/controller/route.dart'; 7 | import 'package:shared_preferences/shared_preferences.dart'; 8 | 9 | import 'controller/pref.dart'; 10 | import 'controller/settings_model.dart'; 11 | 12 | Future main() async { 13 | WidgetsFlutterBinding.ensureInitialized(); 14 | 15 | final prefs = await SharedPreferences.getInstance(); 16 | runApp( 17 | ProviderScope( 18 | overrides: [ 19 | sharedPreferencesProvider.overrideWithValue(prefs), 20 | ], 21 | child: const MyApp(), 22 | ), 23 | ); 24 | } 25 | 26 | class MyApp extends ConsumerWidget { 27 | const MyApp({super.key}); 28 | 29 | @override 30 | Widget build(BuildContext context, WidgetRef ref) { 31 | SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); 32 | SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( 33 | statusBarColor: Colors.transparent, 34 | systemNavigationBarDividerColor: Colors.transparent, 35 | systemNavigationBarContrastEnforced: true, 36 | systemNavigationBarColor: Colors.transparent, 37 | )); 38 | 39 | final defaultLightColorScheme = ColorScheme.fromSeed( 40 | seedColor: const Color.fromARGB(255, 217, 229, 129)); 41 | 42 | final defaultDarkColorScheme = ColorScheme.fromSeed( 43 | seedColor: const Color.fromARGB(255, 217, 229, 129), 44 | brightness: Brightness.dark); 45 | final customLightColorScheme = 46 | ColorScheme.fromSeed(seedColor: Color(ref.watch(selectedCustomColor))); 47 | 48 | final customDarkColorScheme = ColorScheme.fromSeed( 49 | seedColor: Color(ref.watch(selectedCustomColor)), 50 | brightness: Brightness.dark); 51 | 52 | return DynamicColorBuilder( 53 | builder: (lightColorScheme, darkColorScheme) { 54 | return MaterialApp.router( 55 | title: 'Mint Task', 56 | routerConfig: ref.watch(routerProvider), 57 | localizationsDelegates: const [AppFlowyEditorLocalizations.delegate], 58 | theme: ThemeData( 59 | colorScheme: ref.watch(useDynamicColor) 60 | ? lightColorScheme 61 | : ref.watch(useCustomColor) 62 | ? customLightColorScheme 63 | : defaultLightColorScheme, 64 | fontFamily: 'Manrope', 65 | useMaterial3: true, 66 | ), 67 | darkTheme: ThemeData( 68 | colorScheme: ref.watch(useDynamicColor) 69 | ? darkColorScheme 70 | : ref.watch(useCustomColor) 71 | ? customDarkColorScheme 72 | : defaultDarkColorScheme, 73 | fontFamily: 'Manrope', 74 | useMaterial3: true, 75 | ), 76 | themeMode: ref.watch(themeModeProvider), 77 | ); 78 | }, 79 | ); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /lib/controller/route.dart: -------------------------------------------------------------------------------- 1 | import 'package:animations/animations.dart'; 2 | import 'package:flutter/widgets.dart'; 3 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 4 | import 'package:go_router/go_router.dart'; 5 | 6 | import '../pages/views.dart'; 7 | 8 | final rootRouteProvider = Provider>((ref) { 9 | final GlobalKey rootNavigatorKey = 10 | GlobalKey(debugLabel: 'root'); 11 | return rootNavigatorKey; 12 | }); 13 | 14 | final shellRouteProvider = Provider>((ref) { 15 | final GlobalKey shellNavigatorKey = 16 | GlobalKey(debugLabel: 'shell'); 17 | return shellNavigatorKey; 18 | }); 19 | 20 | final routerProvider = Provider((ref) { 21 | final router = GoRouter( 22 | navigatorKey: ref.watch(rootRouteProvider), 23 | initialLocation: "/", 24 | debugLogDiagnostics: true, 25 | 26 | routes: [ 27 | ShellRoute( 28 | navigatorKey: ref.watch(shellRouteProvider), 29 | builder: (context, state, child) => BaseView(child: child), 30 | routes: [ 31 | GoRoute( 32 | path: '/', 33 | pageBuilder: (context, state) { 34 | return CustomTransitionPage( 35 | key: state.pageKey, 36 | child: HomeView(), 37 | transitionsBuilder: 38 | (context, animation, secondaryAnimation, child) { 39 | // Change the opacity of the screen using a Curve based on the the animation's 40 | // value 41 | return FadeTransition( 42 | opacity: CurveTween(curve: Curves.easeInOutCirc) 43 | .animate(animation), 44 | child: child, 45 | ); 46 | }, 47 | ); 48 | }, 49 | ), 50 | GoRoute( 51 | path: '/list/:id', 52 | pageBuilder: (context, state) { 53 | return CustomTransitionPage( 54 | key: state.pageKey, 55 | child: SubListView( 56 | taskID: int.tryParse(state.pathParameters['id']!)!), 57 | transitionsBuilder: 58 | (context, animation, secondaryAnimation, child) { 59 | // Change the opacity of the screen using a Curve based on the the animation's 60 | // value 61 | return FadeTransition( 62 | opacity: CurveTween(curve: Curves.easeInOutCirc) 63 | .animate(animation), 64 | child: child, 65 | ); 66 | }, 67 | ); 68 | }, 69 | ), 70 | ], 71 | ), 72 | GoRoute( 73 | path: '/new', 74 | builder: (context, state) => const EditView( 75 | editState: EditState.newTask, 76 | ), 77 | ), 78 | GoRoute( 79 | path: '/task/:id', 80 | pageBuilder: (context, state) => CustomTransitionPage( 81 | key: state.pageKey, 82 | child: EditView( 83 | editState: EditState.editTask, 84 | taskID: int.tryParse(state.pathParameters['id']!)), 85 | transitionsBuilder: (context, animation, secondaryAnimation, child) => 86 | SharedAxisTransition( 87 | animation: animation, 88 | secondaryAnimation: secondaryAnimation, 89 | transitionType: SharedAxisTransitionType.horizontal, 90 | child: child, 91 | ), 92 | ), 93 | ), 94 | GoRoute( 95 | path: '/settings', 96 | pageBuilder: (context, state) => CustomTransitionPage( 97 | key: state.pageKey, 98 | child: const SettingsView(), 99 | transitionsBuilder: (context, animation, secondaryAnimation, child) => 100 | SharedAxisTransition( 101 | animation: animation, 102 | secondaryAnimation: secondaryAnimation, 103 | transitionType: SharedAxisTransitionType.horizontal, 104 | child: child, 105 | ), 106 | ), 107 | ), 108 | ], 109 | // redirect: (context, state) { 110 | // if (!ref.watch(runSetup)) { 111 | // "continue"; 112 | // } else { 113 | // return '/'; 114 | // } 115 | // }, 116 | ); 117 | return router; 118 | }); 119 | -------------------------------------------------------------------------------- /linux/my_application.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | #include 4 | #ifdef GDK_WINDOWING_X11 5 | #include 6 | #endif 7 | 8 | #include "flutter/generated_plugin_registrant.h" 9 | 10 | struct _MyApplication { 11 | GtkApplication parent_instance; 12 | char** dart_entrypoint_arguments; 13 | }; 14 | 15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) 16 | 17 | // Implements GApplication::activate. 18 | static void my_application_activate(GApplication* application) { 19 | MyApplication* self = MY_APPLICATION(application); 20 | GtkWindow* window = 21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); 22 | 23 | // Use a header bar when running in GNOME as this is the common style used 24 | // by applications and is the setup most users will be using (e.g. Ubuntu 25 | // desktop). 26 | // If running on X and not using GNOME then just use a traditional title bar 27 | // in case the window manager does more exotic layout, e.g. tiling. 28 | // If running on Wayland assume the header bar will work (may need changing 29 | // if future cases occur). 30 | gboolean use_header_bar = TRUE; 31 | #ifdef GDK_WINDOWING_X11 32 | GdkScreen* screen = gtk_window_get_screen(window); 33 | if (GDK_IS_X11_SCREEN(screen)) { 34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); 35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) { 36 | use_header_bar = FALSE; 37 | } 38 | } 39 | #endif 40 | if (use_header_bar) { 41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); 42 | gtk_widget_show(GTK_WIDGET(header_bar)); 43 | gtk_header_bar_set_title(header_bar, "minttask"); 44 | gtk_header_bar_set_show_close_button(header_bar, TRUE); 45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); 46 | } else { 47 | gtk_window_set_title(window, "minttask"); 48 | } 49 | 50 | gtk_window_set_default_size(window, 1280, 720); 51 | gtk_widget_show(GTK_WIDGET(window)); 52 | 53 | g_autoptr(FlDartProject) project = fl_dart_project_new(); 54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); 55 | 56 | FlView* view = fl_view_new(project); 57 | gtk_widget_show(GTK_WIDGET(view)); 58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); 59 | 60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view)); 61 | 62 | gtk_widget_grab_focus(GTK_WIDGET(view)); 63 | } 64 | 65 | // Implements GApplication::local_command_line. 66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { 67 | MyApplication* self = MY_APPLICATION(application); 68 | // Strip out the first argument as it is the binary name. 69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); 70 | 71 | g_autoptr(GError) error = nullptr; 72 | if (!g_application_register(application, nullptr, &error)) { 73 | g_warning("Failed to register: %s", error->message); 74 | *exit_status = 1; 75 | return TRUE; 76 | } 77 | 78 | g_application_activate(application); 79 | *exit_status = 0; 80 | 81 | return TRUE; 82 | } 83 | 84 | // Implements GApplication::startup. 85 | static void my_application_startup(GApplication* application) { 86 | //MyApplication* self = MY_APPLICATION(object); 87 | 88 | // Perform any actions required at application startup. 89 | 90 | G_APPLICATION_CLASS(my_application_parent_class)->startup(application); 91 | } 92 | 93 | // Implements GApplication::shutdown. 94 | static void my_application_shutdown(GApplication* application) { 95 | //MyApplication* self = MY_APPLICATION(object); 96 | 97 | // Perform any actions required at application shutdown. 98 | 99 | G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); 100 | } 101 | 102 | // Implements GObject::dispose. 103 | static void my_application_dispose(GObject* object) { 104 | MyApplication* self = MY_APPLICATION(object); 105 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); 106 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object); 107 | } 108 | 109 | static void my_application_class_init(MyApplicationClass* klass) { 110 | G_APPLICATION_CLASS(klass)->activate = my_application_activate; 111 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; 112 | G_APPLICATION_CLASS(klass)->startup = my_application_startup; 113 | G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; 114 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose; 115 | } 116 | 117 | static void my_application_init(MyApplication* self) {} 118 | 119 | MyApplication* my_application_new() { 120 | return MY_APPLICATION(g_object_new(my_application_get_type(), 121 | "application-id", APPLICATION_ID, 122 | "flags", G_APPLICATION_NON_UNIQUE, 123 | nullptr)); 124 | } 125 | -------------------------------------------------------------------------------- /lib/controller/db.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:path/path.dart'; 4 | import 'package:sqflite/sqflite.dart'; 5 | 6 | class DatabaseHelper { 7 | static final DatabaseHelper instance = DatabaseHelper._(); 8 | static Database? _database; 9 | static const tableName = "basic_1"; 10 | static const customList = "customList"; 11 | DatabaseHelper._(); 12 | 13 | Future get database async { 14 | if (_database != null) return _database!; 15 | 16 | _database = await _initDB(); 17 | return _database!; 18 | } 19 | 20 | final initScript = [ 21 | ''' 22 | CREATE TABLE $tableName( 23 | id INTEGER PRIMARY KEY AUTOINCREMENT, 24 | title TEXT, 25 | description TEXT, 26 | is_done INTEGER, 27 | date_created INTEGER, 28 | date_modified INTEGER, 29 | has_alarm INTEGER, 30 | alarm_time TEXT, 31 | custom_list TEXT, 32 | trash INTEGER 33 | ) 34 | ''', 35 | ''' 36 | CREATE TABLE IF NOT EXISTS $customList( 37 | id INTEGER PRIMARY KEY AUTOINCREMENT, 38 | name TEXT, 39 | trash INTEGER 40 | ) 41 | ''' 42 | ]; 43 | 44 | final migrationScript = [ 45 | 'ALTER TABLE $tableName ADD IF NOT EXISTS custom_list TEXT, trash INTEGER', 46 | ''' 47 | CREATE TABLE IF NOT EXISTS $customList( 48 | id INTEGER PRIMARY KEY AUTOINCREMENT, 49 | name TEXT, 50 | trash INTEGER 51 | ) 52 | ''' 53 | ]; 54 | 55 | Future _initDB() async { 56 | final dbPath = await getDatabasesPath(); 57 | final path = join(dbPath, 'todo.db'); 58 | 59 | return await openDatabase( 60 | path, 61 | version: migrationScript.length, 62 | onCreate: (db, version) async { 63 | for (var script in initScript) { 64 | await db.execute(script); 65 | } 66 | }, 67 | onUpgrade: (db, oldVersion, newVersion) async { 68 | var batch = db.batch(); 69 | for (var i = oldVersion - 1; i <= newVersion - 1; i++) { 70 | batch.execute(migrationScript[i]); 71 | } 72 | await batch.commit(); 73 | }, 74 | ); 75 | } 76 | 77 | Future>> getCustomList() async { 78 | final db = await instance.database; 79 | return db.query(customList, where: 'trash = 0'); 80 | } 81 | 82 | Future addCustomList(String name) async { 83 | final db = await instance.database; 84 | return await db.insert(customList, {"name": name, 'trash': 0}); 85 | } 86 | 87 | Future getCustomListName(int id) async { 88 | final db = await instance.database; 89 | final result = await db.query(customList, 90 | where: 'id = ?', whereArgs: [id], limit: 1, columns: ['name']); 91 | return result.first.entries.first.value.toString(); 92 | } 93 | 94 | Future updateCustomListName(int id, String name) async { 95 | final db = await instance.database; 96 | return await db.update(customList, {'name': name}, 97 | where: 'id = ?', whereArgs: [id]); 98 | } 99 | 100 | Future moveaToTrashCustomList(int id) async { 101 | final db = await instance.database; 102 | return await db.update(customList, {'trash': 1}, 103 | where: 'id = ?', whereArgs: [id]); 104 | } 105 | 106 | Future>> getTodos( 107 | String colname, String filter) async { 108 | final db = await instance.database; 109 | //final List> 110 | return await db.query(tableName, 111 | orderBy: "$colname ${filter.toString().toUpperCase()}", 112 | where: 'trash = 0'); 113 | } 114 | 115 | Future>> orderBy() async { 116 | final db = await instance.database; 117 | //final List> 118 | return await db.query(tableName); 119 | } 120 | 121 | Future insertTodo(Map todo) async { 122 | final db = await instance.database; 123 | return await db.insert(tableName, todo); 124 | } 125 | 126 | Future updateTodoStauts(int id, int newStatus, int dateModified) async { 127 | final db = await instance.database; 128 | return await db.update( 129 | tableName, {'is_done': newStatus, 'date_modified': dateModified}, 130 | where: 'id = ?', whereArgs: [id]); 131 | } 132 | 133 | Future updateTodoTitle(int id, String newTitle, int dateModified) async { 134 | final db = await instance.database; 135 | return await db.update( 136 | tableName, {'title': newTitle, 'date_modified': dateModified}, 137 | where: 'id = ?', whereArgs: [id]); 138 | } 139 | 140 | Future updateTodoDescription( 141 | int id, String newDescription, int dateModified) async { 142 | final db = await instance.database; 143 | return await db.update(tableName, 144 | {'description': newDescription, 'date_modified': dateModified}, 145 | where: 'id = ?', whereArgs: [id]); 146 | } 147 | 148 | Future deleteTodo(int id) async { 149 | final db = await instance.database; 150 | return await db.delete( 151 | tableName, 152 | where: 'id = ?', 153 | whereArgs: [id], 154 | ); 155 | } 156 | 157 | Future?> getTextById(int id) async { 158 | final db = await instance.database; 159 | List> result = await db.query( 160 | tableName, 161 | where: 'id = ?', 162 | whereArgs: [id], 163 | limit: 1, 164 | ); 165 | if (result.isNotEmpty) { 166 | return result.first; 167 | } 168 | 169 | return null; 170 | } 171 | 172 | closeDatabase() async { 173 | final db = await instance.database; 174 | await db.close(); 175 | } 176 | } 177 | -------------------------------------------------------------------------------- /linux/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.10) 3 | project(runner LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "minttask") 8 | # The unique GTK application identifier for this application. See: 9 | # https://wiki.gnome.org/HowDoI/ChooseApplicationID 10 | set(APPLICATION_ID "bored.codebyk.minttask") 11 | 12 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 13 | # versions of CMake. 14 | cmake_policy(SET CMP0063 NEW) 15 | 16 | # Load bundled libraries from the lib/ directory relative to the binary. 17 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") 18 | 19 | # Root filesystem for cross-building. 20 | if(FLUTTER_TARGET_PLATFORM_SYSROOT) 21 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) 22 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) 23 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 24 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 25 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 26 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 27 | endif() 28 | 29 | # Define build configuration options. 30 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 31 | set(CMAKE_BUILD_TYPE "Debug" CACHE 32 | STRING "Flutter build mode" FORCE) 33 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 34 | "Debug" "Profile" "Release") 35 | endif() 36 | 37 | # Compilation settings that should be applied to most targets. 38 | # 39 | # Be cautious about adding new options here, as plugins use this function by 40 | # default. In most cases, you should add new options to specific targets instead 41 | # of modifying this function. 42 | function(APPLY_STANDARD_SETTINGS TARGET) 43 | target_compile_features(${TARGET} PUBLIC cxx_std_14) 44 | target_compile_options(${TARGET} PRIVATE -Wall -Werror) 45 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") 46 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") 47 | endfunction() 48 | 49 | # Flutter library and tool build rules. 50 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 51 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 52 | 53 | # System-level dependencies. 54 | find_package(PkgConfig REQUIRED) 55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 56 | 57 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") 58 | 59 | # Define the application target. To change its name, change BINARY_NAME above, 60 | # not the value here, or `flutter run` will no longer work. 61 | # 62 | # Any new source files that you add to the application should be added here. 63 | add_executable(${BINARY_NAME} 64 | "main.cc" 65 | "my_application.cc" 66 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 67 | ) 68 | 69 | # Apply the standard set of build settings. This can be removed for applications 70 | # that need different build settings. 71 | apply_standard_settings(${BINARY_NAME}) 72 | 73 | # Add dependency libraries. Add any application-specific dependencies here. 74 | target_link_libraries(${BINARY_NAME} PRIVATE flutter) 75 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) 76 | 77 | # Run the Flutter tool portions of the build. This must not be removed. 78 | add_dependencies(${BINARY_NAME} flutter_assemble) 79 | 80 | # Only the install-generated bundle's copy of the executable will launch 81 | # correctly, since the resources must in the right relative locations. To avoid 82 | # people trying to run the unbundled copy, put it in a subdirectory instead of 83 | # the default top-level location. 84 | set_target_properties(${BINARY_NAME} 85 | PROPERTIES 86 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" 87 | ) 88 | 89 | 90 | # Generated plugin build rules, which manage building the plugins and adding 91 | # them to the application. 92 | include(flutter/generated_plugins.cmake) 93 | 94 | 95 | # === Installation === 96 | # By default, "installing" just makes a relocatable bundle in the build 97 | # directory. 98 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") 99 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 100 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 101 | endif() 102 | 103 | # Start with a clean build bundle directory every time. 104 | install(CODE " 105 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") 106 | " COMPONENT Runtime) 107 | 108 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 109 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") 110 | 111 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 112 | COMPONENT Runtime) 113 | 114 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 115 | COMPONENT Runtime) 116 | 117 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 118 | COMPONENT Runtime) 119 | 120 | foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) 121 | install(FILES "${bundled_library}" 122 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 123 | COMPONENT Runtime) 124 | endforeach(bundled_library) 125 | 126 | # Copy the native assets provided by the build.dart from all packages. 127 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") 128 | install(DIRECTORY "${NATIVE_ASSETS_DIR}" 129 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 130 | COMPONENT Runtime) 131 | 132 | # Fully re-copy the assets directory on each build to avoid having stale files 133 | # from a previous install. 134 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 135 | install(CODE " 136 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 137 | " COMPONENT Runtime) 138 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 139 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 140 | 141 | # Install the AOT library on non-Debug builds only. 142 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") 143 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 144 | COMPONENT Runtime) 145 | endif() 146 | -------------------------------------------------------------------------------- /lib/pages/sublist.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:go_router/go_router.dart'; 4 | 5 | import '../controller/db.dart'; 6 | import '../controller/tasklist.dart'; 7 | import '../model/task.dart'; 8 | import 'components/listview.dart'; 9 | import 'home.dart'; 10 | 11 | class SubListView extends ConsumerStatefulWidget { 12 | const SubListView({super.key, required this.taskID}); 13 | 14 | final int taskID; 15 | 16 | @override 17 | ConsumerState createState() => _SubListViewState(); 18 | } 19 | 20 | class _SubListViewState extends ConsumerState { 21 | String customListName = ""; 22 | Future getCustomListName() async { 23 | final dbHelper = DatabaseHelper.instance; 24 | 25 | var name = await dbHelper.getCustomListName(widget.taskID); 26 | setState(() { 27 | customListName = name ?? ""; 28 | }); 29 | } 30 | 31 | Future updateTodos(sortbycol, filter) async { 32 | final dbHelper = DatabaseHelper.instance; 33 | final todolist = await dbHelper.getTodos(sortbycol, filter); 34 | 35 | ref.read(taskListProvider.notifier).state = todolist 36 | .map( 37 | (e) => Task.fromJson(e), 38 | ) 39 | .toList(); 40 | } 41 | 42 | @override 43 | void initState() { 44 | super.initState(); 45 | } 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | getCustomListName(); 50 | return Column( 51 | children: [ 52 | Padding( 53 | padding: const EdgeInsets.all(16), 54 | child: Row( 55 | children: [ 56 | Text( 57 | customListName, 58 | style: Theme.of(context).textTheme.headlineLarge, 59 | ), 60 | IconButton( 61 | onPressed: () => showDialog( 62 | context: context, 63 | builder: (context) { 64 | TextEditingController textEditingController = 65 | TextEditingController.fromValue( 66 | TextEditingValue(text: customListName)); 67 | return AlertDialog( 68 | title: const Text("Edit"), 69 | content: Column( 70 | mainAxisSize: MainAxisSize.min, 71 | children: [ 72 | TextField( 73 | controller: textEditingController, 74 | decoration: const InputDecoration.collapsed( 75 | hintText: "Name"), 76 | ) 77 | ], 78 | ), 79 | actionsAlignment: MainAxisAlignment.spaceBetween, 80 | actionsOverflowAlignment: 81 | OverflowBarAlignment.start, 82 | actions: [ 83 | TextButton( 84 | onPressed: () async { 85 | final dbHelper = DatabaseHelper.instance; 86 | await dbHelper 87 | .moveaToTrashCustomList(widget.taskID); 88 | if (mounted) { 89 | ScaffoldMessenger.of(context) 90 | .clearSnackBars(); 91 | ScaffoldMessenger.of(context) 92 | .showSnackBar(const SnackBar( 93 | content: Text("Moved to Trash"), 94 | behavior: SnackBarBehavior.floating, 95 | )); 96 | Navigator.of(context).pop(); 97 | context.go('/'); 98 | } 99 | }, 100 | child: const Text("Trash"), 101 | ), 102 | Row( 103 | mainAxisSize: MainAxisSize.min, 104 | children: [ 105 | TextButton( 106 | onPressed: () { 107 | Navigator.of(context).pop(); 108 | }, 109 | child: const Text("Close"), 110 | ), 111 | TextButton( 112 | onPressed: () async { 113 | if (textEditingController 114 | .text.isNotEmpty) { 115 | final dbHelper = 116 | DatabaseHelper.instance; 117 | await dbHelper.updateCustomListName( 118 | widget.taskID, 119 | textEditingController.text.trim()); 120 | getCustomListName(); 121 | if (!mounted) return; 122 | Navigator.of(context).pop(); 123 | } 124 | }, 125 | child: const Text("Update"), 126 | ), 127 | ], 128 | ), 129 | ], 130 | ); 131 | }, 132 | ), 133 | icon: const Icon(Icons.edit_outlined)) 134 | ], 135 | ), 136 | ), 137 | Padding( 138 | padding: const EdgeInsets.symmetric(horizontal: 16), 139 | child: Row( 140 | children: [ 141 | Padding( 142 | padding: const EdgeInsets.only(right: 8), 143 | child: ActionChip( 144 | avatar: const Icon(Icons.sort), 145 | label: const Text("Sort"), 146 | onPressed: () => showDialog( 147 | context: context, 148 | builder: (context) => const SortDialog()), 149 | ), 150 | ), 151 | Padding( 152 | padding: const EdgeInsets.only(right: 8), 153 | child: ActionChip( 154 | avatar: const Icon(Icons.filter_alt_outlined), 155 | label: const Text("Filter"), 156 | onPressed: () => showDialog( 157 | context: context, 158 | builder: (context) => const FilterDialog()), 159 | ), 160 | ), 161 | ], 162 | ), 163 | ), 164 | Padding( 165 | padding: const EdgeInsets.fromLTRB(16, 16, 16, 0), 166 | child: ListViewCard( 167 | list: ref 168 | .watch(taskListProvider) 169 | .where((e) => e.customList!.contains(widget.taskID)) 170 | .toList()), 171 | ), 172 | Padding( 173 | padding: const EdgeInsets.symmetric( 174 | vertical: 36, 175 | ), 176 | child: Text( 177 | ref 178 | .watch(taskListProvider) 179 | .where((e) => e.customList!.contains(widget.taskID)) 180 | .toList() 181 | .isNotEmpty 182 | ? "That's all!" 183 | : "It's nononon here.", 184 | style: TextStyle( 185 | fontStyle: FontStyle.italic, 186 | color: Theme.of(context).colorScheme.outline), 187 | ), 188 | ) 189 | ], 190 | ); 191 | } 192 | } 193 | 194 | class CustomListEditor extends StatefulWidget { 195 | const CustomListEditor({super.key}); 196 | 197 | @override 198 | State createState() => _CustomListEditorState(); 199 | } 200 | 201 | class _CustomListEditorState extends State { 202 | final TextEditingController editorController = TextEditingController(); 203 | @override 204 | Widget build(BuildContext context) { 205 | return AlertDialog( 206 | title: const Text("Edit"), 207 | content: TextField( 208 | controller: editorController, 209 | decoration: const InputDecoration.collapsed(hintText: "Name"), 210 | ), 211 | ); 212 | } 213 | } 214 | -------------------------------------------------------------------------------- /lib/pages/base.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:go_router/go_router.dart'; 4 | 5 | import '../controller/db.dart'; 6 | import '../controller/tasklist.dart'; 7 | import '../model/customlist.dart'; 8 | 9 | class BaseView extends ConsumerStatefulWidget { 10 | const BaseView({super.key, required this.child}); 11 | 12 | final Widget child; 13 | 14 | @override 15 | ConsumerState createState() => _BaseViewState(); 16 | } 17 | 18 | class _BaseViewState extends ConsumerState { 19 | final GlobalKey _key = GlobalKey(); 20 | 21 | Future updateCustomList() async { 22 | final dbHelper = DatabaseHelper.instance; 23 | final customlist = await dbHelper.getCustomList(); 24 | 25 | ref.read(customListProvider.notifier).state = customlist 26 | .map( 27 | (e) => CustomList.fromJson(e), 28 | ) 29 | .toList(); 30 | } 31 | 32 | @override 33 | Widget build(BuildContext context) { 34 | updateCustomList(); 35 | 36 | return Scaffold( 37 | key: _key, 38 | resizeToAvoidBottomInset: false, 39 | backgroundColor: Theme.of(context).brightness == Brightness.dark 40 | ? Theme.of(context).colorScheme.surfaceContainer 41 | : Theme.of(context).colorScheme.surfaceContainerHighest, 42 | body: CustomScrollView( 43 | slivers: [ 44 | SliverAppBar.medium( 45 | backgroundColor: Theme.of(context).brightness == Brightness.dark 46 | ? Theme.of(context).colorScheme.surfaceContainer 47 | : Theme.of(context).colorScheme.surfaceContainerHighest, 48 | leading: IconButton( 49 | onPressed: () {}, icon: const Icon(Icons.settings_outlined)), 50 | actions: [ 51 | IconButton( 52 | onPressed: () => _key.currentState!.openEndDrawer(), 53 | icon: const Icon(Icons.menu_open)), 54 | ], 55 | ), 56 | SliverToBoxAdapter( 57 | child: widget.child, 58 | ) 59 | ], 60 | ), 61 | endDrawer: Drawer( 62 | child: ListView(shrinkWrap: true, children: [ 63 | Padding( 64 | padding: const EdgeInsets.symmetric(horizontal: 16), 65 | child: SizedBox( 66 | height: 64, 67 | child: TextButton( 68 | onPressed: () { 69 | context.go("/"); 70 | _key.currentState!.closeEndDrawer(); 71 | }, 72 | style: ButtonStyle( 73 | backgroundColor: GoRouter.of(context) 74 | .routerDelegate 75 | .currentConfiguration 76 | .last 77 | .matchedLocation == 78 | "/" 79 | ? WidgetStatePropertyAll( 80 | Theme.of(context).colorScheme.secondaryContainer) 81 | : const WidgetStatePropertyAll(Colors.transparent), 82 | foregroundColor: WidgetStatePropertyAll( 83 | Theme.of(context).colorScheme.onSurfaceVariant), 84 | textStyle: 85 | Theme.of(context).navigationDrawerTheme.labelTextStyle, 86 | ), 87 | child: Row( 88 | children: [ 89 | Icon(GoRouter.of(context) 90 | .routerDelegate 91 | .currentConfiguration 92 | .last 93 | .matchedLocation == 94 | "/" 95 | ? Icons.home 96 | : Icons.home_outlined), 97 | const SizedBox(width: 12), 98 | const Text("Home"), 99 | ], 100 | )), 101 | ), 102 | ), 103 | Padding( 104 | padding: const EdgeInsets.all(12.0), 105 | child: Row( 106 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 107 | children: [ 108 | const Row( 109 | children: [ 110 | SizedBox(width: 16), 111 | Icon(Icons.list), 112 | SizedBox(width: 12), 113 | Text("Custom List"), 114 | ], 115 | ), 116 | IconButton( 117 | onPressed: () => showDialog( 118 | context: context, 119 | builder: (context) { 120 | TextEditingController textEditingController = 121 | TextEditingController(); 122 | return AlertDialog( 123 | title: const Text("Custom List"), 124 | content: Column( 125 | mainAxisSize: MainAxisSize.min, 126 | children: [ 127 | TextField( 128 | autofocus: true, 129 | controller: textEditingController, 130 | decoration: const InputDecoration.collapsed( 131 | hintText: "Name"), 132 | ) 133 | ], 134 | ), 135 | actions: [ 136 | TextButton( 137 | onPressed: () { 138 | Navigator.of(context).pop(); 139 | }, 140 | child: const Text("Close"), 141 | ), 142 | TextButton( 143 | onPressed: () async { 144 | if (textEditingController.text.isNotEmpty) { 145 | final dbHelper = DatabaseHelper.instance; 146 | await dbHelper.addCustomList( 147 | textEditingController.text.trim()); 148 | if (!mounted) return; 149 | Navigator.of(context).pop(); 150 | } 151 | }, 152 | child: const Text("Add"), 153 | ) 154 | ], 155 | ); 156 | }, 157 | ), 158 | icon: const Icon(Icons.add)) 159 | ], 160 | ), 161 | ), 162 | ...ref.watch(customListProvider).map( 163 | (e) => Padding( 164 | padding: const EdgeInsets.symmetric(horizontal: 16), 165 | child: SizedBox( 166 | height: 64, 167 | child: TextButton( 168 | onPressed: () { 169 | context.push('/list/${e.id}'); 170 | _key.currentState!.closeEndDrawer(); 171 | }, 172 | style: ButtonStyle( 173 | backgroundColor: GoRouter.of(context) 174 | .routerDelegate 175 | .currentConfiguration 176 | .last 177 | .matchedLocation == 178 | "/list/${e.id}" 179 | ? WidgetStatePropertyAll(Theme.of(context) 180 | .colorScheme 181 | .secondaryContainer) 182 | : const WidgetStatePropertyAll( 183 | Colors.transparent), 184 | foregroundColor: WidgetStatePropertyAll( 185 | Theme.of(context).colorScheme.onSurfaceVariant), 186 | textStyle: Theme.of(context) 187 | .navigationDrawerTheme 188 | .labelTextStyle, 189 | ), 190 | child: Row( 191 | children: [ 192 | const Icon(Icons.list_alt), 193 | const SizedBox(width: 12), 194 | Text(e.name!), 195 | ], 196 | )), 197 | ), 198 | ), 199 | ), 200 | ]), 201 | ), 202 | floatingActionButton: FloatingActionButton( 203 | onPressed: () => context.push('/new'), 204 | child: const Icon(Icons.add), 205 | ), 206 | ); 207 | } 208 | } 209 | -------------------------------------------------------------------------------- /lib/pages/edit.dart: -------------------------------------------------------------------------------- 1 | import 'package:appflowy_editor/appflowy_editor.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 4 | import 'package:go_router/go_router.dart'; 5 | 6 | import '../controller/db.dart'; 7 | import '../controller/tasklist.dart'; 8 | import '../controller/todosettings.dart'; 9 | import '../model/customlist.dart'; 10 | import '../model/task.dart'; 11 | 12 | enum EditState { newTask, editTask } 13 | 14 | class EditView extends ConsumerStatefulWidget { 15 | const EditView({super.key, required this.editState, this.taskID}); 16 | 17 | final EditState editState; 18 | 19 | final int? taskID; 20 | 21 | @override 22 | ConsumerState createState() => _EditViewState(); 23 | } 24 | 25 | class _EditViewState extends ConsumerState { 26 | Task task = Task(); 27 | 28 | final TextEditingController _titleEditingController = TextEditingController(); 29 | 30 | EditorState editorState = EditorState.blank(withInitialText: true); 31 | 32 | late final EditorScrollController editorScrollController; 33 | 34 | Future updateTodos(sortbycol, filter) async { 35 | final dbHelper = DatabaseHelper.instance; 36 | final todolist = await dbHelper.getTodos(sortbycol, filter); 37 | final customlist = await dbHelper.getCustomList(); 38 | 39 | ref.read(customListProvider.notifier).state = customlist 40 | .map( 41 | (e) => CustomList.fromJson(e), 42 | ) 43 | .toList(); 44 | 45 | ref.read(taskListProvider.notifier).state = todolist 46 | .map( 47 | (e) => Task.fromJson(e), 48 | ) 49 | .toList(); 50 | } 51 | 52 | void fetch() async { 53 | final dbHelper = DatabaseHelper.instance; 54 | Map? text = await dbHelper.getTextById(widget.taskID!); 55 | var taskFromJson = Task.fromJson(text!); 56 | 57 | setState(() { 58 | task = taskFromJson; 59 | _titleEditingController.text = taskFromJson.title ?? ""; 60 | editorState = (taskFromJson.description == null || 61 | taskFromJson.description!.trim().isEmpty) 62 | ? EditorState.blank(withInitialText: true) 63 | : EditorState( 64 | document: markdownToDocument(taskFromJson.description!)); 65 | }); 66 | } 67 | 68 | @override 69 | void initState() { 70 | super.initState(); 71 | if (widget.editState == EditState.editTask) { 72 | fetch(); 73 | } else if (widget.editState == EditState.newTask) {} 74 | editorScrollController = EditorScrollController(editorState: editorState); 75 | } 76 | 77 | @override 78 | void dispose() { 79 | super.dispose(); 80 | _titleEditingController.dispose(); 81 | editorState.dispose(); 82 | } 83 | 84 | Map _buildBlockComponentBuilders() { 85 | final map = { 86 | ...standardBlockComponentBuilderMap, 87 | }; 88 | map[ParagraphBlockKeys.type] = ParagraphBlockComponentBuilder( 89 | configuration: BlockComponentConfiguration( 90 | placeholderText: (node) => 'Type something...', 91 | ), 92 | ); 93 | return map; 94 | } 95 | 96 | @override 97 | Widget build(BuildContext context) { 98 | return Scaffold( 99 | appBar: AppBar( 100 | title: widget.editState == EditState.newTask 101 | ? const Text("New") 102 | : const Text("Edit"), 103 | ), 104 | body: MobileToolbarV2( 105 | toolbarHeight: 48.0, 106 | toolbarItems: [ 107 | textDecorationMobileToolbarItemV2, 108 | buildTextAndBackgroundColorMobileToolbarItem(), 109 | blocksMobileToolbarItem, 110 | linkMobileToolbarItem, 111 | dividerMobileToolbarItem, 112 | ], 113 | editorState: editorState, 114 | child: Column( 115 | children: [ 116 | Expanded( 117 | child: MobileFloatingToolbar( 118 | editorScrollController: editorScrollController, 119 | editorState: editorState, 120 | toolbarBuilder: (context, anchor, closeToolbar) { 121 | return AdaptiveTextSelectionToolbar.editable( 122 | clipboardStatus: ClipboardStatus.pasteable, 123 | onCopy: () { 124 | copyCommand.execute(editorState); 125 | closeToolbar(); 126 | }, 127 | onCut: () => cutCommand.execute(editorState), 128 | onPaste: () => pasteCommand.execute(editorState), 129 | onSelectAll: () => selectAllCommand.execute(editorState), 130 | onLiveTextInput: null, 131 | onLookUp: null, 132 | onSearchWeb: null, 133 | onShare: null, 134 | anchors: TextSelectionToolbarAnchors( 135 | primaryAnchor: anchor, 136 | ), 137 | ); 138 | }, 139 | child: AppFlowyEditor( 140 | editorState: editorState, 141 | blockComponentBuilders: _buildBlockComponentBuilders(), 142 | editorStyle: EditorStyle.mobile( 143 | textScaleFactor: 1.0, 144 | cursorColor: Theme.of(context).colorScheme.primary, 145 | dragHandleColor: Theme.of(context).colorScheme.primary, 146 | selectionColor: 147 | Theme.of(context).colorScheme.primaryContainer, 148 | enableHapticFeedbackOnAndroid: true, 149 | textStyleConfiguration: TextStyleConfiguration( 150 | text: TextStyle( 151 | color: Theme.of(context).colorScheme.onSurface, 152 | ), 153 | code: TextStyle( 154 | color: Theme.of(context).colorScheme.onSurface, 155 | fontFamily: "Monoscape"), 156 | ), 157 | padding: EdgeInsets.symmetric(horizontal: 16.0), 158 | magnifierSize: Size(144, 96), 159 | mobileDragHandleBallSize: Size(12, 12), 160 | ), 161 | showMagnifier: true, 162 | editorScrollController: 163 | EditorScrollController(editorState: editorState), 164 | header: Column( 165 | mainAxisAlignment: MainAxisAlignment.start, 166 | crossAxisAlignment: CrossAxisAlignment.start, 167 | mainAxisSize: MainAxisSize.min, 168 | children: [ 169 | Padding( 170 | padding: const EdgeInsets.all(16.0), 171 | child: TextField( 172 | controller: _titleEditingController, 173 | autofocus: true, 174 | decoration: const InputDecoration.collapsed( 175 | hintText: "Title")), 176 | ), 177 | Padding( 178 | padding: const EdgeInsets.fromLTRB(16, 0, 16, 16), 179 | child: Text( 180 | "Description", 181 | style: Theme.of(context).textTheme.bodySmall, 182 | ), 183 | ) 184 | ], 185 | ), 186 | ), 187 | ), 188 | ) 189 | ], 190 | ), 191 | ), 192 | floatingActionButton: FloatingActionButton( 193 | onPressed: () async { 194 | if (widget.editState == EditState.newTask) { 195 | if (_titleEditingController.text.trim().isNotEmpty) { 196 | final newTodo = { 197 | 'title': _titleEditingController.text.trim(), 198 | 'description': documentToMarkdown(editorState.document), 199 | 'is_done': 0, 200 | 'date_created': DateTime.now().millisecondsSinceEpoch, 201 | 'date_modified': DateTime.now().millisecondsSinceEpoch, 202 | "custom_list": [], 203 | 'trash': 0, 204 | }; 205 | final dbHelper = DatabaseHelper.instance; 206 | await dbHelper.insertTodo(newTodo); 207 | updateTodos( 208 | ref.watch(filterProvider).name, ref.watch(sortProvider).name); 209 | if (mounted) { 210 | context.pop(); 211 | } 212 | } else { 213 | ScaffoldMessenger.of(context).clearSnackBars(); 214 | ScaffoldMessenger.of(context).showSnackBar(const SnackBar( 215 | content: Text("Title in empty"), 216 | behavior: SnackBarBehavior.floating, 217 | )); 218 | } 219 | } else { 220 | if (_titleEditingController.text.trim().isNotEmpty) { 221 | final dbHelper = DatabaseHelper.instance; 222 | await dbHelper.updateTodoTitle( 223 | task.id!, 224 | _titleEditingController.text.trim(), 225 | DateTime.now().millisecondsSinceEpoch); 226 | await dbHelper.updateTodoDescription( 227 | task.id!, 228 | documentToMarkdown(editorState.document), 229 | DateTime.now().millisecondsSinceEpoch); 230 | updateTodos( 231 | ref.watch(filterProvider).name, ref.watch(sortProvider).name); 232 | if (mounted) { 233 | context.pop(); 234 | } 235 | } else { 236 | ScaffoldMessenger.of(context).clearSnackBars(); 237 | ScaffoldMessenger.of(context).showSnackBar(const SnackBar( 238 | content: Text("Title in empty"), 239 | behavior: SnackBarBehavior.floating, 240 | )); 241 | } 242 | } 243 | }, 244 | child: const Icon(Icons.done), 245 | ), 246 | ); 247 | } 248 | } 249 | -------------------------------------------------------------------------------- /lib/pages/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:minttask/controller/todosettings.dart'; 4 | 5 | import '../controller/db.dart'; 6 | import '../controller/tasklist.dart'; 7 | import '../model/task.dart'; 8 | import 'components/listview.dart'; 9 | 10 | class HomeView extends ConsumerStatefulWidget { 11 | const HomeView({super.key}); 12 | 13 | @override 14 | ConsumerState createState() => _HomeViewState(); 15 | } 16 | 17 | class _HomeViewState extends ConsumerState { 18 | Future updateTodos(sortbycol, filter) async { 19 | final dbHelper = DatabaseHelper.instance; 20 | final todolist = await dbHelper.getTodos(sortbycol, filter); 21 | 22 | ref.read(taskListProvider.notifier).state = todolist 23 | .map( 24 | (e) => Task.fromJson(e), 25 | ) 26 | .toList(); 27 | } 28 | 29 | @override 30 | void initState() { 31 | super.initState(); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | updateTodos(ref.watch(filterProvider).name, ref.watch(sortProvider).name); 37 | return Column(children: [ 38 | Padding( 39 | padding: const EdgeInsets.all(16), 40 | child: Row( 41 | children: [ 42 | Text( 43 | "Home", 44 | style: Theme.of(context).textTheme.headlineLarge, 45 | ), 46 | ], 47 | ), 48 | ), 49 | Padding( 50 | padding: const EdgeInsets.symmetric(horizontal: 16), 51 | child: Row( 52 | children: [ 53 | Padding( 54 | padding: const EdgeInsets.only(right: 8), 55 | child: ActionChip( 56 | avatar: const Icon(Icons.sort), 57 | label: const Text("Sort"), 58 | onPressed: () => showDialog( 59 | context: context, builder: (context) => const SortDialog()), 60 | ), 61 | ), 62 | Padding( 63 | padding: const EdgeInsets.only(right: 8), 64 | child: ActionChip( 65 | avatar: const Icon(Icons.filter_alt_outlined), 66 | label: const Text("Filter"), 67 | onPressed: () => showDialog( 68 | context: context, 69 | builder: (context) => const FilterDialog()), 70 | ), 71 | ), 72 | Padding( 73 | padding: const EdgeInsets.only(right: 8), 74 | child: FilterChip( 75 | label: const Text("Hide Done"), 76 | selected: ref.watch(hideCompleted), 77 | onSelected: (value) => 78 | ref.read(hideCompleted.notifier).state = value, 79 | )), 80 | ], 81 | ), 82 | ), 83 | if (ref.watch(hideCompleted)) ...[ 84 | notDone(), 85 | ExpansionTile( 86 | title: Text("Completed"), 87 | children: [done()], 88 | ), 89 | ] else ...[ 90 | Padding( 91 | padding: const EdgeInsets.fromLTRB(16, 16, 16, 0), 92 | child: ListViewCard(list: ref.watch(taskListProvider)), 93 | ), 94 | Padding( 95 | padding: const EdgeInsets.symmetric( 96 | vertical: 36, 97 | ), 98 | child: Text( 99 | ref.watch(taskListProvider).isNotEmpty 100 | ? "That's all!" 101 | : "It's lonely here.", 102 | style: TextStyle( 103 | fontStyle: FontStyle.italic, 104 | color: Theme.of(context).colorScheme.outline), 105 | ), 106 | ) 107 | ] 108 | ]); 109 | } 110 | 111 | Widget done() { 112 | return Column( 113 | children: [ 114 | Padding( 115 | padding: const EdgeInsets.fromLTRB(16, 16, 16, 0), 116 | child: ListViewCard( 117 | list: 118 | ref.watch(taskListProvider).where((e) => e.isDone!).toList()), 119 | ), 120 | Padding( 121 | padding: const EdgeInsets.symmetric( 122 | vertical: 36, 123 | ), 124 | child: Text( 125 | ref 126 | .watch(taskListProvider) 127 | .where((e) => e.isDone!) 128 | .toList() 129 | .isNotEmpty 130 | ? "That's all!" 131 | : "It's lonely here.", 132 | style: TextStyle( 133 | fontStyle: FontStyle.italic, 134 | color: Theme.of(context).colorScheme.outline), 135 | ), 136 | ) 137 | ], 138 | ); 139 | } 140 | 141 | Widget notDone() { 142 | return Column( 143 | children: [ 144 | Padding( 145 | padding: const EdgeInsets.fromLTRB(16, 16, 16, 0), 146 | child: ListViewCard( 147 | list: ref 148 | .watch(taskListProvider) 149 | .where((e) => !e.isDone!) 150 | .toList()), 151 | ), 152 | Padding( 153 | padding: const EdgeInsets.symmetric( 154 | vertical: 36, 155 | ), 156 | child: Text( 157 | ref 158 | .watch(taskListProvider) 159 | .where((e) => !e.isDone!) 160 | .toList() 161 | .isNotEmpty 162 | ? "That's all!" 163 | : "It's lonely here.", 164 | style: TextStyle( 165 | fontStyle: FontStyle.italic, 166 | color: Theme.of(context).colorScheme.outline), 167 | ), 168 | ) 169 | ], 170 | ); 171 | } 172 | } 173 | 174 | class SortDialog extends ConsumerStatefulWidget { 175 | const SortDialog({super.key}); 176 | 177 | @override 178 | ConsumerState createState() => _SortDialogState(); 179 | } 180 | 181 | class _SortDialogState extends ConsumerState { 182 | @override 183 | Widget build(BuildContext context) { 184 | return AlertDialog( 185 | backgroundColor: Theme.of(context).brightness == Brightness.dark 186 | ? Theme.of(context).colorScheme.surfaceContainer 187 | : Theme.of(context).colorScheme.surfaceContainerHighest, 188 | title: const Text("Sort"), 189 | content: SizedBox( 190 | width: double.maxFinite, 191 | child: Card( 192 | elevation: 0, 193 | clipBehavior: Clip.antiAlias, 194 | color: Colors.transparent, 195 | shape: RoundedRectangleBorder( 196 | borderRadius: BorderRadius.circular(18), 197 | ), 198 | child: ListView.separated( 199 | shrinkWrap: true, 200 | separatorBuilder: (context, index) => Divider( 201 | color: Theme.of(context).brightness == Brightness.dark 202 | ? Theme.of(context).colorScheme.surfaceContainer 203 | : Theme.of(context).colorScheme.surfaceContainerHighest, 204 | height: 2, 205 | ), 206 | itemCount: Sort.values.length, 207 | itemBuilder: (context, index) { 208 | var sortType = Sort.values[index]; 209 | return RadioListTile( 210 | tileColor: Theme.of(context).brightness == Brightness.dark 211 | ? Theme.of(context).colorScheme.surfaceContainerHigh 212 | : Theme.of(context).colorScheme.surfaceContainerLowest, 213 | title: Text(sortType.sortName), 214 | value: sortType, 215 | groupValue: ref.watch(sortProvider), 216 | onChanged: (value) { 217 | setState( 218 | () => ref.read(sortProvider.notifier).state = value!); 219 | }, 220 | ); 221 | }, 222 | ), 223 | ), 224 | ), 225 | actions: [ 226 | TextButton( 227 | onPressed: () => Navigator.of(context).pop(), 228 | child: const Text("Close")) 229 | ], 230 | ); 231 | } 232 | } 233 | 234 | class FilterDialog extends ConsumerStatefulWidget { 235 | const FilterDialog({super.key}); 236 | 237 | @override 238 | ConsumerState createState() => _FilterDialogState(); 239 | } 240 | 241 | class _FilterDialogState extends ConsumerState { 242 | @override 243 | Widget build(BuildContext context) { 244 | return AlertDialog( 245 | backgroundColor: Theme.of(context).brightness == Brightness.dark 246 | ? Theme.of(context).colorScheme.surfaceContainer 247 | : Theme.of(context).colorScheme.surfaceContainerHighest, 248 | title: const Text("Filter"), 249 | content: SizedBox( 250 | width: double.maxFinite, 251 | child: Card( 252 | elevation: 0, 253 | clipBehavior: Clip.antiAlias, 254 | color: Colors.transparent, 255 | shape: RoundedRectangleBorder( 256 | borderRadius: BorderRadius.circular(18), 257 | ), 258 | child: ListView.separated( 259 | shrinkWrap: true, 260 | separatorBuilder: (context, index) => Divider( 261 | color: Theme.of(context).brightness == Brightness.dark 262 | ? Theme.of(context).colorScheme.surfaceContainer 263 | : Theme.of(context).colorScheme.surfaceContainerHighest, 264 | height: 2, 265 | ), 266 | itemCount: Filter.values.length, 267 | itemBuilder: (context, index) { 268 | var filterType = Filter.values[index]; 269 | return RadioListTile( 270 | tileColor: Theme.of(context).brightness == Brightness.dark 271 | ? Theme.of(context).colorScheme.surfaceContainerHigh 272 | : Theme.of(context).colorScheme.surfaceContainerLowest, 273 | title: Text(filterType.filterName), 274 | value: filterType, 275 | groupValue: ref.watch(filterProvider), 276 | onChanged: (value) { 277 | setState( 278 | () => ref.read(filterProvider.notifier).state = value!); 279 | }, 280 | ); 281 | }, 282 | ), 283 | ), 284 | ), 285 | actions: [ 286 | TextButton( 287 | onPressed: () => Navigator.of(context).pop(), 288 | child: const Text("Close")) 289 | ], 290 | ); 291 | } 292 | } 293 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "72.0.0" 12 | _macros: 13 | dependency: transitive 14 | description: dart 15 | source: sdk 16 | version: "0.3.2" 17 | analyzer: 18 | dependency: transitive 19 | description: 20 | name: analyzer 21 | sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 22 | url: "https://pub.dev" 23 | source: hosted 24 | version: "6.7.0" 25 | analyzer_plugin: 26 | dependency: transitive 27 | description: 28 | name: analyzer_plugin 29 | sha256: "9661b30b13a685efaee9f02e5d01ed9f2b423bd889d28a304d02d704aee69161" 30 | url: "https://pub.dev" 31 | source: hosted 32 | version: "0.11.3" 33 | animations: 34 | dependency: "direct main" 35 | description: 36 | name: animations 37 | sha256: d3d6dcfb218225bbe68e87ccf6378bbb2e32a94900722c5f81611dad089911cb 38 | url: "https://pub.dev" 39 | source: hosted 40 | version: "2.0.11" 41 | appflowy_editor: 42 | dependency: "direct main" 43 | description: 44 | name: appflowy_editor 45 | sha256: "6908405eef0703dbfc3f8d633d717cb5fb8009b7fd2b9f598795110bf849a6e4" 46 | url: "https://pub.dev" 47 | source: hosted 48 | version: "3.1.0" 49 | archive: 50 | dependency: transitive 51 | description: 52 | name: archive 53 | sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d 54 | url: "https://pub.dev" 55 | source: hosted 56 | version: "3.6.1" 57 | args: 58 | dependency: transitive 59 | description: 60 | name: args 61 | sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" 62 | url: "https://pub.dev" 63 | source: hosted 64 | version: "2.5.0" 65 | async: 66 | dependency: transitive 67 | description: 68 | name: async 69 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 70 | url: "https://pub.dev" 71 | source: hosted 72 | version: "2.11.0" 73 | barcode: 74 | dependency: transitive 75 | description: 76 | name: barcode 77 | sha256: ab180ce22c6555d77d45f0178a523669db67f95856e3378259ef2ffeb43e6003 78 | url: "https://pub.dev" 79 | source: hosted 80 | version: "2.2.8" 81 | bidi: 82 | dependency: transitive 83 | description: 84 | name: bidi 85 | sha256: "9a712c7ddf708f7c41b1923aa83648a3ed44cfd75b04f72d598c45e5be287f9d" 86 | url: "https://pub.dev" 87 | source: hosted 88 | version: "2.0.12" 89 | boolean_selector: 90 | dependency: transitive 91 | description: 92 | name: boolean_selector 93 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 94 | url: "https://pub.dev" 95 | source: hosted 96 | version: "2.1.1" 97 | characters: 98 | dependency: transitive 99 | description: 100 | name: characters 101 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 102 | url: "https://pub.dev" 103 | source: hosted 104 | version: "1.3.0" 105 | charcode: 106 | dependency: transitive 107 | description: 108 | name: charcode 109 | sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306 110 | url: "https://pub.dev" 111 | source: hosted 112 | version: "1.3.1" 113 | checked_yaml: 114 | dependency: transitive 115 | description: 116 | name: checked_yaml 117 | sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff 118 | url: "https://pub.dev" 119 | source: hosted 120 | version: "2.0.3" 121 | ci: 122 | dependency: transitive 123 | description: 124 | name: ci 125 | sha256: "145d095ce05cddac4d797a158bc4cf3b6016d1fe63d8c3d2fbd7212590adca13" 126 | url: "https://pub.dev" 127 | source: hosted 128 | version: "0.1.0" 129 | cli_util: 130 | dependency: transitive 131 | description: 132 | name: cli_util 133 | sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 134 | url: "https://pub.dev" 135 | source: hosted 136 | version: "0.4.1" 137 | clock: 138 | dependency: transitive 139 | description: 140 | name: clock 141 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 142 | url: "https://pub.dev" 143 | source: hosted 144 | version: "1.1.1" 145 | collection: 146 | dependency: transitive 147 | description: 148 | name: collection 149 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 150 | url: "https://pub.dev" 151 | source: hosted 152 | version: "1.18.0" 153 | convert: 154 | dependency: transitive 155 | description: 156 | name: convert 157 | sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" 158 | url: "https://pub.dev" 159 | source: hosted 160 | version: "3.1.1" 161 | cross_file: 162 | dependency: transitive 163 | description: 164 | name: cross_file 165 | sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" 166 | url: "https://pub.dev" 167 | source: hosted 168 | version: "0.3.4+2" 169 | crypto: 170 | dependency: transitive 171 | description: 172 | name: crypto 173 | sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27 174 | url: "https://pub.dev" 175 | source: hosted 176 | version: "3.0.5" 177 | csslib: 178 | dependency: transitive 179 | description: 180 | name: csslib 181 | sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" 182 | url: "https://pub.dev" 183 | source: hosted 184 | version: "1.0.0" 185 | cupertino_icons: 186 | dependency: "direct main" 187 | description: 188 | name: cupertino_icons 189 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 190 | url: "https://pub.dev" 191 | source: hosted 192 | version: "1.0.8" 193 | custom_lint: 194 | dependency: "direct dev" 195 | description: 196 | name: custom_lint 197 | sha256: "4939d89e580c36215e48a7de8fd92f22c79dcc3eb11fda84f3402b3b45aec663" 198 | url: "https://pub.dev" 199 | source: hosted 200 | version: "0.6.5" 201 | custom_lint_builder: 202 | dependency: transitive 203 | description: 204 | name: custom_lint_builder 205 | sha256: d9e5bb63ed52c1d006f5a1828992ba6de124c27a531e8fba0a31afffa81621b3 206 | url: "https://pub.dev" 207 | source: hosted 208 | version: "0.6.5" 209 | custom_lint_core: 210 | dependency: transitive 211 | description: 212 | name: custom_lint_core 213 | sha256: "4ddbbdaa774265de44c97054dcec058a83d9081d071785ece601e348c18c267d" 214 | url: "https://pub.dev" 215 | source: hosted 216 | version: "0.6.5" 217 | dart_style: 218 | dependency: transitive 219 | description: 220 | name: dart_style 221 | sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" 222 | url: "https://pub.dev" 223 | source: hosted 224 | version: "2.3.6" 225 | device_info_plus: 226 | dependency: transitive 227 | description: 228 | name: device_info_plus 229 | sha256: a7fd703482b391a87d60b6061d04dfdeab07826b96f9abd8f5ed98068acc0074 230 | url: "https://pub.dev" 231 | source: hosted 232 | version: "10.1.2" 233 | device_info_plus_platform_interface: 234 | dependency: transitive 235 | description: 236 | name: device_info_plus_platform_interface 237 | sha256: "282d3cf731045a2feb66abfe61bbc40870ae50a3ed10a4d3d217556c35c8c2ba" 238 | url: "https://pub.dev" 239 | source: hosted 240 | version: "7.0.1" 241 | diff_match_patch: 242 | dependency: transitive 243 | description: 244 | name: diff_match_patch 245 | sha256: "2efc9e6e8f449d0abe15be240e2c2a3bcd977c8d126cfd70598aee60af35c0a4" 246 | url: "https://pub.dev" 247 | source: hosted 248 | version: "0.4.1" 249 | dynamic_color: 250 | dependency: "direct main" 251 | description: 252 | name: dynamic_color 253 | sha256: eae98052fa6e2826bdac3dd2e921c6ce2903be15c6b7f8b6d8a5d49b5086298d 254 | url: "https://pub.dev" 255 | source: hosted 256 | version: "1.7.0" 257 | fake_async: 258 | dependency: transitive 259 | description: 260 | name: fake_async 261 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 262 | url: "https://pub.dev" 263 | source: hosted 264 | version: "1.3.1" 265 | ffi: 266 | dependency: transitive 267 | description: 268 | name: ffi 269 | sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" 270 | url: "https://pub.dev" 271 | source: hosted 272 | version: "2.1.3" 273 | file: 274 | dependency: transitive 275 | description: 276 | name: file 277 | sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" 278 | url: "https://pub.dev" 279 | source: hosted 280 | version: "7.0.0" 281 | file_picker: 282 | dependency: transitive 283 | description: 284 | name: file_picker 285 | sha256: "167bb619cdddaa10ef2907609feb8a79c16dfa479d3afaf960f8e223f754bf12" 286 | url: "https://pub.dev" 287 | source: hosted 288 | version: "8.1.2" 289 | fixnum: 290 | dependency: transitive 291 | description: 292 | name: fixnum 293 | sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" 294 | url: "https://pub.dev" 295 | source: hosted 296 | version: "1.1.0" 297 | flutter: 298 | dependency: "direct main" 299 | description: flutter 300 | source: sdk 301 | version: "0.0.0" 302 | flutter_colorpicker: 303 | dependency: "direct main" 304 | description: 305 | name: flutter_colorpicker 306 | sha256: "969de5f6f9e2a570ac660fb7b501551451ea2a1ab9e2097e89475f60e07816ea" 307 | url: "https://pub.dev" 308 | source: hosted 309 | version: "1.1.0" 310 | flutter_lints: 311 | dependency: "direct dev" 312 | description: 313 | name: flutter_lints 314 | sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" 315 | url: "https://pub.dev" 316 | source: hosted 317 | version: "4.0.0" 318 | flutter_localizations: 319 | dependency: transitive 320 | description: flutter 321 | source: sdk 322 | version: "0.0.0" 323 | flutter_plugin_android_lifecycle: 324 | dependency: transitive 325 | description: 326 | name: flutter_plugin_android_lifecycle 327 | sha256: "9d98bd47ef9d34e803d438f17fd32b116d31009f534a6fa5ce3a1167f189a6de" 328 | url: "https://pub.dev" 329 | source: hosted 330 | version: "2.0.21" 331 | flutter_riverpod: 332 | dependency: "direct main" 333 | description: 334 | name: flutter_riverpod 335 | sha256: "0f1974eff5bbe774bf1d870e406fc6f29e3d6f1c46bd9c58e7172ff68a785d7d" 336 | url: "https://pub.dev" 337 | source: hosted 338 | version: "2.5.1" 339 | flutter_svg: 340 | dependency: "direct main" 341 | description: 342 | name: flutter_svg 343 | sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2" 344 | url: "https://pub.dev" 345 | source: hosted 346 | version: "2.0.10+1" 347 | flutter_test: 348 | dependency: "direct dev" 349 | description: flutter 350 | source: sdk 351 | version: "0.0.0" 352 | flutter_web_plugins: 353 | dependency: transitive 354 | description: flutter 355 | source: sdk 356 | version: "0.0.0" 357 | freezed_annotation: 358 | dependency: transitive 359 | description: 360 | name: freezed_annotation 361 | sha256: c2e2d632dd9b8a2b7751117abcfc2b4888ecfe181bd9fca7170d9ef02e595fe2 362 | url: "https://pub.dev" 363 | source: hosted 364 | version: "2.4.4" 365 | glob: 366 | dependency: transitive 367 | description: 368 | name: glob 369 | sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" 370 | url: "https://pub.dev" 371 | source: hosted 372 | version: "2.1.2" 373 | go_router: 374 | dependency: "direct main" 375 | description: 376 | name: go_router 377 | sha256: "2ddb88e9ad56ae15ee144ed10e33886777eb5ca2509a914850a5faa7b52ff459" 378 | url: "https://pub.dev" 379 | source: hosted 380 | version: "14.2.7" 381 | hotreloader: 382 | dependency: transitive 383 | description: 384 | name: hotreloader 385 | sha256: ed56fdc1f3a8ac924e717257621d09e9ec20e308ab6352a73a50a1d7a4d9158e 386 | url: "https://pub.dev" 387 | source: hosted 388 | version: "4.2.0" 389 | html: 390 | dependency: transitive 391 | description: 392 | name: html 393 | sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" 394 | url: "https://pub.dev" 395 | source: hosted 396 | version: "0.15.4" 397 | http: 398 | dependency: transitive 399 | description: 400 | name: http 401 | sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 402 | url: "https://pub.dev" 403 | source: hosted 404 | version: "1.2.2" 405 | http_parser: 406 | dependency: transitive 407 | description: 408 | name: http_parser 409 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 410 | url: "https://pub.dev" 411 | source: hosted 412 | version: "4.0.2" 413 | image: 414 | dependency: transitive 415 | description: 416 | name: image 417 | sha256: "2237616a36c0d69aef7549ab439b833fb7f9fb9fc861af2cc9ac3eedddd69ca8" 418 | url: "https://pub.dev" 419 | source: hosted 420 | version: "4.2.0" 421 | intl: 422 | dependency: "direct main" 423 | description: 424 | name: intl 425 | sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf 426 | url: "https://pub.dev" 427 | source: hosted 428 | version: "0.19.0" 429 | intl_utils: 430 | dependency: transitive 431 | description: 432 | name: intl_utils 433 | sha256: c2b1f5c72c25512cbeef5ab015c008fc50fe7e04813ba5541c25272300484bf4 434 | url: "https://pub.dev" 435 | source: hosted 436 | version: "2.8.7" 437 | json_annotation: 438 | dependency: transitive 439 | description: 440 | name: json_annotation 441 | sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" 442 | url: "https://pub.dev" 443 | source: hosted 444 | version: "4.9.0" 445 | keyboard_height_plugin: 446 | dependency: transitive 447 | description: 448 | name: keyboard_height_plugin 449 | sha256: bbb32804bf93601249c17c33125cd2e654f5ef650fc6acf1b031d69b478b35ce 450 | url: "https://pub.dev" 451 | source: hosted 452 | version: "0.0.5" 453 | leak_tracker: 454 | dependency: transitive 455 | description: 456 | name: leak_tracker 457 | sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" 458 | url: "https://pub.dev" 459 | source: hosted 460 | version: "10.0.5" 461 | leak_tracker_flutter_testing: 462 | dependency: transitive 463 | description: 464 | name: leak_tracker_flutter_testing 465 | sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" 466 | url: "https://pub.dev" 467 | source: hosted 468 | version: "3.0.5" 469 | leak_tracker_testing: 470 | dependency: transitive 471 | description: 472 | name: leak_tracker_testing 473 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" 474 | url: "https://pub.dev" 475 | source: hosted 476 | version: "3.0.1" 477 | lints: 478 | dependency: transitive 479 | description: 480 | name: lints 481 | sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" 482 | url: "https://pub.dev" 483 | source: hosted 484 | version: "4.0.0" 485 | logging: 486 | dependency: transitive 487 | description: 488 | name: logging 489 | sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" 490 | url: "https://pub.dev" 491 | source: hosted 492 | version: "1.2.0" 493 | macros: 494 | dependency: transitive 495 | description: 496 | name: macros 497 | sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" 498 | url: "https://pub.dev" 499 | source: hosted 500 | version: "0.1.2-main.4" 501 | markdown: 502 | dependency: transitive 503 | description: 504 | name: markdown 505 | sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051 506 | url: "https://pub.dev" 507 | source: hosted 508 | version: "7.2.2" 509 | matcher: 510 | dependency: transitive 511 | description: 512 | name: matcher 513 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb 514 | url: "https://pub.dev" 515 | source: hosted 516 | version: "0.12.16+1" 517 | material_color_utilities: 518 | dependency: "direct main" 519 | description: 520 | name: material_color_utilities 521 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec 522 | url: "https://pub.dev" 523 | source: hosted 524 | version: "0.11.1" 525 | meta: 526 | dependency: transitive 527 | description: 528 | name: meta 529 | sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 530 | url: "https://pub.dev" 531 | source: hosted 532 | version: "1.15.0" 533 | nanoid: 534 | dependency: transitive 535 | description: 536 | name: nanoid 537 | sha256: be3f8752d9046c825df2f3914195151eb876f3ad64b9d833dd0b799b77b8759e 538 | url: "https://pub.dev" 539 | source: hosted 540 | version: "1.0.0" 541 | nested: 542 | dependency: transitive 543 | description: 544 | name: nested 545 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" 546 | url: "https://pub.dev" 547 | source: hosted 548 | version: "1.0.0" 549 | numerus: 550 | dependency: transitive 551 | description: 552 | name: numerus 553 | sha256: "49cd96fe774dd1f574fc9117ed67e8a2b06a612f723e87ef3119456a7729d837" 554 | url: "https://pub.dev" 555 | source: hosted 556 | version: "2.2.0" 557 | package_config: 558 | dependency: transitive 559 | description: 560 | name: package_config 561 | sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" 562 | url: "https://pub.dev" 563 | source: hosted 564 | version: "2.1.0" 565 | package_info_plus: 566 | dependency: "direct main" 567 | description: 568 | name: package_info_plus 569 | sha256: a75164ade98cb7d24cfd0a13c6408927c6b217fa60dee5a7ff5c116a58f28918 570 | url: "https://pub.dev" 571 | source: hosted 572 | version: "8.0.2" 573 | package_info_plus_platform_interface: 574 | dependency: transitive 575 | description: 576 | name: package_info_plus_platform_interface 577 | sha256: ac1f4a4847f1ade8e6a87d1f39f5d7c67490738642e2542f559ec38c37489a66 578 | url: "https://pub.dev" 579 | source: hosted 580 | version: "3.0.1" 581 | path: 582 | dependency: "direct main" 583 | description: 584 | name: path 585 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" 586 | url: "https://pub.dev" 587 | source: hosted 588 | version: "1.9.0" 589 | path_parsing: 590 | dependency: transitive 591 | description: 592 | name: path_parsing 593 | sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf 594 | url: "https://pub.dev" 595 | source: hosted 596 | version: "1.0.1" 597 | path_provider: 598 | dependency: transitive 599 | description: 600 | name: path_provider 601 | sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378 602 | url: "https://pub.dev" 603 | source: hosted 604 | version: "2.1.4" 605 | path_provider_android: 606 | dependency: transitive 607 | description: 608 | name: path_provider_android 609 | sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7" 610 | url: "https://pub.dev" 611 | source: hosted 612 | version: "2.2.10" 613 | path_provider_foundation: 614 | dependency: transitive 615 | description: 616 | name: path_provider_foundation 617 | sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 618 | url: "https://pub.dev" 619 | source: hosted 620 | version: "2.4.0" 621 | path_provider_linux: 622 | dependency: transitive 623 | description: 624 | name: path_provider_linux 625 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 626 | url: "https://pub.dev" 627 | source: hosted 628 | version: "2.2.1" 629 | path_provider_platform_interface: 630 | dependency: transitive 631 | description: 632 | name: path_provider_platform_interface 633 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" 634 | url: "https://pub.dev" 635 | source: hosted 636 | version: "2.1.2" 637 | path_provider_windows: 638 | dependency: transitive 639 | description: 640 | name: path_provider_windows 641 | sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 642 | url: "https://pub.dev" 643 | source: hosted 644 | version: "2.3.0" 645 | pdf: 646 | dependency: transitive 647 | description: 648 | name: pdf 649 | sha256: "05df53f8791587402493ac97b9869d3824eccbc77d97855f4545cf72df3cae07" 650 | url: "https://pub.dev" 651 | source: hosted 652 | version: "3.11.1" 653 | pdf_widget_wrapper: 654 | dependency: transitive 655 | description: 656 | name: pdf_widget_wrapper 657 | sha256: c930860d987213a3d58c7ec3b7ecf8085c3897f773e8dc23da9cae60a5d6d0f5 658 | url: "https://pub.dev" 659 | source: hosted 660 | version: "1.0.4" 661 | petitparser: 662 | dependency: transitive 663 | description: 664 | name: petitparser 665 | sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 666 | url: "https://pub.dev" 667 | source: hosted 668 | version: "6.0.2" 669 | platform: 670 | dependency: transitive 671 | description: 672 | name: platform 673 | sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" 674 | url: "https://pub.dev" 675 | source: hosted 676 | version: "3.1.5" 677 | plugin_platform_interface: 678 | dependency: transitive 679 | description: 680 | name: plugin_platform_interface 681 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" 682 | url: "https://pub.dev" 683 | source: hosted 684 | version: "2.1.8" 685 | printing: 686 | dependency: transitive 687 | description: 688 | name: printing 689 | sha256: de1889f30b34029fc46e5de6a9841498850b23d32942a9ee810ca36b0cb1b234 690 | url: "https://pub.dev" 691 | source: hosted 692 | version: "5.13.2" 693 | provider: 694 | dependency: transitive 695 | description: 696 | name: provider 697 | sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c 698 | url: "https://pub.dev" 699 | source: hosted 700 | version: "6.1.2" 701 | pub_semver: 702 | dependency: transitive 703 | description: 704 | name: pub_semver 705 | sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" 706 | url: "https://pub.dev" 707 | source: hosted 708 | version: "2.1.4" 709 | pubspec_parse: 710 | dependency: transitive 711 | description: 712 | name: pubspec_parse 713 | sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 714 | url: "https://pub.dev" 715 | source: hosted 716 | version: "1.3.0" 717 | qr: 718 | dependency: transitive 719 | description: 720 | name: qr 721 | sha256: "5a1d2586170e172b8a8c8470bbbffd5eb0cd38a66c0d77155ea138d3af3a4445" 722 | url: "https://pub.dev" 723 | source: hosted 724 | version: "3.0.2" 725 | riverpod: 726 | dependency: transitive 727 | description: 728 | name: riverpod 729 | sha256: f21b32ffd26a36555e501b04f4a5dca43ed59e16343f1a30c13632b2351dfa4d 730 | url: "https://pub.dev" 731 | source: hosted 732 | version: "2.5.1" 733 | riverpod_analyzer_utils: 734 | dependency: transitive 735 | description: 736 | name: riverpod_analyzer_utils 737 | sha256: ac28d7bc678471ec986b42d88e5a0893513382ff7542c7ac9634463b044ac72c 738 | url: "https://pub.dev" 739 | source: hosted 740 | version: "0.5.4" 741 | riverpod_lint: 742 | dependency: "direct dev" 743 | description: 744 | name: riverpod_lint 745 | sha256: a35a92f2c2a4b7a5d95671c96c5432b42c20f26bb3e985e83d0b186471b61a85 746 | url: "https://pub.dev" 747 | source: hosted 748 | version: "2.3.13" 749 | rxdart: 750 | dependency: transitive 751 | description: 752 | name: rxdart 753 | sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962" 754 | url: "https://pub.dev" 755 | source: hosted 756 | version: "0.28.0" 757 | shared_preferences: 758 | dependency: "direct main" 759 | description: 760 | name: shared_preferences 761 | sha256: "746e5369a43170c25816cc472ee016d3a66bc13fcf430c0bc41ad7b4b2922051" 762 | url: "https://pub.dev" 763 | source: hosted 764 | version: "2.3.2" 765 | shared_preferences_android: 766 | dependency: transitive 767 | description: 768 | name: shared_preferences_android 769 | sha256: a7e8467e9181cef109f601e3f65765685786c1a738a83d7fbbde377589c0d974 770 | url: "https://pub.dev" 771 | source: hosted 772 | version: "2.3.1" 773 | shared_preferences_foundation: 774 | dependency: transitive 775 | description: 776 | name: shared_preferences_foundation 777 | sha256: c4b35f6cb8f63c147312c054ce7c2254c8066745125264f0c88739c417fc9d9f 778 | url: "https://pub.dev" 779 | source: hosted 780 | version: "2.5.2" 781 | shared_preferences_linux: 782 | dependency: transitive 783 | description: 784 | name: shared_preferences_linux 785 | sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" 786 | url: "https://pub.dev" 787 | source: hosted 788 | version: "2.4.1" 789 | shared_preferences_platform_interface: 790 | dependency: transitive 791 | description: 792 | name: shared_preferences_platform_interface 793 | sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" 794 | url: "https://pub.dev" 795 | source: hosted 796 | version: "2.4.1" 797 | shared_preferences_web: 798 | dependency: transitive 799 | description: 800 | name: shared_preferences_web 801 | sha256: d2ca4132d3946fec2184261726b355836a82c33d7d5b67af32692aff18a4684e 802 | url: "https://pub.dev" 803 | source: hosted 804 | version: "2.4.2" 805 | shared_preferences_windows: 806 | dependency: transitive 807 | description: 808 | name: shared_preferences_windows 809 | sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" 810 | url: "https://pub.dev" 811 | source: hosted 812 | version: "2.4.1" 813 | sky_engine: 814 | dependency: transitive 815 | description: flutter 816 | source: sdk 817 | version: "0.0.99" 818 | source_span: 819 | dependency: transitive 820 | description: 821 | name: source_span 822 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 823 | url: "https://pub.dev" 824 | source: hosted 825 | version: "1.10.0" 826 | sprintf: 827 | dependency: transitive 828 | description: 829 | name: sprintf 830 | sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" 831 | url: "https://pub.dev" 832 | source: hosted 833 | version: "7.0.0" 834 | sqflite: 835 | dependency: "direct main" 836 | description: 837 | name: sqflite 838 | sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d 839 | url: "https://pub.dev" 840 | source: hosted 841 | version: "2.3.3+1" 842 | sqflite_common: 843 | dependency: transitive 844 | description: 845 | name: sqflite_common 846 | sha256: "7b41b6c3507854a159e24ae90a8e3e9cc01eb26a477c118d6dca065b5f55453e" 847 | url: "https://pub.dev" 848 | source: hosted 849 | version: "2.5.4+2" 850 | sqflite_common_ffi: 851 | dependency: "direct main" 852 | description: 853 | name: sqflite_common_ffi 854 | sha256: "4d6137c29e930d6e4a8ff373989dd9de7bac12e3bc87bce950f6e844e8ad3bb5" 855 | url: "https://pub.dev" 856 | source: hosted 857 | version: "2.3.3" 858 | sqlite3: 859 | dependency: transitive 860 | description: 861 | name: sqlite3 862 | sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" 863 | url: "https://pub.dev" 864 | source: hosted 865 | version: "2.4.6" 866 | stack_trace: 867 | dependency: transitive 868 | description: 869 | name: stack_trace 870 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 871 | url: "https://pub.dev" 872 | source: hosted 873 | version: "1.11.1" 874 | state_notifier: 875 | dependency: transitive 876 | description: 877 | name: state_notifier 878 | sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb 879 | url: "https://pub.dev" 880 | source: hosted 881 | version: "1.0.0" 882 | stream_channel: 883 | dependency: transitive 884 | description: 885 | name: stream_channel 886 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 887 | url: "https://pub.dev" 888 | source: hosted 889 | version: "2.1.2" 890 | stream_transform: 891 | dependency: transitive 892 | description: 893 | name: stream_transform 894 | sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" 895 | url: "https://pub.dev" 896 | source: hosted 897 | version: "2.1.0" 898 | string_scanner: 899 | dependency: transitive 900 | description: 901 | name: string_scanner 902 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 903 | url: "https://pub.dev" 904 | source: hosted 905 | version: "1.2.0" 906 | string_validator: 907 | dependency: transitive 908 | description: 909 | name: string_validator 910 | sha256: a278d038104aa2df15d0e09c47cb39a49f907260732067d0034dc2f2e4e2ac94 911 | url: "https://pub.dev" 912 | source: hosted 913 | version: "1.1.0" 914 | synchronized: 915 | dependency: transitive 916 | description: 917 | name: synchronized 918 | sha256: a824e842b8a054f91a728b783c177c1e4731f6b124f9192468457a8913371255 919 | url: "https://pub.dev" 920 | source: hosted 921 | version: "3.2.0" 922 | term_glyph: 923 | dependency: transitive 924 | description: 925 | name: term_glyph 926 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 927 | url: "https://pub.dev" 928 | source: hosted 929 | version: "1.2.1" 930 | test_api: 931 | dependency: transitive 932 | description: 933 | name: test_api 934 | sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" 935 | url: "https://pub.dev" 936 | source: hosted 937 | version: "0.7.2" 938 | tuple: 939 | dependency: transitive 940 | description: 941 | name: tuple 942 | sha256: a97ce2013f240b2f3807bcbaf218765b6f301c3eff91092bcfa23a039e7dd151 943 | url: "https://pub.dev" 944 | source: hosted 945 | version: "2.0.2" 946 | typed_data: 947 | dependency: transitive 948 | description: 949 | name: typed_data 950 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 951 | url: "https://pub.dev" 952 | source: hosted 953 | version: "1.3.2" 954 | universal_html: 955 | dependency: transitive 956 | description: 957 | name: universal_html 958 | sha256: "56536254004e24d9d8cfdb7dbbf09b74cf8df96729f38a2f5c238163e3d58971" 959 | url: "https://pub.dev" 960 | source: hosted 961 | version: "2.2.4" 962 | universal_io: 963 | dependency: transitive 964 | description: 965 | name: universal_io 966 | sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" 967 | url: "https://pub.dev" 968 | source: hosted 969 | version: "2.2.2" 970 | url_launcher: 971 | dependency: "direct main" 972 | description: 973 | name: url_launcher 974 | sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3" 975 | url: "https://pub.dev" 976 | source: hosted 977 | version: "6.3.0" 978 | url_launcher_android: 979 | dependency: transitive 980 | description: 981 | name: url_launcher_android 982 | sha256: e35a698ac302dd68e41f73250bd9517fe3ab5fa4f18fe4647a0872db61bacbab 983 | url: "https://pub.dev" 984 | source: hosted 985 | version: "6.3.10" 986 | url_launcher_ios: 987 | dependency: transitive 988 | description: 989 | name: url_launcher_ios 990 | sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e 991 | url: "https://pub.dev" 992 | source: hosted 993 | version: "6.3.1" 994 | url_launcher_linux: 995 | dependency: transitive 996 | description: 997 | name: url_launcher_linux 998 | sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af 999 | url: "https://pub.dev" 1000 | source: hosted 1001 | version: "3.2.0" 1002 | url_launcher_macos: 1003 | dependency: transitive 1004 | description: 1005 | name: url_launcher_macos 1006 | sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de" 1007 | url: "https://pub.dev" 1008 | source: hosted 1009 | version: "3.2.0" 1010 | url_launcher_platform_interface: 1011 | dependency: transitive 1012 | description: 1013 | name: url_launcher_platform_interface 1014 | sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" 1015 | url: "https://pub.dev" 1016 | source: hosted 1017 | version: "2.3.2" 1018 | url_launcher_web: 1019 | dependency: transitive 1020 | description: 1021 | name: url_launcher_web 1022 | sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" 1023 | url: "https://pub.dev" 1024 | source: hosted 1025 | version: "2.3.3" 1026 | url_launcher_windows: 1027 | dependency: transitive 1028 | description: 1029 | name: url_launcher_windows 1030 | sha256: "49c10f879746271804767cb45551ec5592cdab00ee105c06dddde1a98f73b185" 1031 | url: "https://pub.dev" 1032 | source: hosted 1033 | version: "3.1.2" 1034 | uuid: 1035 | dependency: "direct main" 1036 | description: 1037 | name: uuid 1038 | sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90" 1039 | url: "https://pub.dev" 1040 | source: hosted 1041 | version: "4.4.2" 1042 | vector_graphics: 1043 | dependency: transitive 1044 | description: 1045 | name: vector_graphics 1046 | sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3" 1047 | url: "https://pub.dev" 1048 | source: hosted 1049 | version: "1.1.11+1" 1050 | vector_graphics_codec: 1051 | dependency: transitive 1052 | description: 1053 | name: vector_graphics_codec 1054 | sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da 1055 | url: "https://pub.dev" 1056 | source: hosted 1057 | version: "1.1.11+1" 1058 | vector_graphics_compiler: 1059 | dependency: transitive 1060 | description: 1061 | name: vector_graphics_compiler 1062 | sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81" 1063 | url: "https://pub.dev" 1064 | source: hosted 1065 | version: "1.1.11+1" 1066 | vector_math: 1067 | dependency: transitive 1068 | description: 1069 | name: vector_math 1070 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 1071 | url: "https://pub.dev" 1072 | source: hosted 1073 | version: "2.1.4" 1074 | visibility_detector: 1075 | dependency: transitive 1076 | description: 1077 | name: visibility_detector 1078 | sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420 1079 | url: "https://pub.dev" 1080 | source: hosted 1081 | version: "0.4.0+2" 1082 | vm_service: 1083 | dependency: transitive 1084 | description: 1085 | name: vm_service 1086 | sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" 1087 | url: "https://pub.dev" 1088 | source: hosted 1089 | version: "14.2.5" 1090 | watcher: 1091 | dependency: transitive 1092 | description: 1093 | name: watcher 1094 | sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" 1095 | url: "https://pub.dev" 1096 | source: hosted 1097 | version: "1.1.0" 1098 | web: 1099 | dependency: transitive 1100 | description: 1101 | name: web 1102 | sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062 1103 | url: "https://pub.dev" 1104 | source: hosted 1105 | version: "1.0.0" 1106 | win32: 1107 | dependency: transitive 1108 | description: 1109 | name: win32 1110 | sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a" 1111 | url: "https://pub.dev" 1112 | source: hosted 1113 | version: "5.5.4" 1114 | win32_registry: 1115 | dependency: transitive 1116 | description: 1117 | name: win32_registry 1118 | sha256: "723b7f851e5724c55409bb3d5a32b203b3afe8587eaf5dafb93a5fed8ecda0d6" 1119 | url: "https://pub.dev" 1120 | source: hosted 1121 | version: "1.1.4" 1122 | xdg_directories: 1123 | dependency: transitive 1124 | description: 1125 | name: xdg_directories 1126 | sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d 1127 | url: "https://pub.dev" 1128 | source: hosted 1129 | version: "1.0.4" 1130 | xml: 1131 | dependency: transitive 1132 | description: 1133 | name: xml 1134 | sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 1135 | url: "https://pub.dev" 1136 | source: hosted 1137 | version: "6.5.0" 1138 | yaml: 1139 | dependency: transitive 1140 | description: 1141 | name: yaml 1142 | sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" 1143 | url: "https://pub.dev" 1144 | source: hosted 1145 | version: "3.1.2" 1146 | sdks: 1147 | dart: ">=3.5.0 <4.0.0" 1148 | flutter: ">=3.24.0" 1149 | --------------------------------------------------------------------------------