├── test
└── widget_test.dart
├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ ├── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ ├── LaunchBackground.imageset
│ │ │ ├── background.png
│ │ │ ├── darkbackground.png
│ │ │ └── Contents.json
│ │ └── BrandingImage.imageset
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ └── Main.storyboard
│ └── Info.plist
├── Runner.xcodeproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
└── .gitignore
├── lib
├── models
│ ├── sync_status.dart
│ ├── sync_item_error.dart
│ ├── dynamic_object.dart
│ ├── sliding_page.dart
│ ├── either.dart
│ ├── serializers
│ │ ├── color_serializer.dart
│ │ ├── locale_serializer.dart
│ │ └── datetime_serializer.dart
│ ├── task_filter.dart
│ ├── user.dart
│ ├── auth_credentials.g.dart
│ ├── geo_location.dart
│ ├── bottom_navigation_bar_item.dart
│ ├── user.g.dart
│ ├── notification_data.g.dart
│ ├── geo_location.g.dart
│ ├── category.g.dart
│ ├── active_session.g.dart
│ ├── task.g.dart
│ ├── notification_type.dart
│ ├── auth_credentials.dart
│ ├── notification_data.dart
│ ├── active_session.dart
│ └── category.dart
├── cubits
│ ├── available_space_cubit.dart
│ ├── profile_cubit.dart
│ ├── change_email_verification_cubit.dart
│ ├── forgot_password_cubit.dart
│ ├── forgot_password_new_password_cubit.dart
│ ├── login_cubit.dart
│ ├── change_password_cubit.dart
│ ├── email_verification_cubit.dart
│ └── forgot_password_email_verification_cubit.dart
├── helpers
│ ├── map_helper.dart
│ ├── string_helper.dart
│ ├── locale_helper.dart
│ ├── response_messages.dart
│ └── response_errors.dart
├── services
│ ├── context_service.dart
│ ├── locator_service.dart
│ ├── notification_service.dart
│ └── dialog_service.dart
├── blocs
│ ├── sync_bloc
│ │ ├── sync_event.dart
│ │ ├── sync_bloc.g.dart
│ │ └── sync_state.dart
│ ├── transformers.dart
│ ├── upcoming_bloc
│ │ ├── upcoming_event.dart
│ │ └── upcoming_state.dart
│ ├── calendar_bloc
│ │ ├── calendar_event.dart
│ │ └── calendar_state.dart
│ ├── category_bloc
│ │ ├── category_event.dart
│ │ ├── category_state.dart
│ │ └── category_bloc.g.dart
│ ├── category_screen_bloc
│ │ ├── category_screen_event.dart
│ │ └── category_screen_state.dart
│ ├── notifications_cubit
│ │ ├── notifications_cubit.g.dart
│ │ └── notifications_state.dart
│ ├── task_bloc
│ │ ├── task_event.dart
│ │ ├── task_state.dart
│ │ └── task_bloc.g.dart
│ ├── drifted_bloc
│ │ ├── drifted_converters.dart
│ │ ├── drifted_isolate.dart
│ │ ├── drifted_database.dart
│ │ └── drifted_storage.dart
│ ├── auth_bloc
│ │ ├── auth_state.dart
│ │ ├── auth_event.dart
│ │ └── auth_bloc.g.dart
│ └── settings_cubit
│ │ ├── settings_cubit.g.dart
│ │ └── settings_state.dart
├── l10n
│ └── l10n.dart
├── screens
│ ├── splash_screen.dart
│ └── main_screen.dart
├── messaging
│ ├── data_notifications.dart
│ ├── messaging_helper.dart
│ ├── background_handler.dart
│ └── types
│ │ └── background_auth.dart
├── components
│ ├── charts
│ │ └── week_bar_chart_group_data.dart
│ ├── lists
│ │ ├── list_header.dart
│ │ ├── list_item_animation.dart
│ │ ├── dot_indicator_list.dart
│ │ ├── snap_bounce_scroll_physics.dart
│ │ ├── rounded_dismissible.dart
│ │ ├── declarative_animated_list.dart
│ │ └── animated_dynamic_task_list.dart
│ ├── forms
│ │ ├── form_input_header.dart
│ │ ├── outlined_form_icon_button.dart
│ │ ├── resend_code_timer.dart
│ │ └── form_validator.dart
│ ├── responsive
│ │ ├── animated_widget_size.dart
│ │ ├── widget_size.dart
│ │ ├── fill_remaining_list.dart
│ │ └── centered_page_view_widget.dart
│ ├── popup_menu_icon_item.dart
│ ├── tab_indicator.dart
│ ├── header.dart
│ ├── aligned_animated_switcher.dart
│ ├── rounded_snack_bar.dart
│ ├── center_text_icon_button.dart
│ ├── animated_chip.dart
│ ├── main
│ │ ├── center_app_bar.dart
│ │ └── app_bar.dart
│ ├── calendar
│ │ ├── calendar_group_hour.dart
│ │ └── calendar_card.dart
│ ├── dot_tab_bar.dart
│ ├── shimmer
│ │ └── shimmer_text.dart
│ └── rounded_button.dart
├── repositories
│ ├── interceptors
│ │ └── unauthorized_interceptor.dart
│ ├── user_repository.dart
│ ├── task_repository.dart
│ └── sync_repository.dart
├── main.dart
├── constants.dart
├── analysis_options.yaml
├── bottom_sheets
│ ├── date_picker_bottom_sheet.dart
│ ├── time_picker_bottom_sheet.dart
│ └── modal_bottom_sheet.dart
├── router
│ └── wrappers
│ │ └── main_router_wrapper.dart
└── firebase_options.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── splash
│ ├── splash.js
│ └── style.css
└── manifest.json
├── assets
├── icons
│ ├── email.png
│ ├── google.png
│ ├── facebook.png
│ ├── profile.png
│ ├── home_filled.png
│ ├── home_outlined.png
│ ├── calendar_filled.png
│ ├── settings_filled.png
│ ├── calendar_outlined.png
│ ├── settings_outlined.png
│ ├── notification_filled.png
│ └── notification_outlined.png
└── fonts
│ ├── Poppins-Light.ttf
│ ├── Poppins-Medium.ttf
│ ├── Poppins-Regular.ttf
│ └── Poppins-SemiBold.ttf
├── l10n.yaml
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── drawable
│ │ │ │ │ ├── background.png
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ ├── background.png
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-night
│ │ │ │ │ ├── background.png
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-night-v21
│ │ │ │ │ ├── background.png
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values-v31
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── values-night-v31
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── task_manager
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── .metadata
├── .vscode
└── launch.json
├── .gitignore
├── README.md
└── pubspec.yaml
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | void main() {}
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/lib/models/sync_status.dart:
--------------------------------------------------------------------------------
1 | enum SyncStatus { idle, pending }
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/models/sync_item_error.dart:
--------------------------------------------------------------------------------
1 | enum SyncErrorType { duplicatedId, blacklist }
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/assets/icons/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/email.png
--------------------------------------------------------------------------------
/assets/icons/google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/google.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/assets/icons/facebook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/facebook.png
--------------------------------------------------------------------------------
/assets/icons/profile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/profile.png
--------------------------------------------------------------------------------
/assets/icons/home_filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/home_filled.png
--------------------------------------------------------------------------------
/l10n.yaml:
--------------------------------------------------------------------------------
1 | arb-dir: lib/l10n/arb
2 | template-arb-file: app_en.arb
3 | output-localization-file: app_localizations.dart
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/assets/fonts/Poppins-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/fonts/Poppins-Light.ttf
--------------------------------------------------------------------------------
/assets/icons/home_outlined.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/home_outlined.png
--------------------------------------------------------------------------------
/assets/fonts/Poppins-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/fonts/Poppins-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/fonts/Poppins-Regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/fonts/Poppins-SemiBold.ttf
--------------------------------------------------------------------------------
/assets/icons/calendar_filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/calendar_filled.png
--------------------------------------------------------------------------------
/assets/icons/settings_filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/settings_filled.png
--------------------------------------------------------------------------------
/assets/icons/calendar_outlined.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/calendar_outlined.png
--------------------------------------------------------------------------------
/assets/icons/settings_outlined.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/settings_outlined.png
--------------------------------------------------------------------------------
/assets/icons/notification_filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/notification_filled.png
--------------------------------------------------------------------------------
/assets/icons/notification_outlined.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/assets/icons/notification_outlined.png
--------------------------------------------------------------------------------
/lib/models/dynamic_object.dart:
--------------------------------------------------------------------------------
1 | class DynamicObject{
2 | final dynamic object;
3 |
4 | DynamicObject({
5 | required this.object,
6 | });
7 | }
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/android/app/src/main/res/drawable/background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/android/app/src/main/res/drawable-v21/background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/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/federicodesia/task_manager/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/federicodesia/task_manager/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-night/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/android/app/src/main/res/drawable-night/background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/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/federicodesia/task_manager/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-night-v21/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/android/app/src/main/res/drawable-night-v21/background.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/federicodesia/task_manager/HEAD/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/task_manager/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.task_manager
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/web/splash/splash.js:
--------------------------------------------------------------------------------
1 | function removeSplashFromWeb() {
2 | const elem = document.getElementById("splash");
3 | if (elem) {
4 | elem.remove();
5 | }
6 | document.body.style.background = "transparent";
7 | }
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/cubits/available_space_cubit.dart:
--------------------------------------------------------------------------------
1 | import 'package:bloc/bloc.dart';
2 |
3 | class AvailableSpaceCubit extends Cubit {
4 | AvailableSpaceCubit() : super(0);
5 |
6 | void setHeight(double height) => emit(height);
7 | }
--------------------------------------------------------------------------------
/lib/helpers/map_helper.dart:
--------------------------------------------------------------------------------
1 | extension MapExtension on Map {
2 |
3 | int increment(dynamic key) {
4 | return update(
5 | key,
6 | (value) => ++value,
7 | ifAbsent: () => 1
8 | );
9 | }
10 | }
--------------------------------------------------------------------------------
/lib/services/context_service.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ContextService {
4 |
5 | BuildContext? _context;
6 | void init(BuildContext context) => _context = context;
7 |
8 | BuildContext? get context => _context;
9 | }
--------------------------------------------------------------------------------
/lib/models/sliding_page.dart:
--------------------------------------------------------------------------------
1 | class SlidingPage{
2 | final String header;
3 | final String description;
4 | final String svg;
5 |
6 | SlidingPage({
7 | required this.header,
8 | required this.description,
9 | required this.svg
10 | });
11 | }
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-night-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-night/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lib/blocs/sync_bloc/sync_event.dart:
--------------------------------------------------------------------------------
1 | part of 'sync_bloc.dart';
2 |
3 | abstract class SyncEvent {}
4 |
5 | class SyncLoaded extends SyncEvent {}
6 |
7 | class SyncRequested extends SyncEvent {}
8 | class BackgroundSyncRequested extends SyncEvent {}
9 | class HighPrioritySyncRequested extends SyncEvent {}
--------------------------------------------------------------------------------
/lib/blocs/transformers.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_bloc/flutter_bloc.dart';
2 | import 'package:rxdart/rxdart.dart';
3 |
4 | EventTransformer debounceTransformer(Duration duration) {
5 | return (events, mapper) {
6 | return events.debounceTime(duration).switchMap(mapper);
7 | };
8 | }
--------------------------------------------------------------------------------
/lib/models/either.dart:
--------------------------------------------------------------------------------
1 | import 'package:freezed_annotation/freezed_annotation.dart';
2 |
3 | part 'either.freezed.dart';
4 |
5 | @freezed
6 | abstract class Either with _$Either {
7 | const factory Either.left(L left) = Left;
8 | const factory Either.right(R right) = Right;
9 | }
--------------------------------------------------------------------------------
/lib/l10n/l10n.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_gen/gen_l10n/app_localizations.dart';
2 | import 'package:flutter/widgets.dart';
3 |
4 | export 'package:flutter_gen/gen_l10n/app_localizations.dart';
5 |
6 | extension AppLocalizationsX on BuildContext {
7 | AppLocalizations get l10n => AppLocalizations.of(this)!;
8 | }
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/blocs/upcoming_bloc/upcoming_event.dart:
--------------------------------------------------------------------------------
1 | part of 'upcoming_bloc.dart';
2 |
3 | abstract class UpcomingEvent {}
4 |
5 | class UpcomingLoaded extends UpcomingEvent {
6 | UpcomingLoaded();
7 | }
8 |
9 | class TasksUpdated extends UpcomingEvent {
10 | final List tasks;
11 | TasksUpdated(this.tasks);
12 | }
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/helpers/string_helper.dart:
--------------------------------------------------------------------------------
1 | extension StringExtension on String {
2 | String get capitalize {
3 | return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
4 | }
5 |
6 | String get toLowerSnakeCase => toLowerCase().replaceAll(" ", "_");
7 |
8 | String fillLines(int lines) => this + List.generate(lines, (_) => "\n").join();
9 | }
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/lib/models/serializers/color_serializer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:json_annotation/json_annotation.dart';
3 |
4 | class ColorSerializer implements JsonConverter {
5 | const ColorSerializer();
6 |
7 | @override
8 | Color fromJson(int value) => Color(value);
9 |
10 | @override
11 | int toJson(Color color) => color.value;
12 | }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/lib/models/serializers/locale_serializer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:json_annotation/json_annotation.dart';
3 |
4 | class LocaleSerializer implements JsonConverter {
5 | const LocaleSerializer();
6 |
7 | @override
8 | Locale? fromJson(String? languageCode) => languageCode != null ? Locale(languageCode) : null;
9 |
10 | @override
11 | String? toJson(Locale? locale) => locale?.languageCode;
12 | }
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/lib/helpers/locale_helper.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_localized_locales/flutter_localized_locales.dart';
3 | import 'package:task_manager/helpers/string_helper.dart';
4 |
5 | export 'package:flutter_gen/gen_l10n/app_localizations.dart';
6 |
7 | extension LocaleExtension on Locale? {
8 | String get name{
9 | final nativeLocaleNames = LocaleNamesLocalizationsDelegate.nativeLocaleNames;
10 | return (nativeLocaleNames[this?.languageCode] ?? "Unknown").capitalize;
11 | }
12 | }
--------------------------------------------------------------------------------
/lib/services/locator_service.dart:
--------------------------------------------------------------------------------
1 | import 'package:get_it/get_it.dart';
2 | import 'package:task_manager/services/context_service.dart';
3 | import 'package:task_manager/services/dialog_service.dart';
4 | import 'package:task_manager/services/notification_service.dart';
5 |
6 | GetIt locator = GetIt.instance;
7 |
8 | void setupLocator(){
9 | locator.registerLazySingleton(() => (ContextService()));
10 | locator.registerLazySingleton(() => (DialogService()));
11 | locator.registerLazySingleton(() => (NotificationService()));
12 | }
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "LaunchImage.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "filename" : "LaunchImage@2x.png",
10 | "idiom" : "universal",
11 | "scale" : "2x"
12 | },
13 | {
14 | "filename" : "LaunchImage@3x.png",
15 | "idiom" : "universal",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "author" : "xcode",
21 | "version" : 1
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/BrandingImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "BrandingImage.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "filename" : "BrandingImage@2x.png",
10 | "idiom" : "universal",
11 | "scale" : "2x"
12 | },
13 | {
14 | "filename" : "BrandingImage@3x.png",
15 | "idiom" : "universal",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "author" : "xcode",
21 | "version" : 1
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/models/task_filter.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:task_manager/l10n/l10n.dart';
3 |
4 | enum TaskFilter { all, completed, remaining }
5 |
6 | extension TaskFilterExtension on TaskFilter {
7 | String nameLocalization(BuildContext context) {
8 | if(this == TaskFilter.all) return context.l10n.enum_taskFilter_all;
9 | if(this == TaskFilter.completed) return context.l10n.enum_taskFilter_completed;
10 | if(this == TaskFilter.remaining) return context.l10n.enum_taskFilter_remaining;
11 | return "Unknown";
12 | }
13 | }
--------------------------------------------------------------------------------
/lib/screens/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_manager/theme/theme.dart';
3 |
4 | class SplashScreen extends StatelessWidget{
5 | const SplashScreen({Key? key}) : super(key: key);
6 |
7 | @override
8 | Widget build(BuildContext context) {
9 | final customTheme = Theme.of(context).customTheme;
10 |
11 | return Scaffold(
12 | backgroundColor: customTheme.backgroundColor,
13 | body: const SafeArea(
14 | child: Center(
15 | child: CircularProgressIndicator(),
16 | ),
17 | ),
18 | );
19 | }
20 | }
--------------------------------------------------------------------------------
/lib/blocs/calendar_bloc/calendar_event.dart:
--------------------------------------------------------------------------------
1 | part of 'calendar_bloc.dart';
2 |
3 | abstract class CalendarEvent {}
4 |
5 | class CalendarSelectedMonthChanged extends CalendarEvent {
6 | final DateTime selectedMonth;
7 | CalendarSelectedMonthChanged(this.selectedMonth);
8 | }
9 |
10 | class CalendarSelectedDayChanged extends CalendarEvent {
11 | final DateTime selectedDay;
12 | CalendarSelectedDayChanged(this.selectedDay);
13 | }
14 |
15 | class UpdateLoadingRequested extends CalendarEvent {}
16 |
17 | class TasksUpdated extends CalendarEvent {
18 | final List tasks;
19 | TasksUpdated(this.tasks);
20 | }
--------------------------------------------------------------------------------
/lib/messaging/data_notifications.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_messaging/firebase_messaging.dart';
2 |
3 | enum DataNotificationType { newData, logout, newUserData, newSession }
4 |
5 | extension RemoteMessageExtension on RemoteMessage {
6 | DataNotificationType? get dataNotificationType{
7 | final type = data["type"];
8 |
9 | if(type == "new-data") return DataNotificationType.newData;
10 | if(type == "logout") return DataNotificationType.logout;
11 | if(type == "new-user-data") return DataNotificationType.newUserData;
12 | if(type == "new-session") return DataNotificationType.newSession;
13 | return null;
14 | }
15 | }
--------------------------------------------------------------------------------
/lib/components/charts/week_bar_chart_group_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:fl_chart/fl_chart.dart';
2 | import 'package:task_manager/constants.dart';
3 |
4 | BarChartGroupData weekBarChartGroupData({
5 | required int index,
6 | required double height,
7 | double backgroundHeight = 0.0
8 | }) {
9 |
10 | return BarChartGroupData(
11 | x: index,
12 | barRods: [
13 | BarChartRodData(
14 | y: height,
15 | colors: [cPrimaryColor],
16 | backDrawRodData: BackgroundBarChartRodData(
17 | show: true,
18 | y: backgroundHeight,
19 | colors: [cChartBackgroundColor],
20 | )
21 | ),
22 | ]
23 | );
24 | }
--------------------------------------------------------------------------------
/lib/components/lists/list_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_manager/theme/theme.dart';
3 |
4 | class ListHeader extends StatelessWidget{
5 |
6 | final String text;
7 |
8 | const ListHeader(
9 | this.text,
10 | {Key? key}
11 | ) : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | final customTheme = Theme.of(context).customTheme;
16 |
17 | return Padding(
18 | padding: const EdgeInsets.symmetric(vertical: 16.0),
19 | child: Text(
20 | text,
21 | style: customTheme.boldTextStyle,
22 | maxLines: 1,
23 | ),
24 | );
25 | }
26 | }
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "task_manager",
3 | "short_name": "task_manager",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/lib/blocs/category_bloc/category_event.dart:
--------------------------------------------------------------------------------
1 | part of 'category_bloc.dart';
2 |
3 | abstract class CategoryEvent {}
4 |
5 | class CategoryLoaded extends CategoryEvent {}
6 |
7 | class CategoryAdded extends CategoryEvent {
8 | final Category category;
9 | CategoryAdded(this.category);
10 | }
11 |
12 | class CategoryUpdated extends CategoryEvent {
13 | final Category category;
14 | CategoryUpdated(this.category);
15 | }
16 |
17 | class CategoryDeleted extends CategoryEvent {
18 | final Category category;
19 | CategoryDeleted(this.category);
20 | }
21 |
22 | class CategoryStateUpdated extends CategoryEvent {
23 | final CategoryState state;
24 | CategoryStateUpdated(this.state);
25 | }
--------------------------------------------------------------------------------
/lib/blocs/upcoming_bloc/upcoming_state.dart:
--------------------------------------------------------------------------------
1 | part of 'upcoming_bloc.dart';
2 |
3 | abstract class UpcomingState {}
4 |
5 | class UpcomingLoadInProgress extends UpcomingState {}
6 |
7 | class UpcomingLoadSuccess extends UpcomingState {
8 | final Map weekTasks;
9 | final Map weekCompletedTasks;
10 | final int weekCompletedTasksCount;
11 | final int weekRemainingTasksCount;
12 | final List items;
13 |
14 | UpcomingLoadSuccess({
15 | required this.weekTasks,
16 | required this.weekCompletedTasks,
17 | required this.weekCompletedTasksCount,
18 | required this.weekRemainingTasksCount,
19 | required this.items
20 | });
21 | }
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/lib/components/forms/form_input_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_manager/theme/theme.dart';
3 |
4 | class FormInputHeader extends StatelessWidget{
5 |
6 | final String text;
7 | const FormInputHeader(
8 | this.text,
9 | {Key? key}
10 | ) : super(key: key);
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | final customTheme = Theme.of(context).customTheme;
15 |
16 | return Padding(
17 | padding: const EdgeInsets.only(
18 | top: 24.0,
19 | bottom: 8.0
20 | ),
21 | child: Text(
22 | text,
23 | style: customTheme.boldTextStyle,
24 | maxLines: 1,
25 | ),
26 | );
27 | }
28 | }
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.3.10'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/lib/blocs/category_screen_bloc/category_screen_event.dart:
--------------------------------------------------------------------------------
1 | part of 'category_screen_bloc.dart';
2 |
3 | abstract class CategoryScreenEvent {}
4 |
5 | class CategoryScreenLoaded extends CategoryScreenEvent {}
6 |
7 | class SearchTextChanged extends CategoryScreenEvent {
8 | final String searchText;
9 | SearchTextChanged(this.searchText);
10 | }
11 |
12 | class FilterUpdated extends CategoryScreenEvent {
13 | final TaskFilter taskFilter;
14 | FilterUpdated(this.taskFilter);
15 | }
16 |
17 | class UpdateItemsRequested extends CategoryScreenEvent{
18 | final String? searchText;
19 | final TaskFilter? taskFilter;
20 | final List? tasks;
21 |
22 | UpdateItemsRequested({
23 | this.searchText,
24 | this.taskFilter,
25 | this.tasks
26 | });
27 | }
--------------------------------------------------------------------------------
/lib/blocs/sync_bloc/sync_bloc.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'sync_bloc.dart';
4 |
5 | // **************************************************************************
6 | // JsonSerializableGenerator
7 | // **************************************************************************
8 |
9 | SyncState _$SyncStateFromJson(Map json) => SyncState(
10 | userId: json['userId'] as String?,
11 | lastSync: const NullableDateTimeSerializer()
12 | .fromJson(json['lastSync'] as String?),
13 | );
14 |
15 | Map _$SyncStateToJson(SyncState instance) => {
16 | 'userId': instance.userId,
17 | 'lastSync': const NullableDateTimeSerializer().toJson(instance.lastSync),
18 | };
19 |
--------------------------------------------------------------------------------
/lib/components/responsive/animated_widget_size.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_manager/constants.dart';
3 |
4 | class AnimatedWidgetSize extends StatelessWidget {
5 | final Duration duration;
6 | final Curve curve;
7 | final Alignment alignment;
8 | final Widget child;
9 |
10 | const AnimatedWidgetSize({
11 | Key? key,
12 | this.duration = cTransitionDuration,
13 | this.curve = Curves.linear,
14 | this.alignment = Alignment.topLeft,
15 | required this.child,
16 | }) : super(key: key);
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | return AnimatedSize(
21 | duration: duration,
22 | curve: curve,
23 | alignment: alignment,
24 | child: child,
25 | );
26 | }
27 | }
--------------------------------------------------------------------------------
/lib/blocs/sync_bloc/sync_state.dart:
--------------------------------------------------------------------------------
1 | part of 'sync_bloc.dart';
2 |
3 | @JsonSerializable()
4 | class SyncState {
5 |
6 | final String? userId;
7 | @NullableDateTimeSerializer()
8 | final DateTime? lastSync;
9 |
10 | SyncState({
11 | required this.userId,
12 | required this.lastSync
13 | });
14 |
15 | static SyncState get initial => SyncState(
16 | userId: null,
17 | lastSync: null
18 | );
19 |
20 | SyncState copyWith({
21 | String? userId,
22 | DateTime? lastSync
23 | }){
24 | return SyncState(
25 | userId: userId ?? this.userId,
26 | lastSync: lastSync ?? this.lastSync
27 | );
28 | }
29 |
30 | factory SyncState.fromJson(Map json) => _$SyncStateFromJson(json);
31 | Map toJson() => _$SyncStateToJson(this);
32 | }
--------------------------------------------------------------------------------
/web/splash/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin:0;
3 | height:100%;
4 | background: #F0F2F5;
5 |
6 | background-size: 100% 100%;
7 | }
8 |
9 | .center {
10 | margin: 0;
11 | position: absolute;
12 | top: 50%;
13 | left: 50%;
14 | -ms-transform: translate(-50%, -50%);
15 | transform: translate(-50%, -50%);
16 | }
17 |
18 | .contain {
19 | display:block;
20 | width:100%; height:100%;
21 | object-fit: contain;
22 | }
23 |
24 | .stretch {
25 | display:block;
26 | width:100%; height:100%;
27 | }
28 |
29 | .cover {
30 | display:block;
31 | width:100%; height:100%;
32 | object-fit: cover;
33 | }
34 |
35 | @media (prefers-color-scheme: dark) {
36 | body {
37 | margin:0;
38 | height:100%;
39 | background: #1F1D2C;
40 |
41 | background-size: 100% 100%;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/lib/blocs/notifications_cubit/notifications_cubit.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'notifications_cubit.dart';
4 |
5 | // **************************************************************************
6 | // JsonSerializableGenerator
7 | // **************************************************************************
8 |
9 | NotificationsState _$NotificationsStateFromJson(Map json) =>
10 | NotificationsState(
11 | notifications: (json['notifications'] as List)
12 | .map((e) => NotificationData.fromJson(e as Map))
13 | .toList(),
14 | );
15 |
16 | Map _$NotificationsStateToJson(NotificationsState instance) =>
17 | {
18 | 'notifications': instance.notifications,
19 | };
20 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "task_manager",
9 | "request": "launch",
10 | "type": "dart"
11 | },
12 | {
13 | "name": "task_manager (profile mode)",
14 | "request": "launch",
15 | "type": "dart",
16 | "flutterMode": "profile"
17 | },
18 | {
19 | "name": "task_manager (release mode)",
20 | "request": "launch",
21 | "type": "dart",
22 | "flutterMode": "release"
23 | }
24 | ]
25 | }
--------------------------------------------------------------------------------
/lib/repositories/interceptors/unauthorized_interceptor.dart:
--------------------------------------------------------------------------------
1 | import 'package:dio/dio.dart';
2 | import 'package:task_manager/blocs/auth_bloc/auth_bloc.dart';
3 | import 'package:task_manager/models/auth_credentials.dart';
4 |
5 | class UnauthorizedInterceptor extends Interceptor {
6 |
7 | final AuthBloc authBloc;
8 | UnauthorizedInterceptor({required this.authBloc});
9 |
10 | @override
11 | void onError(DioError err, ErrorInterceptorHandler handler) async {
12 | try{
13 | final statusCode = err.response?.statusCode;
14 | if(statusCode == 401 || statusCode == 403){
15 |
16 | if(authBloc.state.status == AuthStatus.authenticated){
17 | authBloc.add(AuthCredentialsChanged(AuthCredentials.empty));
18 | }
19 | }
20 | }
21 | catch(_) {}
22 | return super.onError(err, handler);
23 | }
24 | }
--------------------------------------------------------------------------------
/lib/components/popup_menu_icon_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_manager/theme/theme.dart';
3 |
4 | class PopupMenuIconItem extends StatelessWidget{
5 |
6 | final IconData icon;
7 | final String text;
8 |
9 | const PopupMenuIconItem({
10 | Key? key,
11 | required this.icon,
12 | required this.text
13 | }) : super(key: key);
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | final customTheme = Theme.of(context).customTheme;
18 |
19 | return Row(
20 | children: [
21 | Icon(
22 | icon,
23 | color: customTheme.lightColor,
24 | ),
25 | const SizedBox(width: 12.0),
26 | Text(
27 | text,
28 | style: customTheme.lightTextStyle,
29 | maxLines: 1,
30 | )
31 | ],
32 | );
33 | }
34 | }
--------------------------------------------------------------------------------
/lib/models/user.dart:
--------------------------------------------------------------------------------
1 | import 'package:json_annotation/json_annotation.dart';
2 | import 'package:task_manager/models/serializers/datetime_serializer.dart';
3 |
4 | part 'user.g.dart';
5 |
6 | @JsonSerializable()
7 | class User{
8 | final String id;
9 | final String email;
10 | final String name;
11 | final String? imageUrl;
12 | @DateTimeSerializer()
13 | final DateTime createdAt;
14 | @DateTimeSerializer()
15 | final DateTime updatedAt;
16 | final bool verified;
17 |
18 | const User({
19 | required this.id,
20 | required this.email,
21 | required this.name,
22 | this.imageUrl,
23 | required this.createdAt,
24 | required this.updatedAt,
25 | required this.verified,
26 | });
27 |
28 | factory User.fromJson(Map json) => _$UserFromJson(json);
29 | Map toJson() => _$UserToJson(this);
30 | }
--------------------------------------------------------------------------------
/lib/blocs/task_bloc/task_event.dart:
--------------------------------------------------------------------------------
1 | part of 'task_bloc.dart';
2 |
3 | abstract class TaskEvent {}
4 |
5 | class TaskLoaded extends TaskEvent {}
6 |
7 | class TaskAdded extends TaskEvent {
8 | final Task task;
9 | TaskAdded(this.task);
10 | }
11 |
12 | class TaskUpdated extends TaskEvent {
13 | final Task task;
14 | TaskUpdated(this.task);
15 | }
16 |
17 | class TaskDeleted extends TaskEvent {
18 | final Task task;
19 | TaskDeleted(this.task);
20 | }
21 |
22 | class TaskUndoDeleted extends TaskEvent {
23 | final Task task;
24 | TaskUndoDeleted(this.task);
25 | }
26 |
27 | class TasksUpdated extends TaskEvent {
28 | final List tasks;
29 | TasksUpdated(this.tasks);
30 | }
31 |
32 | class TaskStateUpdated extends TaskEvent {
33 | final TaskState state;
34 | TaskStateUpdated(this.state);
35 | }
36 |
37 | class ScheduleTaskNotificationsRequested extends TaskEvent {}
--------------------------------------------------------------------------------
/lib/models/auth_credentials.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'auth_credentials.dart';
4 |
5 | // **************************************************************************
6 | // JsonSerializableGenerator
7 | // **************************************************************************
8 |
9 | AuthCredentials _$AuthCredentialsFromJson(Map json) =>
10 | AuthCredentials(
11 | refreshToken: json['refreshToken'] as String? ?? "",
12 | accessToken: json['accessToken'] as String? ?? "",
13 | passwordToken: json['passwordToken'] as String? ?? "",
14 | );
15 |
16 | Map _$AuthCredentialsToJson(AuthCredentials instance) =>
17 | {
18 | 'refreshToken': instance.refreshToken,
19 | 'accessToken': instance.accessToken,
20 | 'passwordToken': instance.passwordToken,
21 | };
22 |
--------------------------------------------------------------------------------
/lib/blocs/category_screen_bloc/category_screen_state.dart:
--------------------------------------------------------------------------------
1 | part of 'category_screen_bloc.dart';
2 |
3 | class CategoryScreenState {
4 | final String searchText;
5 | final TaskFilter activeFilter;
6 | final List items;
7 |
8 | CategoryScreenState({
9 | required this.searchText,
10 | required this.activeFilter,
11 | required this.items
12 | });
13 |
14 | static CategoryScreenState get initial => CategoryScreenState(
15 | searchText: "",
16 | activeFilter: TaskFilter.all,
17 | items: []
18 | );
19 |
20 | CategoryScreenState copyWith({
21 | String? searchText,
22 | TaskFilter? activeFilter,
23 | List? items
24 | }){
25 | return CategoryScreenState(
26 | searchText: searchText ?? this.searchText,
27 | activeFilter: activeFilter ?? this.activeFilter,
28 | items: items ?? this.items,
29 | );
30 | }
31 | }
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/models/serializers/datetime_serializer.dart:
--------------------------------------------------------------------------------
1 | import 'package:intl/intl.dart';
2 | import 'package:json_annotation/json_annotation.dart';
3 |
4 | class DateTimeSerializer implements JsonConverter {
5 | const DateTimeSerializer();
6 |
7 | @override
8 | DateTime fromJson(String dateUtc) => DateFormat("yyyy-MM-ddTHH:mm:ss.SSS").parse(dateUtc, true).toLocal();
9 |
10 | @override
11 | String toJson(DateTime localDate) => DateFormat("yyyy-MM-ddTHH:mm:ss.SSS").format(localDate.toUtc()) + "Z";
12 | }
13 |
14 | class NullableDateTimeSerializer implements JsonConverter {
15 | const NullableDateTimeSerializer();
16 |
17 | @override
18 | DateTime? fromJson(String? dateUtc) => dateUtc != null ? const DateTimeSerializer().fromJson(dateUtc) : null;
19 |
20 | @override
21 | String? toJson(DateTime? localDate) => localDate != null ? const DateTimeSerializer().toJson(localDate) : null;
22 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/lib/messaging/messaging_helper.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:bloc/bloc.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | abstract class MessagingHelper{
7 |
8 | static void autoCloseBlocs({
9 | required List blocs,
10 | Function()? onClosed
11 | }) async {
12 | await Future.any(
13 | blocs.map((bloc) => bloc.stream.first)
14 | )
15 | .timeout(const Duration(seconds: 10), onTimeout: () {
16 | throw TimeoutException("AutoCloseBlocs timeout");
17 | })
18 | .then((_){
19 | autoCloseBlocs(
20 | blocs: blocs,
21 | onClosed: onClosed
22 | );
23 | })
24 | .onError((error, _) {
25 | if(error is TimeoutException) {
26 | debugPrint("Auto closing all blocs...");
27 |
28 | for (BlocBase bloc in blocs) {
29 | bloc.close();
30 | }
31 | if(onClosed != null) onClosed();
32 | }
33 | });
34 | }
35 | }
--------------------------------------------------------------------------------
/lib/blocs/drifted_bloc/drifted_converters.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:drift/drift.dart';
4 |
5 | class DateTimeConverter extends TypeConverter {
6 | const DateTimeConverter();
7 |
8 | @override
9 | DateTime? mapToDart(int? fromDb) {
10 | if (fromDb == null) return null;
11 | return DateTime.fromMicrosecondsSinceEpoch(fromDb);
12 | }
13 |
14 | @override
15 | int? mapToSql(DateTime? value) {
16 | if (value == null) return null;
17 | return value.microsecondsSinceEpoch;
18 | }
19 | }
20 |
21 | class StateConverter extends TypeConverter