├── lib ├── config │ ├── config.dart │ ├── theme │ │ ├── theme.dart │ │ └── app_theme.dart │ └── routes │ │ ├── routes.dart │ │ ├── route_location.dart │ │ ├── routes_provider.dart │ │ └── app_routes.dart ├── data │ ├── models │ │ ├── models.dart │ │ └── task.dart │ ├── datasource │ │ ├── datasource.dart │ │ ├── task_datasource_provider.dart │ │ └── task_datasource.dart │ ├── data.dart │ └── repositories │ │ ├── repositories.dart │ │ ├── task_repositories.dart │ │ ├── task_repository_provider.dart │ │ └── task_repository_impl.dart ├── screens │ ├── screens.dart │ ├── create_task_screen.dart │ └── home_screen.dart ├── providers │ ├── task │ │ ├── task.dart │ │ ├── task_provider.dart │ │ ├── task_state.dart │ │ └── task_notifier.dart │ ├── providers.dart │ ├── date_provider.dart │ ├── time_provider.dart │ └── category_provider.dart ├── utils │ ├── utils.dart │ ├── extensions.dart │ ├── task_keys.dart │ ├── db_keys.dart │ ├── task_categories.dart │ ├── app_alerts.dart │ └── helpers.dart ├── main.dart ├── widgets │ ├── widgets.dart │ ├── circle_container.dart │ ├── common_container.dart │ ├── display_white_text.dart │ ├── common_text_field.dart │ ├── select_date_time.dart │ ├── select_category.dart │ ├── task_tile.dart │ ├── task_details.dart │ └── display_list_of_tasks.dart └── app │ └── todo_app.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 │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── RunnerTests │ └── RunnerTests.swift └── .gitignore ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── life4u │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle └── settings.gradle ├── README.md ├── .gitignore ├── test └── widget_test.dart ├── .metadata ├── analysis_options.yaml ├── pubspec.yaml └── pubspec.lock /lib/config/config.dart: -------------------------------------------------------------------------------- 1 | export 'theme/theme.dart'; 2 | -------------------------------------------------------------------------------- /lib/data/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'task.dart'; 2 | -------------------------------------------------------------------------------- /lib/config/theme/theme.dart: -------------------------------------------------------------------------------- 1 | export 'app_theme.dart'; 2 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/screens/screens.dart: -------------------------------------------------------------------------------- 1 | export 'home_screen.dart'; 2 | export 'create_task_screen.dart'; 3 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /lib/data/datasource/datasource.dart: -------------------------------------------------------------------------------- 1 | export 'task_datasource.dart'; 2 | export 'task_datasource_provider.dart'; 3 | -------------------------------------------------------------------------------- /lib/config/routes/routes.dart: -------------------------------------------------------------------------------- 1 | export 'app_routes.dart'; 2 | export 'route_location.dart'; 3 | export 'routes_provider.dart'; 4 | -------------------------------------------------------------------------------- /lib/providers/task/task.dart: -------------------------------------------------------------------------------- 1 | export 'task_notifier.dart'; 2 | export 'task_state.dart'; 3 | export 'task_provider.dart'; 4 | -------------------------------------------------------------------------------- /lib/data/data.dart: -------------------------------------------------------------------------------- 1 | export 'datasource/datasource.dart'; 2 | export 'models/models.dart'; 3 | export 'repositories/repositories.dart'; 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/data/repositories/repositories.dart: -------------------------------------------------------------------------------- 1 | export 'task_repositories.dart'; 2 | export 'task_repository_impl.dart'; 3 | export 'task_repository_provider.dart'; 4 | -------------------------------------------------------------------------------- /lib/providers/providers.dart: -------------------------------------------------------------------------------- 1 | export 'date_provider.dart'; 2 | export 'time_provider.dart'; 3 | export 'category_provider.dart'; 4 | export 'task/task.dart'; 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullahaqee/life4u/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullahaqee/life4u/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /lib/providers/date_provider.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:riverpod/riverpod.dart'; 3 | 4 | final dateProvider = StateProvider((ref) { 5 | return DateTime.now(); 6 | }); 7 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullahaqee/life4u/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullahaqee/life4u/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/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/Abdullahaqee/life4u/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullahaqee/life4u/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/Abdullahaqee/life4u/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /lib/utils/utils.dart: -------------------------------------------------------------------------------- 1 | export 'extensions.dart'; 2 | export 'task_categories.dart'; 3 | export 'helpers.dart'; 4 | export 'db_keys.dart'; 5 | export 'task_keys.dart'; 6 | export 'app_alerts.dart'; 7 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/example/life4u/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.life4u; 2 | 3 | import io.flutter.embedding.android.FlutterActivity; 4 | 5 | public class MainActivity extends FlutterActivity { 6 | } 7 | -------------------------------------------------------------------------------- /lib/providers/time_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:riverpod/riverpod.dart'; 3 | 4 | final timeProvider = StateProvider((ref) { 5 | return TimeOfDay.now(); 6 | }); 7 | -------------------------------------------------------------------------------- /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/providers/category_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:riverpod/riverpod.dart'; 2 | import '../utils/task_categories.dart'; 3 | 4 | final categoryProvider = StateProvider.autoDispose((ref) { 5 | return TaskCategories.others; 6 | }); 7 | -------------------------------------------------------------------------------- /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.5-all.zip 6 | -------------------------------------------------------------------------------- /lib/config/routes/route_location.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | @immutable 4 | class RouteLocation { 5 | const RouteLocation._(); 6 | 7 | static String get home => '/home'; 8 | static String get createTask => '/createTask'; 9 | } 10 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'app/todo_app.dart'; 4 | 5 | void main() { 6 | runApp( 7 | const ProviderScope( 8 | child: TodoApp(), 9 | ), 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /lib/data/datasource/task_datasource_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 2 | import 'package:life4u/data/datasource/task_datasource.dart'; 3 | 4 | final taskDatasourceProvider = Provider((ref) { 5 | return TaskDatasource(); 6 | }); 7 | -------------------------------------------------------------------------------- /lib/data/repositories/task_repositories.dart: -------------------------------------------------------------------------------- 1 | 2 | import '../models/task.dart'; 3 | 4 | abstract class TaskRepository { 5 | Future createTask(Task task); 6 | Future updateTask(Task task); 7 | Future deleteTask(Task task); 8 | Future> getAllTask(); 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/utils/extensions.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | extension BuildContextExtensions on BuildContext { 4 | ThemeData get _theme => Theme.of(this); 5 | TextTheme get textTheme => _theme.textTheme; 6 | ColorScheme get colorScheme => _theme.colorScheme; 7 | Size get deviceSize => MediaQuery.sizeOf(this); 8 | } 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'display_white_text.dart'; 2 | export 'common_container.dart'; 3 | export 'display_list_of_tasks.dart'; 4 | export 'task_tile.dart'; 5 | export 'task_details.dart'; 6 | export 'circle_container.dart'; 7 | export 'common_text_field.dart'; 8 | export 'select_date_time.dart'; 9 | export 'select_category.dart'; 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/utils/task_keys.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | @immutable 4 | class TaskKeys { 5 | const TaskKeys._(); 6 | static const String id = 'id'; 7 | static const String title = 'title'; 8 | static const String note = 'note'; 9 | static const String time = 'time'; 10 | static const String date = 'date'; 11 | static const String category = 'category'; 12 | static const String isCompleted = 'isCompleted'; 13 | } 14 | -------------------------------------------------------------------------------- /lib/config/routes/routes_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:go_router/go_router.dart'; 2 | import 'package:life4u/config/routes/route_location.dart'; 3 | import 'package:riverpod/riverpod.dart'; 4 | 5 | import 'app_routes.dart'; 6 | 7 | 8 | final routesProvider = Provider( 9 | (ref) { 10 | return GoRouter( 11 | initialLocation: RouteLocation.home, 12 | navigatorKey: navigationKey, 13 | routes: appRoutes, 14 | ); 15 | }, 16 | ); 17 | -------------------------------------------------------------------------------- /lib/providers/task/task_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:life4u/data/repositories/task_repository_provider.dart'; 2 | import 'package:life4u/providers/task/task_notifier.dart'; 3 | import 'package:life4u/providers/task/task_state.dart'; 4 | import 'package:riverpod/riverpod.dart'; 5 | 6 | 7 | final taskProvider = StateNotifierProvider((ref) { 8 | final repository = ref.watch(taskRepositoryProvider); 9 | return TaskNotifier(repository); 10 | }); 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/data/repositories/task_repository_provider.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:life4u/data/repositories/task_repositories.dart'; 3 | import 'package:life4u/data/repositories/task_repository_impl.dart'; 4 | import 'package:riverpod/riverpod.dart'; 5 | 6 | import '../datasource/task_datasource_provider.dart'; 7 | 8 | final taskRepositoryProvider = Provider((ref) { 9 | final datasource = ref.watch(taskDatasourceProvider); 10 | return TaskRepositoryImpl(datasource); 11 | }); 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/providers/task/task_state.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | import 'package:equatable/equatable.dart'; 4 | 5 | import '../../data/models/task.dart'; 6 | 7 | class TaskState extends Equatable { 8 | final List tasks; 9 | 10 | const TaskState(this.tasks); 11 | const TaskState.initial({ 12 | this.tasks = const [], 13 | }); 14 | 15 | TaskState copyWith({ 16 | List? tasks, 17 | }) { 18 | return TaskState( 19 | tasks ?? this.tasks, 20 | ); 21 | } 22 | 23 | @override 24 | List get props => [tasks]; 25 | } 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # life4u 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /lib/app/todo_app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | 4 | import '../config/routes/routes_provider.dart'; 5 | import '../config/theme/app_theme.dart'; 6 | 7 | 8 | class TodoApp extends ConsumerWidget { 9 | const TodoApp({super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context, WidgetRef ref) { 13 | final routeConfig = ref.watch(routesProvider); 14 | 15 | return MaterialApp.router( 16 | debugShowCheckedModeBanner: false, 17 | theme: AppTheme.light, 18 | routerConfig: routeConfig, 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/utils/db_keys.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:life4u/utils/task_keys.dart'; 3 | 4 | @immutable 5 | class DBKeys { 6 | const DBKeys._(); 7 | static const String dbName = 'task.db'; 8 | static const String dbTable = 'tasks'; 9 | static const String idColumn = TaskKeys.id; 10 | static const String titleColumn = TaskKeys.title; 11 | static const String noteColumn = TaskKeys.note; 12 | static const String timeColumn = TaskKeys.time; 13 | static const String dateColumn = TaskKeys.date; 14 | static const String categoryColumn = TaskKeys.category; 15 | static const String isCompletedColumn = TaskKeys.isCompleted; 16 | } 17 | -------------------------------------------------------------------------------- /lib/config/routes/app_routes.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:go_router/go_router.dart'; 3 | import 'package:life4u/config/routes/route_location.dart'; 4 | 5 | import '../../screens/create_task_screen.dart'; 6 | import '../../screens/home_screen.dart'; 7 | 8 | 9 | final navigationKey = GlobalKey(); 10 | final appRoutes = [ 11 | GoRoute( 12 | path: RouteLocation.home, 13 | parentNavigatorKey: navigationKey, 14 | builder: HomeScreen.builder, 15 | ), 16 | GoRoute( 17 | path: RouteLocation.createTask, 18 | parentNavigatorKey: navigationKey, 19 | builder: CreateTaskScreen.builder, 20 | ), 21 | ]; 22 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 10 | } 11 | } 12 | 13 | allprojects { 14 | repositories { 15 | google() 16 | mavenCentral() 17 | } 18 | } 19 | 20 | rootProject.buildDir = '../build' 21 | subprojects { 22 | project.buildDir = "${rootProject.buildDir}/${project.name}" 23 | } 24 | subprojects { 25 | project.evaluationDependsOn(':app') 26 | } 27 | 28 | tasks.register("clean", Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /lib/widgets/circle_container.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CircleContainer extends StatelessWidget { 4 | const CircleContainer({super.key, required this.color, this.child}); 5 | final Color color; 6 | final Widget? child; 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Container( 11 | padding: const EdgeInsets.all(9.0), 12 | decoration: BoxDecoration( 13 | shape: BoxShape.circle, 14 | color: color, 15 | border: Border.all( 16 | width: 2, 17 | color: color, 18 | ), 19 | ), 20 | child: Center( 21 | child: child, 22 | ), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/widgets/common_container.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:life4u/utils/extensions.dart'; 3 | 4 | class CommonContainer extends StatelessWidget { 5 | const CommonContainer({super.key, this.child, this.height}); 6 | final Widget? child; 7 | final double? height; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | final deviceSize = context.deviceSize; 12 | 13 | return Container( 14 | width: deviceSize.width, 15 | height: height, 16 | decoration: BoxDecoration( 17 | borderRadius: BorderRadius.circular(10), 18 | color: context.colorScheme.primaryContainer, 19 | ), 20 | child: child, 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/widgets/display_white_text.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:life4u/utils/extensions.dart'; 3 | 4 | class DisplayWhiteText extends StatelessWidget { 5 | const DisplayWhiteText( 6 | {super.key, required this.text, this.fontSize, this.fontWeight}); 7 | 8 | final String text; 9 | final double? fontSize; 10 | final FontWeight? fontWeight; 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Text( 15 | text, 16 | style: context.textTheme.headlineSmall?.copyWith( 17 | color: context.colorScheme.surface, 18 | fontWeight: fontWeight ?? FontWeight.bold, 19 | fontSize: fontSize, 20 | ), 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /.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 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Symbolication related 35 | app.*.symbols 36 | 37 | # Obfuscation related 38 | app.*.map.json 39 | 40 | # Android Studio will place build artifacts here 41 | /android/app/debug 42 | /android/app/profile 43 | /android/app/release 44 | -------------------------------------------------------------------------------- /lib/utils/task_categories.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | enum TaskCategories { 4 | education(Icons.school, Colors.blueGrey), 5 | health(Icons.favorite, Colors.orange), 6 | home(Icons.home, Colors.green), 7 | others(Icons.calendar_month, Colors.purple), 8 | personal(Icons.person, Colors.lightBlue), 9 | shopping(Icons.shopping_bag, Colors.pink), 10 | social(Icons.people, Colors.brown), 11 | travel(Icons.flight, Colors.deepOrange), 12 | work(Icons.work, Colors.amber); 13 | 14 | static TaskCategories stringToCategory(String name) { 15 | try { 16 | return TaskCategories.values.firstWhere( 17 | (category) => category.name == name, 18 | ); 19 | } catch (e) { 20 | return TaskCategories.others; 21 | } 22 | } 23 | 24 | final IconData icon; 25 | final Color color; 26 | const TaskCategories(this.icon, this.color); 27 | } 28 | -------------------------------------------------------------------------------- /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 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /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 | settings.ext.flutterSdkPath = flutterSdkPath() 10 | 11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 | 13 | repositories { 14 | google() 15 | mavenCentral() 16 | gradlePluginPortal() 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false 21 | } 22 | } 23 | 24 | plugins { 25 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 26 | id "com.android.application" version "7.3.0" apply false 27 | } 28 | 29 | include ":app" 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/data/repositories/task_repository_impl.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:life4u/data/repositories/task_repositories.dart'; 3 | 4 | import '../datasource/task_datasource.dart'; 5 | import '../models/task.dart'; 6 | 7 | class TaskRepositoryImpl implements TaskRepository { 8 | final TaskDatasource _datasource; 9 | 10 | TaskRepositoryImpl(this._datasource); 11 | 12 | @override 13 | Future createTask(Task task) async { 14 | try { 15 | await _datasource.addTask(task); 16 | } catch (e) { 17 | throw '$e'; 18 | } 19 | } 20 | 21 | @override 22 | Future deleteTask(Task task) async { 23 | try { 24 | await _datasource.deleteTask(task); 25 | } catch (e) { 26 | throw '$e'; 27 | } 28 | } 29 | 30 | @override 31 | Future> getAllTask() async { 32 | try { 33 | return await _datasource.getAllTasks(); 34 | } catch (e) { 35 | throw '$e'; 36 | } 37 | } 38 | 39 | @override 40 | Future updateTask(Task task) async { 41 | try { 42 | await _datasource.updateTask(task); 43 | } catch (e) { 44 | throw '$e'; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /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 | import 'package:life4u/app/todo_app.dart'; 11 | 12 | void main() { 13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 14 | // Build our app and trigger a frame. 15 | await tester.pumpWidget(const TodoApp()); 16 | 17 | // Verify that our counter starts at 0. 18 | expect(find.text('0'), findsOneWidget); 19 | expect(find.text('1'), findsNothing); 20 | 21 | // Tap the '+' icon and trigger a frame. 22 | await tester.tap(find.byIcon(Icons.add)); 23 | await tester.pump(); 24 | 25 | // Verify that our counter has incremented. 26 | expect(find.text('0'), findsNothing); 27 | expect(find.text('1'), findsOneWidget); 28 | }); 29 | } 30 | -------------------------------------------------------------------------------- /.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: "41456452f29d64e8deb623a3c927524bcf9f111b" 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: 41456452f29d64e8deb623a3c927524bcf9f111b 17 | base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b 18 | - platform: android 19 | create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b 20 | base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b 21 | - platform: ios 22 | create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b 23 | base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /lib/widgets/common_text_field.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gap/gap.dart'; 3 | import 'package:life4u/utils/extensions.dart'; 4 | 5 | class CommonTextField extends StatelessWidget { 6 | const CommonTextField({ 7 | super.key, 8 | required this.title, 9 | required this.hintText, 10 | this.controller, 11 | this.maxLines, 12 | this.suffixIcon, 13 | this.readOnly = false, 14 | }); 15 | 16 | final String title; 17 | final String hintText; 18 | final TextEditingController? controller; 19 | final int? maxLines; 20 | final Widget? suffixIcon; 21 | final bool readOnly; 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | return Column( 26 | crossAxisAlignment: CrossAxisAlignment.stretch, 27 | children: [ 28 | Text(title, style: context.textTheme.titleLarge), 29 | const Gap(10), 30 | TextField( 31 | readOnly: readOnly, 32 | controller: controller, 33 | onTapOutside: (event) { 34 | FocusManager.instance.primaryFocus?.unfocus(); 35 | }, 36 | maxLines: maxLines, 37 | decoration: InputDecoration( 38 | hintText: hintText, 39 | suffixIcon: suffixIcon, 40 | ), 41 | onChanged: (value) {}, 42 | ), 43 | ], 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/config/theme/app_theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flex_color_scheme/flex_color_scheme.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:google_fonts/google_fonts.dart'; 4 | 5 | @immutable 6 | class AppTheme { 7 | // private constructor 8 | const AppTheme._(); 9 | 10 | static final light = FlexThemeData.light( 11 | scheme: FlexScheme.indigo, 12 | surfaceMode: FlexSurfaceMode.highScaffoldLowSurfacesVariantDialog, 13 | blendLevel: 40, 14 | appBarStyle: FlexAppBarStyle.primary, 15 | appBarOpacity: 0.95, 16 | appBarElevation: 0, 17 | transparentStatusBar: true, 18 | tabBarStyle: FlexTabBarStyle.forBackground, 19 | tooltipsMatchBackground: true, 20 | swapColors: true, 21 | lightIsWhite: true, 22 | visualDensity: FlexColorScheme.comfortablePlatformDensity, 23 | fontFamily: GoogleFonts.dekko().fontFamily, 24 | subThemesData: const FlexSubThemesData( 25 | useTextTheme: true, 26 | fabUseShape: true, 27 | interactionEffects: true, 28 | bottomNavigationBarElevation: 0, 29 | bottomNavigationBarOpacity: 1, 30 | navigationBarOpacity: 1, 31 | navigationBarMutedUnselectedIcon: true, 32 | inputDecoratorIsFilled: true, 33 | inputDecoratorBorderType: FlexInputBorderType.outline, 34 | inputDecoratorUnfocusedHasBorder: true, 35 | blendOnColors: true, 36 | blendTextTheme: true, 37 | popupMenuOpacity: 0.95, 38 | ), 39 | ); 40 | } 41 | -------------------------------------------------------------------------------- /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 https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /lib/providers/task/task_notifier.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:life4u/providers/task/task_state.dart'; 3 | import 'package:riverpod/riverpod.dart'; 4 | 5 | import '../../data/models/task.dart'; 6 | import '../../data/repositories/task_repositories.dart'; 7 | 8 | 9 | class TaskNotifier extends StateNotifier { 10 | final TaskRepository _repository; 11 | TaskNotifier(this._repository) : super(const TaskState.initial()) { 12 | // load all task as soon the app opens or an instance of this class is created 13 | getTasks(); 14 | } 15 | 16 | Future createTask(Task task) async { 17 | try { 18 | await _repository.createTask(task); 19 | getTasks(); 20 | } catch (e) { 21 | debugPrint(e.toString()); 22 | } 23 | } 24 | 25 | Future deleteTask(Task task) async { 26 | try { 27 | await _repository.deleteTask(task); 28 | getTasks(); 29 | } catch (e) { 30 | debugPrint(e.toString()); 31 | } 32 | } 33 | 34 | Future updateTask(Task task) async { 35 | try { 36 | final isCompleted = !task.isCompleted; 37 | final updatedTask = task.copyWith(isCompleted: isCompleted); 38 | await _repository.updateTask(updatedTask); 39 | getTasks(); 40 | } catch (e) { 41 | debugPrint(e.toString()); 42 | } 43 | } 44 | 45 | void getTasks() async { 46 | try { 47 | final tasks = await _repository.getAllTask(); 48 | state = state.copyWith(tasks: tasks); 49 | } catch (e) { 50 | debugPrint(e.toString()); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/utils/app_alerts.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:go_router/go_router.dart'; 4 | import 'package:life4u/utils/extensions.dart'; 5 | 6 | import '../data/models/task.dart'; 7 | import '../providers/task/task_provider.dart'; 8 | 9 | 10 | class AppAlerts { 11 | AppAlerts._(); 12 | 13 | static displaySnackBar(BuildContext context, String message) { 14 | ScaffoldMessenger.of(context).showSnackBar( 15 | SnackBar( 16 | content: Text( 17 | message, 18 | style: context.textTheme.bodyLarge 19 | ?.copyWith(color: context.colorScheme.surface), 20 | ), 21 | backgroundColor: context.colorScheme.primary, 22 | ), 23 | ); 24 | } 25 | 26 | static Future showDeleteAlertDialog( 27 | BuildContext context, WidgetRef ref, Task task) async { 28 | Widget cancelButton = TextButton( 29 | onPressed: () => context.pop(), 30 | child: const Text('NO'), 31 | ); 32 | Widget deleteButton = TextButton( 33 | onPressed: () async { 34 | await ref.read(taskProvider.notifier).deleteTask(task).then((value) { 35 | AppAlerts.displaySnackBar(context, 'Task delete successfully'); 36 | context.pop(); 37 | }); 38 | }, 39 | child: const Text('YES'), 40 | ); 41 | AlertDialog alert = AlertDialog( 42 | title: const Text('Are you sure want to delete this task?'), 43 | actions: [deleteButton, cancelButton], 44 | ); 45 | await showDialog( 46 | context: context, 47 | builder: (ctx) { 48 | return alert; 49 | }); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /lib/utils/helpers.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:intl/intl.dart'; 4 | 5 | import '../data/models/task.dart'; 6 | import '../providers/date_provider.dart'; 7 | 8 | 9 | class Helpers { 10 | Helpers._(); 11 | 12 | static String timeToString(TimeOfDay time) { 13 | try { 14 | final DateTime now = DateTime.now(); 15 | final date = DateTime( 16 | now.year, 17 | now.month, 18 | now.day, 19 | time.hour, 20 | time.minute, 21 | ); 22 | return DateFormat.jm().format(date); 23 | } catch (e) { 24 | return '12:00 pm'; 25 | } 26 | } 27 | 28 | static bool isTaskFromSelectedDate(Task task, DateTime selectedDate) { 29 | final DateTime taskDate = _stringToDateTime(task.date); 30 | if (taskDate.year == selectedDate.year && 31 | taskDate.month == selectedDate.month && 32 | taskDate.day == selectedDate.day) { 33 | return true; 34 | } 35 | return false; 36 | } 37 | 38 | static DateTime _stringToDateTime(String dateString) { 39 | try { 40 | DateFormat format = DateFormat.yMMMd(); 41 | return format.parse(dateString); 42 | } catch (e) { 43 | return DateTime.now(); 44 | } 45 | } 46 | 47 | static void selectDate(BuildContext context, WidgetRef ref) async { 48 | final initialDate = ref.read(dateProvider); 49 | 50 | DateTime? pickedDate = await showDatePicker( 51 | context: context, 52 | initialDate: initialDate, 53 | firstDate: DateTime(2024), 54 | lastDate: DateTime(3000), 55 | ); 56 | if (pickedDate != null) { 57 | // when the user choose the date we asign it here on our date provider 58 | ref.read(dateProvider.notifier).state = pickedDate; 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Life4u 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | life4u 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /lib/widgets/select_date_time.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 4 | 5 | import 'package:gap/gap.dart'; 6 | import 'package:intl/intl.dart'; 7 | 8 | import '../providers/date_provider.dart'; 9 | import '../providers/time_provider.dart'; 10 | import '../utils/helpers.dart'; 11 | import 'common_text_field.dart'; 12 | 13 | class SelectDateTime extends ConsumerWidget { 14 | const SelectDateTime({super.key}); 15 | 16 | @override 17 | Widget build(BuildContext context, WidgetRef ref) { 18 | final date = ref.watch(dateProvider); 19 | final time = ref.watch(timeProvider); 20 | 21 | return Row( 22 | children: [ 23 | Expanded( 24 | child: CommonTextField( 25 | title: 'Date', 26 | hintText: DateFormat.yMMMd().format(date), 27 | readOnly: true, 28 | suffixIcon: IconButton( 29 | onPressed: () => Helpers.selectDate(context, ref), 30 | icon: const FaIcon(FontAwesomeIcons.calendar), 31 | ), 32 | ), 33 | ), 34 | const Gap(10), 35 | Expanded( 36 | child: CommonTextField( 37 | title: 'Time', 38 | hintText: Helpers.timeToString(time), 39 | readOnly: true, 40 | suffixIcon: IconButton( 41 | onPressed: () => _selectTime(context, ref), 42 | icon: const FaIcon(FontAwesomeIcons.clock), 43 | ), 44 | ), 45 | ), 46 | ], 47 | ); 48 | } 49 | 50 | void _selectTime(BuildContext context, WidgetRef ref) async { 51 | TimeOfDay? pickedTime = await showTimePicker( 52 | context: context, 53 | initialTime: TimeOfDay.now(), 54 | ); 55 | 56 | if (pickedTime != null) { 57 | ref.read(timeProvider.notifier).state = pickedTime; 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | android { 26 | namespace "com.example.life4u" 27 | compileSdkVersion flutter.compileSdkVersion 28 | ndkVersion flutter.ndkVersion 29 | 30 | compileOptions { 31 | sourceCompatibility JavaVersion.VERSION_1_8 32 | targetCompatibility JavaVersion.VERSION_1_8 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.life4u" 38 | // You can update the following values to match your application needs. 39 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 40 | minSdkVersion flutter.minSdkVersion 41 | targetSdkVersion flutter.targetSdkVersion 42 | versionCode flutterVersionCode.toInteger() 43 | versionName flutterVersionName 44 | } 45 | 46 | buildTypes { 47 | release { 48 | // TODO: Add your own signing config for the release build. 49 | // Signing with the debug keys for now, so `flutter run --release` works. 50 | signingConfig signingConfigs.debug 51 | } 52 | } 53 | } 54 | 55 | flutter { 56 | source '../..' 57 | } 58 | -------------------------------------------------------------------------------- /lib/widgets/select_category.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:gap/gap.dart'; 4 | import 'package:life4u/providers/category_provider.dart'; 5 | import 'package:life4u/utils/extensions.dart'; 6 | 7 | import '../utils/task_categories.dart'; 8 | import 'circle_container.dart'; 9 | 10 | 11 | class SelectCategory extends ConsumerWidget { 12 | const SelectCategory({super.key}); 13 | 14 | @override 15 | Widget build(BuildContext context, WidgetRef ref) { 16 | final selectedCategory = ref.watch(categoryProvider); 17 | final categories = TaskCategories.values.toList(); 18 | 19 | return SizedBox( 20 | height: 60, 21 | child: Row( 22 | children: [ 23 | Text('Category', style: context.textTheme.titleLarge), 24 | const Gap(10), 25 | Expanded( 26 | child: ListView.separated( 27 | physics: const AlwaysScrollableScrollPhysics(), 28 | scrollDirection: Axis.horizontal, 29 | itemBuilder: (ctx, index) { 30 | final category = categories[index]; 31 | 32 | return InkWell( 33 | onTap: () { 34 | ref.read(categoryProvider.notifier).state = category; 35 | }, 36 | borderRadius: BorderRadius.circular(30), 37 | child: CircleContainer( 38 | color: category.color.withOpacity(0.3), 39 | child: Icon( 40 | category.icon, 41 | color: category == selectedCategory 42 | ? context.colorScheme.primary 43 | : category.color, 44 | ), 45 | ), 46 | ); 47 | }, 48 | separatorBuilder: (ctx, index) => const Gap(8), 49 | itemCount: categories.length, 50 | ), 51 | ), 52 | ], 53 | ), 54 | ); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /lib/data/models/task.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | 3 | import '../../utils/task_categories.dart'; 4 | import '../../utils/task_keys.dart'; 5 | 6 | class Task extends Equatable { 7 | final int? id; 8 | final String title; 9 | final String note; 10 | final String time; 11 | final String date; 12 | final TaskCategories category; 13 | final bool isCompleted; 14 | 15 | const Task({ 16 | this.id, 17 | required this.title, 18 | required this.note, 19 | required this.time, 20 | required this.date, 21 | required this.category, 22 | required this.isCompleted, 23 | }); 24 | 25 | @override 26 | List get props { 27 | return [ 28 | id!, 29 | title, 30 | note, 31 | time, 32 | date, 33 | isCompleted, 34 | ]; 35 | } 36 | 37 | Map toJson() { 38 | return { 39 | TaskKeys.id: id, 40 | TaskKeys.title: title, 41 | TaskKeys.note: note, 42 | TaskKeys.time: time, 43 | TaskKeys.date: date, 44 | TaskKeys.category: category.name, 45 | TaskKeys.isCompleted: isCompleted ? 1 : 0, 46 | }; 47 | } 48 | 49 | factory Task.fromJson(Map map) { 50 | return Task( 51 | id: map[TaskKeys.id], 52 | title: map[TaskKeys.title], 53 | note: map[TaskKeys.note], 54 | time: map[TaskKeys.time], 55 | date: map[TaskKeys.date], 56 | category: TaskCategories.stringToCategory(map[TaskKeys.category]), 57 | isCompleted: map[TaskKeys.isCompleted] == 1 ? true : false, 58 | ); 59 | } 60 | 61 | Task copyWith({ 62 | int? id, 63 | String? title, 64 | String? note, 65 | String? time, 66 | String? date, 67 | TaskCategories? category, 68 | bool? isCompleted, 69 | }) { 70 | return Task( 71 | id: id ?? this.id, 72 | title: title ?? this.title, 73 | note: note ?? this.note, 74 | time: time ?? this.time, 75 | date: date ?? this.date, 76 | category: category ?? this.category, 77 | isCompleted: isCompleted ?? this.isCompleted, 78 | ); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /lib/widgets/task_tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gap/gap.dart'; 3 | import 'package:life4u/utils/extensions.dart'; 4 | 5 | import '../data/models/task.dart'; 6 | import 'circle_container.dart'; 7 | 8 | 9 | class TaskTile extends StatelessWidget { 10 | const TaskTile({super.key, required this.task, this.onCompleted}); 11 | final Task task; 12 | final Function(bool?)? onCompleted; 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | final style = context.textTheme; 17 | final double iconOpacity = task.isCompleted ? 0.3 : 0.5; 18 | final backgroundOpacity = task.isCompleted ? 0.1 : 0.3; 19 | final textDecoration = 20 | task.isCompleted ? TextDecoration.lineThrough : TextDecoration.none; 21 | final fontWeight = task.isCompleted ? FontWeight.normal : FontWeight.bold; 22 | 23 | return Padding( 24 | padding: const EdgeInsets.only(left: 16, top: 10, bottom: 10), 25 | child: Row( 26 | children: [ 27 | CircleContainer( 28 | color: task.category.color.withOpacity(backgroundOpacity), 29 | child: Icon( 30 | task.category.icon, 31 | color: task.category.color.withOpacity(iconOpacity), 32 | ), 33 | ), 34 | const Gap(16), 35 | Expanded( 36 | child: Column( 37 | crossAxisAlignment: CrossAxisAlignment.start, 38 | children: [ 39 | Text( 40 | task.title, 41 | style: style.titleMedium?.copyWith( 42 | decoration: textDecoration, 43 | fontSize: 20, 44 | fontWeight: fontWeight, 45 | ), 46 | ), 47 | Text( 48 | task.time, 49 | style: 50 | style.titleMedium?.copyWith(decoration: textDecoration), 51 | ), 52 | ], 53 | ), 54 | ), 55 | Checkbox( 56 | value: task.isCompleted, 57 | onChanged: onCompleted, 58 | ), 59 | ], 60 | ), 61 | ); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /lib/widgets/task_details.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gap/gap.dart'; 3 | import 'package:life4u/utils/extensions.dart'; 4 | 5 | import '../data/models/task.dart'; 6 | import 'circle_container.dart'; 7 | 8 | class TaskDetails extends StatelessWidget { 9 | const TaskDetails({super.key, required this.task}); 10 | final Task task; 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | final style = context.textTheme; 15 | 16 | return Padding( 17 | padding: const EdgeInsets.all(30), 18 | child: Column( 19 | children: [ 20 | CircleContainer( 21 | color: task.category.color.withOpacity(0.3), 22 | child: Icon( 23 | task.category.icon, 24 | color: task.category.color, 25 | ), 26 | ), 27 | const Gap(16), 28 | Text( 29 | task.title, 30 | style: style.titleMedium?.copyWith( 31 | fontWeight: FontWeight.bold, 32 | fontSize: 20, 33 | ), 34 | ), 35 | Text(task.time, style: style.titleMedium), 36 | const Gap(16), 37 | Visibility( 38 | visible: !task.isCompleted, 39 | child: Row( 40 | mainAxisAlignment: MainAxisAlignment.center, 41 | children: [ 42 | Text('task to be completed on ${task.date}'), 43 | Icon(Icons.check_box, color: task.category.color), 44 | ], 45 | ), 46 | ), 47 | const Gap(16), 48 | Divider(thickness: 1.5, color: task.category.color), 49 | const Gap(16), 50 | Text( 51 | task.note.isEmpty 52 | ? 'There is no additional note for this task' 53 | : task.note, 54 | ), 55 | const Gap(16), 56 | Visibility( 57 | visible: task.isCompleted, 58 | child: const Row( 59 | mainAxisAlignment: MainAxisAlignment.center, 60 | children: [ 61 | Text('task completed '), 62 | Icon(Icons.check_box, color: Colors.green), 63 | ], 64 | ), 65 | ), 66 | ], 67 | ), 68 | ); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/data/datasource/task_datasource.dart: -------------------------------------------------------------------------------- 1 | import 'package:path/path.dart'; 2 | import 'package:sqflite/sqflite.dart'; 3 | 4 | import '../../utils/db_keys.dart'; 5 | import '../models/task.dart'; 6 | 7 | 8 | class TaskDatasource { 9 | static final TaskDatasource _instace = TaskDatasource._(); 10 | factory TaskDatasource() => _instace; 11 | 12 | TaskDatasource._() { 13 | _initDB(); 14 | } 15 | 16 | static Database? _database; 17 | 18 | Future get database async { 19 | _database ??= await _initDB(); 20 | return _database!; 21 | } 22 | 23 | Future _initDB() async { 24 | final dbPath = await getDatabasesPath(); 25 | final path = join(dbPath, DBKeys.dbName); 26 | return openDatabase( 27 | path, 28 | version: 1, 29 | onCreate: _onCreate, 30 | ); 31 | } 32 | 33 | Future _onCreate(Database db, int version) async { 34 | await db.execute(''' 35 | CREATE TABLE ${DBKeys.dbTable}( 36 | ${DBKeys.idColumn} INTEGER PRIMARY KEY AUTOINCREMENT, 37 | ${DBKeys.titleColumn} TEXT, 38 | ${DBKeys.noteColumn} TEXT, 39 | ${DBKeys.dateColumn} TEXT, 40 | ${DBKeys.timeColumn} TEXT, 41 | ${DBKeys.categoryColumn} TEXT, 42 | ${DBKeys.isCompletedColumn} INTEGER 43 | ) 44 | '''); 45 | } 46 | 47 | Future addTask(Task task) async { 48 | final db = await database; 49 | return db.transaction((txn) async { 50 | return await txn.insert( 51 | DBKeys.dbTable, 52 | task.toJson(), 53 | conflictAlgorithm: ConflictAlgorithm.replace, 54 | ); 55 | }); 56 | } 57 | 58 | Future updateTask(Task task) async { 59 | final db = await database; 60 | return db.transaction((txn) async { 61 | return await txn.update( 62 | DBKeys.dbTable, 63 | task.toJson(), 64 | where: 'id = ?', 65 | whereArgs: [task.id], 66 | ); 67 | }); 68 | } 69 | 70 | Future deleteTask(Task task) async { 71 | final db = await database; 72 | return db.transaction((txn) async { 73 | return await txn.delete( 74 | DBKeys.dbTable, 75 | where: 'id = ?', 76 | whereArgs: [task.id], 77 | ); 78 | }); 79 | } 80 | 81 | Future> getAllTasks() async { 82 | final db = await database; 83 | final List> data = await db.query( 84 | DBKeys.dbTable, 85 | orderBy: "id DESC", 86 | ); 87 | return List.generate( 88 | data.length, 89 | (index) => Task.fromJson(data[index]), 90 | ); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /lib/widgets/display_list_of_tasks.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:life4u/utils/extensions.dart'; 4 | 5 | import '../data/models/task.dart'; 6 | import '../providers/task/task_provider.dart'; 7 | import '../utils/app_alerts.dart'; 8 | import 'common_container.dart'; 9 | import 'task_details.dart'; 10 | import 'task_tile.dart'; 11 | 12 | class DisplayListOfTask extends ConsumerWidget { 13 | const DisplayListOfTask({ 14 | super.key, 15 | required this.tasks, 16 | this.isCompletedTask = false, 17 | }); 18 | 19 | final List tasks; 20 | final bool isCompletedTask; 21 | 22 | @override 23 | Widget build(BuildContext context, WidgetRef ref) { 24 | final deviceSize = context.deviceSize; 25 | final height = 26 | isCompletedTask ? deviceSize.height * 0.25 : deviceSize.height * 0.3; 27 | 28 | final emptyTasksMessage = isCompletedTask 29 | ? 'There is no completed task yet' 30 | : 'There is no task todo!'; 31 | 32 | return CommonContainer( 33 | height: height, 34 | child: tasks.isEmpty 35 | ? Center( 36 | child: Text( 37 | emptyTasksMessage, 38 | style: context.textTheme.headlineSmall, 39 | ), 40 | ) 41 | : ListView.separated( 42 | shrinkWrap: true, 43 | itemCount: tasks.length, 44 | padding: EdgeInsets.zero, 45 | itemBuilder: (ctx, index) { 46 | final task = tasks[index]; 47 | return InkWell( 48 | onLongPress: () { 49 | // Todo-Delete Task 50 | AppAlerts.showDeleteAlertDialog(context, ref, task); 51 | }, 52 | onTap: () async { 53 | await showModalBottomSheet( 54 | context: context, 55 | builder: (ctx) { 56 | return TaskDetails(task: task); 57 | }); 58 | }, 59 | child: TaskTile( 60 | task: task, 61 | onCompleted: (value) async { 62 | await ref 63 | .read(taskProvider.notifier) 64 | .updateTask(task) 65 | .then((value) { 66 | AppAlerts.displaySnackBar( 67 | context, 68 | task.isCompleted 69 | ? 'Task incompleted' 70 | : 'Task completed', 71 | ); 72 | }); 73 | }, 74 | ), 75 | ); 76 | }, 77 | separatorBuilder: (BuildContext context, int index) { 78 | return const Divider(thickness: 1.5); 79 | }, 80 | ), 81 | ); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/screens/create_task_screen.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 5 | import 'package:gap/gap.dart'; 6 | import 'package:go_router/go_router.dart'; 7 | import 'package:intl/intl.dart'; 8 | 9 | import '../config/routes/route_location.dart'; 10 | import '../data/models/task.dart'; 11 | import '../providers/category_provider.dart'; 12 | import '../providers/date_provider.dart'; 13 | import '../providers/task/task_provider.dart'; 14 | import '../providers/time_provider.dart'; 15 | import '../utils/app_alerts.dart'; 16 | import '../utils/helpers.dart'; 17 | import '../widgets/common_text_field.dart'; 18 | import '../widgets/display_white_text.dart'; 19 | import '../widgets/select_category.dart'; 20 | import '../widgets/select_date_time.dart'; 21 | 22 | class CreateTaskScreen extends ConsumerStatefulWidget { 23 | static CreateTaskScreen builder(BuildContext context, GoRouterState state) => 24 | const CreateTaskScreen(); 25 | const CreateTaskScreen({super.key}); 26 | 27 | @override 28 | ConsumerState createState() => _CreateTaskScreenState(); 29 | } 30 | 31 | class _CreateTaskScreenState extends ConsumerState { 32 | final TextEditingController _titleController = TextEditingController(); 33 | final TextEditingController _noteController = TextEditingController(); 34 | 35 | @override 36 | void dispose() { 37 | _titleController.dispose(); 38 | _noteController.dispose(); 39 | super.dispose(); 40 | } 41 | 42 | @override 43 | Widget build(BuildContext context) { 44 | return Scaffold( 45 | appBar: AppBar( 46 | title: const DisplayWhiteText(text: 'Add New Task'), 47 | ), 48 | body: SafeArea( 49 | child: SingleChildScrollView( 50 | physics: const AlwaysScrollableScrollPhysics(), 51 | padding: const EdgeInsets.all(20.0), 52 | child: Column( 53 | crossAxisAlignment: CrossAxisAlignment.stretch, 54 | children: [ 55 | CommonTextField( 56 | title: 'Task Title', 57 | hintText: 'Task Title', 58 | controller: _titleController, 59 | ), 60 | const Gap(16), 61 | const SelectCategory(), 62 | const Gap(16), 63 | const SelectDateTime(), 64 | const Gap(16), 65 | CommonTextField( 66 | title: 'Note', 67 | hintText: 'Task Note', 68 | maxLines: 6, 69 | controller: _noteController, 70 | ), 71 | const Gap(60), 72 | ElevatedButton( 73 | onPressed: _createTask, 74 | child: const DisplayWhiteText(text: 'Save'), 75 | ), 76 | ], 77 | ), 78 | ), 79 | ), 80 | ); 81 | } 82 | 83 | void _createTask() async { 84 | final title = _titleController.text.trim(); 85 | final note = _noteController.text.trim(); 86 | final date = ref.watch(dateProvider); 87 | final time = ref.watch(timeProvider); 88 | final category = ref.watch(categoryProvider); 89 | 90 | if (title.isNotEmpty) { 91 | final task = Task( 92 | title: title, 93 | note: note, 94 | time: Helpers.timeToString(time), 95 | date: DateFormat.yMMMd().format(date), 96 | category: category, 97 | isCompleted: false, 98 | ); 99 | 100 | await ref.read(taskProvider.notifier).createTask(task).then((value) { 101 | AppAlerts.displaySnackBar(context, 'Task created Successfully'); 102 | context.go(RouteLocation.home); 103 | }); 104 | } else { 105 | AppAlerts.displaySnackBar(context, 'Task title cannot be empty'); 106 | } 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: life4u 2 | description: "A new Flutter project." 3 | # The following line prevents the package from being accidentally published to 4 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 5 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 6 | 7 | # The following defines the version and build number for your application. 8 | # A version number is three numbers separated by dots, like 1.2.43 9 | # followed by an optional build number separated by a +. 10 | # Both the version and the builder number may be overridden in flutter 11 | # build by specifying --build-name and --build-number, respectively. 12 | # In Android, build-name is used as versionName while build-number used as versionCode. 13 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 14 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. 15 | # Read more about iOS versioning at 16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 17 | # In Windows, build-name is used as the major, minor, and patch parts 18 | # of the product and file versions while build-number is used as the build suffix. 19 | version: 1.0.0+1 20 | 21 | environment: 22 | sdk: '>=3.2.6 <4.0.0' 23 | 24 | # Dependencies specify other packages that your package needs in order to work. 25 | # To automatically upgrade your package dependencies to the latest versions 26 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 27 | # dependencies can be manually updated by changing the version numbers below to 28 | # the latest version available on pub.dev. To see which dependencies have newer 29 | # versions available, run `flutter pub outdated`. 30 | dependencies: 31 | flutter: 32 | sdk: flutter 33 | 34 | 35 | # The following adds the Cupertino Icons font to your application. 36 | # Use with the CupertinoIcons class for iOS style icons. 37 | cupertino_icons: ^1.0.2 38 | gap: ^3.0.1 39 | intl: ^0.19.0 40 | riverpod: ^2.5.1 41 | go_router: ^13.2.0 42 | equatable: any 43 | flex_color_scheme: any 44 | flutter_riverpod: any 45 | path: any 46 | sqflite: any 47 | font_awesome_flutter: any 48 | google_fonts: ^5.1.0 49 | 50 | 51 | dev_dependencies: 52 | flutter_test: 53 | sdk: flutter 54 | 55 | # The "flutter_lints" package below contains a set of recommended lints to 56 | # encourage good coding practices. The lint set provided by the package is 57 | # activated in the `analysis_options.yaml` file located at the root of your 58 | # package. See that file for information about deactivating specific lint 59 | # rules and activating additional ones. 60 | flutter_lints: ^2.0.0 61 | 62 | # For information on the generic Dart part of this file, see the 63 | # following page: https://dart.dev/tools/pub/pubspec 64 | 65 | # The following section is specific to Flutter packages. 66 | flutter: 67 | 68 | # The following line ensures that the Material Icons font is 69 | # included with your application, so that you can use the icons in 70 | # the material Icons class. 71 | uses-material-design: true 72 | 73 | # To add assets to your application, add an assets section, like this: 74 | # assets: 75 | # - images/a_dot_burr.jpeg 76 | # - images/a_dot_ham.jpeg 77 | 78 | # An image asset can refer to one or more resolution-specific "variants", see 79 | # https://flutter.dev/assets-and-images/#resolution-aware 80 | 81 | # For details regarding adding assets from package dependencies, see 82 | # https://flutter.dev/assets-and-images/#from-packages 83 | 84 | # To add custom fonts to your application, add a fonts section here, 85 | # in this "flutter" section. Each entry in this list should have a 86 | # "family" key with the font family name, and a "fonts" key with a 87 | # list giving the asset and other descriptors for the font. For 88 | # example: 89 | # fonts: 90 | # - family: Schyler 91 | # fonts: 92 | # - asset: fonts/Schyler-Regular.ttf 93 | # - asset: fonts/Schyler-Italic.ttf 94 | # style: italic 95 | # - family: Trajan Pro 96 | # fonts: 97 | # - asset: fonts/TrajanPro.ttf 98 | # - asset: fonts/TrajanPro_Bold.ttf 99 | # weight: 700 100 | # 101 | # For details regarding fonts from package dependencies, 102 | # see https://flutter.dev/custom-fonts/#from-packages 103 | -------------------------------------------------------------------------------- /lib/screens/home_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:gap/gap.dart'; 4 | import 'package:go_router/go_router.dart'; 5 | import 'package:intl/intl.dart'; 6 | import 'package:life4u/utils/extensions.dart'; 7 | import '../config/routes/route_location.dart'; 8 | import '../data/models/task.dart'; 9 | import '../providers/date_provider.dart'; 10 | import '../providers/task/task_provider.dart'; 11 | import '../utils/helpers.dart'; 12 | import '../widgets/display_list_of_tasks.dart'; 13 | import '../widgets/display_white_text.dart'; 14 | 15 | class HomeScreen extends ConsumerWidget { 16 | static HomeScreen builder(BuildContext context, GoRouterState state) => 17 | const HomeScreen(); 18 | const HomeScreen({super.key}); 19 | 20 | @override 21 | Widget build(BuildContext context, WidgetRef ref) { 22 | final colors = context.colorScheme; 23 | final deviceSize = context.deviceSize; 24 | final taskState = ref.watch(taskProvider); 25 | final completedTasks = _completedTasks(taskState.tasks, ref); 26 | final incompletedTasks = _incompletedTasks(taskState.tasks, ref); 27 | final selectedDate = ref.watch(dateProvider); 28 | 29 | return Scaffold( 30 | body: Stack( 31 | children: [ 32 | Column( 33 | children: [ 34 | Container( 35 | height: deviceSize.height * 0.3, 36 | width: deviceSize.width, 37 | color: colors.primary, 38 | child: Column( 39 | mainAxisAlignment: MainAxisAlignment.center, 40 | children: [ 41 | InkWell( 42 | onTap: () => Helpers.selectDate(context, ref), 43 | child: DisplayWhiteText( 44 | text: DateFormat.yMMMd().format(selectedDate), 45 | fontSize: 20, 46 | fontWeight: FontWeight.normal, 47 | ), 48 | ), 49 | const DisplayWhiteText( 50 | text: 'My Todo List', 51 | fontSize: 40, 52 | ), 53 | ], 54 | ), 55 | ), 56 | ], 57 | ), 58 | Positioned( 59 | top: 130, 60 | left: 0, 61 | right: 0, 62 | child: SafeArea( 63 | child: SingleChildScrollView( 64 | physics: const AlwaysScrollableScrollPhysics(), 65 | padding: const EdgeInsets.all(20), 66 | child: Column( 67 | crossAxisAlignment: CrossAxisAlignment.stretch, 68 | children: [ 69 | DisplayListOfTask( 70 | tasks: incompletedTasks, 71 | ), 72 | const Gap(20), 73 | Text('Completed', style: context.textTheme.headlineMedium), 74 | const Gap(20), 75 | DisplayListOfTask( 76 | tasks: completedTasks, 77 | isCompletedTask: true, 78 | ), 79 | const Gap(20), 80 | ElevatedButton( 81 | onPressed: () => context.push(RouteLocation.createTask), 82 | child: const Padding( 83 | padding: EdgeInsets.all(8.0), 84 | child: DisplayWhiteText(text: 'Add New Task'), 85 | ), 86 | ), 87 | ], 88 | ), 89 | ), 90 | ), 91 | ), 92 | ], 93 | ), 94 | ); 95 | } 96 | 97 | List _completedTasks(List tasks, WidgetRef ref) { 98 | final selectedDate = ref.watch(dateProvider); 99 | final List filteredTasks = []; 100 | for (var task in tasks) { 101 | final isTaskDay = Helpers.isTaskFromSelectedDate(task, selectedDate); 102 | if (task.isCompleted && isTaskDay) { 103 | filteredTasks.add(task); 104 | } 105 | } 106 | return filteredTasks; 107 | } 108 | 109 | List _incompletedTasks(List tasks, WidgetRef ref) { 110 | final selectedDate = ref.watch(dateProvider); 111 | final List filteredTasks = []; 112 | for (var task in tasks) { 113 | final isTaskDay = Helpers.isTaskFromSelectedDate(task, selectedDate); 114 | // not completed tasks 115 | if (!task.isCompleted && isTaskDay) { 116 | filteredTasks.add(task); 117 | } 118 | } 119 | return filteredTasks; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "2.11.0" 12 | boolean_selector: 13 | dependency: transitive 14 | description: 15 | name: boolean_selector 16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.1.1" 20 | characters: 21 | dependency: transitive 22 | description: 23 | name: characters 24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "1.3.0" 28 | clock: 29 | dependency: transitive 30 | description: 31 | name: clock 32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.1.1" 36 | collection: 37 | dependency: transitive 38 | description: 39 | name: collection 40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.18.0" 44 | crypto: 45 | dependency: transitive 46 | description: 47 | name: crypto 48 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "3.0.3" 52 | cupertino_icons: 53 | dependency: "direct main" 54 | description: 55 | name: cupertino_icons 56 | sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.0.6" 60 | equatable: 61 | dependency: "direct main" 62 | description: 63 | name: equatable 64 | sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "2.0.5" 68 | fake_async: 69 | dependency: transitive 70 | description: 71 | name: fake_async 72 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "1.3.1" 76 | ffi: 77 | dependency: transitive 78 | description: 79 | name: ffi 80 | sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "2.1.0" 84 | flex_color_scheme: 85 | dependency: "direct main" 86 | description: 87 | name: flex_color_scheme 88 | sha256: "32914024a4f404d90ff449f58d279191675b28e7c08824046baf06826e99d984" 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "7.3.1" 92 | flex_seed_scheme: 93 | dependency: transitive 94 | description: 95 | name: flex_seed_scheme 96 | sha256: "29c12aba221eb8a368a119685371381f8035011d18de5ba277ad11d7dfb8657f" 97 | url: "https://pub.dev" 98 | source: hosted 99 | version: "1.4.0" 100 | flutter: 101 | dependency: "direct main" 102 | description: flutter 103 | source: sdk 104 | version: "0.0.0" 105 | flutter_lints: 106 | dependency: "direct dev" 107 | description: 108 | name: flutter_lints 109 | sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 110 | url: "https://pub.dev" 111 | source: hosted 112 | version: "2.0.3" 113 | flutter_riverpod: 114 | dependency: "direct main" 115 | description: 116 | name: flutter_riverpod 117 | sha256: "0f1974eff5bbe774bf1d870e406fc6f29e3d6f1c46bd9c58e7172ff68a785d7d" 118 | url: "https://pub.dev" 119 | source: hosted 120 | version: "2.5.1" 121 | flutter_test: 122 | dependency: "direct dev" 123 | description: flutter 124 | source: sdk 125 | version: "0.0.0" 126 | flutter_web_plugins: 127 | dependency: transitive 128 | description: flutter 129 | source: sdk 130 | version: "0.0.0" 131 | font_awesome_flutter: 132 | dependency: "direct main" 133 | description: 134 | name: font_awesome_flutter 135 | sha256: "275ff26905134bcb59417cf60ad979136f1f8257f2f449914b2c3e05bbb4cd6f" 136 | url: "https://pub.dev" 137 | source: hosted 138 | version: "10.7.0" 139 | gap: 140 | dependency: "direct main" 141 | description: 142 | name: gap 143 | sha256: f19387d4e32f849394758b91377f9153a1b41d79513ef7668c088c77dbc6955d 144 | url: "https://pub.dev" 145 | source: hosted 146 | version: "3.0.1" 147 | go_router: 148 | dependency: "direct main" 149 | description: 150 | name: go_router 151 | sha256: "170c46e237d6eb0e6e9f0e8b3f56101e14fb64f787016e42edd74c39cf8b176a" 152 | url: "https://pub.dev" 153 | source: hosted 154 | version: "13.2.0" 155 | google_fonts: 156 | dependency: "direct main" 157 | description: 158 | name: google_fonts 159 | sha256: e20ff62b158b96f392bfc8afe29dee1503c94fbea2cbe8186fd59b756b8ae982 160 | url: "https://pub.dev" 161 | source: hosted 162 | version: "5.1.0" 163 | http: 164 | dependency: transitive 165 | description: 166 | name: http 167 | sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba 168 | url: "https://pub.dev" 169 | source: hosted 170 | version: "1.2.0" 171 | http_parser: 172 | dependency: transitive 173 | description: 174 | name: http_parser 175 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 176 | url: "https://pub.dev" 177 | source: hosted 178 | version: "4.0.2" 179 | intl: 180 | dependency: "direct main" 181 | description: 182 | name: intl 183 | sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf 184 | url: "https://pub.dev" 185 | source: hosted 186 | version: "0.19.0" 187 | lints: 188 | dependency: transitive 189 | description: 190 | name: lints 191 | sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" 192 | url: "https://pub.dev" 193 | source: hosted 194 | version: "2.1.1" 195 | logging: 196 | dependency: transitive 197 | description: 198 | name: logging 199 | sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" 200 | url: "https://pub.dev" 201 | source: hosted 202 | version: "1.2.0" 203 | matcher: 204 | dependency: transitive 205 | description: 206 | name: matcher 207 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" 208 | url: "https://pub.dev" 209 | source: hosted 210 | version: "0.12.16" 211 | material_color_utilities: 212 | dependency: transitive 213 | description: 214 | name: material_color_utilities 215 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" 216 | url: "https://pub.dev" 217 | source: hosted 218 | version: "0.5.0" 219 | meta: 220 | dependency: transitive 221 | description: 222 | name: meta 223 | sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e 224 | url: "https://pub.dev" 225 | source: hosted 226 | version: "1.10.0" 227 | path: 228 | dependency: "direct main" 229 | description: 230 | name: path 231 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" 232 | url: "https://pub.dev" 233 | source: hosted 234 | version: "1.8.3" 235 | path_provider: 236 | dependency: transitive 237 | description: 238 | name: path_provider 239 | sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b 240 | url: "https://pub.dev" 241 | source: hosted 242 | version: "2.1.2" 243 | path_provider_android: 244 | dependency: transitive 245 | description: 246 | name: path_provider_android 247 | sha256: "477184d672607c0a3bf68fbbf601805f92ef79c82b64b4d6eb318cbca4c48668" 248 | url: "https://pub.dev" 249 | source: hosted 250 | version: "2.2.2" 251 | path_provider_foundation: 252 | dependency: transitive 253 | description: 254 | name: path_provider_foundation 255 | sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f" 256 | url: "https://pub.dev" 257 | source: hosted 258 | version: "2.3.2" 259 | path_provider_linux: 260 | dependency: transitive 261 | description: 262 | name: path_provider_linux 263 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 264 | url: "https://pub.dev" 265 | source: hosted 266 | version: "2.2.1" 267 | path_provider_platform_interface: 268 | dependency: transitive 269 | description: 270 | name: path_provider_platform_interface 271 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" 272 | url: "https://pub.dev" 273 | source: hosted 274 | version: "2.1.2" 275 | path_provider_windows: 276 | dependency: transitive 277 | description: 278 | name: path_provider_windows 279 | sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" 280 | url: "https://pub.dev" 281 | source: hosted 282 | version: "2.2.1" 283 | platform: 284 | dependency: transitive 285 | description: 286 | name: platform 287 | sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" 288 | url: "https://pub.dev" 289 | source: hosted 290 | version: "3.1.4" 291 | plugin_platform_interface: 292 | dependency: transitive 293 | description: 294 | name: plugin_platform_interface 295 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" 296 | url: "https://pub.dev" 297 | source: hosted 298 | version: "2.1.8" 299 | riverpod: 300 | dependency: "direct main" 301 | description: 302 | name: riverpod 303 | sha256: f21b32ffd26a36555e501b04f4a5dca43ed59e16343f1a30c13632b2351dfa4d 304 | url: "https://pub.dev" 305 | source: hosted 306 | version: "2.5.1" 307 | sky_engine: 308 | dependency: transitive 309 | description: flutter 310 | source: sdk 311 | version: "0.0.99" 312 | source_span: 313 | dependency: transitive 314 | description: 315 | name: source_span 316 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 317 | url: "https://pub.dev" 318 | source: hosted 319 | version: "1.10.0" 320 | sqflite: 321 | dependency: "direct main" 322 | description: 323 | name: sqflite 324 | sha256: a9016f495c927cb90557c909ff26a6d92d9bd54fc42ba92e19d4e79d61e798c6 325 | url: "https://pub.dev" 326 | source: hosted 327 | version: "2.3.2" 328 | sqflite_common: 329 | dependency: transitive 330 | description: 331 | name: sqflite_common 332 | sha256: "28d8c66baee4968519fb8bd6cdbedad982d6e53359091f0b74544a9f32ec72d5" 333 | url: "https://pub.dev" 334 | source: hosted 335 | version: "2.5.3" 336 | stack_trace: 337 | dependency: transitive 338 | description: 339 | name: stack_trace 340 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 341 | url: "https://pub.dev" 342 | source: hosted 343 | version: "1.11.1" 344 | state_notifier: 345 | dependency: transitive 346 | description: 347 | name: state_notifier 348 | sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb 349 | url: "https://pub.dev" 350 | source: hosted 351 | version: "1.0.0" 352 | stream_channel: 353 | dependency: transitive 354 | description: 355 | name: stream_channel 356 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 357 | url: "https://pub.dev" 358 | source: hosted 359 | version: "2.1.2" 360 | string_scanner: 361 | dependency: transitive 362 | description: 363 | name: string_scanner 364 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 365 | url: "https://pub.dev" 366 | source: hosted 367 | version: "1.2.0" 368 | synchronized: 369 | dependency: transitive 370 | description: 371 | name: synchronized 372 | sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" 373 | url: "https://pub.dev" 374 | source: hosted 375 | version: "3.1.0+1" 376 | term_glyph: 377 | dependency: transitive 378 | description: 379 | name: term_glyph 380 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 381 | url: "https://pub.dev" 382 | source: hosted 383 | version: "1.2.1" 384 | test_api: 385 | dependency: transitive 386 | description: 387 | name: test_api 388 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" 389 | url: "https://pub.dev" 390 | source: hosted 391 | version: "0.6.1" 392 | typed_data: 393 | dependency: transitive 394 | description: 395 | name: typed_data 396 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 397 | url: "https://pub.dev" 398 | source: hosted 399 | version: "1.3.2" 400 | vector_math: 401 | dependency: transitive 402 | description: 403 | name: vector_math 404 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 405 | url: "https://pub.dev" 406 | source: hosted 407 | version: "2.1.4" 408 | web: 409 | dependency: transitive 410 | description: 411 | name: web 412 | sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 413 | url: "https://pub.dev" 414 | source: hosted 415 | version: "0.3.0" 416 | win32: 417 | dependency: transitive 418 | description: 419 | name: win32 420 | sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" 421 | url: "https://pub.dev" 422 | source: hosted 423 | version: "5.2.0" 424 | xdg_directories: 425 | dependency: transitive 426 | description: 427 | name: xdg_directories 428 | sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d 429 | url: "https://pub.dev" 430 | source: hosted 431 | version: "1.0.4" 432 | sdks: 433 | dart: ">=3.2.6 <4.0.0" 434 | flutter: ">=3.13.0" 435 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 25 | remoteInfo = Runner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXCopyFilesBuildPhase section */ 30 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 31 | isa = PBXCopyFilesBuildPhase; 32 | buildActionMask = 2147483647; 33 | dstPath = ""; 34 | dstSubfolderSpec = 10; 35 | files = ( 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 47 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 57 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 78 | ); 79 | name = Flutter; 80 | sourceTree = ""; 81 | }; 82 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 86 | ); 87 | path = RunnerTests; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 331C8082294A63A400263BE5 /* RunnerTests */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 97C146EF1CF9000F007C117D /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 97C146EE1CF9000F007C117D /* Runner.app */, 104 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 113 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 114 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 115 | 97C147021CF9000F007C117D /* Info.plist */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 119 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 120 | ); 121 | path = Runner; 122 | sourceTree = ""; 123 | }; 124 | /* End PBXGroup section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 130 | buildPhases = ( 131 | 331C807D294A63A400263BE5 /* Sources */, 132 | 331C807E294A63A400263BE5 /* Frameworks */, 133 | 331C807F294A63A400263BE5 /* Resources */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 139 | ); 140 | name = RunnerTests; 141 | productName = RunnerTests; 142 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 143 | productType = "com.apple.product-type.bundle.unit-test"; 144 | }; 145 | 97C146ED1CF9000F007C117D /* Runner */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 148 | buildPhases = ( 149 | 9740EEB61CF901F6004384FC /* Run Script */, 150 | 97C146EA1CF9000F007C117D /* Sources */, 151 | 97C146EB1CF9000F007C117D /* Frameworks */, 152 | 97C146EC1CF9000F007C117D /* Resources */, 153 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 154 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 155 | ); 156 | buildRules = ( 157 | ); 158 | dependencies = ( 159 | ); 160 | name = Runner; 161 | productName = Runner; 162 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 163 | productType = "com.apple.product-type.application"; 164 | }; 165 | /* End PBXNativeTarget section */ 166 | 167 | /* Begin PBXProject section */ 168 | 97C146E61CF9000F007C117D /* Project object */ = { 169 | isa = PBXProject; 170 | attributes = { 171 | BuildIndependentTargetsInParallel = YES; 172 | LastUpgradeCheck = 1430; 173 | ORGANIZATIONNAME = ""; 174 | TargetAttributes = { 175 | 331C8080294A63A400263BE5 = { 176 | CreatedOnToolsVersion = 14.0; 177 | TestTargetID = 97C146ED1CF9000F007C117D; 178 | }; 179 | 97C146ED1CF9000F007C117D = { 180 | CreatedOnToolsVersion = 7.3.1; 181 | LastSwiftMigration = 1100; 182 | }; 183 | }; 184 | }; 185 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 186 | compatibilityVersion = "Xcode 9.3"; 187 | developmentRegion = en; 188 | hasScannedForEncodings = 0; 189 | knownRegions = ( 190 | en, 191 | Base, 192 | ); 193 | mainGroup = 97C146E51CF9000F007C117D; 194 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 195 | projectDirPath = ""; 196 | projectRoot = ""; 197 | targets = ( 198 | 97C146ED1CF9000F007C117D /* Runner */, 199 | 331C8080294A63A400263BE5 /* RunnerTests */, 200 | ); 201 | }; 202 | /* End PBXProject section */ 203 | 204 | /* Begin PBXResourcesBuildPhase section */ 205 | 331C807F294A63A400263BE5 /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | 97C146EC1CF9000F007C117D /* Resources */ = { 213 | isa = PBXResourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 217 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 218 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 219 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | }; 223 | /* End PBXResourcesBuildPhase section */ 224 | 225 | /* Begin PBXShellScriptBuildPhase section */ 226 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 227 | isa = PBXShellScriptBuildPhase; 228 | alwaysOutOfDate = 1; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | ); 232 | inputPaths = ( 233 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 234 | ); 235 | name = "Thin Binary"; 236 | outputPaths = ( 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | shellPath = /bin/sh; 240 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 241 | }; 242 | 9740EEB61CF901F6004384FC /* Run Script */ = { 243 | isa = PBXShellScriptBuildPhase; 244 | alwaysOutOfDate = 1; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | ); 248 | inputPaths = ( 249 | ); 250 | name = "Run Script"; 251 | outputPaths = ( 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | shellPath = /bin/sh; 255 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 256 | }; 257 | /* End PBXShellScriptBuildPhase section */ 258 | 259 | /* Begin PBXSourcesBuildPhase section */ 260 | 331C807D294A63A400263BE5 /* Sources */ = { 261 | isa = PBXSourcesBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | 97C146EA1CF9000F007C117D /* Sources */ = { 269 | isa = PBXSourcesBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 273 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | /* End PBXSourcesBuildPhase section */ 278 | 279 | /* Begin PBXTargetDependency section */ 280 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 281 | isa = PBXTargetDependency; 282 | target = 97C146ED1CF9000F007C117D /* Runner */; 283 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 284 | }; 285 | /* End PBXTargetDependency section */ 286 | 287 | /* Begin PBXVariantGroup section */ 288 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 289 | isa = PBXVariantGroup; 290 | children = ( 291 | 97C146FB1CF9000F007C117D /* Base */, 292 | ); 293 | name = Main.storyboard; 294 | sourceTree = ""; 295 | }; 296 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 297 | isa = PBXVariantGroup; 298 | children = ( 299 | 97C147001CF9000F007C117D /* Base */, 300 | ); 301 | name = LaunchScreen.storyboard; 302 | sourceTree = ""; 303 | }; 304 | /* End PBXVariantGroup section */ 305 | 306 | /* Begin XCBuildConfiguration section */ 307 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ALWAYS_SEARCH_USER_PATHS = NO; 311 | CLANG_ANALYZER_NONNULL = YES; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INFINITE_RECURSION = YES; 325 | CLANG_WARN_INT_CONVERSION = YES; 326 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 328 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 331 | CLANG_WARN_STRICT_PROTOTYPES = YES; 332 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 333 | CLANG_WARN_UNREACHABLE_CODE = YES; 334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 336 | COPY_PHASE_STRIP = NO; 337 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 338 | ENABLE_NS_ASSERTIONS = NO; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | GCC_C_LANGUAGE_STANDARD = gnu99; 341 | GCC_NO_COMMON_BLOCKS = YES; 342 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 343 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 344 | GCC_WARN_UNDECLARED_SELECTOR = YES; 345 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 346 | GCC_WARN_UNUSED_FUNCTION = YES; 347 | GCC_WARN_UNUSED_VARIABLE = YES; 348 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 349 | MTL_ENABLE_DEBUG_INFO = NO; 350 | SDKROOT = iphoneos; 351 | SUPPORTED_PLATFORMS = iphoneos; 352 | TARGETED_DEVICE_FAMILY = "1,2"; 353 | VALIDATE_PRODUCT = YES; 354 | }; 355 | name = Profile; 356 | }; 357 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 358 | isa = XCBuildConfiguration; 359 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 360 | buildSettings = { 361 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 362 | CLANG_ENABLE_MODULES = YES; 363 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 364 | ENABLE_BITCODE = NO; 365 | INFOPLIST_FILE = Runner/Info.plist; 366 | LD_RUNPATH_SEARCH_PATHS = ( 367 | "$(inherited)", 368 | "@executable_path/Frameworks", 369 | ); 370 | PRODUCT_BUNDLE_IDENTIFIER = com.example.life4u; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 373 | SWIFT_VERSION = 5.0; 374 | VERSIONING_SYSTEM = "apple-generic"; 375 | }; 376 | name = Profile; 377 | }; 378 | 331C8088294A63A400263BE5 /* Debug */ = { 379 | isa = XCBuildConfiguration; 380 | baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */; 381 | buildSettings = { 382 | BUNDLE_LOADER = "$(TEST_HOST)"; 383 | CODE_SIGN_STYLE = Automatic; 384 | CURRENT_PROJECT_VERSION = 1; 385 | GENERATE_INFOPLIST_FILE = YES; 386 | MARKETING_VERSION = 1.0; 387 | PRODUCT_BUNDLE_IDENTIFIER = com.example.life4u.RunnerTests; 388 | PRODUCT_NAME = "$(TARGET_NAME)"; 389 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 390 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 391 | SWIFT_VERSION = 5.0; 392 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 393 | }; 394 | name = Debug; 395 | }; 396 | 331C8089294A63A400263BE5 /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */; 399 | buildSettings = { 400 | BUNDLE_LOADER = "$(TEST_HOST)"; 401 | CODE_SIGN_STYLE = Automatic; 402 | CURRENT_PROJECT_VERSION = 1; 403 | GENERATE_INFOPLIST_FILE = YES; 404 | MARKETING_VERSION = 1.0; 405 | PRODUCT_BUNDLE_IDENTIFIER = com.example.life4u.RunnerTests; 406 | PRODUCT_NAME = "$(TARGET_NAME)"; 407 | SWIFT_VERSION = 5.0; 408 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 409 | }; 410 | name = Release; 411 | }; 412 | 331C808A294A63A400263BE5 /* Profile */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */; 415 | buildSettings = { 416 | BUNDLE_LOADER = "$(TEST_HOST)"; 417 | CODE_SIGN_STYLE = Automatic; 418 | CURRENT_PROJECT_VERSION = 1; 419 | GENERATE_INFOPLIST_FILE = YES; 420 | MARKETING_VERSION = 1.0; 421 | PRODUCT_BUNDLE_IDENTIFIER = com.example.life4u.RunnerTests; 422 | PRODUCT_NAME = "$(TARGET_NAME)"; 423 | SWIFT_VERSION = 5.0; 424 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 425 | }; 426 | name = Profile; 427 | }; 428 | 97C147031CF9000F007C117D /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ALWAYS_SEARCH_USER_PATHS = NO; 432 | CLANG_ANALYZER_NONNULL = YES; 433 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 434 | CLANG_CXX_LIBRARY = "libc++"; 435 | CLANG_ENABLE_MODULES = YES; 436 | CLANG_ENABLE_OBJC_ARC = YES; 437 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 438 | CLANG_WARN_BOOL_CONVERSION = YES; 439 | CLANG_WARN_COMMA = YES; 440 | CLANG_WARN_CONSTANT_CONVERSION = YES; 441 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 443 | CLANG_WARN_EMPTY_BODY = YES; 444 | CLANG_WARN_ENUM_CONVERSION = YES; 445 | CLANG_WARN_INFINITE_RECURSION = YES; 446 | CLANG_WARN_INT_CONVERSION = YES; 447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 449 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 451 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 452 | CLANG_WARN_STRICT_PROTOTYPES = YES; 453 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 454 | CLANG_WARN_UNREACHABLE_CODE = YES; 455 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 457 | COPY_PHASE_STRIP = NO; 458 | DEBUG_INFORMATION_FORMAT = dwarf; 459 | ENABLE_STRICT_OBJC_MSGSEND = YES; 460 | ENABLE_TESTABILITY = YES; 461 | GCC_C_LANGUAGE_STANDARD = gnu99; 462 | GCC_DYNAMIC_NO_PIC = NO; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_OPTIMIZATION_LEVEL = 0; 465 | GCC_PREPROCESSOR_DEFINITIONS = ( 466 | "DEBUG=1", 467 | "$(inherited)", 468 | ); 469 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 470 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 471 | GCC_WARN_UNDECLARED_SELECTOR = YES; 472 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 473 | GCC_WARN_UNUSED_FUNCTION = YES; 474 | GCC_WARN_UNUSED_VARIABLE = YES; 475 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 476 | MTL_ENABLE_DEBUG_INFO = YES; 477 | ONLY_ACTIVE_ARCH = YES; 478 | SDKROOT = iphoneos; 479 | TARGETED_DEVICE_FAMILY = "1,2"; 480 | }; 481 | name = Debug; 482 | }; 483 | 97C147041CF9000F007C117D /* Release */ = { 484 | isa = XCBuildConfiguration; 485 | buildSettings = { 486 | ALWAYS_SEARCH_USER_PATHS = NO; 487 | CLANG_ANALYZER_NONNULL = YES; 488 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 489 | CLANG_CXX_LIBRARY = "libc++"; 490 | CLANG_ENABLE_MODULES = YES; 491 | CLANG_ENABLE_OBJC_ARC = YES; 492 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 493 | CLANG_WARN_BOOL_CONVERSION = YES; 494 | CLANG_WARN_COMMA = YES; 495 | CLANG_WARN_CONSTANT_CONVERSION = YES; 496 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 497 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 498 | CLANG_WARN_EMPTY_BODY = YES; 499 | CLANG_WARN_ENUM_CONVERSION = YES; 500 | CLANG_WARN_INFINITE_RECURSION = YES; 501 | CLANG_WARN_INT_CONVERSION = YES; 502 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 503 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 504 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 505 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 506 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 507 | CLANG_WARN_STRICT_PROTOTYPES = YES; 508 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 509 | CLANG_WARN_UNREACHABLE_CODE = YES; 510 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 511 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 512 | COPY_PHASE_STRIP = NO; 513 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 514 | ENABLE_NS_ASSERTIONS = NO; 515 | ENABLE_STRICT_OBJC_MSGSEND = YES; 516 | GCC_C_LANGUAGE_STANDARD = gnu99; 517 | GCC_NO_COMMON_BLOCKS = YES; 518 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 519 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 520 | GCC_WARN_UNDECLARED_SELECTOR = YES; 521 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 522 | GCC_WARN_UNUSED_FUNCTION = YES; 523 | GCC_WARN_UNUSED_VARIABLE = YES; 524 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 525 | MTL_ENABLE_DEBUG_INFO = NO; 526 | SDKROOT = iphoneos; 527 | SUPPORTED_PLATFORMS = iphoneos; 528 | SWIFT_COMPILATION_MODE = wholemodule; 529 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 530 | TARGETED_DEVICE_FAMILY = "1,2"; 531 | VALIDATE_PRODUCT = YES; 532 | }; 533 | name = Release; 534 | }; 535 | 97C147061CF9000F007C117D /* Debug */ = { 536 | isa = XCBuildConfiguration; 537 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 538 | buildSettings = { 539 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 540 | CLANG_ENABLE_MODULES = YES; 541 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 542 | ENABLE_BITCODE = NO; 543 | INFOPLIST_FILE = Runner/Info.plist; 544 | LD_RUNPATH_SEARCH_PATHS = ( 545 | "$(inherited)", 546 | "@executable_path/Frameworks", 547 | ); 548 | PRODUCT_BUNDLE_IDENTIFIER = com.example.life4u; 549 | PRODUCT_NAME = "$(TARGET_NAME)"; 550 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 551 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 552 | SWIFT_VERSION = 5.0; 553 | VERSIONING_SYSTEM = "apple-generic"; 554 | }; 555 | name = Debug; 556 | }; 557 | 97C147071CF9000F007C117D /* Release */ = { 558 | isa = XCBuildConfiguration; 559 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 560 | buildSettings = { 561 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 562 | CLANG_ENABLE_MODULES = YES; 563 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 564 | ENABLE_BITCODE = NO; 565 | INFOPLIST_FILE = Runner/Info.plist; 566 | LD_RUNPATH_SEARCH_PATHS = ( 567 | "$(inherited)", 568 | "@executable_path/Frameworks", 569 | ); 570 | PRODUCT_BUNDLE_IDENTIFIER = com.example.life4u; 571 | PRODUCT_NAME = "$(TARGET_NAME)"; 572 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 573 | SWIFT_VERSION = 5.0; 574 | VERSIONING_SYSTEM = "apple-generic"; 575 | }; 576 | name = Release; 577 | }; 578 | /* End XCBuildConfiguration section */ 579 | 580 | /* Begin XCConfigurationList section */ 581 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 582 | isa = XCConfigurationList; 583 | buildConfigurations = ( 584 | 331C8088294A63A400263BE5 /* Debug */, 585 | 331C8089294A63A400263BE5 /* Release */, 586 | 331C808A294A63A400263BE5 /* Profile */, 587 | ); 588 | defaultConfigurationIsVisible = 0; 589 | defaultConfigurationName = Release; 590 | }; 591 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 592 | isa = XCConfigurationList; 593 | buildConfigurations = ( 594 | 97C147031CF9000F007C117D /* Debug */, 595 | 97C147041CF9000F007C117D /* Release */, 596 | 249021D3217E4FDB00AE95B9 /* Profile */, 597 | ); 598 | defaultConfigurationIsVisible = 0; 599 | defaultConfigurationName = Release; 600 | }; 601 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 602 | isa = XCConfigurationList; 603 | buildConfigurations = ( 604 | 97C147061CF9000F007C117D /* Debug */, 605 | 97C147071CF9000F007C117D /* Release */, 606 | 249021D4217E4FDB00AE95B9 /* Profile */, 607 | ); 608 | defaultConfigurationIsVisible = 0; 609 | defaultConfigurationName = Release; 610 | }; 611 | /* End XCConfigurationList section */ 612 | }; 613 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 614 | } 615 | --------------------------------------------------------------------------------