diff --git a/.fvmrc b/.fvmrc
deleted file mode 100644
index 4cac08f7..00000000
--- a/.fvmrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "flutter": "3.29.2"
-}
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
deleted file mode 100644
index 5da7b205..00000000
--- a/.github/ISSUE_TEMPLATE/bug_report.yaml
+++ /dev/null
@@ -1,72 +0,0 @@
-name: Bug Report 🐛
-description: Report a bug
-labels: ["bug"]
-body:
- - type: markdown
- attributes:
- value: |
- **Bug Report 🐛**
-
- Please fill out the sections below to help everyone identify and fix the bug.
-
- - type: textarea
- id: description
- attributes:
- label: Describe your issue
- placeholder: Provide a clear and concise description of the bug.
- validations:
- required: true
-
- - type: textarea
- id: steps
- attributes:
- label: Steps to reproduce
- placeholder: |
- 1. Go to '...'
- 2. Click on '....'
- 3. Scroll down to '....'
- 4. See error
- validations:
- required: true
-
- - type: textarea
- id: expected
- attributes:
- label: What was the expected result?
- placeholder: Provide a clear and concise description of what you expected to happen.
-
- - type: textarea
- id: screenshots
- attributes:
- label: Put here any screenshots or videos (optional)
-
- - type: textarea
- id: contact
- attributes:
- label: How can we contact you (optional)
- placeholder: Leave your slack for clarifications or updates.
- validations:
- required: false
-
- - type: dropdown
- id: assign
- attributes:
- label: "Would you like to work on this issue?"
- options:
- - "Yes"
- - "No"
-
- - type: checkboxes
- id: terms
- attributes:
- label: "By submitting this issue, I have confirmed that:"
- options:
- - label: I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
- required: true
-
- - type: markdown
- attributes:
- value: |
- **Thank you for reporting this issue!**
-
- Your contribution is crucial, and we will investigate the bug as soon as possible. We appreciate your effort in improving the project.
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
deleted file mode 100644
index c73d60e1..00000000
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-blank_issues_enabled: true
-contact_links:
- - name: Questions
- url: https://rhccgsoc15.slack.com/join/shared_invite/zt-2a4ankwic-~HR0g1yTtetDWzGNAW3tDA#/shared-invite/email
- about: You can join the discussions on Slack .
- - name: GSoC
- url: https://ccextractor.org/docs/ideas_page_for_summer_of_code_2024/
- about: You can find more information about the project on the CCextractor website.
-
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/feature.yaml b/.github/ISSUE_TEMPLATE/feature.yaml
deleted file mode 100644
index 04bc2ff7..00000000
--- a/.github/ISSUE_TEMPLATE/feature.yaml
+++ /dev/null
@@ -1,61 +0,0 @@
-name: Feature Request 🚀
-description: Suggest an idea for this project
-labels: [enhancement]
-body:
- - type: markdown
- attributes:
- value: |
- Please fill out the sections below to help everyone identify the issue
- - type: textarea
- id: description
- attributes:
- label: Describe your improvement idea or feature request
- placeholder: A clear and concise description of what the idea or feature is.
- validations:
- required: true
-
- - type: textarea
- id: steps
- attributes:
- label: How would you like to see it implemented?
- placeholder: |
- 1. Go to '...'
- 2. Click on '....'
- 3. Scroll down to '....'
- 4. See improvement
- validations:
- required: true
- - type: textarea
- id: screenshots
- attributes:
- label: Put here any screenshots or videos (optional)
- placeholder: |
- If you have any screenshots or videos or mockups, please add them here.
-
- - type: textarea
- id: contact
- attributes:
- label: How can we contact you (optional)
- placeholder: |
- Leave your slack .
- validations:
- required: false
- - type: dropdown
- id: assign
- attributes:
- label: "Would you like to work on this issue?"
- options:
- - "Yes"
- - "No"
- - type: checkboxes
- id: terms
- attributes:
- label: "By submitting this issue, I have confirmed that:"
- options:
- - label: I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
- required: true
-
- - type: markdown
- attributes:
- value: |
- Thanks for reporting this issue! We will get back to you as soon as possible.
\ No newline at end of file
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
deleted file mode 100644
index 5f715685..00000000
--- a/.github/pull_request_template.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Description
-
-Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
-
-## Fixes #(issue_no)
-
-Replace `issue_no` with the issue number which is fixed in this PR
-
-## Screenshots
-
-
-
-## Checklist
-
-
-- [ ] Tests have been added or updated to cover the changes
-- [ ] Documentation has been updated to reflect the changes
-- [ ] Code follows the established coding style guidelines
-- [ ] All tests are passing
\ No newline at end of file
diff --git a/.github/workflows/flutterci.yml b/.github/workflows/flutterci.yml
deleted file mode 100644
index 62991ff1..00000000
--- a/.github/workflows/flutterci.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-name: Flutter CI
-
-on:
- pull_request:
- branches:
- - main
- - reports
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- # Step 1: Checkout the repository
- - uses: actions/checkout@v2
-
- # Step 2: Setup Java with version 12.x
- - uses: actions/setup-java@v1
- with:
- java-version: "17.x"
-
- # Step 3: Setup Flutter with version 3.7.11
- - uses: subosito/flutter-action@v1
- with:
- flutter-version: "3.29.2"
-
- # Step 4: Get dependencies using pub get
- - run: flutter pub get
-
- # Step 5: Analyze the code using flutter analyze
- - run: flutter analyze --no-fatal-warnings --no-fatal-infos
-
- # Step 6: Format the code using flutter format (uncomment if needed)
- # - run: flutter format -n --set-exit-if-changed .
-
- # Step 7: Run tests using flutter test
- # - run: flutter test
-
- # Step 8: Build APK using flutter build apk
- - run: flutter build apk --release --flavor production
-
- # Step 9: Upload the built APK as an artifact
- - uses: actions/upload-artifact@v4
- with:
- name: release-apk
- path: build/app/outputs/flutter-apk/app-production-release.apk
diff --git a/.github/workflows/nightlydepolyci.yml b/.github/workflows/nightlydepolyci.yml
deleted file mode 100644
index 30ce4d0e..00000000
--- a/.github/workflows/nightlydepolyci.yml
+++ /dev/null
@@ -1,98 +0,0 @@
-name: Nightly F-Droid CI
-
-on:
- push:
- branches:
- - main
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- # Step 1: Checkout the main branch
- - name: Checkout Main Branch
- uses: actions/checkout@v2
- with:
- fetch-depth: 0
-
- # Step 2: Setup Java with version 17.x
- - name: Setup Java
- uses: actions/setup-java@v1
- with:
- java-version: "17.x"
-
- # Step 3: Setup Flutter with version 3.29.2
- - name: Setup Flutter
- uses: subosito/flutter-action@v1
- with:
- flutter-version: "3.29.2"
-
- # Step 4: Get dependencies
- - name: Get dependencies
- run: flutter pub get
-
- # Step 5: Decode signing secrets for keystore and properties
- - name: Decode Signing Secrets
- env:
- NIGHTLY_KEYSTORE_B64: ${{ secrets.NIGHTLY_KEYSTORE_B64 }}
- NIGHTLY_PROPERTIES_B64: ${{ secrets.NIGHTLY_PROPERTIES_B64 }}
- run: |
- echo "$NIGHTLY_KEYSTORE_B64" | base64 --decode > android/nightly.jks
- echo "$NIGHTLY_PROPERTIES_B64" | base64 --decode > android/key_nightly.properties
-
- # Step 6: Build the APK with nightly flavor and release mode
- - name: Build APK
- run: flutter build apk --flavor nightly --build-number=${{ github.run_number }} --release
-
- # Step 7: Verify the APK is signed
- - name: Verify sign
- run: keytool -printcert -jarfile build/app/outputs/flutter-apk/app-nightly-release.apk
-
- # Step 8: Configure git and push the APK to fdroid-repo branch
- - name: Configure and push to fdroid-repo
- run: |
- git config --global user.name "github-actions[bot]"
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
- git fetch origin fdroid-repo:fdroid-repo
- git checkout fdroid-repo
- mv build/app/outputs/flutter-apk/app-nightly-release.apk repo/nightly.${{ github.run_number }}.apk
- git add repo/
- git commit -m "chore: Add new signed APK from build ${{ github.run_number }}"
-
- # Step 9: Prune old APKs, keeping only the 5 most recent
- - name: Prune Old APKs
- run: |
- echo "Checking for old APKs to prune..."
- if [ $(ls -1 repo/*.apk 2>/dev/null | wc -l) -gt 5 ]; then
- echo "More than 5 APKs found. Deleting all but the 5 most recent..."
- ls -1 repo/*.apk | sort -V | head -n -5 | xargs rm -f
- else
- echo "5 or fewer APKs found. No cleanup needed."
- fi
-
- # Step 10: Setup F-Droid (install fdroidserver) and update the repo
- - name: Fdroid Install
- uses: subosito/flutter-action@v1
- - name: Run F-Droid Update
- env:
- FDROID_CONFIG_YML_B64: ${{ secrets.FDROID_CONFIG_YML }}
- FDROID_KEYSTORE_P12_B64: ${{ secrets.FDROID_KEYSTORE_P12 }}
- run: |
- # Decode the secrets into files
- echo $FDROID_CONFIG_YML_B64 | base64 --decode > config.yml
- echo $FDROID_KEYSTORE_P12_B64 | base64 --decode > keystore.p12
-
- # Install fdroidserver
- sudo apt-get update
- sudo apt-get install -y fdroidserver
-
- # Run the update command, referencing the files
- fdroid update -c
-
- # Step 12: Push the updated repo files with amended commit
- - name: Push F-Droid updates
- run: |
- git add .
- git commit --amend -m "chore: Add new signed APK from build ${{ github.run_number }} and update F-Droid metadata"
- git push origin fdroid-repo --force
diff --git a/.github/workflows/fdroidupdateci.yml b/.github/workflows/update.yml
similarity index 51%
rename from .github/workflows/fdroidupdateci.yml
rename to .github/workflows/update.yml
index 1fc27109..85904cab 100644
--- a/.github/workflows/fdroidupdateci.yml
+++ b/.github/workflows/update.yml
@@ -1,35 +1,54 @@
-name: Nightly F-Droid CI
-
-on:
- push:
- branches:
- - fdroid-repo
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - name: Fdroid Install
- uses: subosito/flutter-action@v1
- - name: Run F-Droid Update
- env:
- FDROID_CONFIG_YML_B64: ${{ secrets.FDROID_CONFIG_YML }}
- FDROID_KEYSTORE_P12_B64: ${{ secrets.FDROID_KEYSTORE_P12 }}
- run: |
- # Decode the secrets into files
- echo $FDROID_CONFIG_YML_B64 | base64 --decode > config.yml
- echo $FDROID_KEYSTORE_P12_B64 | base64 --decode > keystore.p12
-
- # Install fdroidserver
- sudo apt-get update
- sudo apt-get install -y fdroidserver
-
- # Run the update command, referencing the files
- fdroid update -c
-
- - name: Push F-Droid updates
- run: |
- git add .
- git commit --amend -m "update: a repo update ${{ github.run_number }}"
- git push origin fdroid-repo --force
+name: Fdroid Repo Update
+
+on:
+ push:
+ branches:
+ - fdroid-repo
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ # Step 1: Checkout the main branch
+ - name: Checkout Fdroid-repo Branch
+ uses: actions/checkout@v2
+ with:
+ ref: fdroid-repo
+ fetch-depth: 0
+
+
+ # Step 2: Setup Java with version 17.x
+ - name: Setup Java
+ uses: actions/setup-java@v1
+ with:
+ java-version: "17.x"
+
+ # Step 3: Setup F-Droid (install fdroidserver) and update the repo
+ - name: Fdroid Install
+ uses: subosito/flutter-action@v1
+ - name: Run F-Droid Update
+ env:
+ FDROID_CONFIG_YML_B64: ${{ secrets.FDROID_CONFIG_YML }}
+ FDROID_KEYSTORE_P12_B64: ${{ secrets.FDROID_KEYSTORE_P12 }}
+ run: |
+ # Decode the secrets into files
+ echo $FDROID_CONFIG_YML_B64 | base64 --decode > config.yml
+ echo $FDROID_KEYSTORE_P12_B64 | base64 --decode > keystore.p12
+
+ # Install fdroidserver
+ sudo apt-get update
+ sudo apt-get install -y fdroidserver
+
+ # Run the update command, referencing the files
+ fdroid update -c
+
+ # Step 4: Push the updated repo files with amended commit
+ - name: Push F-Droid updates
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+
+ git add .
+ git commit -m "chore:${{ github.run_number }} update F-Droid metadata" || echo "No changes to commit"
+ git push origin fdroid-repo
diff --git a/.gitignore b/.gitignore
index 583fc590..abe0069f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+config.yml
+keystore.p12
+
# Miscellaneous
*.class
*.log
@@ -47,4 +50,14 @@ app.*.map.json
/android/app/release
# FVM Version Cache
-.fvm/
\ No newline at end of file
+.fvm/
+
+# Platform specific directories
+# this branch does not require these files
+
+/ios
+/linux
+/macos
+/windows
+/android
+/tmp
\ No newline at end of file
diff --git a/.metadata b/.metadata
deleted file mode 100644
index cbf1dc0e..00000000
--- a/.metadata
+++ /dev/null
@@ -1,45 +0,0 @@
-# This file tracks properties of this Flutter project.
-# Used by Flutter tool to assess capabilities and perform upgrades etc.
-#
-# This file should be version controlled and should not be manually edited.
-
-version:
- revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
- channel: "stable"
-
-project_type: app
-
-# Tracks metadata for the flutter migrate command
-migration:
- platforms:
- - platform: root
- create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- - platform: android
- create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- - platform: ios
- create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- - platform: linux
- create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- - platform: macos
- create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- - platform: web
- create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- - platform: windows
- create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
-
- # User provided section
-
- # List of Local paths (relative to this file) that should be
- # ignored by the migrate tool.
- #
- # Files that are not part of the templates will be ignored by default.
- unmanaged_files:
- - 'lib/main.dart'
- - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/.vscode/settings.json b/.vscode/settings.json
deleted file mode 100644
index 7348ba08..00000000
--- a/.vscode/settings.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "html.format.wrapAttributesIndentSize": 4,
- "[dart]": {
- "editor.tabSize": 4,
- "editor.insertSpaces": false,
- "editor.detectIndentation": true,
- "editor.suggest.insertMode": "replace",
- "editor.formatOnSave": true
- },
- "editor.formatOnSave": true,
- "editor.insertSpaces": false,
- "editor.detectIndentation": false,
- "editor.tabSize": 4,
- "editor.codeActionsOnSave": {
- "source.fixAll": "explicit"
- },
- "java.configuration.updateBuildConfiguration": "interactive",
- "dart.flutterSdkPath": ".fvm/versions/3.29.2"
-}
\ No newline at end of file
diff --git a/AUTHORS.md b/AUTHORS.md
deleted file mode 100644
index 56644223..00000000
--- a/AUTHORS.md
+++ /dev/null
@@ -1,5 +0,0 @@
-Maintainer: Nishant Singhal
-
-Portions taken from other GPLv3 projects such as https://github.com/bradyt/taskw-dart
-
-This project started as part of Google Summer of Code 2022. Other than this very generous sponsorship the project has no relationship with Google.
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
deleted file mode 100644
index 2133f67f..00000000
--- a/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,128 +0,0 @@
-# Contributor Covenant Code of Conduct
-
-## Our Pledge
-
-We as members, contributors, and leaders pledge to make participation in our
-community a harassment-free experience for everyone, regardless of age, body
-size, visible or invisible disability, ethnicity, sex characteristics, gender
-identity and expression, level of experience, education, socio-economic status,
-nationality, personal appearance, race, religion, or sexual identity
-and orientation.
-
-We pledge to act and interact in ways that contribute to an open, welcoming,
-diverse, inclusive, and healthy community.
-
-## Our Standards
-
-Examples of behavior that contributes to a positive environment for our
-community include:
-
-* Demonstrating empathy and kindness toward other people
-* Being respectful of differing opinions, viewpoints, and experiences
-* Giving and gracefully accepting constructive feedback
-* Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-* Focusing on what is best not just for us as individuals, but for the
- overall community
-
-Examples of unacceptable behavior include:
-
-* The use of sexualized language or imagery, and sexual attention or
- advances of any kind
-* Trolling, insulting or derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or email
- address, without their explicit permission
-* Other conduct which could reasonably be considered inappropriate in a
- professional setting
-
-## Enforcement Responsibilities
-
-Community leaders are responsible for clarifying and enforcing our standards of
-acceptable behavior and will take appropriate and fair corrective action in
-response to any behavior that they deem inappropriate, threatening, offensive,
-or harmful.
-
-Community leaders have the right and responsibility to remove, edit, or reject
-comments, commits, code, wiki edits, issues, and other contributions that are
-not aligned to this Code of Conduct, and will communicate reasons for moderation
-decisions when appropriate.
-
-## Scope
-
-This Code of Conduct applies within all community spaces, and also applies when
-an individual is officially representing the community in public spaces.
-Examples of representing our community include using an official e-mail address,
-posting via an official social media account, or acting as an appointed
-representative at an online or offline event.
-
-## Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement at
-Nishant Singhal.
-All complaints will be reviewed and investigated promptly and fairly.
-
-All community leaders are obligated to respect the privacy and security of the
-reporter of any incident.
-
-## Enforcement Guidelines
-
-Community leaders will follow these Community Impact Guidelines in determining
-the consequences for any action they deem in violation of this Code of Conduct:
-
-### 1. Correction
-
-**Community Impact**: Use of inappropriate language or other behavior deemed
-unprofessional or unwelcome in the community.
-
-**Consequence**: A private, written warning from community leaders, providing
-clarity around the nature of the violation and an explanation of why the
-behavior was inappropriate. A public apology may be requested.
-
-### 2. Warning
-
-**Community Impact**: A violation through a single incident or series
-of actions.
-
-**Consequence**: A warning with consequences for continued behavior. No
-interaction with the people involved, including unsolicited interaction with
-those enforcing the Code of Conduct, for a specified period of time. This
-includes avoiding interactions in community spaces as well as external channels
-like social media. Violating these terms may lead to a temporary or
-permanent ban.
-
-### 3. Temporary Ban
-
-**Community Impact**: A serious violation of community standards, including
-sustained inappropriate behavior.
-
-**Consequence**: A temporary ban from any sort of interaction or public
-communication with the community for a specified period of time. No public or
-private interaction with the people involved, including unsolicited interaction
-with those enforcing the Code of Conduct, is allowed during this period.
-Violating these terms may lead to a permanent ban.
-
-### 4. Permanent Ban
-
-**Community Impact**: Demonstrating a pattern of violation of community
-standards, including sustained inappropriate behavior, harassment of an
-individual, or aggression toward or disparagement of classes of individuals.
-
-**Consequence**: A permanent ban from any sort of public interaction within
-the community.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage],
-version 2.0, available at
-https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
-
-Community Impact Guidelines were inspired by [Mozilla's code of conduct
-enforcement ladder](https://github.com/mozilla/diversity).
-
-[homepage]: https://www.contributor-covenant.org
-
-For answers to common questions about this code of conduct, see the FAQ at
-https://www.contributor-covenant.org/faq. Translations are available at
-https://www.contributor-covenant.org/translations.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index a5006321..00000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
-
-# Getting Started
-
-In order to use the mobile app, you would need the flood backend running on your local machine. There are several ways
-you can do that and all these approaches can be found at [Taskwarrior-Flutter](https://github.com/CCExtractor/taskwarrior-flutter/wiki)
-
-
-## Steps
-
-### Installation
-1. Clone the repository from GitHub:
-
-```bash
-git clone https://github.com/CCExtractor/taskwarrior-flutter.git
-```
-
-2. Navigate to project's root directory:
-
-```bash
-cd taskwarrior-flutter
-```
-
-3. Check for Flutter setup and connected devices:
-
-```bash
-flutter doctor
-```
-
-4. Get the dependancies
-
-```bash
-flutter pub get
-```
-
-5. Run the app:
-
-```bash
-flutter run --flavor production
-```
-Also Check if it's working with nightly with
-```bash
-flutter run --flavor nightly
-```
-
-### Check out the app
-___
-
-
-1. Open mobile app
- 1. Check out the app
- 2. Make Profile
- 3. Connect with TaskServer
- 4. Sync Tasks with it
-
-
-## Prerequisites
-
-* Flutter
-* VSCode / Android Studio
-
-## Contributing
-
-1. Fork the Project
-2. Clone the Forked Repo. `git clone https://github.com/[username]/taskwarrior-flutter.git`
-3. Create a branch
- - For your Feature Branch (`git checkout -b feature/AmazingFeature`)
- - For your Fix Branch (`git checkout -b fix/BugFix`)
-4. Do the changes in that branch
-5. Add all files (`git add .`)
- - Do Not add files generated by code editor of Android Studio IDE
- - Only add files that related to your feature
-6. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
-7. Make sure branch is synced with main branch of `CCExtractor/taskwarrior-flutter`
- - If not, please sync it and test again
- - If any conflict, resolve according to feature and test again
-7. Push to the Branch (`git push origin feature/AmazingFeature`)
-8. Open a Pull Request for the `main` branch.
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index f288702d..00000000
--- a/LICENSE
+++ /dev/null
@@ -1,674 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- Copyright (C)
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
- .
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-.
diff --git a/README.md b/README.md
deleted file mode 100644
index 7b40c054..00000000
--- a/README.md
+++ /dev/null
@@ -1,256 +0,0 @@
-# Taskwarrior Mobile App
-
-
-
-
-[](https://slackinvite.ccextractor.org/)
-
-
-
- Table of Contents
-
- About The Project
- Built With
- Usage & Screenshots
-
- TaskServer Setup
-
-
- Timeline and Project Page
- Getting Started
- Contributing
- Community
- Flutter
- Contact
-
-
-
-
-
-
-## About The Project
-
-[](https://taskwarrior.org/)
-
-
-Taskwarrior is Free and Open Source Software that manages your TODO list from the command line.
-It is flexible, fast, and unobtrusive. It does its job then gets out of your way. The CLI tool and other relevant documentation can be
-found at [Taskwarrior](https://taskwarrior.org/download/).
-
-This project aims to build an app for Taskwarrior. It is your task management app across all platforms. It helps you manage your tasks and filter them as per your needs.
-
-
-### Built With
-
-* [Dart](https://dart.dev/)
-* [Flutter](https://flutter.dev/)
-
-
-
-## Getting started & Contribution guide
-
-[CONTRIBUTING.md](https://github.com/CCExtractor/taskwarrior-flutter/blob/main/CONTRIBUTING.md)
-
-
-
-## Usage & Screenshots
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
----
-
-
-# Timeline and Project Page
-
-
-[GSoC page](https://summerofcode.withgoogle.com/programs/2022/projects/8pYfxjXv)
-
-## Getting Started
-
-1. Clone the repository from GitHub:
-
-```bash
-git clone https://github.com/CCExtractor/taskwarrior-flutter
-```
-
-2. Navigate to the project's root directory:
-
-```bash
-cd taskwarrior-flutter
-```
-
-3. Install dependencies:
-
-```bash
-flutter pub get
-```
-
-4. Check for Flutter setup and connected devices:
-
-```bash
-flutter doctor
-```
-
-5. Run the app:
-
-```bash
-flutter run
-```
-
-## Contributing
-
-Help is always appreciated, whether it comes in the form of feature requests or suggestions, code improvements, refactoring, or performance enhancements. The more is done, the better it gets. If you find any bug(s), consider opening an [issue](https://github.com/NishantSinghal19/taskwarrior-gsoc/issues/new).
-Please make sure you specify the commit type while opening pull requests:
-
-```
-feat: The new feature you're proposing
-
-fix: A bug fix in the project
-
-test: Everything related to testing
-
-docs: Everything related to documentation
-```
-
-You can Check community guidlines at [Contribution Guidelines & Development Practices](https://github.com/CCExtractor/taskwarrior-flutter/wiki/Contribution-Guidelines-&-Development-Practices) page in Wiki section
-## Community
-
-We would love to hear from you! You may join the gsoc-taskwarrior channel of CCExtractor community through Slack:
-
-[](https://ccextractor.org/public/general/support/)
-
-## Flutter
-
-For help in getting started with Flutter, view
-[online documentation](https://flutter.dev/docs), which offers tutorials,
-samples, guidance on mobile development, and a full API reference.
-
-## TaskServer Setup
-
-**Why Consider TaskServer?**
-
-You might wonder if you need a Taskserver when using Taskwarrior on a single device. The answer depends on your needs. If you want to effortlessly share tasks across multiple clients or devices, then the Taskserver is your ideal choice. It's the only option that seamlessly syncs your data, making it accessible from anywhere.
-
-**Streamline Your Task Management**
-
-With a Taskserver in place, you can synchronize your tasks across various clients and devices, eliminating the hassle of manually updating data on each one. This means less data entry and more efficient task management.
-
-**Automatic Task Backup**
-
-One valuable benefit of using a Taskserver is automatic task backup. Your tasks are safeguarded, ensuring you won't lose any critical information.
-
-Consider setting up a Taskserver for a smoother, more efficient Taskwarrior experience!
-
----
-
-## TaskServer Setup Options
-
-There are multiple ways to set up a TaskServer, depending on your preferences and requirements. You can either host it on your own server or take advantage of free TaskServer options.
-
-### Self-Hosted TaskServer
-
-**Official TaskServer Guide:**
-You can follow the official guide provided by TaskServer for detailed instructions. Check out the documentation here: [TaskServer Official Guide](https://gothenburgbitfactory.github.io/taskserver-setup/).
-
-**Video Tutorial:**
-For a step-by-step visual guide, you can watch the latest video tutorial on YouTube: [Watch Tutorial](https://www.youtube.com/watch?v=6Ci_JyvVIaI&ab_channel=MetaphysicsComputing).
-
-**Cloud Server Hosting:**
-Consider setting up the TaskServer in the cloud, such as Azure or any other cloud server provider, for accessibility from anywhere.
-
-**Docker Container:**
-For easy installation, you can opt for the unofficial Docker container. Check out the latest Docker container here: [Docker Container](https://github.com/ogarcia/docker-taskd).
-
-## [#WingTask](https://app.wingtask.com/)
-
-### 1. [Sign Up](https://app.wingtask.com/signup) at WingTask
-
-
-
-### 2. Download Configuration Files
-
-
-
-### 3. Once extracted, you'll find the following files and folders:
-
-- `install.sh`
-- `README`
-- `taskrc`
-- `wingtask_certs`
-
-
-
-
-### 4. Run install script
-
-#### 4.1 Change the directory to the respective folder having configuration files
-
-`cd /mnt/c/...../folder_name/wingtask_configuration`
-
-
-
-#### 4.2 Run the install script
-
-- run 2 commands
-
-`chmod +x install.sh`
-
-`./install.sh`
-
-
-
-- if the above commands run successfully, you'll get an interface like this
-
-
-
-### 5. Syncing for the first time
-
-- run `task sync init`
-
-
-
-### 6. Configure the certificates in the app:
- - Select `example@gmail.com.cert.pem` for "Configure your certificate."
- - Select `example@gmail.com.key.pem` for "Configure TaskServer key."
- - Select `letsencrypt_root_cert.pem` for "Configure Server Certificate."
-
-
-
-### 7. Click on the "Stats" button in the app bar and check the response. If the response code is 200, you are good to go.
-
-
-
-### 8. Sync your tasks and enjoy!
-
-Feel free to reach out if you encounter any issues.
-
----
-
-## Contact
-
-[Nishant Singhal](https://www.linkedin.com/in/nishant-singhal19/)
-
-[Mabud Alam](https://www.linkedin.com/in/mabud/)
-
-Project Link: [Taskwarrior](https://github.com/CCExtractor/taskwarrior-flutter)
diff --git a/analysis_options.yaml b/analysis_options.yaml
deleted file mode 100644
index 61b6c4de..00000000
--- a/analysis_options.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-# This file configures the analyzer, which statically analyzes Dart code to
-# check for errors, warnings, and lints.
-#
-# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
-# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
-# invoked from the command line by running `flutter analyze`.
-
-# The following line activates a set of recommended lints for Flutter apps,
-# packages, and plugins designed to encourage good coding practices.
-include: package:flutter_lints/flutter.yaml
-
-linter:
- # The lint rules applied to this project can be customized in the
- # section below to disable rules from the `package:flutter_lints/flutter.yaml`
- # included above or to enable additional rules. A list of all available lints
- # and their documentation is published at
- # https://dart-lang.github.io/linter/lints/index.html.
- #
- # Instead of disabling a lint rule for the entire project in the
- # section below, it can also be suppressed for a single line of code
- # or a specific dart file by using the `// ignore: name_of_lint` and
- # `// ignore_for_file: name_of_lint` syntax on the line or in the file
- # producing the lint.
- rules:
- # avoid_print: false # Uncomment to disable the `avoid_print` rule
- # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
-
-# Additional information about this file can be found at
-# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
deleted file mode 100644
index 308c19aa..00000000
--- a/android/.gitignore
+++ /dev/null
@@ -1,14 +0,0 @@
-gradle-wrapper.jar
-/.gradle
-/captures/
-/gradlew
-/gradlew.bat
-/local.properties
-GeneratedPluginRegistrant.java
-
-# Remember to never publicly share your keystore.
-# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
-key.properties
-**/*.keystore
-**/*.jks
-key_nightly.properties
\ No newline at end of file
diff --git a/android/app/build.gradle b/android/app/build.gradle
deleted file mode 100644
index a755ea05..00000000
--- a/android/app/build.gradle
+++ /dev/null
@@ -1,105 +0,0 @@
-plugins {
- id "com.android.application"
- id "kotlin-android"
- id "dev.flutter.flutter-gradle-plugin"
-}
-
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
-}
-
-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
-if (flutterVersionCode == null) {
- flutterVersionCode = '1'
-}
-
-def flutterVersionName = localProperties.getProperty('flutter.versionName')
-if (flutterVersionName == null) {
- flutterVersionName = '1.0'
-}
-
-def keystoreProperties = new Properties()
- def keystorePropertiesFile = rootProject.file('key.properties')
- if (keystorePropertiesFile.exists()) {
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-}
-
-def nightlyKeystoreProperties = new Properties()
-def nightlyKeystorePropertiesFile = rootProject.file('key_nightly.properties')
-if (nightlyKeystorePropertiesFile.exists()) {
- nightlyKeystoreProperties.load(new FileInputStream(nightlyKeystorePropertiesFile))
-}
-
-android {
- namespace "com.ccextractor.taskwarriorflutter"
- compileSdkVersion 35
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- kotlinOptions {
- jvmTarget = '1.8'
- }
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- signingConfigs {
- production {
- keyAlias keystoreProperties['keyAlias']
- keyPassword keystoreProperties['keyPassword']
- storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
- storePassword keystoreProperties['storePassword']
- }
- nightly {
- keyAlias nightlyKeystoreProperties['keyAlias']
- keyPassword nightlyKeystoreProperties['keyPassword']
- storeFile nightlyKeystoreProperties['storeFile'] ? file(nightlyKeystoreProperties['storeFile']) : null
- storePassword nightlyKeystoreProperties['storePassword']
- }
- }
-
- defaultConfig {
- minSdkVersion flutter.minSdkVersion
- targetSdkVersion 33
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- }
-
- flavorDimensions "default"
- productFlavors {
- production {
- dimension "default"
- applicationId "com.ccextractor.taskwarrior"
- signingConfig keystoreProperties.isEmpty() ? signingConfigs.debug : signingConfigs.production
- }
- nightly {
- dimension "default"
- applicationId "com.ccextractor.taskwarrior.nightly"
- versionNameSuffix "-nightly"
- signingConfig nightlyKeystoreProperties.isEmpty() ? signingConfigs.debug : signingConfigs.nightly
- }
- }
-
- buildTypes {
- release {
- minifyEnabled false
- shrinkResources false
- }
- }
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
-}
-
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
deleted file mode 100644
index b91c8f67..00000000
--- a/android/app/src/debug/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 055b29ff..00000000
--- a/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/BurndownChart.kt b/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/BurndownChart.kt
deleted file mode 100644
index 7318b9de..00000000
--- a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/BurndownChart.kt
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.ccextractor.taskwarriorflutter
-
-import android.appwidget.AppWidgetManager
-import android.content.Context
-import android.content.SharedPreferences
-import es.antonborri.home_widget.HomeWidgetProvider
-
-class BurndownChartProvider : HomeWidgetProvider() {
- override fun onUpdate(context: Context, appWidgetManager: AppWidgetManager, appWidgetIds: IntArray, widgetData: SharedPreferences) {
- // This method is intentionally left blank.
- // Widget updates are handled by WidgetUpdateReceiver.
- }
-}
\ No newline at end of file
diff --git a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/MainActivity.kt b/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/MainActivity.kt
deleted file mode 100644
index 3a8aba62..00000000
--- a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/MainActivity.kt
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.ccextractor.taskwarriorflutter
-
-import android.content.Intent
-import android.os.Bundle
-import io.flutter.embedding.android.FlutterActivity
-import io.flutter.embedding.engine.FlutterEngine
-import io.flutter.plugin.common.MethodChannel
-import android.content.Context
-import android.content.IntentFilter
-import android.appwidget.AppWidgetManager
-import android.content.ComponentName
-
-class MainActivity: FlutterActivity() {
- private val channel = "com.example.taskwarrior/widget"
-
- override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
- super.configureFlutterEngine(flutterEngine)
-
- MethodChannel(flutterEngine.dartExecutor.binaryMessenger, channel).setMethodCallHandler {
- call, result ->
- if (call.method == "updateWidget") {
- updateWidget()
- result.success("Widget updated")
- } else {
- result.notImplemented()
- }
- }
- }
-
- private fun updateWidget() {
- val intent = Intent(this, WidgetUpdateReceiver::class.java).apply {
- action = "UPDATE_WIDGET"
- }
- sendBroadcast(intent)
- }
-}
\ No newline at end of file
diff --git a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/TaskWarriorWidgetProvider.kt b/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/TaskWarriorWidgetProvider.kt
deleted file mode 100644
index 5662cd2a..00000000
--- a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/TaskWarriorWidgetProvider.kt
+++ /dev/null
@@ -1,210 +0,0 @@
-package com.ccextractor.taskwarriorflutter
-import android.annotation.TargetApi
-import android.appwidget.AppWidgetManager
-import android.content.Context
-import android.net.Uri
-import android.widget.RemoteViews
-import es.antonborri.home_widget.HomeWidgetBackgroundIntent
-import es.antonborri.home_widget.HomeWidgetLaunchIntent
-import es.antonborri.home_widget.HomeWidgetProvider
-import es.antonborri.home_widget.HomeWidgetPlugin
-import org.json.JSONException
-import android.content.Intent
-import android.widget.RemoteViewsService
-import org.json.JSONObject
-import org.json.JSONArray as OrgJSONArray
-import android.os.Bundle
-import android.app.PendingIntent
-import android.appwidget.AppWidgetProvider
-import android.os.Build
-
-
-@TargetApi(Build.VERSION_CODES.CUPCAKE)
-class TaskWarriorWidgetProvider : AppWidgetProvider() {
-
- override fun onReceive(context: Context, intent: Intent) {
- // val myaction = intent.action
- if (intent.action == "TASK_ACTION") {
- val extras = intent.extras
- if(extras!=null){
- val uuid = extras.getString("uuid")?:""
- val add_task = extras.getString("launchedFor")
- val host = if(add_task == "ADD_TASK"){context.getString(R.string.app_widget_add_clicked_uri)}else{context.getString(R.string.app_widget_card_clicked_uri)}
- val launchIntent = Intent(context, MainActivity::class.java).apply {
- action = context.getString(R.string.app_widget_launch_action)
- data = Uri.parse("$host?uuid=$uuid")
- flags = Intent. FLAG_ACTIVITY_NEW_TASK
- context?.startActivity(this)
- }
- // HomeWidgetLaunchIntent.getActivity(context, MainActivity::class.java, Uri.parse("TaskWarrior://taskView?taskId=$uuid"))
- }
- }
- super.onReceive(context, intent)
- }
- fun getLayoutId(context: Context) : Int{
- val sharedPrefs = HomeWidgetPlugin.getData(context)
- val theme = sharedPrefs.getString("themeMode", "")
- val layoutId = if (theme.equals("dark")) {
- R.layout.taskwarrior_layout_dark // Define a dark mode layout in your resources
- } else {
- R.layout.taskwarrior_layout
- }
- return layoutId
- }
- @TargetApi(Build.VERSION_CODES.DONUT)
- override fun onUpdate(context: Context, appWidgetManager: AppWidgetManager, appWidgetIds: IntArray) {
- appWidgetIds.forEach { widgetId ->
- val sharedPrefs = HomeWidgetPlugin.getData(context)
- val tasks = sharedPrefs.getString("tasks", "")
- val intent = Intent(context, ListViewRemoteViewsService::class.java).apply {
- putExtra("tasksJsonString", tasks)
- data = Uri.parse(toUri(Intent.URI_INTENT_SCHEME))
- }
- val views = RemoteViews(context.packageName, getLayoutId(context)).apply {
- val pendingIntent: PendingIntent = HomeWidgetLaunchIntent.getActivity(
- context,
- MainActivity::class.java
- )
- setOnClickPendingIntent(R.id.logo, pendingIntent)
- val intent_for_add = Intent(context, TaskWarriorWidgetProvider::class.java).apply {
- setAction("TASK_ACTION")
- data=Uri.parse(toUri(Intent.URI_INTENT_SCHEME))
- putExtra("launchedFor", "ADD_TASK")
- }
- val pendingIntentAdd: PendingIntent = PendingIntent.getBroadcast(
- context,
- 0, // requestCode, can be any unique integer
- intent_for_add,
- PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT or Intent.FILL_IN_COMPONENT // Use appropriate flags
- )
- setOnClickPendingIntent(R.id.add_btn, pendingIntentAdd)
- setRemoteAdapter(R.id.list_view, intent)
- }
-
- val clickPendingIntent: PendingIntent = Intent(
- context,
- TaskWarriorWidgetProvider::class.java
- ).run {
- setAction("TASK_ACTION")
- setIdentifier("uuid")
- data = Uri.parse(toUri(Intent.URI_INTENT_SCHEME))
-
- PendingIntent.getBroadcast(
- context,
- 0,
- this,
- PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT or Intent.FILL_IN_COMPONENT
- )
- }
-
- views.setPendingIntentTemplate(R.id.list_view, clickPendingIntent)
- appWidgetManager.updateAppWidget(widgetId, views)
- }
- super.onUpdate(context, appWidgetManager, appWidgetIds)
- }
- }
-class ListViewRemoteViewsFactory(
- private val context: Context,
- private val tasksJsonString: String?
-) : RemoteViewsService.RemoteViewsFactory {
-
- private val tasks = mutableListOf()
-
- override fun onCreate() {}
-
- override fun onDataSetChanged() {
- if (tasksJsonString != null) {
- try {
- val jsonArray = OrgJSONArray(tasksJsonString as String)
- for (i in 0 until jsonArray.length()) {
- tasks.add(Task.fromJson(jsonArray.getJSONObject(i)))
- }
- } catch (e: JSONException) {
- e.printStackTrace()
- }
- }
- }
-
- override fun onDestroy() {}
-
- override fun getCount(): Int = tasks.size
-
- fun getListItemLayoutId(): Int{
- val sharedPrefs = HomeWidgetPlugin.getData(context)
- val theme = sharedPrefs.getString("themeMode", "")
- val layoutId = if (theme.equals("dark")) {
- R.layout.listitem_layout_dark // Define a dark mode layout in your resources
- } else {
- R.layout.listitem_layout
- }
- return layoutId
- }
- fun getListItemLayoutIdForR1(): Int{
- val sharedPrefs = HomeWidgetPlugin.getData(context)
- val theme = sharedPrefs.getString("themeMode", "")
- val layoutId = if (theme.equals("dark")) {
- R.layout.no_tasks_found_li_dark // Define a dark mode layout in your resources
- } else {
- R.layout.no_tasks_found_li
- }
- return layoutId
- }
- fun getDotIdByPriority(p: String) : Int{
- println("PRIORITY: "+p)
- if(p.equals("L")) return R.drawable.low_priority_dot
- if(p.equals("M")) return R.drawable.mid_priority_dot
- if(p.equals("H")) return R.drawable.high_priority_dot
- return R.drawable.no_priority_dot
- }
-
- override fun getViewAt(position: Int): RemoteViews {
- val task = tasks[position]
- if(task.uuid.equals("NO_TASK"))
- return RemoteViews(context.packageName, getListItemLayoutIdForR1()).apply {
- if(task.priority.equals("1"))
- setTextViewText(R.id.tv, "No tasks added yet")
- if(task.priority.equals("2"))
- setTextViewText(R.id.tv, "Filters applied are hiding all tasks")
- }
- return RemoteViews(context.packageName, getListItemLayoutId()).apply {
- setTextViewText(R.id.todo__title, task.title)
- setImageViewResource(R.id.dot, getDotIdByPriority(task.priority))
- val a = Intent().apply {
-
- Bundle().also { extras ->
- extras.putString("action", "show_task")
- extras.putString("uuid", tasks[position].uuid)
- putExtras(extras)
- }
-
- }
- setOnClickFillInIntent(R.id.list_item_container,a)
- }
-
- }
- override fun getLoadingView(): RemoteViews? = null
-
- override fun getViewTypeCount(): Int = 1
-
- override fun getItemId(position: Int): Long = position.toLong()
-
- override fun hasStableIds(): Boolean = true
-}
-class ListViewRemoteViewsService : RemoteViewsService() {
-
- override fun onGetViewFactory(intent: Intent): RemoteViewsFactory {
- val tasksJsonString = intent.getStringExtra("tasksJsonString")
- return ListViewRemoteViewsFactory(applicationContext, tasksJsonString)
- }
-}
-data class Task(val title: String, val urgencyLevel: String,val uuid:String, val priority: String) {
- companion object {
- fun fromJson(json: JSONObject): Task {
- val title = json.optString("description", "")
- val urgencyLevel = json.optString("urgency", "")
- val uuid = json.optString("uuid","")
- val priority = json.optString("priority", "")
- return Task(title, urgencyLevel, uuid, priority)
- }
- }
-}
\ No newline at end of file
diff --git a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/WidgetUpdateReceiver.kt b/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/WidgetUpdateReceiver.kt
deleted file mode 100644
index 49d9375c..00000000
--- a/android/app/src/main/kotlin/com/ccextractor/taskwarriorflutter/WidgetUpdateReceiver.kt
+++ /dev/null
@@ -1,68 +0,0 @@
-package com.ccextractor.taskwarriorflutter
-
-import android.appwidget.AppWidgetManager
-import android.view.View
-import android.content.BroadcastReceiver
-import android.content.ComponentName
-import android.content.Context
-import android.content.Intent
-import android.graphics.BitmapFactory
-import android.util.Log
-import android.widget.RemoteViews
-import java.io.File
-import com.ccextractor.taskwarriorflutter.R
-import es.antonborri.home_widget.HomeWidgetPlugin
-
-class WidgetUpdateReceiver : BroadcastReceiver() {
-
- override fun onReceive(context: Context, intent: Intent) {
- if (intent.action == "UPDATE_WIDGET") {
- Log.d("WidgetUpdateReceiver", "Received UPDATE_WIDGET broadcast")
-
- val appWidgetManager = AppWidgetManager.getInstance(context)
- val appWidgetIds = appWidgetManager.getAppWidgetIds(ComponentName(context, BurndownChartProvider::class.java))
-
- for (appWidgetId in appWidgetIds) {
- updateAppWidget(context, appWidgetManager, appWidgetId)
- }
- }
- }
-
- private fun updateAppWidget(context: Context, appWidgetManager: AppWidgetManager, appWidgetId: Int) {
- Log.d("WidgetUpdateReceiver", "Updating widget $appWidgetId")
-
- val views = RemoteViews(context.packageName, R.layout.report_layout)
-
- // Retrieve the chart image path from HomeWidget
- val chartImage = HomeWidgetPlugin.getData(context).getString("chart_image", null)
-
- if (chartImage != null) {
- Log.d("WidgetUpdateReceiver", "Chart image path: $chartImage")
- val file = File(chartImage)
- if (file.exists()) {
- Log.d("WidgetUpdateReceiver", "File exists!")
- val b = BitmapFactory.decodeFile(file.absolutePath)
- if (b != null) {
- Log.d("WidgetUpdateReceiver", "Bitmap decoded successfully!")
- views.setImageViewBitmap(R.id.widget_image, b)
- views.setViewVisibility(R.id.widget_image, View.VISIBLE)
- views.setViewVisibility(R.id.no_image_text, View.GONE)
- } else {
- Log.e("WidgetUpdateReceiver", "Bitmap decoding failed!")
- views.setViewVisibility(R.id.widget_image, View.GONE)
- views.setViewVisibility(R.id.no_image_text, View.VISIBLE)
- }
- } else {
- Log.e("WidgetUpdateReceiver", "File does not exist: $chartImage")
- views.setViewVisibility(R.id.widget_image, View.GONE)
- views.setViewVisibility(R.id.no_image_text, View.VISIBLE)
- }
- } else {
- Log.d("WidgetUpdateReceiver", "No chart image saved yet")
- views.setViewVisibility(R.id.widget_image, View.GONE)
- views.setViewVisibility(R.id.no_image_text, View.VISIBLE)
- }
-
- appWidgetManager.updateAppWidget(appWidgetId, views)
- }
-}
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable-hdpi/splash.png b/android/app/src/main/res/drawable-hdpi/splash.png
deleted file mode 100644
index 8a4e8751..00000000
Binary files a/android/app/src/main/res/drawable-hdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-hdpi/taskwarrior.png b/android/app/src/main/res/drawable-hdpi/taskwarrior.png
deleted file mode 100644
index b33228f6..00000000
Binary files a/android/app/src/main/res/drawable-hdpi/taskwarrior.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-mdpi/splash.png b/android/app/src/main/res/drawable-mdpi/splash.png
deleted file mode 100644
index df2c5e6d..00000000
Binary files a/android/app/src/main/res/drawable-mdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-mdpi/taskwarrior.png b/android/app/src/main/res/drawable-mdpi/taskwarrior.png
deleted file mode 100644
index e59b3df5..00000000
Binary files a/android/app/src/main/res/drawable-mdpi/taskwarrior.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-v21/app_widget_background.xml b/android/app/src/main/res/drawable-v21/app_widget_background.xml
deleted file mode 100644
index c7183f68..00000000
--- a/android/app/src/main/res/drawable-v21/app_widget_background.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable-v21/app_widget_inner_view_background.xml b/android/app/src/main/res/drawable-v21/app_widget_inner_view_background.xml
deleted file mode 100644
index 007e2872..00000000
--- a/android/app/src/main/res/drawable-v21/app_widget_inner_view_background.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable-v21/background.png b/android/app/src/main/res/drawable-v21/background.png
deleted file mode 100644
index 6fc03989..00000000
Binary files a/android/app/src/main/res/drawable-v21/background.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
deleted file mode 100644
index 3cc4948a..00000000
--- a/android/app/src/main/res/drawable-v21/launch_background.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- -
-
-
- -
-
-
-
diff --git a/android/app/src/main/res/drawable-xhdpi/splash.png b/android/app/src/main/res/drawable-xhdpi/splash.png
deleted file mode 100644
index e9b10fe0..00000000
Binary files a/android/app/src/main/res/drawable-xhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xhdpi/taskwarrior.png b/android/app/src/main/res/drawable-xhdpi/taskwarrior.png
deleted file mode 100644
index 975f5729..00000000
Binary files a/android/app/src/main/res/drawable-xhdpi/taskwarrior.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/splash.png b/android/app/src/main/res/drawable-xxhdpi/splash.png
deleted file mode 100644
index edc661df..00000000
Binary files a/android/app/src/main/res/drawable-xxhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/splash.png b/android/app/src/main/res/drawable-xxxhdpi/splash.png
deleted file mode 100644
index 8f7a4b28..00000000
Binary files a/android/app/src/main/res/drawable-xxxhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/taskwarrior.png b/android/app/src/main/res/drawable-xxxhdpi/taskwarrior.png
deleted file mode 100644
index 8d854c5a..00000000
Binary files a/android/app/src/main/res/drawable-xxxhdpi/taskwarrior.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable/add.xml b/android/app/src/main/res/drawable/add.xml
deleted file mode 100644
index c322ed1c..00000000
--- a/android/app/src/main/res/drawable/add.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/android/app/src/main/res/drawable/add_dark.xml b/android/app/src/main/res/drawable/add_dark.xml
deleted file mode 100644
index 74251df6..00000000
--- a/android/app/src/main/res/drawable/add_dark.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/android/app/src/main/res/drawable/app_widget_item_layout_bg.xml b/android/app/src/main/res/drawable/app_widget_item_layout_bg.xml
deleted file mode 100644
index fcb60d19..00000000
--- a/android/app/src/main/res/drawable/app_widget_item_layout_bg.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/app_widget_layout_bg.xml b/android/app/src/main/res/drawable/app_widget_layout_bg.xml
deleted file mode 100644
index e9016b3c..00000000
--- a/android/app/src/main/res/drawable/app_widget_layout_bg.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/background.png b/android/app/src/main/res/drawable/background.png
deleted file mode 100644
index 6fc03989..00000000
Binary files a/android/app/src/main/res/drawable/background.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable/bg_button_add.xml b/android/app/src/main/res/drawable/bg_button_add.xml
deleted file mode 100644
index 79c8ede0..00000000
--- a/android/app/src/main/res/drawable/bg_button_add.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/android/app/src/main/res/drawable/bg_button_add_dark.xml b/android/app/src/main/res/drawable/bg_button_add_dark.xml
deleted file mode 100644
index 4b97c721..00000000
--- a/android/app/src/main/res/drawable/bg_button_add_dark.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/android/app/src/main/res/drawable/border_style.xml b/android/app/src/main/res/drawable/border_style.xml
deleted file mode 100644
index a760078d..00000000
--- a/android/app/src/main/res/drawable/border_style.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/border_style_dark.xml b/android/app/src/main/res/drawable/border_style_dark.xml
deleted file mode 100644
index b492555c..00000000
--- a/android/app/src/main/res/drawable/border_style_dark.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/down_btn_icon.xml b/android/app/src/main/res/drawable/down_btn_icon.xml
deleted file mode 100644
index bf9aa923..00000000
--- a/android/app/src/main/res/drawable/down_btn_icon.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/android/app/src/main/res/drawable/down_btn_icon_dark.xml b/android/app/src/main/res/drawable/down_btn_icon_dark.xml
deleted file mode 100644
index 4a2f4f6b..00000000
--- a/android/app/src/main/res/drawable/down_btn_icon_dark.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/android/app/src/main/res/drawable/high_priority_dot.xml b/android/app/src/main/res/drawable/high_priority_dot.xml
deleted file mode 100644
index 2e6506e3..00000000
--- a/android/app/src/main/res/drawable/high_priority_dot.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
deleted file mode 100644
index 3cc4948a..00000000
--- a/android/app/src/main/res/drawable/launch_background.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- -
-
-
- -
-
-
-
diff --git a/android/app/src/main/res/drawable/low_priority_dot.xml b/android/app/src/main/res/drawable/low_priority_dot.xml
deleted file mode 100644
index baf70648..00000000
--- a/android/app/src/main/res/drawable/low_priority_dot.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
diff --git a/android/app/src/main/res/drawable/mid_priority_dot.xml b/android/app/src/main/res/drawable/mid_priority_dot.xml
deleted file mode 100644
index 6407db39..00000000
--- a/android/app/src/main/res/drawable/mid_priority_dot.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
diff --git a/android/app/src/main/res/drawable/no_priority_dot.xml b/android/app/src/main/res/drawable/no_priority_dot.xml
deleted file mode 100644
index e656e3d6..00000000
--- a/android/app/src/main/res/drawable/no_priority_dot.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
diff --git a/android/app/src/main/res/drawable/preview.png b/android/app/src/main/res/drawable/preview.png
deleted file mode 100644
index 5f32f708..00000000
Binary files a/android/app/src/main/res/drawable/preview.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable/preview_report.jpg b/android/app/src/main/res/drawable/preview_report.jpg
deleted file mode 100644
index 761c8ff8..00000000
Binary files a/android/app/src/main/res/drawable/preview_report.jpg and /dev/null differ
diff --git a/android/app/src/main/res/drawable/taskwarrior_widget_icon.png b/android/app/src/main/res/drawable/taskwarrior_widget_icon.png
deleted file mode 100644
index 06fcb3df..00000000
Binary files a/android/app/src/main/res/drawable/taskwarrior_widget_icon.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable/taskwarrior_widget_icon_dark.png b/android/app/src/main/res/drawable/taskwarrior_widget_icon_dark.png
deleted file mode 100644
index f28c15bf..00000000
Binary files a/android/app/src/main/res/drawable/taskwarrior_widget_icon_dark.png and /dev/null differ
diff --git a/android/app/src/main/res/layout/listitem_layout.xml b/android/app/src/main/res/layout/listitem_layout.xml
deleted file mode 100644
index a64d2523..00000000
--- a/android/app/src/main/res/layout/listitem_layout.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/layout/listitem_layout_dark.xml b/android/app/src/main/res/layout/listitem_layout_dark.xml
deleted file mode 100644
index 7c221b2c..00000000
--- a/android/app/src/main/res/layout/listitem_layout_dark.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/layout/no_tasks_found_li.xml b/android/app/src/main/res/layout/no_tasks_found_li.xml
deleted file mode 100644
index 32246c84..00000000
--- a/android/app/src/main/res/layout/no_tasks_found_li.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/layout/no_tasks_found_li_dark.xml b/android/app/src/main/res/layout/no_tasks_found_li_dark.xml
deleted file mode 100644
index bbc37495..00000000
--- a/android/app/src/main/res/layout/no_tasks_found_li_dark.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/layout/report_layout.xml b/android/app/src/main/res/layout/report_layout.xml
deleted file mode 100644
index cd6aaca4..00000000
--- a/android/app/src/main/res/layout/report_layout.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/layout/taskwarrior_layout.xml b/android/app/src/main/res/layout/taskwarrior_layout.xml
deleted file mode 100644
index 7f40a80b..00000000
--- a/android/app/src/main/res/layout/taskwarrior_layout.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/layout/taskwarrior_layout_dark.xml b/android/app/src/main/res/layout/taskwarrior_layout_dark.xml
deleted file mode 100644
index c310fdff..00000000
--- a/android/app/src/main/res/layout/taskwarrior_layout_dark.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index db77bb4b..00000000
Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
deleted file mode 100644
index f9a49395..00000000
Binary files a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-hdpi/splash.png b/android/app/src/main/res/mipmap-hdpi/splash.png
deleted file mode 100644
index 849fb374..00000000
Binary files a/android/app/src/main/res/mipmap-hdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index 17987b79..00000000
Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
deleted file mode 100644
index c3b89957..00000000
Binary files a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-mdpi/splash.png b/android/app/src/main/res/mipmap-mdpi/splash.png
deleted file mode 100644
index 8f7a4b28..00000000
Binary files a/android/app/src/main/res/mipmap-mdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 09d43914..00000000
Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
deleted file mode 100644
index 827b5777..00000000
Binary files a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/splash.png b/android/app/src/main/res/mipmap-xhdpi/splash.png
deleted file mode 100644
index edc661df..00000000
Binary files a/android/app/src/main/res/mipmap-xhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index d5f1c8d3..00000000
Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
deleted file mode 100644
index 2e83bc6d..00000000
Binary files a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/splash.png b/android/app/src/main/res/mipmap-xxhdpi/splash.png
deleted file mode 100644
index 8f7a4b28..00000000
Binary files a/android/app/src/main/res/mipmap-xxhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index 4d6372ee..00000000
Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
deleted file mode 100644
index 3d6c26ed..00000000
Binary files a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/splash.png b/android/app/src/main/res/mipmap-xxxhdpi/splash.png
deleted file mode 100644
index e1d5660a..00000000
Binary files a/android/app/src/main/res/mipmap-xxxhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
deleted file mode 100644
index 06952be7..00000000
--- a/android/app/src/main/res/values-night/styles.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
diff --git a/android/app/src/main/res/values-v21/styles.xml b/android/app/src/main/res/values-v21/styles.xml
deleted file mode 100644
index 0b35f7d8..00000000
--- a/android/app/src/main/res/values-v21/styles.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values-v31/styles.xml b/android/app/src/main/res/values-v31/styles.xml
deleted file mode 100644
index 6b133976..00000000
--- a/android/app/src/main/res/values-v31/styles.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values-v31/themes.xml b/android/app/src/main/res/values-v31/themes.xml
deleted file mode 100644
index badd306a..00000000
--- a/android/app/src/main/res/values-v31/themes.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values/attrs.xml b/android/app/src/main/res/values/attrs.xml
deleted file mode 100644
index 7781ac86..00000000
--- a/android/app/src/main/res/values/attrs.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml
deleted file mode 100644
index 22648051..00000000
--- a/android/app/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
- #000000
- #FFFFFF
- #000
- #fff
- #000
- #4D4D4D
- #efefef
- #FFFFFF
- #000000
- #FFFFFF
- #2C2C2C
- #FFFFFF
- #787878
- #4D4D4D
- #FF0000
- #FFF200
- #00FF42
- #A2A2A2
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values/dimens.xml b/android/app/src/main/res/values/dimens.xml
deleted file mode 100644
index 27da692e..00000000
--- a/android/app/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- 0dp
- 40dp
- 15dp
- 60dp
- 40dp
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
deleted file mode 100644
index 182c4b81..00000000
--- a/android/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
- TaskWarrior
- nurture.farm.android.appwidget.CTA
- nurture.farm.android.appwidget.ACTION_CLICK
- textData
- imageData
- es.antonborri.home_widget.action.LAUNCH
- taskwarriorappwidget://cardclicked
- taskwarriorappwidget://addclicked
- This widget shows pending tasks from TaskWarrior app
- This widget shows the daily reports graph to track your progress
- Click Refresh button in Daily Reports Tab
- TaskWarrior
- Add widget
- Task List
- add_task
- No Tasks available
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
deleted file mode 100644
index d1d13fc7..00000000
--- a/android/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/app/src/main/res/values/themes.xml b/android/app/src/main/res/values/themes.xml
deleted file mode 100644
index dcd8899e..00000000
--- a/android/app/src/main/res/values/themes.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/xml/burndownchartconfig.xml b/android/app/src/main/res/xml/burndownchartconfig.xml
deleted file mode 100644
index fff84148..00000000
--- a/android/app/src/main/res/xml/burndownchartconfig.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/xml/taskwarriorconfig.xml b/android/app/src/main/res/xml/taskwarriorconfig.xml
deleted file mode 100644
index 1a5d2c7f..00000000
--- a/android/app/src/main/res/xml/taskwarriorconfig.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
\ No newline at end of file
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
deleted file mode 100644
index b91c8f67..00000000
--- a/android/app/src/profile/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/android/build.gradle b/android/build.gradle
deleted file mode 100644
index bc157bd1..00000000
--- a/android/build.gradle
+++ /dev/null
@@ -1,18 +0,0 @@
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-subprojects {
- project.evaluationDependsOn(':app')
-}
-
-tasks.register("clean", Delete) {
- delete rootProject.buildDir
-}
diff --git a/android/gradle.properties b/android/gradle.properties
deleted file mode 100644
index 94adc3a3..00000000
--- a/android/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 89e56bdb..00000000
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Fri Jun 23 08:50:38 CEST 2017
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
deleted file mode 100644
index 07ca9fc7..00000000
--- a/android/settings.gradle
+++ /dev/null
@@ -1,25 +0,0 @@
-pluginManagement {
- def flutterSdkPath = {
- def properties = new Properties()
- file("local.properties").withInputStream { properties.load(it) }
- def flutterSdkPath = properties.getProperty("flutter.sdk")
- assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
- return flutterSdkPath
- }()
-
- includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
-
- repositories {
- google()
- mavenCentral()
- gradlePluginPortal()
- }
-}
-
-plugins {
- id "dev.flutter.flutter-plugin-loader" version "1.0.0"
- id "com.android.application" version "8.1.0" apply false
- id "org.jetbrains.kotlin.android" version "1.9.10" apply false
-}
-
-include ":app"
\ No newline at end of file
diff --git a/assets/fonts/OFL.txt b/assets/fonts/OFL.txt
deleted file mode 100644
index 76df3b56..00000000
--- a/assets/fonts/OFL.txt
+++ /dev/null
@@ -1,93 +0,0 @@
-Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
-
-This Font Software is licensed under the SIL Open Font License, Version 1.1.
-This license is copied below, and is also available with a FAQ at:
-http://scripts.sil.org/OFL
-
-
------------------------------------------------------------
-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
------------------------------------------------------------
-
-PREAMBLE
-The goals of the Open Font License (OFL) are to stimulate worldwide
-development of collaborative font projects, to support the font creation
-efforts of academic and linguistic communities, and to provide a free and
-open framework in which fonts may be shared and improved in partnership
-with others.
-
-The OFL allows the licensed fonts to be used, studied, modified and
-redistributed freely as long as they are not sold by themselves. The
-fonts, including any derivative works, can be bundled, embedded,
-redistributed and/or sold with any software provided that any reserved
-names are not used by derivative works. The fonts and derivatives,
-however, cannot be released under any other type of license. The
-requirement for fonts to remain under this license does not apply
-to any document created using the fonts or their derivatives.
-
-DEFINITIONS
-"Font Software" refers to the set of files released by the Copyright
-Holder(s) under this license and clearly marked as such. This may
-include source files, build scripts and documentation.
-
-"Reserved Font Name" refers to any names specified as such after the
-copyright statement(s).
-
-"Original Version" refers to the collection of Font Software components as
-distributed by the Copyright Holder(s).
-
-"Modified Version" refers to any derivative made by adding to, deleting,
-or substituting -- in part or in whole -- any of the components of the
-Original Version, by changing formats or by porting the Font Software to a
-new environment.
-
-"Author" refers to any designer, engineer, programmer, technical
-writer or other person who contributed to the Font Software.
-
-PERMISSION & CONDITIONS
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of the Font Software, to use, study, copy, merge, embed, modify,
-redistribute, and sell modified and unmodified copies of the Font
-Software, subject to the following conditions:
-
-1) Neither the Font Software nor any of its individual components,
-in Original or Modified Versions, may be sold by itself.
-
-2) Original or Modified Versions of the Font Software may be bundled,
-redistributed and/or sold with any software, provided that each copy
-contains the above copyright notice and this license. These can be
-included either as stand-alone text files, human-readable headers or
-in the appropriate machine-readable metadata fields within text or
-binary files as long as those fields can be easily viewed by the user.
-
-3) No Modified Version of the Font Software may use the Reserved Font
-Name(s) unless explicit written permission is granted by the corresponding
-Copyright Holder. This restriction only applies to the primary font name as
-presented to the users.
-
-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
-Software shall not be used to promote, endorse or advertise any
-Modified Version, except to acknowledge the contribution(s) of the
-Copyright Holder(s) and the Author(s) or with their explicit written
-permission.
-
-5) The Font Software, modified or unmodified, in part or in whole,
-must be distributed entirely under this license, and must not be
-distributed under any other license. The requirement for fonts to
-remain under this license does not apply to any document created
-using the Font Software.
-
-TERMINATION
-This license becomes null and void if any of the above conditions are
-not met.
-
-DISCLAIMER
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
-OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/assets/fonts/Poppins-Bold.ttf b/assets/fonts/Poppins-Bold.ttf
deleted file mode 100644
index b94d47f3..00000000
Binary files a/assets/fonts/Poppins-Bold.ttf and /dev/null differ
diff --git a/assets/fonts/Poppins-ExtraBold.ttf b/assets/fonts/Poppins-ExtraBold.ttf
deleted file mode 100644
index 8f008c36..00000000
Binary files a/assets/fonts/Poppins-ExtraBold.ttf and /dev/null differ
diff --git a/assets/fonts/Poppins-Regular.ttf b/assets/fonts/Poppins-Regular.ttf
deleted file mode 100644
index be06e7fd..00000000
Binary files a/assets/fonts/Poppins-Regular.ttf and /dev/null differ
diff --git a/assets/fonts/SFProDisplay-Regular.ttf b/assets/fonts/SFProDisplay-Regular.ttf
deleted file mode 100644
index 5ae2fafb..00000000
Binary files a/assets/fonts/SFProDisplay-Regular.ttf and /dev/null differ
diff --git a/assets/fonts/SegoeUI.ttf b/assets/fonts/SegoeUI.ttf
deleted file mode 100644
index 46b3b993..00000000
Binary files a/assets/fonts/SegoeUI.ttf and /dev/null differ
diff --git a/assets/fonts/Ubuntu-Light.ttf b/assets/fonts/Ubuntu-Light.ttf
deleted file mode 100644
index 0e9f90d7..00000000
Binary files a/assets/fonts/Ubuntu-Light.ttf and /dev/null differ
diff --git a/assets/images/taskwarrior.png b/assets/images/taskwarrior.png
deleted file mode 100644
index 06fcb3df..00000000
Binary files a/assets/images/taskwarrior.png and /dev/null differ
diff --git a/assets/images/taskwarrior_dark.png b/assets/images/taskwarrior_dark.png
deleted file mode 100644
index f28c15bf..00000000
Binary files a/assets/images/taskwarrior_dark.png and /dev/null differ
diff --git a/assets/svg/github.svg b/assets/svg/github.svg
deleted file mode 100644
index 25f9df58..00000000
--- a/assets/svg/github.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/assets/svg/link.svg b/assets/svg/link.svg
deleted file mode 100644
index ed0217c8..00000000
--- a/assets/svg/link.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/assets/svg/logo.svg b/assets/svg/logo.svg
deleted file mode 100644
index 8b9c96c4..00000000
--- a/assets/svg/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/assets/svg/s1.svg b/assets/svg/s1.svg
deleted file mode 100644
index e6a19003..00000000
--- a/assets/svg/s1.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/assets/svg/s2.svg b/assets/svg/s2.svg
deleted file mode 100644
index fdbe175c..00000000
--- a/assets/svg/s2.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/assets/svg/s3.svg b/assets/svg/s3.svg
deleted file mode 100644
index 429e0325..00000000
--- a/assets/svg/s3.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/flutter_launcher_icons.yaml b/flutter_launcher_icons.yaml
deleted file mode 100644
index b610d107..00000000
--- a/flutter_launcher_icons.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-dev_dependencies:
- flutter_launcher_icons: "^0.13.1"
-
-flutter_launcher_icons:
- android: "launcher_icon"
- ios: true
- image_path: "assets/images/taskwarrior.png"
- min_sdk_android: 21 # android min sdk min:16, default 21
-
diff --git a/flutter_native_splash.yaml b/flutter_native_splash.yaml
deleted file mode 100644
index 278af04b..00000000
--- a/flutter_native_splash.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-flutter_native_splash:
- image: assets/images/taskwarrior_dark.png
- color: "#1a1a1a"
diff --git a/icons/icon.png b/icons/icon.png
new file mode 100644
index 00000000..90b7a9cd
Binary files /dev/null and b/icons/icon.png differ
diff --git a/index.html b/index.html
new file mode 100644
index 00000000..ea6bf215
--- /dev/null
+++ b/index.html
@@ -0,0 +1 @@
+goto /repo
\ No newline at end of file
diff --git a/ios/.gitignore b/ios/.gitignore
deleted file mode 100644
index 7a7f9873..00000000
--- a/ios/.gitignore
+++ /dev/null
@@ -1,34 +0,0 @@
-**/dgph
-*.mode1v3
-*.mode2v3
-*.moved-aside
-*.pbxuser
-*.perspectivev3
-**/*sync/
-.sconsign.dblite
-.tags*
-**/.vagrant/
-**/DerivedData/
-Icon?
-**/Pods/
-**/.symlinks/
-profile
-xcuserdata
-**/.generated/
-Flutter/App.framework
-Flutter/Flutter.framework
-Flutter/Flutter.podspec
-Flutter/Generated.xcconfig
-Flutter/ephemeral/
-Flutter/app.flx
-Flutter/app.zip
-Flutter/flutter_assets/
-Flutter/flutter_export_environment.sh
-ServiceDefinitions.json
-Runner/GeneratedPluginRegistrant.*
-
-# Exceptions to above rules.
-!default.mode1v3
-!default.mode2v3
-!default.pbxuser
-!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
deleted file mode 100644
index 7c569640..00000000
--- a/ios/Flutter/AppFrameworkInfo.plist
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleExecutable
- App
- CFBundleIdentifier
- io.flutter.flutter.app
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- App
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- MinimumOSVersion
- 12.0
-
-
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
deleted file mode 100644
index ec97fc6f..00000000
--- a/ios/Flutter/Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
-#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
deleted file mode 100644
index c4855bfe..00000000
--- a/ios/Flutter/Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "Generated.xcconfig"
diff --git a/ios/Podfile b/ios/Podfile
deleted file mode 100644
index 279576f3..00000000
--- a/ios/Podfile
+++ /dev/null
@@ -1,41 +0,0 @@
-# Uncomment this line to define a global platform for your project
-# platform :ios, '12.0'
-
-# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
-ENV['COCOAPODS_DISABLE_STATS'] = 'true'
-
-project 'Runner', {
- 'Debug' => :debug,
- 'Profile' => :release,
- 'Release' => :release,
-}
-
-def flutter_root
- generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
- unless File.exist?(generated_xcode_build_settings_path)
- raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
- end
-
- File.foreach(generated_xcode_build_settings_path) do |line|
- matches = line.match(/FLUTTER_ROOT\=(.*)/)
- return matches[1].strip if matches
- end
- raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
-end
-
-require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
-
-flutter_ios_podfile_setup
-
-target 'Runner' do
- use_frameworks!
- use_modular_headers!
-
- flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
-end
-
-post_install do |installer|
- installer.pods_project.targets.each do |target|
- flutter_additional_ios_build_settings(target)
- end
-end
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
deleted file mode 100644
index a7b8abbb..00000000
--- a/ios/Podfile.lock
+++ /dev/null
@@ -1,147 +0,0 @@
-PODS:
- - connectivity_plus (0.0.1):
- - Flutter
- - ReachabilitySwift
- - DKImagePickerController/Core (4.3.4):
- - DKImagePickerController/ImageDataManager
- - DKImagePickerController/Resource
- - DKImagePickerController/ImageDataManager (4.3.4)
- - DKImagePickerController/PhotoGallery (4.3.4):
- - DKImagePickerController/Core
- - DKPhotoGallery
- - DKImagePickerController/Resource (4.3.4)
- - DKPhotoGallery (0.0.17):
- - DKPhotoGallery/Core (= 0.0.17)
- - DKPhotoGallery/Model (= 0.0.17)
- - DKPhotoGallery/Preview (= 0.0.17)
- - DKPhotoGallery/Resource (= 0.0.17)
- - SDWebImage
- - SwiftyGif
- - DKPhotoGallery/Core (0.0.17):
- - DKPhotoGallery/Model
- - DKPhotoGallery/Preview
- - SDWebImage
- - SwiftyGif
- - DKPhotoGallery/Model (0.0.17):
- - SDWebImage
- - SwiftyGif
- - DKPhotoGallery/Preview (0.0.17):
- - DKPhotoGallery/Model
- - DKPhotoGallery/Resource
- - SDWebImage
- - SwiftyGif
- - DKPhotoGallery/Resource (0.0.17):
- - SDWebImage
- - SwiftyGif
- - file_picker (0.0.1):
- - DKImagePickerController/PhotoGallery
- - Flutter
- - file_picker_writable (0.0.1):
- - Flutter
- - file_selector_ios (0.0.1):
- - Flutter
- - Flutter (1.0.0)
- - flutter_local_notifications (0.0.1):
- - Flutter
- - flutter_native_splash (0.0.1):
- - Flutter
- - flutter_native_timezone (0.0.1):
- - Flutter
- - home_widget (0.0.1):
- - Flutter
- - package_info_plus (0.4.5):
- - Flutter
- - path_provider_foundation (0.0.1):
- - Flutter
- - FlutterMacOS
- - permission_handler_apple (9.0.4):
- - Flutter
- - ReachabilitySwift (5.0.0)
- - SDWebImage (5.19.0):
- - SDWebImage/Core (= 5.19.0)
- - SDWebImage/Core (5.19.0)
- - shared_preferences_foundation (0.0.1):
- - Flutter
- - FlutterMacOS
- - SwiftyGif (5.4.4)
- - url_launcher_ios (0.0.1):
- - Flutter
-
-DEPENDENCIES:
- - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- - file_picker (from `.symlinks/plugins/file_picker/ios`)
- - file_picker_writable (from `.symlinks/plugins/file_picker_writable/ios`)
- - file_selector_ios (from `.symlinks/plugins/file_selector_ios/ios`)
- - Flutter (from `Flutter`)
- - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
- - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
- - flutter_native_timezone (from `.symlinks/plugins/flutter_native_timezone/ios`)
- - home_widget (from `.symlinks/plugins/home_widget/ios`)
- - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
-
-SPEC REPOS:
- trunk:
- - DKImagePickerController
- - DKPhotoGallery
- - ReachabilitySwift
- - SDWebImage
- - SwiftyGif
-
-EXTERNAL SOURCES:
- connectivity_plus:
- :path: ".symlinks/plugins/connectivity_plus/ios"
- file_picker:
- :path: ".symlinks/plugins/file_picker/ios"
- file_picker_writable:
- :path: ".symlinks/plugins/file_picker_writable/ios"
- file_selector_ios:
- :path: ".symlinks/plugins/file_selector_ios/ios"
- Flutter:
- :path: Flutter
- flutter_local_notifications:
- :path: ".symlinks/plugins/flutter_local_notifications/ios"
- flutter_native_splash:
- :path: ".symlinks/plugins/flutter_native_splash/ios"
- flutter_native_timezone:
- :path: ".symlinks/plugins/flutter_native_timezone/ios"
- home_widget:
- :path: ".symlinks/plugins/home_widget/ios"
- package_info_plus:
- :path: ".symlinks/plugins/package_info_plus/ios"
- path_provider_foundation:
- :path: ".symlinks/plugins/path_provider_foundation/darwin"
- permission_handler_apple:
- :path: ".symlinks/plugins/permission_handler_apple/ios"
- shared_preferences_foundation:
- :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
- url_launcher_ios:
- :path: ".symlinks/plugins/url_launcher_ios/ios"
-
-SPEC CHECKSUMS:
- connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
- DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
- DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
- file_picker: 15fd9539e4eb735dc54bae8c0534a7a9511a03de
- file_picker_writable: 67959f5c516feb5121693a14eda63fcbe6cbb6dc
- file_selector_ios: 8c25d700d625e1dcdd6599f2d927072f2254647b
- Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
- flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
- flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef
- flutter_native_timezone: 5f05b2de06c9776b4cc70e1839f03de178394d22
- home_widget: 0434835a4c9a75704264feff6be17ea40e0f0d57
- package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
- path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
- permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
- ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
- SDWebImage: 981fd7e860af070920f249fd092420006014c3eb
- shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
- SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
- url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812
-
-PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011
-
-COCOAPODS: 1.14.3
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index dbf0250c..00000000
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,552 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 54;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 64C7FEE08035BC9BB0C038EF /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 089D9819C0366C673FE320BF /* Pods_Runner.framework */; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 089D9819C0366C673FE320BF /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 162E9301614D923D4E360425 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- CCEEA0AE8F1C59FFACAE45B3 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
- DB57389FBBE4024E44956E34 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 64C7FEE08035BC9BB0C038EF /* Pods_Runner.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- C3171261BB8F68A7E2CB70A5 /* Pods */,
- EC04A4346BDDFBE60E9077C7 /* Frameworks */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
- C3171261BB8F68A7E2CB70A5 /* Pods */ = {
- isa = PBXGroup;
- children = (
- CCEEA0AE8F1C59FFACAE45B3 /* Pods-Runner.debug.xcconfig */,
- DB57389FBBE4024E44956E34 /* Pods-Runner.release.xcconfig */,
- 162E9301614D923D4E360425 /* Pods-Runner.profile.xcconfig */,
- );
- name = Pods;
- path = Pods;
- sourceTree = "";
- };
- EC04A4346BDDFBE60E9077C7 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 089D9819C0366C673FE320BF /* Pods_Runner.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 2123C8066096B8DDE567BB91 /* [CP] Check Pods Manifest.lock */,
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- E6257F2992FA3E40BE65E7BD /* [CP] Embed Pods Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1510;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- LastSwiftMigration = 1100;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 2123C8066096B8DDE567BB91 /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
- E6257F2992FA3E40BE65E7BD /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
- );
- name = "[CP] Embed Pods Frameworks";
- outputFileListPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Profile;
- };
- 249021D4217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.taskwarrior;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.taskwarrior;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.taskwarrior;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- 249021D3217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- 249021D4217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 919434a6..00000000
--- a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d98100..00000000
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
deleted file mode 100644
index f9b0d7c5..00000000
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- PreviewsEnabled
-
-
-
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index 5e31d3d3..00000000
--- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 21a3cc14..00000000
--- a/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d98100..00000000
--- a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
deleted file mode 100644
index f9b0d7c5..00000000
--- a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- PreviewsEnabled
-
-
-
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
deleted file mode 100644
index 090af1a3..00000000
--- a/ios/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,16 +0,0 @@
-import UIKit
-import Flutter
-
-@UIApplicationMain
-@objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
- if #available(iOS 10.0, *) {
- UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
- }
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
-}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png
deleted file mode 100644
index b4dadf05..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png
deleted file mode 100644
index 5d664ded..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png
deleted file mode 100644
index 5754669a..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png
deleted file mode 100644
index ea28448d..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png
deleted file mode 100644
index acf60b1a..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png
deleted file mode 100644
index ff2552d3..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png
deleted file mode 100644
index 0873c996..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png
deleted file mode 100644
index 78314f14..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png
deleted file mode 100644
index 85a2db81..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png
deleted file mode 100644
index f0440b17..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png
deleted file mode 100644
index d0563ec3..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png
deleted file mode 100644
index 87bdd6a5..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png
deleted file mode 100644
index 5204368f..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png
deleted file mode 100644
index ce9a2ffc..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png
deleted file mode 100644
index d213182d..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png
deleted file mode 100644
index 8a205814..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png
deleted file mode 100644
index 618d3da2..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png
deleted file mode 100644
index 1b17281d..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png
deleted file mode 100644
index e42df5ae..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png
deleted file mode 100644
index b1d246d2..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png
deleted file mode 100644
index 0ea54da7..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png
deleted file mode 100644
index 78665122..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png
deleted file mode 100644
index 3bab1549..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png
deleted file mode 100644
index a41b3ba5..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png
deleted file mode 100644
index e11cd0a8..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index 5c82812f..00000000
--- a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1 +0,0 @@
-{"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"60x60","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"57x57","expected-size":"57","filename":"57.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"57x57","expected-size":"114","filename":"114.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"60","filename":"60.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"1024x1024","filename":"1024.png","expected-size":"1024","idiom":"ios-marketing","folder":"Assets.xcassets/AppIcon.appiconset/","scale":"1x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"72x72","expected-size":"72","filename":"72.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"76x76","expected-size":"152","filename":"152.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"50x50","expected-size":"100","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"76x76","expected-size":"76","filename":"76.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"50x50","expected-size":"50","filename":"50.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"72x72","expected-size":"144","filename":"144.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"40x40","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"83.5x83.5","expected-size":"167","filename":"167.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"20x20","expected-size":"20","filename":"20.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"128x128","expected-size":"128","filename":"128.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"256x256","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"128x128","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"256x256","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"512x512","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"16","filename":"16.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"64","filename":"64.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"512x512","expected-size":"1024","filename":"1024.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"}]}
\ No newline at end of file
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
deleted file mode 100644
index c24c7ef0..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
deleted file mode 100644
index a5614000..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
deleted file mode 100644
index 587245be..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
deleted file mode 100644
index 1f2f123a..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
deleted file mode 100644
index 668e73b4..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
deleted file mode 100644
index 678b4594..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
deleted file mode 100644
index 23e796f4..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
deleted file mode 100644
index 587245be..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
deleted file mode 100644
index f7c73971..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
deleted file mode 100644
index 4d952243..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
deleted file mode 100644
index ffbcb702..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
deleted file mode 100644
index 1a5b6146..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
deleted file mode 100644
index 84b71305..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
deleted file mode 100644
index ee0efead..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
deleted file mode 100644
index 4d952243..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
deleted file mode 100644
index 80f8831f..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
deleted file mode 100644
index f9a49395..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
deleted file mode 100644
index 2e83bc6d..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
deleted file mode 100644
index 08480c41..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
deleted file mode 100644
index 6c24066c..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
deleted file mode 100644
index e1a389c3..00000000
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json
deleted file mode 100644
index 9f447e1b..00000000
--- a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "images" : [
- {
- "filename" : "background.png",
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png
deleted file mode 100644
index 6fc03989..00000000
Binary files a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
deleted file mode 100644
index 00cabce8..00000000
--- a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "images" : [
- {
- "filename" : "LaunchImage.png",
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "filename" : "LaunchImage@2x.png",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "LaunchImage@3x.png",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
deleted file mode 100644
index df2c5e6d..00000000
Binary files a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
deleted file mode 100644
index e9b10fe0..00000000
Binary files a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
deleted file mode 100644
index edc661df..00000000
Binary files a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
deleted file mode 100644
index 89c2725b..00000000
--- a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Launch Screen Assets
-
-You can customize the launch screen with your own desired assets by replacing the image files in this directory.
-
-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.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index 7aa6dfbc..00000000
--- a/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
deleted file mode 100644
index f3c28516..00000000
--- a/ios/Runner/Base.lproj/Main.storyboard
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
deleted file mode 100644
index a878453f..00000000
--- a/ios/Runner/Info.plist
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleDisplayName
- Taskwarrior
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- com.ccextractor.taskwarriorflutter
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- TaskWarrior
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleSignature
- ????
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- LSApplicationQueriesSchemes
-
- https://ccextractor.org/
- https://github.com/CCExtractor/taskwarrior-flutter
-
- UIViewControllerBasedStatusBarAppearance
-
- UIStatusBarHidden
-
- CADisableMinimumFrameDurationOnPhone
-
- UIApplicationSupportsIndirectInputEvents
-
-
-
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
deleted file mode 100644
index 308a2a56..00000000
--- a/ios/Runner/Runner-Bridging-Header.h
+++ /dev/null
@@ -1 +0,0 @@
-#import "GeneratedPluginRegistrant.h"
diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift
deleted file mode 100644
index 86a7c3b1..00000000
--- a/ios/RunnerTests/RunnerTests.swift
+++ /dev/null
@@ -1,12 +0,0 @@
-import Flutter
-import UIKit
-import XCTest
-
-class RunnerTests: XCTestCase {
-
- func testExample() {
- // If you add code to the Runner application, consider adding tests here.
- // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
- }
-
-}
diff --git a/lib/app/models/chart.dart b/lib/app/models/chart.dart
deleted file mode 100644
index 841caf27..00000000
--- a/lib/app/models/chart.dart
+++ /dev/null
@@ -1,6 +0,0 @@
-class ChartData {
- ChartData(this.x, this.y1, this.y2);
- final String x;
- final int y1;
- final int y2;
-}
diff --git a/lib/app/models/data.dart b/lib/app/models/data.dart
deleted file mode 100644
index 3fe5c66c..00000000
--- a/lib/app/models/data.dart
+++ /dev/null
@@ -1,233 +0,0 @@
-// ignore_for_file: prefer_expression_function_bodies
-
-import 'dart:collection';
-import 'dart:convert';
-import 'dart:io';
-
-import 'package:taskwarrior/app/models/json/task.dart';
-import 'package:taskwarrior/app/services/notification_services.dart';
-import 'package:taskwarrior/app/utils/taskc/payload.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/urgency.dart';
-class Data {
- Data(this.home);
-
- final Directory home;
-
- void updateWaitOrUntil(Iterable pendingData) {
- var now = DateTime.now().toUtc();
- for (var task in pendingData) {
- if (task.until != null && task.until!.isBefore(now)) {
- mergeTask(
- task.rebuild(
- (b) => b
- ..status = 'deleted'
- ..end = now,
- ),
- );
- } else if (task.status == 'waiting' &&
- (task.wait == null || task.wait!.isBefore(now))) {
- _mergeTasks(
- [
- task.rebuild(
- (b) => b
- ..status = 'pending'
- ..wait = null,
- ),
- ],
- );
- }
- }
- }
-
- List pendingData() {
- var data = _allData().where(
- (task) => task.status != 'completed' && task.status != 'deleted');
- var now = DateTime.now();
- if (data.any((task) =>
- (task.until != null && task.until!.isBefore(now)) ||
- (task.status == 'waiting' &&
- (task.wait == null || task.wait!.isBefore(now))))) {
- updateWaitOrUntil(data);
- data = _allData().where(
- (task) => task.status != 'completed' && task.status != 'deleted');
- }
- return data
- .toList()
- .asMap()
- .entries
- .map((entry) => entry.value.rebuild((b) => b..id = entry.key + 1))
- .toList();
- }
-
- List _completedData() {
- var data = _allData().where(
- (task) => task.status == 'completed' || task.status == 'deleted');
- return [
- for (var task in data) task.rebuild((b) => b..id = 0),
- ];
- }
-
- List completedData() {
- var data = _allData().where(
- (task) => task.status == 'completed' || task.status == 'deleted');
- return data
- .toList()
- .asMap()
- .entries
- .map((entry) => entry.value.rebuild((b) => b..id = entry.key + 1))
- .toList();
- }
-
- List waitingData() {
- var data = _allData().where((task) => task.status == 'waiting');
- return [
- for (var task in data) task.rebuild((b) => b..id = 0),
- ];
- }
-
- List allData() {
- var data = pendingData()..addAll(_completedData());
- return data;
- }
-
- List _allData() => [
- if (File('${home.path}/.task/all.data').existsSync())
- for (var line in File('${home.path}/.task/all.data')
- .readAsStringSync()
- .trim()
- .split('\n'))
- if (line.isNotEmpty) Task.fromJson(json.decode(line)),
- ];
-
- String export() {
- var string = allData()
- .map((task) {
- var jsonTask = task.toJson();
-
- jsonTask['urgency'] = num.parse(urgency(task)
- .toStringAsFixed(1)
- .replaceFirst(RegExp(r'.0$'), ''));
-
- var keyOrder = [
- 'id',
- 'annotations',
- 'depends',
- 'description',
- 'due',
- 'end',
- 'entry',
- 'imask',
- 'mask',
- 'modified',
- 'parent',
- 'priority',
- 'project',
- 'recur',
- 'scheduled',
- 'start',
- 'status',
- 'tags',
- 'until',
- 'uuid',
- 'wait',
- 'urgency',
- ].asMap().map((key, value) => MapEntry(value, key));
-
- var fallbackOrder = jsonTask.keys
- .toList()
- .asMap()
- .map((key, value) => MapEntry(value, key));
-
- for (var entry in fallbackOrder.entries) {
- keyOrder.putIfAbsent(
- entry.key,
- () => entry.value + keyOrder.length,
- );
- }
-
- return json.encode(SplayTreeMap.of(jsonTask, (key1, key2) {
- return keyOrder[key1]!.compareTo(keyOrder[key2]!);
- }));
- })
- .toList()
- .join(',\n');
- return '[\n$string\n]\n';
- }
-
- void mergeTask(Task task) {
- NotificationService notificationService = NotificationService();
- notificationService.initiliazeNotification();
-
- if (task.status == 'pending' && task.due != null) {
- int notificationid = notificationService.calculateNotificationId(
- task.due!, task.description, false, task.entry);
- notificationService.cancelNotification(notificationid);
- notificationService.sendNotification(
- task.due!, task.description, false, task.entry);
- if (task.wait != null) {
- int waitNotificationId = notificationService.calculateNotificationId(
- task.wait!, task.description, true, task.entry);
- notificationService.cancelNotification(waitNotificationId);
- notificationService.sendNotification(
- task.wait!, task.description, true, task.entry);
- }
- } else if (task.due != null) {
- int notificationid = notificationService.calculateNotificationId(
- task.due!, task.description, false, task.entry);
-
- notificationService.cancelNotification(notificationid);
- }
- _mergeTasks([task]);
- File('${home.path}/.task/backlog.data').writeAsStringSync(
- '${json.encode(task.rebuild((b) => b..id = null).toJson())}\n',
- mode: FileMode.append,
- );
- }
-
- Task getTask(String uuid) {
- return allData().firstWhere((task) => task.uuid == uuid);
- }
-
- void _mergeTasks(List tasks) {
- File('${home.path}/.task/all.data').createSync(recursive: true);
- var lines = File('${home.path}/.task/all.data')
- .readAsStringSync()
- .trim()
- .split('\n');
- var taskMap = {
- for (var taskLine in lines)
- if (taskLine.isNotEmpty)
- (json.decode(taskLine) as Map)['uuid']: taskLine,
- };
- for (var task in tasks) {
- taskMap[task.uuid] =
- json.encode(task.rebuild((b) => b..id = null).toJson());
- }
- File('${home.path}/.task/all.data').writeAsStringSync('');
- for (var task in taskMap.values) {
- File('${home.path}/.task/all.data').writeAsStringSync(
- '$task\n',
- mode: FileMode.append,
- );
- }
- }
-
- String payload() {
- var payload = '';
- if (File('${home.path}/.task/backlog.data').existsSync()) {
- payload = File('${home.path}/.task/backlog.data').readAsStringSync();
- }
- return payload;
- }
-
- void mergeSynchronizeResponse(Payload payload) {
- var tasks = [
- for (var task in payload.tasks)
- Task.fromJson(
- (json.decode(task) as Map)..remove('id')),
- ];
- _mergeTasks(tasks);
- File('${home.path}/.task/backlog.data')
- .writeAsStringSync('${payload.userKey}\n');
- }
-}
diff --git a/lib/app/models/filters.dart b/lib/app/models/filters.dart
deleted file mode 100644
index a2296246..00000000
--- a/lib/app/models/filters.dart
+++ /dev/null
@@ -1,23 +0,0 @@
-import 'package:taskwarrior/app/services/tag_filter.dart';
-
-class Filters {
- const Filters({
- required this.pendingFilter,
- required this.waitingFilter,
- required this.togglePendingFilter,
- required this.toggleWaitingFilter,
- required this.tagFilters,
- required this.projects,
- required this.projectFilter,
- required this.toggleProjectFilter,
- });
-
- final bool pendingFilter;
- final bool waitingFilter;
- final void Function() togglePendingFilter;
- final void Function() toggleWaitingFilter;
- final TagFilters tagFilters;
- final dynamic projects;
- final String projectFilter;
- final void Function(String) toggleProjectFilter;
-}
\ No newline at end of file
diff --git a/lib/app/models/json/annotation.dart b/lib/app/models/json/annotation.dart
deleted file mode 100644
index 5fe2b34a..00000000
--- a/lib/app/models/json/annotation.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages
-
-import 'package:built_value/built_value.dart';
-import 'package:built_value/serializer.dart';
-import 'package:taskwarrior/app/models/json/serializers.dart';
-
-
-
-part 'annotation.g.dart';
-
-abstract class Annotation implements Built {
- factory Annotation([void Function(AnnotationBuilder) updates]) = _$Annotation;
- Annotation._();
-
- static Annotation fromJson(dynamic json) {
- return serializers.deserializeWith(Annotation.serializer, json)!;
- }
-
- DateTime get entry;
- String get description;
-
- Map toJson() =>
- serializers.serializeWith(Annotation.serializer, this)! as Map;
-
- static Serializer get serializer => _$annotationSerializer;
-}
diff --git a/lib/app/models/json/annotation.g.dart b/lib/app/models/json/annotation.g.dart
deleted file mode 100644
index 161b5500..00000000
--- a/lib/app/models/json/annotation.g.dart
+++ /dev/null
@@ -1,151 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'annotation.dart';
-
-// **************************************************************************
-// BuiltValueGenerator
-// **************************************************************************
-
-Serializer _$annotationSerializer = new _$AnnotationSerializer();
-
-class _$AnnotationSerializer implements StructuredSerializer {
- @override
- final Iterable types = const [Annotation, _$Annotation];
- @override
- final String wireName = 'Annotation';
-
- @override
- Iterable serialize(Serializers serializers, Annotation object,
- {FullType specifiedType = FullType.unspecified}) {
- final result = [
- 'entry',
- serializers.serialize(object.entry,
- specifiedType: const FullType(DateTime)),
- 'description',
- serializers.serialize(object.description,
- specifiedType: const FullType(String)),
- ];
-
- return result;
- }
-
- @override
- Annotation deserialize(Serializers serializers, Iterable serialized,
- {FullType specifiedType = FullType.unspecified}) {
- final result = new AnnotationBuilder();
-
- final iterator = serialized.iterator;
- while (iterator.moveNext()) {
- final key = iterator.current! as String;
- iterator.moveNext();
- final Object? value = iterator.current;
- switch (key) {
- case 'entry':
- result.entry = serializers.deserialize(value,
- specifiedType: const FullType(DateTime))! as DateTime;
- break;
- case 'description':
- result.description = serializers.deserialize(value,
- specifiedType: const FullType(String))! as String;
- break;
- }
- }
-
- return result.build();
- }
-}
-
-class _$Annotation extends Annotation {
- @override
- final DateTime entry;
- @override
- final String description;
-
- factory _$Annotation([void Function(AnnotationBuilder)? updates]) =>
- (new AnnotationBuilder()..update(updates))._build();
-
- _$Annotation._({required this.entry, required this.description}) : super._() {
- BuiltValueNullFieldError.checkNotNull(entry, r'Annotation', 'entry');
- BuiltValueNullFieldError.checkNotNull(
- description, r'Annotation', 'description');
- }
-
- @override
- Annotation rebuild(void Function(AnnotationBuilder) updates) =>
- (toBuilder()..update(updates)).build();
-
- @override
- AnnotationBuilder toBuilder() => new AnnotationBuilder()..replace(this);
-
- @override
- bool operator ==(Object other) {
- if (identical(other, this)) return true;
- return other is Annotation &&
- entry == other.entry &&
- description == other.description;
- }
-
- @override
- int get hashCode {
- return $jf($jc($jc(0, entry.hashCode), description.hashCode));
- }
-
- @override
- String toString() {
- return (newBuiltValueToStringHelper(r'Annotation')
- ..add('entry', entry)
- ..add('description', description))
- .toString();
- }
-}
-
-class AnnotationBuilder implements Builder {
- _$Annotation? _$v;
-
- DateTime? _entry;
- DateTime? get entry => _$this._entry;
- set entry(DateTime? entry) => _$this._entry = entry;
-
- String? _description;
- String? get description => _$this._description;
- set description(String? description) => _$this._description = description;
-
- AnnotationBuilder();
-
- AnnotationBuilder get _$this {
- final $v = _$v;
- if ($v != null) {
- _entry = $v.entry;
- _description = $v.description;
- _$v = null;
- }
- return this;
- }
-
- @override
- void replace(Annotation other) {
- ArgumentError.checkNotNull(other, 'other');
- _$v = other as _$Annotation;
- }
-
- @override
- void update(void Function(AnnotationBuilder)? updates) {
- if (updates != null) updates(this);
- }
-
- @override
- Annotation build() => _build();
-
- _$Annotation _build() {
- final _$result = _$v ??
- new _$Annotation._(
- entry: BuiltValueNullFieldError.checkNotNull(
- entry, r'Annotation', 'entry'),
- description: BuiltValueNullFieldError.checkNotNull(
- description, r'Annotation', 'description'));
- replace(_$result);
- return _$result;
- }
-}
-
-// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas
diff --git a/lib/app/models/json/iso_8601_basic.dart b/lib/app/models/json/iso_8601_basic.dart
deleted file mode 100644
index a7451a43..00000000
--- a/lib/app/models/json/iso_8601_basic.dart
+++ /dev/null
@@ -1,24 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages
-
-import 'package:built_value/iso_8601_date_time_serializer.dart';
-import 'package:built_value/serializer.dart';
-import 'package:intl/intl.dart';
-
-/// > Dates are rendered in ISO 8601 combined date and time in UTC format using
-/// > the template: `YYYYMMDDTHHMMSSZ`. An example: `20120110T231200Z`. No other
-/// > formats are supported. --
-/// > .
-final DateFormat iso8601Basic = DateFormat('yMMddTHHmmss\'Z\'');
-
-class Iso8601BasicDateTimeSerializer extends Iso8601DateTimeSerializer {
- @override
- Object serialize(Serializers serializers, DateTime dateTime,
- {FullType specifiedType = FullType.unspecified}) {
- if (!dateTime.isUtc) {
- throw ArgumentError.value(
- dateTime, 'dateTime', 'Must be in utc for serialization.');
- }
-
- return iso8601Basic.format(dateTime);
- }
-}
diff --git a/lib/app/models/json/serializers.dart b/lib/app/models/json/serializers.dart
deleted file mode 100644
index fce4ca6b..00000000
--- a/lib/app/models/json/serializers.dart
+++ /dev/null
@@ -1,21 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages
-
-import 'package:built_collection/built_collection.dart';
-import 'package:built_value/serializer.dart';
-import 'package:built_value/standard_json_plugin.dart';
-import 'package:taskwarrior/app/models/json/annotation.dart';
-import 'package:taskwarrior/app/models/json/iso_8601_basic.dart';
-import 'package:taskwarrior/app/models/json/task.dart';
-
-
-
-part 'serializers.g.dart';
-
-@SerializersFor([
- Annotation,
- Task,
-])
-final Serializers serializers = (_$serializers.toBuilder()
- ..add(Iso8601BasicDateTimeSerializer())
- ..addPlugin(StandardJsonPlugin()))
- .build();
diff --git a/lib/app/models/json/serializers.g.dart b/lib/app/models/json/serializers.g.dart
deleted file mode 100644
index a2a1ced5..00000000
--- a/lib/app/models/json/serializers.g.dart
+++ /dev/null
@@ -1,23 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'serializers.dart';
-
-// **************************************************************************
-// BuiltValueGenerator
-// **************************************************************************
-
-Serializers _$serializers = (new Serializers().toBuilder()
- ..add(Annotation.serializer)
- ..add(Task.serializer)
- ..addBuilderFactory(
- const FullType(BuiltList, const [const FullType(String)]),
- () => new ListBuilder())
- ..addBuilderFactory(
- const FullType(BuiltList, const [const FullType(String)]),
- () => new ListBuilder())
- ..addBuilderFactory(
- const FullType(BuiltList, const [const FullType(Annotation)]),
- () => new ListBuilder()))
- .build();
-
-// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas
diff --git a/lib/app/models/json/task.dart b/lib/app/models/json/task.dart
deleted file mode 100644
index b178ef35..00000000
--- a/lib/app/models/json/task.dart
+++ /dev/null
@@ -1,106 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages
-
-import 'dart:convert';
-
-import 'package:built_collection/built_collection.dart';
-import 'package:built_value/built_value.dart';
-import 'package:built_value/serializer.dart';
-import 'package:taskwarrior/app/models/json/annotation.dart';
-import 'package:taskwarrior/app/models/json/serializers.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/validate.dart';
-
-
-part 'task.g.dart';
-
-final coreAttributes = [
- 'id',
- 'status',
- 'uuid',
- 'entry',
- 'description',
- 'start',
- 'end',
- 'due',
- 'until',
- 'wait',
- 'modified',
- 'scheduled',
- 'recur',
- 'mask',
- 'imask',
- 'parent',
- 'project',
- 'priority',
- 'depends',
- 'tags',
- 'annotations',
- 'urgency',
-];
-
-abstract class Task implements Built {
- factory Task([void Function(TaskBuilder) updates]) = _$Task;
- Task._() {
- validateTaskDescription(description);
- if (project != null) {
- validateTaskProject(project!);
- }
- if (tags != null) {
- tags!.forEach(validateTaskTags);
- }
- }
-
- static Task fromJson(Map json) {
- var udas = Map.of(json)
- ..removeWhere((key, _) => coreAttributes.contains(key));
- var result = Map.of(json)
- ..removeWhere((key, _) => !coreAttributes.contains(key))
- ..['depends'] = ((x) => (x is String) ? x.split(',') : x)(json['depends'])
- ..['imask'] = (json['imask'] as num?)?.toInt()
- ..['udas'] = (udas.isEmpty) ? null : jsonEncode(udas);
- return serializers.deserializeWith(Task.serializer, result)!;
- }
-
- Map toJson() {
- var result = serializers.serializeWith(Task.serializer, this)!
- as Map;
-
- if (result['depends'] != null) {
- result['depends'] = (result['depends'] as List).join(',');
- }
-
- if (result['udas'] != null) {
- var udas = Map.of(json.decode(result['udas']));
- result
- ..remove('udas')
- ..addAll(udas);
- }
-
- return result;
- }
-
- int? get id;
- String get status;
- String get uuid;
- DateTime get entry;
- String get description;
- DateTime? get start;
- DateTime? get end;
- DateTime? get due;
- DateTime? get until;
- DateTime? get wait;
- DateTime? get modified;
- DateTime? get scheduled;
- String? get recur;
- String? get mask;
- int? get imask;
- String? get parent;
- String? get project;
- String? get priority;
- BuiltList? get depends;
- BuiltList? get tags;
- BuiltList? get annotations;
- String? get udas;
- double? get urgency;
-
- static Serializer get serializer => _$taskSerializer;
-}
diff --git a/lib/app/models/json/task.g.dart b/lib/app/models/json/task.g.dart
deleted file mode 100644
index a1232df1..00000000
--- a/lib/app/models/json/task.g.dart
+++ /dev/null
@@ -1,678 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'task.dart';
-
-// **************************************************************************
-// BuiltValueGenerator
-// **************************************************************************
-
-Serializer _$taskSerializer = new _$TaskSerializer();
-
-class _$TaskSerializer implements StructuredSerializer {
- @override
- final Iterable types = const [Task, _$Task];
- @override
- final String wireName = 'Task';
-
- @override
- Iterable serialize(Serializers serializers, Task object,
- {FullType specifiedType = FullType.unspecified}) {
- final result = [
- 'status',
- serializers.serialize(object.status,
- specifiedType: const FullType(String)),
- 'uuid',
- serializers.serialize(object.uuid, specifiedType: const FullType(String)),
- 'entry',
- serializers.serialize(object.entry,
- specifiedType: const FullType(DateTime)),
- 'description',
- serializers.serialize(object.description,
- specifiedType: const FullType(String)),
- ];
- Object? value;
- value = object.id;
- if (value != null) {
- result
- ..add('id')
- ..add(serializers.serialize(value, specifiedType: const FullType(int)));
- }
- value = object.start;
- if (value != null) {
- result
- ..add('start')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(DateTime)));
- }
- value = object.end;
- if (value != null) {
- result
- ..add('end')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(DateTime)));
- }
- value = object.due;
- if (value != null) {
- result
- ..add('due')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(DateTime)));
- }
- value = object.until;
- if (value != null) {
- result
- ..add('until')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(DateTime)));
- }
- value = object.wait;
- if (value != null) {
- result
- ..add('wait')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(DateTime)));
- }
- value = object.modified;
- if (value != null) {
- result
- ..add('modified')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(DateTime)));
- }
- value = object.scheduled;
- if (value != null) {
- result
- ..add('scheduled')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(DateTime)));
- }
- value = object.recur;
- if (value != null) {
- result
- ..add('recur')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(String)));
- }
- value = object.mask;
- if (value != null) {
- result
- ..add('mask')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(String)));
- }
- value = object.imask;
- if (value != null) {
- result
- ..add('imask')
- ..add(serializers.serialize(value, specifiedType: const FullType(int)));
- }
- value = object.parent;
- if (value != null) {
- result
- ..add('parent')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(String)));
- }
- value = object.project;
- if (value != null) {
- result
- ..add('project')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(String)));
- }
- value = object.priority;
- if (value != null) {
- result
- ..add('priority')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(String)));
- }
- value = object.depends;
- if (value != null) {
- result
- ..add('depends')
- ..add(serializers.serialize(value,
- specifiedType:
- const FullType(BuiltList, const [const FullType(String)])));
- }
- value = object.tags;
- if (value != null) {
- result
- ..add('tags')
- ..add(serializers.serialize(value,
- specifiedType:
- const FullType(BuiltList, const [const FullType(String)])));
- }
- value = object.annotations;
- if (value != null) {
- result
- ..add('annotations')
- ..add(serializers.serialize(value,
- specifiedType:
- const FullType(BuiltList, const [const FullType(Annotation)])));
- }
- value = object.udas;
- if (value != null) {
- result
- ..add('udas')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(String)));
- }
- value = object.urgency;
- if (value != null) {
- result
- ..add('urgency')
- ..add(serializers.serialize(value,
- specifiedType: const FullType(double)));
- }
- return result;
- }
-
- @override
- Task deserialize(Serializers serializers, Iterable serialized,
- {FullType specifiedType = FullType.unspecified}) {
- final result = new TaskBuilder();
-
- final iterator = serialized.iterator;
- while (iterator.moveNext()) {
- final key = iterator.current! as String;
- iterator.moveNext();
- final Object? value = iterator.current;
- switch (key) {
- case 'id':
- result.id = serializers.deserialize(value,
- specifiedType: const FullType(int)) as int?;
- break;
- case 'status':
- result.status = serializers.deserialize(value,
- specifiedType: const FullType(String))! as String;
- break;
- case 'uuid':
- result.uuid = serializers.deserialize(value,
- specifiedType: const FullType(String))! as String;
- break;
- case 'entry':
- result.entry = serializers.deserialize(value,
- specifiedType: const FullType(DateTime))! as DateTime;
- break;
- case 'description':
- result.description = serializers.deserialize(value,
- specifiedType: const FullType(String))! as String;
- break;
- case 'start':
- result.start = serializers.deserialize(value,
- specifiedType: const FullType(DateTime)) as DateTime?;
- break;
- case 'end':
- result.end = serializers.deserialize(value,
- specifiedType: const FullType(DateTime)) as DateTime?;
- break;
- case 'due':
- result.due = serializers.deserialize(value,
- specifiedType: const FullType(DateTime)) as DateTime?;
- break;
- case 'until':
- result.until = serializers.deserialize(value,
- specifiedType: const FullType(DateTime)) as DateTime?;
- break;
- case 'wait':
- result.wait = serializers.deserialize(value,
- specifiedType: const FullType(DateTime)) as DateTime?;
- break;
- case 'modified':
- result.modified = serializers.deserialize(value,
- specifiedType: const FullType(DateTime)) as DateTime?;
- break;
- case 'scheduled':
- result.scheduled = serializers.deserialize(value,
- specifiedType: const FullType(DateTime)) as DateTime?;
- break;
- case 'recur':
- result.recur = serializers.deserialize(value,
- specifiedType: const FullType(String)) as String?;
- break;
- case 'mask':
- result.mask = serializers.deserialize(value,
- specifiedType: const FullType(String)) as String?;
- break;
- case 'imask':
- result.imask = serializers.deserialize(value,
- specifiedType: const FullType(int)) as int?;
- break;
- case 'parent':
- result.parent = serializers.deserialize(value,
- specifiedType: const FullType(String)) as String?;
- break;
- case 'project':
- result.project = serializers.deserialize(value,
- specifiedType: const FullType(String)) as String?;
- break;
- case 'priority':
- result.priority = serializers.deserialize(value,
- specifiedType: const FullType(String)) as String?;
- break;
- case 'depends':
- result.depends.replace(serializers.deserialize(value,
- specifiedType: const FullType(
- BuiltList, const [const FullType(String)]))!
- as BuiltList);
- break;
- case 'tags':
- result.tags.replace(serializers.deserialize(value,
- specifiedType: const FullType(
- BuiltList, const [const FullType(String)]))!
- as BuiltList);
- break;
- case 'annotations':
- result.annotations.replace(serializers.deserialize(value,
- specifiedType: const FullType(
- BuiltList, const [const FullType(Annotation)]))!
- as BuiltList);
- break;
- case 'udas':
- result.udas = serializers.deserialize(value,
- specifiedType: const FullType(String)) as String?;
- break;
- case 'urgency':
- result.urgency = serializers.deserialize(value,
- specifiedType: const FullType(double)) as double?;
- break;
- }
- }
-
- return result.build();
- }
-}
-
-class _$Task extends Task {
- @override
- final int? id;
- @override
- final String status;
- @override
- final String uuid;
- @override
- final DateTime entry;
- @override
- final String description;
- @override
- final DateTime? start;
- @override
- final DateTime? end;
- @override
- final DateTime? due;
- @override
- final DateTime? until;
- @override
- final DateTime? wait;
- @override
- final DateTime? modified;
- @override
- final DateTime? scheduled;
- @override
- final String? recur;
- @override
- final String? mask;
- @override
- final int? imask;
- @override
- final String? parent;
- @override
- final String? project;
- @override
- final String? priority;
- @override
- final BuiltList? depends;
- @override
- final BuiltList? tags;
- @override
- final BuiltList? annotations;
- @override
- final String? udas;
- @override
- final double? urgency;
-
- factory _$Task([void Function(TaskBuilder)? updates]) =>
- (new TaskBuilder()..update(updates))._build();
-
- _$Task._(
- {this.id,
- required this.status,
- required this.uuid,
- required this.entry,
- required this.description,
- this.start,
- this.end,
- this.due,
- this.until,
- this.wait,
- this.modified,
- this.scheduled,
- this.recur,
- this.mask,
- this.imask,
- this.parent,
- this.project,
- this.priority,
- this.depends,
- this.tags,
- this.annotations,
- this.udas,
- this.urgency})
- : super._() {
- BuiltValueNullFieldError.checkNotNull(status, r'Task', 'status');
- BuiltValueNullFieldError.checkNotNull(uuid, r'Task', 'uuid');
- BuiltValueNullFieldError.checkNotNull(entry, r'Task', 'entry');
- BuiltValueNullFieldError.checkNotNull(description, r'Task', 'description');
- }
-
- @override
- Task rebuild(void Function(TaskBuilder) updates) =>
- (toBuilder()..update(updates)).build();
-
- @override
- TaskBuilder toBuilder() => new TaskBuilder()..replace(this);
-
- @override
- bool operator ==(Object other) {
- if (identical(other, this)) return true;
- return other is Task &&
- id == other.id &&
- status == other.status &&
- uuid == other.uuid &&
- entry == other.entry &&
- description == other.description &&
- start == other.start &&
- end == other.end &&
- due == other.due &&
- until == other.until &&
- wait == other.wait &&
- modified == other.modified &&
- scheduled == other.scheduled &&
- recur == other.recur &&
- mask == other.mask &&
- imask == other.imask &&
- parent == other.parent &&
- project == other.project &&
- priority == other.priority &&
- depends == other.depends &&
- tags == other.tags &&
- annotations == other.annotations &&
- udas == other.udas &&
- urgency == other.urgency;
- }
-
- @override
- int get hashCode {
- return $jf($jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc(
- $jc($jc($jc($jc($jc(0, id.hashCode), status.hashCode), uuid.hashCode), entry.hashCode),
- description.hashCode),
- start.hashCode),
- end.hashCode),
- due.hashCode),
- until.hashCode),
- wait.hashCode),
- modified.hashCode),
- scheduled.hashCode),
- recur.hashCode),
- mask.hashCode),
- imask.hashCode),
- parent.hashCode),
- project.hashCode),
- priority.hashCode),
- depends.hashCode),
- tags.hashCode),
- annotations.hashCode),
- udas.hashCode),
- urgency.hashCode));
- }
-
- @override
- String toString() {
- return (newBuiltValueToStringHelper(r'Task')
- ..add('id', id)
- ..add('status', status)
- ..add('uuid', uuid)
- ..add('entry', entry)
- ..add('description', description)
- ..add('start', start)
- ..add('end', end)
- ..add('due', due)
- ..add('until', until)
- ..add('wait', wait)
- ..add('modified', modified)
- ..add('scheduled', scheduled)
- ..add('recur', recur)
- ..add('mask', mask)
- ..add('imask', imask)
- ..add('parent', parent)
- ..add('project', project)
- ..add('priority', priority)
- ..add('depends', depends)
- ..add('tags', tags)
- ..add('annotations', annotations)
- ..add('udas', udas)
- ..add('urgency', urgency))
- .toString();
- }
-}
-
-class TaskBuilder implements Builder {
- _$Task? _$v;
-
- int? _id;
- int? get id => _$this._id;
- set id(int? id) => _$this._id = id;
-
- String? _status;
- String? get status => _$this._status;
- set status(String? status) => _$this._status = status;
-
- String? _uuid;
- String? get uuid => _$this._uuid;
- set uuid(String? uuid) => _$this._uuid = uuid;
-
- DateTime? _entry;
- DateTime? get entry => _$this._entry;
- set entry(DateTime? entry) => _$this._entry = entry;
-
- String? _description;
- String? get description => _$this._description;
- set description(String? description) => _$this._description = description;
-
- DateTime? _start;
- DateTime? get start => _$this._start;
- set start(DateTime? start) => _$this._start = start;
-
- DateTime? _end;
- DateTime? get end => _$this._end;
- set end(DateTime? end) => _$this._end = end;
-
- DateTime? _due;
- DateTime? get due => _$this._due;
- set due(DateTime? due) => _$this._due = due;
-
- DateTime? _until;
- DateTime? get until => _$this._until;
- set until(DateTime? until) => _$this._until = until;
-
- DateTime? _wait;
- DateTime? get wait => _$this._wait;
- set wait(DateTime? wait) => _$this._wait = wait;
-
- DateTime? _modified;
- DateTime? get modified => _$this._modified;
- set modified(DateTime? modified) => _$this._modified = modified;
-
- DateTime? _scheduled;
- DateTime? get scheduled => _$this._scheduled;
- set scheduled(DateTime? scheduled) => _$this._scheduled = scheduled;
-
- String? _recur;
- String? get recur => _$this._recur;
- set recur(String? recur) => _$this._recur = recur;
-
- String? _mask;
- String? get mask => _$this._mask;
- set mask(String? mask) => _$this._mask = mask;
-
- int? _imask;
- int? get imask => _$this._imask;
- set imask(int? imask) => _$this._imask = imask;
-
- String? _parent;
- String? get parent => _$this._parent;
- set parent(String? parent) => _$this._parent = parent;
-
- String? _project;
- String? get project => _$this._project;
- set project(String? project) => _$this._project = project;
-
- String? _priority;
- String? get priority => _$this._priority;
- set priority(String? priority) {
- if (priority != 'None') {
- _$this._priority = priority;
- }
- }
-
- ListBuilder? _depends;
- ListBuilder get depends =>
- _$this._depends ??= new ListBuilder();
- set depends(ListBuilder? depends) => _$this._depends = depends;
-
- ListBuilder? _tags;
- ListBuilder get tags => _$this._tags ??= new ListBuilder();
- set tags(ListBuilder? tags) => _$this._tags = tags;
-
- ListBuilder? _annotations;
- ListBuilder get annotations =>
- _$this._annotations ??= new ListBuilder();
- set annotations(ListBuilder? annotations) =>
- _$this._annotations = annotations;
-
- String? _udas;
- String? get udas => _$this._udas;
- set udas(String? udas) => _$this._udas = udas;
-
- double? _urgency;
- double? get urgency => _$this._urgency;
- set urgency(double? urgency) => _$this._urgency = urgency;
-
- TaskBuilder();
-
- TaskBuilder get _$this {
- final $v = _$v;
- if ($v != null) {
- _id = $v.id;
- _status = $v.status;
- _uuid = $v.uuid;
- _entry = $v.entry;
- _description = $v.description;
- _start = $v.start;
- _end = $v.end;
- _due = $v.due;
- _until = $v.until;
- _wait = $v.wait;
- _modified = $v.modified;
- _scheduled = $v.scheduled;
- _recur = $v.recur;
- _mask = $v.mask;
- _imask = $v.imask;
- _parent = $v.parent;
- _project = $v.project;
- _priority = $v.priority;
- _depends = $v.depends?.toBuilder();
- _tags = $v.tags?.toBuilder();
- _annotations = $v.annotations?.toBuilder();
- _udas = $v.udas;
- _urgency = $v.urgency;
- _$v = null;
- }
- return this;
- }
-
- @override
- void replace(Task other) {
- ArgumentError.checkNotNull(other, 'other');
- _$v = other as _$Task;
- }
-
- @override
- void update(void Function(TaskBuilder)? updates) {
- if (updates != null) updates(this);
- }
-
- @override
- Task build() => _build();
-
- _$Task _build() {
- _$Task _$result;
- try {
- _$result = _$v ??
- new _$Task._(
- id: id,
- status: BuiltValueNullFieldError.checkNotNull(
- status, r'Task', 'status'),
- uuid:
- BuiltValueNullFieldError.checkNotNull(uuid, r'Task', 'uuid'),
- entry: BuiltValueNullFieldError.checkNotNull(
- entry, r'Task', 'entry'),
- description: BuiltValueNullFieldError.checkNotNull(
- description, r'Task', 'description'),
- start: start,
- end: end,
- due: due,
- until: until,
- wait: wait,
- modified: modified,
- scheduled: scheduled,
- recur: recur,
- mask: mask,
- imask: imask,
- parent: parent,
- project: project,
- priority: priority,
- depends: _depends?.build(),
- tags: _tags?.build(),
- annotations: _annotations?.build(),
- udas: udas,
- urgency: urgency);
- } catch (_) {
- late String _$failedField;
- try {
- _$failedField = 'depends';
- _depends?.build();
- _$failedField = 'tags';
- _tags?.build();
- _$failedField = 'annotations';
- _annotations?.build();
- } catch (e) {
- throw new BuiltValueNestedFieldError(
- r'Task', _$failedField, e.toString());
- }
- rethrow;
- }
- replace(_$result);
- return _$result;
- }
-}
-
-// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas
diff --git a/lib/app/models/models.dart b/lib/app/models/models.dart
deleted file mode 100644
index 6eabc8b9..00000000
--- a/lib/app/models/models.dart
+++ /dev/null
@@ -1,6 +0,0 @@
-export './onboarding_model.dart';
-export './size_config_model.dart';
-export './json/annotation.dart';
-export './json/iso_8601_basic.dart';
-export './json/serializers.dart';
-export './json/task.dart';
\ No newline at end of file
diff --git a/lib/app/models/onboarding_model.dart b/lib/app/models/onboarding_model.dart
deleted file mode 100644
index ab0796a2..00000000
--- a/lib/app/models/onboarding_model.dart
+++ /dev/null
@@ -1,15 +0,0 @@
-import 'package:flutter/material.dart';
-
-class OnboardingModel {
- final String title;
- final String image;
- final String desc;
- final Color colors;
-
- OnboardingModel({
- required this.title,
- required this.image,
- required this.desc,
- required this.colors,
- });
-}
\ No newline at end of file
diff --git a/lib/app/models/size_config_model.dart b/lib/app/models/size_config_model.dart
deleted file mode 100644
index 00271a17..00000000
--- a/lib/app/models/size_config_model.dart
+++ /dev/null
@@ -1,17 +0,0 @@
-import 'package:flutter/material.dart';
-
-class SizeConfig {
- MediaQueryData? _mediaQueryData;
- double? screenW;
- double? screenH;
- double? blockH;
- double? blockV;
-
- void init(BuildContext context) {
- _mediaQueryData = MediaQuery.of(context);
- screenW = _mediaQueryData!.size.width;
- screenH = _mediaQueryData!.size.height;
- blockH = screenW! / 100;
- blockV = screenH! / 100;
- }
-}
diff --git a/lib/app/models/storage.dart b/lib/app/models/storage.dart
deleted file mode 100644
index 78212b0d..00000000
--- a/lib/app/models/storage.dart
+++ /dev/null
@@ -1,25 +0,0 @@
-import 'dart:io';
-
-import 'package:taskwarrior/app/models/data.dart';
-import 'package:taskwarrior/app/models/storage/tabs.dart';
-import 'package:taskwarrior/app/utils/home_path/impl/gui_pem_file_paths.dart';
-import 'package:taskwarrior/app/utils/home_path/impl/home.dart';
-import 'package:taskwarrior/app/utils/home_path/impl/taskrc.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/query.dart';
-
-
-class Storage {
- const Storage(this.profile);
-
- final Directory profile;
-
- Data get data => Data(profile);
- GUIPemFiles get guiPemFiles => GUIPemFiles(profile);
- Home get home => Home(
- home: profile,
- pemFilePaths: guiPemFiles.pemFilePaths,
- );
- Query get query => Query(profile);
- Tabs get tabs => Tabs(profile);
- Taskrc get taskrc => Taskrc(profile);
-}
diff --git a/lib/app/models/storage/client.dart b/lib/app/models/storage/client.dart
deleted file mode 100644
index 0e24de91..00000000
--- a/lib/app/models/storage/client.dart
+++ /dev/null
@@ -1,6 +0,0 @@
-import 'package:package_info_plus/package_info_plus.dart';
-
-Future client() async {
- var packageInfo = await PackageInfo.fromPlatform();
- return '${packageInfo.packageName} ${packageInfo.version}';
-}
diff --git a/lib/app/models/storage/exceptions/bad_certificate_exception.dart b/lib/app/models/storage/exceptions/bad_certificate_exception.dart
deleted file mode 100644
index 1a169865..00000000
--- a/lib/app/models/storage/exceptions/bad_certificate_exception.dart
+++ /dev/null
@@ -1,11 +0,0 @@
-import 'dart:io';
-
-class BadCertificateException implements Exception {
- BadCertificateException({
- required this.home,
- required this.certificate,
- });
-
- Directory home;
- X509Certificate certificate;
-}
diff --git a/lib/app/models/storage/exceptions/taskserver_configuration_exception.dart b/lib/app/models/storage/exceptions/taskserver_configuration_exception.dart
deleted file mode 100644
index 25b31b17..00000000
--- a/lib/app/models/storage/exceptions/taskserver_configuration_exception.dart
+++ /dev/null
@@ -1,10 +0,0 @@
-class TaskserverConfigurationException implements Exception {
- TaskserverConfigurationException(this.message);
-
- String message;
-
- @override
- String toString() {
- return message;
- }
-}
diff --git a/lib/app/models/storage/savefile.dart b/lib/app/models/storage/savefile.dart
deleted file mode 100644
index 0a3b8140..00000000
--- a/lib/app/models/storage/savefile.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-import 'dart:io';
-import 'dart:typed_data';
-import 'package:file_selector/file_selector.dart';
-import 'package:file_picker_writable/file_picker_writable.dart';
-
-Future saveServerCert(String contents) async {
- if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
- var saveLocation = await getSaveLocation(
- suggestedName: 'server.cert.pem',
- );
-
- if (saveLocation != null) {
- var data = Uint8List.fromList(contents.codeUnits);
- var file = XFile.fromData(data);
- await file.saveTo(saveLocation.path);
- }
- } else {
- await FilePickerWritable().openFileForCreate(
- fileName: 'server.cert.pem',
- writer: (tempFile) => tempFile.writeAsString(contents),
- );
- }
-}
-
-Future exportTasks({
- required String contents,
- required String suggestedName,
-}) async {
- if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
- var saveLocation = await getSaveLocation(
- suggestedName: suggestedName,
- );
-
- if (saveLocation != null) {
- var data = Uint8List.fromList(contents.codeUnits);
- var file = XFile.fromData(data);
- await file.saveTo(saveLocation.path);
- }
- } else {
- await FilePickerWritable().openFileForCreate(
- fileName: suggestedName,
- writer: (tempFile) => tempFile.writeAsString(contents),
- );
- }
-}
diff --git a/lib/app/models/storage/set_config.dart b/lib/app/models/storage/set_config.dart
deleted file mode 100644
index 61962e9c..00000000
--- a/lib/app/models/storage/set_config.dart
+++ /dev/null
@@ -1,35 +0,0 @@
-import 'dart:io';
-
-import 'package:file_picker_writable/file_picker_writable.dart';
-import 'package:file_selector/file_selector.dart';
-import 'package:taskwarrior/app/models/storage.dart';
-
-
-Future setConfig({required Storage storage, required String key}) async {
- String? contents;
- String? name;
- if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
- var typeGroup = XTypeGroup(label: key, extensions: const []);
- var file = await openFile(acceptedTypeGroups: [typeGroup]);
- if (file != null) {
- contents = await file.readAsString();
- name = file.name;
- }
- } else {
- await FilePickerWritable().openFile((fileInfo, file) async {
- contents = file.readAsStringSync();
- name = fileInfo.fileName ?? Uri.parse(fileInfo.uri).pathSegments.last;
- });
- }
- if (contents != null) {
- if (key == 'TASKRC') {
- storage.taskrc.addTaskrc(contents!);
- } else {
- storage.guiPemFiles.addPemFile(
- key: key,
- contents: contents!,
- name: name,
- );
- }
- }
-}
diff --git a/lib/app/models/storage/tabs.dart b/lib/app/models/storage/tabs.dart
deleted file mode 100644
index 9ca4eaad..00000000
--- a/lib/app/models/storage/tabs.dart
+++ /dev/null
@@ -1,81 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages
-
-import 'dart:convert';
-import 'dart:io';
-import 'dart:math';
-
-import 'package:path/path.dart';
-import 'package:uuid/uuid.dart';
-
-class Tabs {
- const Tabs(this.profile);
-
- final Directory profile;
-
- File get _initialTabIndex => File('${profile.path}/initialTabIndex');
- Directory get _tabs => Directory('${profile.path}/tabs');
-
- Directory tab() {
- var index = initialTabIndex();
- var tabUuid = tabUuids()[index];
- return Directory('${profile.path}/tabs/$tabUuid');
- }
-
- int initialTabIndex() {
- if (!_initialTabIndex.existsSync()) {
- setInitialTabIndex(0);
- }
- return json.decode(_initialTabIndex.readAsStringSync());
- }
-
- void setInitialTabIndex(int index) {
- _initialTabIndex.writeAsStringSync(json.encode(index));
- }
-
- void addTab() {
- var uuid = const Uuid().v1();
- var dir = '${_tabs.path}/$uuid';
- Directory(dir).createSync(recursive: true);
- File('$dir/created').writeAsStringSync(DateTime.now().toIso8601String());
- }
-
- List tabUuids() {
- _tabs.createSync(recursive: true);
- if (_tabs.listSync().isEmpty) {
- addTab();
- }
- var dirs = _tabs.listSync()
- ..sort((a, b) => DateTime.parse(
- File('${a.path}/created').readAsStringSync(),
- ).compareTo(DateTime.parse(
- File('${b.path}/created').readAsStringSync(),
- )));
- return dirs.map((dir) => basename(dir.path)).toList();
- }
-
- void removeTab(int index) {
- var uuid = tabUuids()[index];
- Directory('${_tabs.path}/$uuid').deleteSync(recursive: true);
- setInitialTabIndex(max(0, min(initialTabIndex(), tabUuids().length - 1)));
- if (tabUuids().isEmpty) {
- addTab();
- }
- }
-
- void renameTab({
- required String tab,
- required String name,
- }) {
- File('${_tabs.path}/$tab/alias').writeAsStringSync(name);
- }
-
- String? alias(String tabUuid) {
- if (File('${_tabs.path}/$tabUuid/alias').existsSync()) {
- var result = File('${_tabs.path}/$tabUuid/alias').readAsStringSync();
- if (result.isNotEmpty) {
- return result;
- }
- }
- return null;
- }
-}
diff --git a/lib/app/models/tag_meta_data.dart b/lib/app/models/tag_meta_data.dart
deleted file mode 100644
index 6e2bdfb9..00000000
--- a/lib/app/models/tag_meta_data.dart
+++ /dev/null
@@ -1,20 +0,0 @@
-class TagMetadata {
- TagMetadata({
- required this.lastModified,
- required this.frequency,
- required this.selected,
- });
-
- final DateTime lastModified;
- final int frequency;
- final bool selected;
-
- Map toJson() => {
- 'lastModified': lastModified,
- 'frequency': frequency,
- 'selected': selected,
- };
-
- @override
- String toString() => toJson().toString();
-}
diff --git a/lib/app/modules/about/bindings/about_binding.dart b/lib/app/modules/about/bindings/about_binding.dart
deleted file mode 100644
index 388e1fea..00000000
--- a/lib/app/modules/about/bindings/about_binding.dart
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'package:get/get.dart';
-
-import '../controllers/about_controller.dart';
-
-class AboutBinding extends Bindings {
- @override
- void dependencies() {
- Get.lazyPut(
- () => AboutController(),
- );
- }
-}
diff --git a/lib/app/modules/about/controllers/about_controller.dart b/lib/app/modules/about/controllers/about_controller.dart
deleted file mode 100644
index 497fb004..00000000
--- a/lib/app/modules/about/controllers/about_controller.dart
+++ /dev/null
@@ -1,17 +0,0 @@
-import 'package:get/get.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/language/supported_language.dart';
-
-class AboutController extends GetxController {
- final Rx selectedLanguage = SupportedLanguage.english.obs;
-
- @override
- void onInit() {
- super.onInit();
- initLanguage();
- }
-
- void initLanguage() {
- selectedLanguage.value = AppSettings.selectedLanguage;
- }
-}
diff --git a/lib/app/modules/about/views/about_page_app_bar.dart b/lib/app/modules/about/views/about_page_app_bar.dart
deleted file mode 100644
index 1a20a113..00000000
--- a/lib/app/modules/about/views/about_page_app_bar.dart
+++ /dev/null
@@ -1,41 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:taskwarrior/app/modules/about/controllers/about_controller.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-
-class AboutPageAppBar extends StatelessWidget implements PreferredSizeWidget {
- final AboutController aboutController;
- const AboutPageAppBar({required this.aboutController,super.key});
-
- @override
- Widget build(BuildContext context) {
- return AppBar(
- centerTitle: true,
- backgroundColor: TaskWarriorColors.kprimaryBackgroundColor,
- title: Text(
- SentenceManager(
- currentLanguage: aboutController.selectedLanguage.value)
- .sentences
- .aboutPageAppBarTitle,
- // style: GoogleFonts.poppins(color: TaskWarriorColors.white),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- color: TaskWarriorColors.white,
- ),
- ),
- leading: GestureDetector(
- onTap: () {
- Navigator.pop(context);
- },
- child: Icon(
- Icons.chevron_left,
- color: TaskWarriorColors.white,
- ),
- ),
- );
- }
-
- @override
- Size get preferredSize => AppBar().preferredSize;
-}
diff --git a/lib/app/modules/about/views/about_page_body.dart b/lib/app/modules/about/views/about_page_body.dart
deleted file mode 100644
index 1483e892..00000000
--- a/lib/app/modules/about/views/about_page_body.dart
+++ /dev/null
@@ -1,267 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:flutter_svg/flutter_svg.dart';
-
-import 'package:get/get.dart';
-import 'package:package_info_plus/package_info_plus.dart';
-import 'package:taskwarrior/app/modules/about/controllers/about_controller.dart';
-import 'package:taskwarrior/app/utils/gen/assets.gen.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-
-class AboutPageBody extends StatelessWidget {
- final AboutController aboutController;
- const AboutPageBody({required this.aboutController, super.key});
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- String introduction =
- SentenceManager(currentLanguage: aboutController.selectedLanguage.value)
- .sentences
- .aboutPageProjectDescription;
-
- return Padding(
- padding: EdgeInsets.only(
- top: Get.height * 0.01,
- left: Get.width * 0.02,
- right: Get.width * 0.02),
- child: SingleChildScrollView(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- SizedBox(
- height: Get.height * 0.02,
- ),
- SizedBox(
- child: SvgPicture.asset(
- Assets.svg.logo.path,
- height: Get.height * 0.2,
- width: Get.width * 1,
- )),
- SizedBox(
- height: Get.height * 0.02,
- ),
- Text(
- "Taskwarrior",
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeExtraLarge,
- color: tColors.primaryTextColor,
- ),
- ),
- SizedBox(
- height: Get.height * 0.02,
- ),
- Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- FutureBuilder(
- future: getAppInfo(),
- builder:
- (BuildContext context, AsyncSnapshot snapshot) {
- if (snapshot.connectionState == ConnectionState.waiting) {
- return const CircularProgressIndicator();
- } else if (snapshot.hasError) {
- return Text('Error: ${snapshot.error}');
- } else {
- final appInfoLines = snapshot.data!.split(' ');
-
- return Column(
- children: [
- RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: SentenceManager(
- currentLanguage: aboutController
- .selectedLanguage.value)
- .sentences
- .version,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- TextSpan(
- text: appInfoLines[1],
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- ],
- ),
- ),
- SizedBox(
- width: Get.width * 0.85,
- child: FittedBox(
- fit: BoxFit.fitWidth,
- child: RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: SentenceManager(
- currentLanguage: aboutController
- .selectedLanguage.value)
- .sentences
- .package,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize:
- TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- TextSpan(
- text: appInfoLines[0],
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize:
- TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- ],
- );
- }
- },
- ),
- ],
- ),
- SizedBox(
- height: Get.height * 0.05,
- ),
- Text(
- introduction,
- textAlign: TextAlign.center,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.medium,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- ),
- ),
- SizedBox(
- height: Get.height * 0.06,
- ),
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceAround,
- children: [
- SizedBox(
- width: Get.width * 0.4,
- height: Get.height * 0.05,
- child: ElevatedButton.icon(
- style: ElevatedButton.styleFrom(
- backgroundColor: tColors.secondaryTextColor,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(10),
- ),
- ),
- onPressed: () async {
- // Launch GitHub URL.
-
- String url =
- "https://github.com/CCExtractor/taskwarrior-flutter";
- if (!await launchUrl(Uri.parse(url))) {
- throw Exception('Could not launch $url');
- }
- },
- icon: SvgPicture.asset(Assets.svg.github.path,
- width: 20,
- height: 20,
- colorFilter: ColorFilter.mode(
- tColors.secondaryBackgroundColor!,
- BlendMode.srcIn)),
- label: Text(
- "GitHub",
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.medium,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.secondaryBackgroundColor,
- ),
- ),
- ),
- ),
- SizedBox(
- width: Get.width * 0.4,
- height: Get.height * 0.05,
- child: ElevatedButton.icon(
- style: ElevatedButton.styleFrom(
- backgroundColor: tColors.secondaryTextColor,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(10),
- ),
- ),
- onPressed: () async {
- String url = "https://ccextractor.org/";
- if (!await launchUrl(Uri.parse(url))) {
- throw Exception('Could not launch $url');
- }
- },
- icon: SvgPicture.asset(Assets.svg.link.path,
- width: 20,
- height: 20,
- colorFilter: ColorFilter.mode(
- tColors.secondaryBackgroundColor!,
- BlendMode.srcIn
- )
- ),
- label: Text(
- "CCExtractor",
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.medium,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.secondaryBackgroundColor,
- ),
- ),
- ),
- ),
- ],
- ),
- SizedBox(
- height: Get.height * 0.04,
- ),
- Text(
- SentenceManager(
- currentLanguage: aboutController.selectedLanguage.value)
- .sentences
- .aboutPageGitHubLink,
- textAlign: TextAlign.center,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.semiBold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- SizedBox(
- height: Get.height * 0.02,
- ),
- ],
- ),
- ),
- );
- }
-}
-
-Future getAppInfo() async {
- PackageInfo packageInfo = await PackageInfo.fromPlatform();
-
- return '${packageInfo.packageName} ${packageInfo.version}';
-}
diff --git a/lib/app/modules/about/views/about_view.dart b/lib/app/modules/about/views/about_view.dart
deleted file mode 100644
index d7e832f8..00000000
--- a/lib/app/modules/about/views/about_view.dart
+++ /dev/null
@@ -1,24 +0,0 @@
-import 'package:flutter/material.dart';
-
-import 'package:get/get.dart';
-
-import 'package:taskwarrior/app/modules/about/views/about_page_app_bar.dart';
-import 'package:taskwarrior/app/modules/about/views/about_page_body.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-import '../controllers/about_controller.dart';
-
-class AboutView extends GetView {
- const AboutView({super.key});
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- return Scaffold(
- appBar: AboutPageAppBar(aboutController: controller,),
- backgroundColor: tColors.primaryBackgroundColor,
- body: AboutPageBody(
- aboutController: controller,
- ),
- );
- }
-}
diff --git a/lib/app/modules/detailRoute/bindings/detail_route_binding.dart b/lib/app/modules/detailRoute/bindings/detail_route_binding.dart
deleted file mode 100644
index 41eebd1e..00000000
--- a/lib/app/modules/detailRoute/bindings/detail_route_binding.dart
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'package:get/get.dart';
-
-import '../controllers/detail_route_controller.dart';
-
-class DetailRouteBinding extends Bindings {
- @override
- void dependencies() {
- Get.lazyPut(
- () => DetailRouteController(),
- );
- }
-}
diff --git a/lib/app/modules/detailRoute/controllers/detail_route_controller.dart b/lib/app/modules/detailRoute/controllers/detail_route_controller.dart
deleted file mode 100644
index 85c3712c..00000000
--- a/lib/app/modules/detailRoute/controllers/detail_route_controller.dart
+++ /dev/null
@@ -1,159 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages
-
-import 'package:built_collection/built_collection.dart';
-import 'package:flutter/material.dart';
-import 'package:get/get.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/tour/details_page_tour.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/modify.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/urgency.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:tutorial_coach_mark/tutorial_coach_mark.dart';
-
-class DetailRouteController extends GetxController {
- late String uuid;
- late Modify modify;
- var onEdit = false.obs;
- var isReadOnly = false.obs;
-
- @override
- void onInit() {
- super.onInit();
- var arguments = Get.arguments;
- uuid = arguments[1] as String;
- // uuid = Get.arguments['uuid'];
- var storageWidget = Get.find();
- modify = Modify(
- getTask: storageWidget.getTask,
- mergeTask: storageWidget.mergeTask,
- uuid: uuid,
- );
- initValues();
-
- // Check if task is completed or deleted and set read-only state
- isReadOnly.value = (modify.draft.status == 'completed' ||
- modify.draft.status == 'deleted');
- }
-
- void setAttribute(String name, dynamic newValue) {
- if (isReadOnly.value && name != 'status') {
- return;
- }
-
- modify.set(name, newValue);
- onEdit.value = true;
-
- // If status is being changed, update read-only state
- if (name == 'status') {
- isReadOnly.value = (newValue == 'completed' || newValue == 'deleted');
- }
-
- if (name == 'start') {
- debugPrint('Start Value Changed to $newValue');
- startValue.value = newValue;
- }
- initValues();
- }
-
- Future saveChanges() async {
- var now = DateTime.now().toUtc();
- modify.save(modified: () => now);
- onEdit.value = false;
- Get.back();
- Get.snackbar(
- 'Task Updated',
- '',
- snackPosition: SnackPosition.BOTTOM,
- );
- }
-
- // 'description': controller.modify.draft.description,
- // 'status': controller.modify.draft.status,
- // 'entry': controller.modify.draft.entry,
- // 'modified': controller.modify.draft.modified,
- // 'start': controller.modify.draft.start,
- // 'end': controller.modify.draft.end,
- // 'due': controller.dueValue.value,
- // 'wait': controller.modify.draft.wait,
- // 'until': controller.modify.draft.until,
- // 'priority': controller.modify.draft.priority,
- // 'project': controller.modify.draft.project,
- // 'tags': controller.modify.draft.tags,
- // 'urgency': urgency(controller.modify.draft
-
- late RxString descriptionValue = ''.obs;
- late RxString statusValue = ''.obs;
- late Rx entryValue = Rx(null);
- late Rx modifiedValue = Rx(null);
- late Rx startValue = Rx(null);
- late Rx endValue = Rx(null);
- late Rx dueValue = Rx(null);
- late Rx waitValue = Rx(null);
- late Rx untilValue = Rx(null);
- late Rxn? priorityValue = Rxn(null);
- late Rxn? projectValue = Rxn(null);
- late Rxn>? tagsValue = Rxn>(null);
- late RxDouble urgencyValue = 0.0.obs;
-
- void initValues() {
- descriptionValue.value = modify.draft.description;
- statusValue.value = modify.draft.status;
- entryValue.value = modify.draft.entry;
- modifiedValue.value = modify.draft.modified;
- startValue.value ??= null;
- endValue.value = modify.draft.end;
- dueValue.value = modify.draft.due;
- waitValue.value = modify.draft.wait;
- untilValue.value = modify.draft.until;
- priorityValue?.value = modify.draft.priority;
- projectValue?.value = modify.draft.project;
- tagsValue?.value = modify.draft.tags;
- urgencyValue.value = urgency(modify.draft);
- }
-
- late TutorialCoachMark tutorialCoachMark;
-
- final GlobalKey dueKey = GlobalKey();
- final GlobalKey untilKey = GlobalKey();
-
- final GlobalKey waitKey = GlobalKey();
- final GlobalKey priorityKey = GlobalKey();
-
- void initDetailsPageTour() {
- tutorialCoachMark = TutorialCoachMark(
- targets: addDetailsPage(
- dueKey: dueKey,
- waitKey: waitKey,
- untilKey: untilKey,
- priorityKey: priorityKey,
- ),
- colorShadow: TaskWarriorColors.black,
- paddingFocus: 10,
- opacityShadow: 1.00,
- hideSkip: true,
- onFinish: () {
- SaveTourStatus.saveDetailsTourStatus(true);
- },
- );
- }
-
- void showDetailsPageTour(BuildContext context) {
- Future.delayed(
- const Duration(milliseconds: 500),
- () {
- SaveTourStatus.getDetailsTourStatus().then((value) => {
- if (value == false)
- {
- tutorialCoachMark.show(context: context),
- }
- else
- {
- // ignore: avoid_print
- print('User has seen this page'),
- }
- });
- },
- );
- }
-}
diff --git a/lib/app/modules/detailRoute/views/dateTimePicker.dart b/lib/app/modules/detailRoute/views/dateTimePicker.dart
deleted file mode 100644
index 5bda263f..00000000
--- a/lib/app/modules/detailRoute/views/dateTimePicker.dart
+++ /dev/null
@@ -1,294 +0,0 @@
-// ignore_for_file: file_names, use_build_context_synchronously
-
-import 'package:flutter/material.dart';
-
-import 'package:intl/intl.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-
-class DateTimeWidget extends StatelessWidget {
- const DateTimeWidget({
- super.key,
- required this.name,
- required this.value,
- required this.callback,
- required this.globalKey,
- this.isEditable = true,
- });
-
- final String name;
-
- final dynamic value;
- final void Function(dynamic) callback;
- final GlobalKey globalKey;
- final bool isEditable;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Card(
- key: globalKey,
- color: tColors.secondaryBackgroundColor,
- child: ListTile(
- enabled: isEditable,
- textColor: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: '$name:'.padRight(13),
- // style: GoogleFonts.poppins(
- // fontWeight: TaskWarriorFonts.bold,
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- TextSpan(
- text: value ??
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences.notSelected,
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- ),
- // onTap: () async {
- // var initialDate = DateFormat("E, M/d/y h:mm:ss a").parse(
- // value?.replaceAll(RegExp(r'\s+'), ' ') ??
- // DateFormat("E, M/d/y h:mm:ss a").format(DateTime.now()));
-
- // var date = await showDatePicker(
- // context: context,
- // initialDate: initialDate,
- // firstDate: DateTime
- // .now(), // sets the earliest selectable date to the current date. This prevents the user from selecting a date in the past.
- // lastDate: DateTime(2037, 12, 31), // < 2038-01-19T03:14:08.000Z
- // );
- // if (date != null) {
- // var time = await showTimePicker(
- // context: context,
- // initialTime: TimeOfDay.now(),
- // );
- // if (time != null) {
- // var dateTime = date.add(
- // Duration(
- // hours: time.hour,
- // minutes: time.minute,
- // ),
- // );
- // dateTime = dateTime.add(
- // Duration(
- // hours: time.hour - dateTime.hour,
- // ),
- // );
- // // Check if the selected time is in the past
- // if (dateTime.isBefore(DateTime.now())) {
- // // Show a message that past times can't be set
- // ScaffoldMessenger.of(context).showSnackBar(
- // SnackBar(
- // content: Text(
- // "Can't set times in the past",
- // style: TextStyle(
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.kprimaryTextColor
- // : TaskWarriorColors.kLightPrimaryTextColor,
- // ),
- // ),
- // backgroundColor: AppSettings.isDarkMode
- // ? TaskWarriorColors.ksecondaryBackgroundColor
- // : TaskWarriorColors.kLightSecondaryBackgroundColor,
- // duration: const Duration(seconds: 2),
- // ),
- // );
- // } else {
- // // If the time is not in the past, proceed as usual
- // return callback(dateTime.toUtc());
- // }
- // }
- // }
- // },
- onTap: () async {
- var parsedDate = DateFormat("E, M/d/y h:mm:ss a").parse(
- value?.replaceAll(RegExp(r'\s+'), ' ') ??
- DateFormat("E, M/d/y h:mm:ss a").format(DateTime.now()));
-
- var now = DateTime.now();
- var initialDate = parsedDate.isBefore(now) ? now : parsedDate;
-
- var date = await showDatePicker(
- context: context,
- initialDate: initialDate,
- firstDate: now,
- lastDate: DateTime(2037, 12, 31), // < 2038-01-19T03:14:08.000Z
- );
-
- if (date != null) {
- var time = await showTimePicker(
- context: context,
- initialTime: TimeOfDay.now(),
- );
- if (time != null) {
- var dateTime = date.add(
- Duration(
- hours: time.hour,
- minutes: time.minute,
- ),
- );
-
- if (dateTime.isBefore(DateTime.now())) {
- ScaffoldMessenger.of(context).showSnackBar(
- SnackBar(
- content: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage,
- ).sentences.cantSetTimeinPast,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- backgroundColor: tColors.primaryBackgroundColor,
- duration: const Duration(seconds: 2),
- ),
- );
- } else {
- return callback(dateTime.toUtc());
- }
- }
- }
- },
- onLongPress: () => callback(null),
- ),
- );
- }
-}
-
-class StartWidget extends StatelessWidget {
- const StartWidget({
- required this.name,
- required this.value,
- required this.callback,
- this.isEditable = true,
- super.key,
- });
-
- final String name;
- final dynamic value;
- final bool isEditable;
- final void Function(dynamic) callback;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Card(
- color: tColors.secondaryBackgroundColor,
- child: ListTile(
- enabled: isEditable,
- textColor: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: '$name:'.padRight(13),
- // style: GoogleFonts.poppins(
- // fontWeight: TaskWarriorFonts.bold,
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- TextSpan(
- text: value ?? SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences.notSelected,
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- ),
- onTap: () {
- if (value != null) {
- callback(null);
- } else {
- var now = DateTime.now().toUtc();
- callback(DateTime.utc(
- now.year,
- now.month,
- now.day,
- now.hour,
- now.minute,
- now.second,
- ));
- }
- },
- ),
- );
- }
-}
diff --git a/lib/app/modules/detailRoute/views/description_widget.dart b/lib/app/modules/detailRoute/views/description_widget.dart
deleted file mode 100644
index 6c87f6ba..00000000
--- a/lib/app/modules/detailRoute/views/description_widget.dart
+++ /dev/null
@@ -1,297 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:get/get.dart';
-
-import 'package:loggy/loggy.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/constants/utilites.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-
-class DescriptionWidget extends StatelessWidget {
- const DescriptionWidget({
- required this.name,
- required this.value,
- required this.callback,
- this.isEditable = true,
- super.key,
- });
-
- final String name;
- final dynamic value;
- final void Function(dynamic) callback;
- final bool isEditable;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Card(
- color: tColors.secondaryBackgroundColor,
- child: ListTile(
- enabled: isEditable,
- textColor: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: '$name:'.padRight(13),
- // style: GoogleFonts.poppins(
- // fontWeight: TaskWarriorFonts.bold,
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- TextSpan(
- text: value ??
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .notSelected,
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- ),
- onTap: () {
- var controller = TextEditingController(
- text: value,
- );
- showDialog(
- context: context,
- builder: (context) => Utils.showAlertDialog(
- scrollable: true,
- title: Text(
- SentenceManager(currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .editDescription,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- content: TextField(
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- autofocus: true,
- maxLines: null,
- controller: controller,
- ),
- actions: [
- TextButton(
- onPressed: () {
- Get.back();
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .cancel,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- TextButton(
- onPressed: () {
- try {
- callback(controller.text);
- Get.back();
- } on FormatException catch (e, trace) {
- logError(e, trace);
- }
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .submit,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- ],
- ),
- );
- },
- ),
- );
- }
-}
-
-class ProjectWidget extends StatelessWidget {
- const ProjectWidget({
- required this.name,
- required this.value,
- required this.callback,
- this.isEditable = true,
- super.key,
- });
-
- final String name;
- final dynamic value;
- final void Function(dynamic) callback;
- final bool isEditable;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Card(
- color: tColors.secondaryBackgroundColor,
- child: ListTile(
- enabled: isEditable,
- textColor: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: '$name:'.padRight(13),
- // style: GoogleFonts.poppins(
- // fontWeight: TaskWarriorFonts.bold,
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- TextSpan(
- text: value ??
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .notSelected,
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? Colors.white
- // : Colors.black,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- ),
- onTap: () {
- var controller = TextEditingController(
- text: value,
- );
- showDialog(
- context: context,
- builder: (context) => Utils.showAlertDialog(
- scrollable: true,
- title: Text(
- SentenceManager(currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .editProject,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- content: TextField(
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- autofocus: true,
- maxLines: null,
- controller: controller,
- ),
- actions: [
- TextButton(
- onPressed: () {
- Get.back();
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .cancel,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- TextButton(
- onPressed: () {
- try {
- callback(
- (controller.text == '') ? null : controller.text);
- Get.back();
- } on FormatException catch (e, trace) {
- logError(e, trace);
- }
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .submit,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- ],
- ),
- );
- },
- ),
- );
- }
-}
diff --git a/lib/app/modules/detailRoute/views/detail_route_view.dart b/lib/app/modules/detailRoute/views/detail_route_view.dart
deleted file mode 100644
index 6fc0bb6d..00000000
--- a/lib/app/modules/detailRoute/views/detail_route_view.dart
+++ /dev/null
@@ -1,366 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages, deprecated_member_use
-
-import 'package:built_collection/built_collection.dart';
-import 'package:flutter/material.dart';
-import 'package:get/get.dart';
-import 'package:intl/intl.dart';
-import 'package:taskwarrior/app/modules/detailRoute/controllers/detail_route_controller.dart';
-import 'package:taskwarrior/app/modules/detailRoute/views/dateTimePicker.dart';
-import 'package:taskwarrior/app/modules/detailRoute/views/description_widget.dart';
-import 'package:taskwarrior/app/modules/detailRoute/views/priority_widget.dart';
-import 'package:taskwarrior/app/modules/detailRoute/views/status_widget.dart';
-import 'package:taskwarrior/app/modules/detailRoute/views/tags_widget.dart';
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class DetailRouteView extends GetView {
- const DetailRouteView({super.key});
-
- @override
- Widget build(BuildContext context) {
- controller.initDetailsPageTour();
- controller.showDetailsPageTour(context);
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return WillPopScope(
- onWillPop: () async {
- if (!controller.onEdit.value) {
- // Get.offAll(() => const HomeView());
- Get.back();
- // Get.toNamed(Routes.HOME);
- return false;
- }
-
- bool? save = await showDialog(
- context: context,
- builder: (context) {
- return AlertDialog(
- backgroundColor: tColors.dialogBackgroundColor,
- title: Text(
- SentenceManager(currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .saveChangesConfirmation,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- actions: [
- TextButton(
- onPressed: () {
- controller.saveChanges();
- // Get.offAll(() => const HomeView());
-
- Get.back();
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .yes,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- TextButton(
- onPressed: () {
- // Get.offAll(() => const HomeView());
-
- Get.back();
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .no,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- TextButton(
- onPressed: () {
- Get.back();
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .cancel,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- ],
- );
- },
- );
- return save == true;
- },
- child: Scaffold(
- backgroundColor: tColors.primaryBackgroundColor,
- appBar: AppBar(
- leading: BackButton(color: TaskWarriorColors.white),
- backgroundColor: Palette.kToDark,
- title: Text(
- '${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.detailPageID}: ${(controller.modify.id == 0) ? '-' : controller.modify.id}',
- style: TextStyle(
- color: TaskWarriorColors.white,
- ),
- )),
- body: Padding(
- padding: const EdgeInsets.only(left: 8.0, right: 8.0),
- child: Obx(
- () => ListView(
- padding:
- const EdgeInsets.symmetric(vertical: 4, horizontal: 2),
- children: [
- for (var entry in {
- 'description': controller.descriptionValue.value,
- 'status': controller.statusValue.value,
- 'entry': controller.entryValue.value,
- 'modified': controller.modifiedValue.value,
- 'start': controller.startValue.value,
- 'end': controller.endValue.value,
- 'due': controller.dueValue.value,
- 'wait': controller.waitValue.value,
- 'until': controller.untilValue.value,
- 'priority': controller.priorityValue?.value,
- 'project': controller.projectValue?.value,
- 'tags': controller.tagsValue?.value,
- 'urgency': controller.urgencyValue.value,
- }.entries)
- AttributeWidget(
- name: entry.key,
- value: entry.value,
- callback: (newValue) =>
- controller.setAttribute(entry.key, newValue),
- waitKey: controller.waitKey,
- dueKey: controller.dueKey,
- untilKey: controller.untilKey,
- priorityKey: controller.priorityKey,
- ),
- ],
- ),
- )),
- floatingActionButton: controller.modify.changes.isEmpty
- ? const SizedBox.shrink()
- : FloatingActionButton(
- backgroundColor: tColors.primaryTextColor,
- foregroundColor: tColors.secondaryBackgroundColor,
- splashColor: tColors.primaryTextColor,
- heroTag: "btn1",
- onPressed: () {
- showDialog(
- context: context,
- builder: (context) {
- return AlertDialog(
- scrollable: true,
- title: Text(
- '${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.reviewChanges}:',
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- content: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Text(
- controller.modify.changes.entries
- .map((entry) => '${entry.key}:\n'
- ' ${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.oldChanges}: ${entry.value['old']}\n'
- ' ${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.newChanges}: ${entry.value['new']}')
- .toList()
- .join('\n'),
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- actions: [
- TextButton(
- onPressed: () {
- Get.back();
- },
- child: Text(
- SentenceManager(
- currentLanguage:
- AppSettings.selectedLanguage)
- .sentences
- .cancel,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- TextButton(
- onPressed: () {
- controller.saveChanges();
- },
- child: Text(
- SentenceManager(
- currentLanguage:
- AppSettings.selectedLanguage)
- .sentences
- .submit,
- style: TextStyle(
- color: tColors.primaryBackgroundColor,
- ),
- ),
- ),
- ],
- );
- },
- );
- },
- child: const Icon(Icons.save),
- )),
- );
- }
-}
-
-class AttributeWidget extends StatelessWidget {
- const AttributeWidget({
- required this.name,
- required this.value,
- required this.callback,
- required this.waitKey,
- required this.dueKey,
- required this.priorityKey,
- required this.untilKey,
- super.key,
- });
-
- final String name;
- final dynamic value;
- final void Function(dynamic) callback;
- final GlobalKey waitKey;
- final GlobalKey dueKey;
- final GlobalKey untilKey;
- final GlobalKey priorityKey;
-
- @override
- Widget build(BuildContext context) {
- var localValue = (value is DateTime)
- ? DateFormat.yMEd().add_jms().format(value.toLocal())
- : ((value is BuiltList) ? (value).toBuilder() : value);
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- // Get the controller to check if the task is read-only
- final DetailRouteController controller = Get.find();
-
- // Always allow status to be edited, but respect read-only for other attributes
- final bool isEditable = !controller.isReadOnly.value || name == 'status';
-
- switch (name) {
- case 'description':
- return DescriptionWidget(
- name: name,
- value: localValue,
- callback: callback,
- isEditable: isEditable,
- );
- case 'status':
- return StatusWidget(
- name: name,
- value: localValue,
- callback: callback,
- );
- case 'start':
- return StartWidget(
- name: name,
- value: localValue,
- callback: callback,
- isEditable: isEditable,
- );
- case 'due':
- return DateTimeWidget(
- name: name,
- value: localValue,
- callback: callback,
- globalKey: dueKey,
- isEditable: isEditable,
- );
- case 'wait':
- return DateTimeWidget(
- name: name,
- value: localValue,
- callback: callback,
- globalKey: waitKey,
- isEditable: isEditable,
- );
- case 'until':
- return DateTimeWidget(
- name: name,
- value: localValue,
- callback: callback,
- globalKey: untilKey,
- isEditable: isEditable,
- );
- case 'priority':
- return PriorityWidget(
- name: name,
- value: localValue,
- callback: callback,
- globalKey: priorityKey,
- isEditable: isEditable,
- );
- case 'project':
- return ProjectWidget(
- name: name,
- value: localValue,
- callback: callback,
- isEditable: isEditable,
- );
- case 'tags':
- return TagsWidget(
- name: name,
- value: localValue,
- callback: callback,
- isEditable: isEditable,
- );
- default:
- final Color? textColor = (isEditable && !['entry', 'modified', 'urgency'].contains(name))
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor;
-
- return Card(
- color: tColors.secondaryBackgroundColor,
- child: ListTile(
- textColor: tColors.primaryTextColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- Text(
- '$name:'.padRight(13),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: textColor,
- ),
- ),
- Text(
- localValue?.toString() ??
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .notSelected,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: textColor,
- ),
- ),
- ],
- ),
- ),
- ),
- );
- }
- }
-}
diff --git a/lib/app/modules/detailRoute/views/priority_widget.dart b/lib/app/modules/detailRoute/views/priority_widget.dart
deleted file mode 100644
index 9835ff3c..00000000
--- a/lib/app/modules/detailRoute/views/priority_widget.dart
+++ /dev/null
@@ -1,78 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:google_fonts/google_fonts.dart';
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class PriorityWidget extends StatelessWidget {
- const PriorityWidget({
- required this.name,
- required this.value,
- required this.callback,
- required this.globalKey,
- this.isEditable = true,
- super.key,
- });
-
- final String name;
- final dynamic value;
- final void Function(dynamic) callback;
- final GlobalKey globalKey;
- final bool isEditable;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- final Color? textColor = isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor;
-
- return Card(
- key: globalKey,
- color: tColors.secondaryBackgroundColor,
- child: ListTile(
- enabled: isEditable,
- textColor: tColors.primaryTextColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: '$name:'.padRight(13),
- style: GoogleFonts.poppins(
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: textColor,
- ),
- ),
- TextSpan(
- text: value ?? "not selected",
- style: GoogleFonts.poppins(
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: textColor,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- ),
- onTap: () {
- switch (value) {
- case 'H':
- return callback('M');
- case 'M':
- return callback('L');
- case 'L':
- return callback(null);
- default:
- return callback('H');
- }
- },
- ),
- );
- }
-}
diff --git a/lib/app/modules/detailRoute/views/status_widget.dart b/lib/app/modules/detailRoute/views/status_widget.dart
deleted file mode 100644
index ac75f5b6..00000000
--- a/lib/app/modules/detailRoute/views/status_widget.dart
+++ /dev/null
@@ -1,81 +0,0 @@
-// ignore_for_file: unnecessary_getters_setters
-
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-import 'package:google_fonts/google_fonts.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-
-
-class StatusWidget extends StatelessWidget {
- const StatusWidget(
- {required this.name,
- required this.value,
- required this.callback,
- super.key});
-
- final String name;
- final dynamic value;
- final void Function(dynamic) callback;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- return Card(
- color: tColors.secondaryBackgroundColor,
- child: ListTile(
- textColor: tColors.primaryTextColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- RichText(
- text: TextSpan(
- children: [
- TextSpan(
- text: '$name:'.padRight(13),
- style: GoogleFonts.poppins(
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- TextSpan(
- text: value ?? SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.notSelected,
- style: GoogleFonts.poppins(
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- ),
- onTap: () {
- if (kDebugMode) {
- print(value);
- }
- switch (value) {
- case 'pending':
- return callback('completed');
- case 'completed':
- return callback('deleted');
- case 'deleted':
- return callback('pending');
- }
- },
- ),
- );
- }
-}
-
-class StatusWidgetData {
- //for accessing the value of the status widget from another class or another dart file
- static dynamic _value;
- static dynamic get value => _value;
- static set value(dynamic newValue) => _value = newValue;
-}
diff --git a/lib/app/modules/detailRoute/views/tags_widget.dart b/lib/app/modules/detailRoute/views/tags_widget.dart
deleted file mode 100644
index 57cf681e..00000000
--- a/lib/app/modules/detailRoute/views/tags_widget.dart
+++ /dev/null
@@ -1,275 +0,0 @@
-// ignore_for_file: depend_on_referenced_packages
-
-import 'package:flutter/material.dart';
-import 'package:built_collection/built_collection.dart';
-import 'package:get/get.dart';
-import 'package:google_fonts/google_fonts.dart';
-import 'package:loggy/loggy.dart';
-import 'package:taskwarrior/app/models/tag_meta_data.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/constants/utilites.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/validate.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class TagsWidget extends StatelessWidget {
- const TagsWidget({
- required this.name,
- required this.value,
- required this.callback,
- this.isEditable = true,
- super.key,
- });
-
- final String name;
- final dynamic value;
- final void Function(dynamic) callback;
- final bool isEditable;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- final Color? textColor = isEditable
- ? tColors.primaryTextColor
- : tColors.primaryDisabledTextColor;
-
- return Card(
- color: tColors.primaryBackgroundColor,
- child: ListTile(
- enabled: isEditable,
- tileColor: tColors.secondaryBackgroundColor,
- textColor: textColor,
- title: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- children: [
- Text(
- '${'$name:'.padRight(13)}${(value as ListBuilder?)?.build()}',
- style: TextStyle(
- color: textColor,
- ),
- ),
- ],
- ),
- ),
- onTap: () => Get.to(
- TagsRoute(
- value: value,
- callback: callback,
- ),
- ),
- ),
- );
- }
-}
-
-class TagsRoute extends StatefulWidget {
- const TagsRoute({required this.value, required this.callback, super.key});
-
- final ListBuilder? value;
- final void Function(ListBuilder?) callback;
-
- @override
- TagsRouteState createState() => TagsRouteState();
-}
-
-class TagsRouteState extends State {
- Map? _pendingTags;
- ListBuilder? draftTags;
-
- void _addTag(String tag) {
- if (tag.isNotEmpty) {
- // Add this condition to ensure the tag is not empty
- if (draftTags == null) {
- draftTags = ListBuilder([tag]);
- } else {
- draftTags!.add(tag);
- }
- widget.callback(draftTags);
- setState(() {});
- }
- }
-
- void _removeTag(String tag) {
- if (draftTags!.length == 1) {
- draftTags!.remove(tag);
- draftTags = null;
- } else {
- draftTags!.remove(tag);
- }
- widget.callback(draftTags ?? ListBuilder([]));
- setState(() {});
- }
-
- @override
- void initState() {
- super.initState();
- draftTags = widget.value;
- }
-
- @override
- void didChangeDependencies() {
- super.didChangeDependencies();
- _initialize();
- }
-
- Future _initialize() async {
- _pendingTags = Get.find().pendingTags;
- setState(() {});
- }
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Scaffold(
- appBar: AppBar(
- backgroundColor: TaskWarriorColors.kprimaryBackgroundColor,
- title: Text(
- SentenceManager(currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .tags,
- style: GoogleFonts.poppins(color: TaskWarriorColors.white),
- ),
- leading: BackButton(
- color: TaskWarriorColors.white,
- ),
- ),
- backgroundColor: tColors.secondaryBackgroundColor,
- body: SafeArea(
- child: Padding(
- padding: const EdgeInsets.all(4),
- child: SingleChildScrollView(
- padding:
- const EdgeInsets.only(left: 10, top: 10, right: 10, bottom: 0),
- child: Wrap(
- spacing: 8,
- runSpacing: 4,
- children: [
- if (draftTags != null)
- for (var tag in draftTags!.build())
- FilterChip(
- backgroundColor: TaskWarriorColors.lightGrey,
- onSelected: (_) => _removeTag(tag),
- label: Text(
- '+$tag ${_pendingTags?[tag]?.frequency ?? 0}',
- ),
- ),
- if (draftTags == null)
- Padding(
- padding: const EdgeInsets.fromLTRB(15, 18, 0, 10),
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage,
- ).sentences.addedTagsWillAppearHere,
- style: GoogleFonts.poppins(
- fontStyle: FontStyle.italic,
- color: tColors.primaryTextColor),
- ),
- ),
- Divider(
- color: tColors.dividerColor,
- ),
- if (_pendingTags != null)
- for (var tag in _pendingTags!.entries.where((tag) =>
- !(draftTags?.build().contains(tag.key) ?? false)))
- FilterChip(
- backgroundColor: TaskWarriorColors.grey,
- onSelected: (_) => _addTag(tag.key),
- label: Text(
- '${tag.key} ${tag.value.frequency}',
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- floatingActionButton: FloatingActionButton(
- backgroundColor: tColors.primaryTextColor,
- foregroundColor: tColors.secondaryBackgroundColor,
- splashColor: tColors.primaryTextColor,
- heroTag: "btn4",
- onPressed: () {
- final formKey = GlobalKey();
- var controller = TextEditingController();
- showDialog(
- context: context,
- builder: (context) => Utils.showAlertDialog(
- scrollable: true,
- title: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage,
- ).sentences.addTag,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- content: Form(
- key: formKey,
- child: TextFormField(
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- validator: (value) {
- if (value != null) {
- if (value.isNotEmpty && value.contains(" ")) {
- return "Tags cannot contain spaces";
- }
- }
- return null;
- },
- autofocus: true,
- controller: controller,
- ),
- ),
- actions: [
- TextButton(
- onPressed: () {
- // Navigator.of(context).pop();
- Get.back();
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage,
- ).sentences.cancel,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- TextButton(
- onPressed: () {
- if (formKey.currentState!.validate()) {
- try {
- validateTaskTags(controller.text);
- _addTag(controller.text);
- // Navigator.of(context).pop();
- Get.back();
- } on FormatException catch (e, trace) {
- logError(e, trace);
- }
- }
- },
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage,
- ).sentences.submit,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- ],
- ),
- );
- },
- child: const Icon(Icons.add),
- ),
- );
- }
-}
diff --git a/lib/app/modules/home/bindings/home_binding.dart b/lib/app/modules/home/bindings/home_binding.dart
deleted file mode 100644
index 4d78d594..00000000
--- a/lib/app/modules/home/bindings/home_binding.dart
+++ /dev/null
@@ -1,11 +0,0 @@
-import 'package:get/get.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-
-class HomeBinding extends Bindings {
- @override
- void dependencies() {
- Get.put(
- HomeController(),
- );
- }
-}
diff --git a/lib/app/modules/home/controllers/home_controller.dart b/lib/app/modules/home/controllers/home_controller.dart
deleted file mode 100644
index 715e1956..00000000
--- a/lib/app/modules/home/controllers/home_controller.dart
+++ /dev/null
@@ -1,749 +0,0 @@
-// ignore_for_file: use_build_context_synchronously, unrelated_type_equality_checks
-
-import 'dart:collection';
-import 'dart:io';
-
-import 'package:connectivity_plus/connectivity_plus.dart';
-import 'package:flutter/material.dart';
-import 'package:get/get.dart';
-import 'package:home_widget/home_widget.dart';
-import 'package:loggy/loggy.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-import 'package:taskwarrior/app/models/filters.dart';
-
-import 'package:taskwarrior/app/models/json/task.dart';
-import 'package:taskwarrior/app/models/storage.dart';
-import 'package:taskwarrior/app/models/storage/client.dart';
-import 'package:taskwarrior/app/models/tag_meta_data.dart';
-import 'package:taskwarrior/app/modules/home/controllers/widget.controller.dart';
-import 'package:taskwarrior/app/modules/home/views/add_task_bottom_sheet_new.dart';
-import 'package:taskwarrior/app/modules/splash/controllers/splash_controller.dart';
-import 'package:taskwarrior/app/routes/app_pages.dart';
-import 'package:taskwarrior/app/services/tag_filter.dart';
-import 'package:taskwarrior/app/tour/filter_drawer_tour.dart';
-import 'package:taskwarrior/app/tour/home_page_tour.dart';
-import 'package:taskwarrior/app/tour/task_swipe_tour.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/language/supported_language.dart';
-import 'package:taskwarrior/app/utils/taskchampion/credentials_storage.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/comparator.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/projects.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/query.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/tags.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/v3/db/task_database.dart';
-import 'package:taskwarrior/app/v3/db/update.dart';
-import 'package:taskwarrior/app/v3/models/task.dart';
-import 'package:taskwarrior/app/v3/net/fetch.dart';
-import 'package:textfield_tags/textfield_tags.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:tutorial_coach_mark/tutorial_coach_mark.dart';
-
-class HomeController extends GetxController {
- final SplashController splashController = Get.find();
- late Storage storage;
- final RxBool pendingFilter = false.obs;
- final RxBool waitingFilter = false.obs;
- final RxString projectFilter = ''.obs;
- final RxBool tagUnion = false.obs;
- final RxString selectedSort = ''.obs;
- final RxSet selectedTags = {}.obs;
- final RxList queriedTasks = [].obs;
- final RxList searchedTasks = [].obs;
- final RxList selectedDates = List.filled(4, null).obs;
- final RxMap pendingTags = {}.obs;
- final RxMap projects = {}.obs;
- final RxBool sortHeaderVisible = false.obs;
- final RxBool searchVisible = false.obs;
- final TextEditingController searchController = TextEditingController();
- final StringTagController stringTagController = StringTagController();
- late RxBool serverCertExists;
- final Rx selectedLanguage = SupportedLanguage.english.obs;
- final ScrollController scrollController = ScrollController();
- final RxBool showbtn = false.obs;
- late TaskDatabase taskdb;
- var tasks = [].obs;
- final RxBool isRefreshing = false.obs;
-
- @override
- void onInit() {
- super.onInit();
- storage = Storage(
- Directory(
- '${splashController.baseDirectory.value.path}/profiles/${splashController.currentProfile.value}',
- ),
- );
- serverCertExists = RxBool(storage.guiPemFiles.serverCertExists());
- addListenerToScrollController();
- _profileSet();
- loadDelayTask();
- initLanguageAndDarkMode();
- taskdb = TaskDatabase();
- taskdb.open();
- getUniqueProjects();
- _loadTaskChampion();
- if (Platform.isAndroid) {
- handleHomeWidgetClicked();
- }
- fetchTasksFromDB();
- everAll([
- pendingFilter,
- waitingFilter,
- projectFilter,
- tagUnion,
- selectedSort,
- selectedTags,
- ], (_) {
- if (Platform.isAndroid) {
- WidgetController widgetController = Get.put(WidgetController());
- widgetController.fetchAllData();
-
- widgetController.update();
- }
- });
- }
-
- Future> getUniqueProjects() async {
- var taskDatabase = TaskDatabase();
- List uniqueProjects = await taskDatabase.fetchUniqueProjects();
- debugPrint('Unique projects: $uniqueProjects');
- return uniqueProjects;
- }
-
- Future deleteAllTasksInDB() async {
- var taskDatabase = TaskDatabase();
- await taskDatabase.deleteAllTasksInDB();
- debugPrint('Deleted all tasks from db');
- }
-
- Future refreshTasks(String clientId, String encryptionSecret) async {
- TaskDatabase taskDatabase = TaskDatabase();
- await taskDatabase.open();
- List tasksFromServer =
- await fetchTasks(clientId, encryptionSecret);
- await updateTasksInDatabase(tasksFromServer);
- List fetchedTasks = await taskDatabase.fetchTasksFromDatabase();
- tasks.value = fetchedTasks;
- }
-
- Future fetchTasksFromDB() async {
- TaskDatabase taskDatabase = TaskDatabase();
- await taskDatabase.open();
- List fetchedTasks = await taskDatabase.fetchTasksFromDatabase();
- tasks.value = fetchedTasks;
- }
-
- Future _loadTaskChampion() async {
- final SharedPreferences prefs = await SharedPreferences.getInstance();
- taskchampion.value = prefs.getBool('settings_taskc') ?? false;
- }
-
- void addListenerToScrollController() {
- scrollController.addListener(() {
- //scroll listener
- double showoffset =
- 10.0; //Back to top botton will show on scroll offset 10.0
-
- if (scrollController.offset > showoffset) {
- showbtn.value = true;
- } else {
- showbtn.value = false;
- }
- });
- }
-
- void _profileSet() {
- pendingFilter.value = Query(storage.tabs.tab()).getPendingFilter();
- if (!Query(storage.tabs.tab()).getWaitingFilter()) {
- waitingFilter.value = Query(storage.tabs.tab()).getWaitingFilter();
- } else {
- Query(storage.tabs.tab()).toggleWaitingFilter();
- waitingFilter.value = Query(storage.tabs.tab()).getWaitingFilter();
- }
- projectFilter.value = Query(storage.tabs.tab()).projectFilter();
- tagUnion.value = Query(storage.tabs.tab()).tagUnion();
- selectedSort.value = Query(storage.tabs.tab()).getSelectedSort();
- selectedTags.addAll(Query(storage.tabs.tab()).getSelectedTags());
-
- _refreshTasks();
- pendingTags.value = _pendingTags();
- projects.value = _projects();
- if (searchVisible.value) {
- toggleSearch();
- }
- }
-
- void _refreshTasks() {
- if (pendingFilter.value) {
- queriedTasks.value = storage.data
- .pendingData()
- .where((task) => task.status == 'pending')
- .toList();
- } else {
- queriedTasks.value = storage.data.completedData();
- }
-
- if (waitingFilter.value) {
- var currentTime = DateTime.now();
- queriedTasks.value = queriedTasks
- .where((task) => task.wait != null && task.wait!.isAfter(currentTime))
- .toList();
- }
-
- if (projectFilter.value.isNotEmpty) {
- queriedTasks.value = queriedTasks.where((task) {
- if (task.project == null) {
- return false;
- } else {
- return task.project!.startsWith(projectFilter.value);
- }
- }).toList();
- }
-
- queriedTasks.value = queriedTasks.where((task) {
- var tags = task.tags?.toSet() ?? {};
- if (tagUnion.value) {
- if (selectedTags.isEmpty) {
- return true;
- }
- return selectedTags.any((tag) => (tag.startsWith('+'))
- ? tags.contains(tag.substring(1))
- : !tags.contains(tag.substring(1)));
- } else {
- return selectedTags.every((tag) => (tag.startsWith('+'))
- ? tags.contains(tag.substring(1))
- : !tags.contains(tag.substring(1)));
- }
- }).toList();
-
- var sortColumn =
- selectedSort.value.substring(0, selectedSort.value.length - 1);
- var ascending = selectedSort.value.endsWith('+');
- queriedTasks.sort((a, b) {
- int result;
- if (sortColumn == 'id') {
- result = a.id!.compareTo(b.id!);
- } else {
- result = compareTasks(sortColumn)(a, b);
- }
- return ascending ? result : -result;
- });
-
- searchedTasks.assignAll(queriedTasks);
- var searchTerm = searchController.text;
- if (searchVisible.value) {
- searchedTasks.value = searchedTasks
- .where((task) =>
- task.description.contains(searchTerm) ||
- (task.annotations?.asList() ?? []).any(
- (annotation) => annotation.description.contains(searchTerm)))
- .toList();
- }
- pendingTags.value = _pendingTags();
- projects.value = _projects();
- }
-
- Map _pendingTags() {
- var frequency = tagFrequencies(storage.data.pendingData());
- var modified = tagsLastModified(storage.data.pendingData());
- var setOfTags = tagSet(storage.data.pendingData());
-
- return SplayTreeMap.of({
- for (var tag in setOfTags)
- tag: TagMetadata(
- frequency: frequency[tag] ?? 0,
- lastModified: modified[tag]!,
- selected: selectedTags.contains('+$tag'),
- ),
- });
- }
-
- Map _projects() {
- var frequencies = {};
- for (var task in storage.data.pendingData()) {
- if (task.project != null) {
- if (frequencies.containsKey(task.project)) {
- frequencies[task.project!] = (frequencies[task.project] ?? 0) + 1;
- } else {
- frequencies[task.project!] = 1;
- }
- }
- }
- return SplayTreeMap.of(sparseDecoratedProjectTree(frequencies));
- }
-
- void togglePendingFilter() {
- Query(storage.tabs.tab()).togglePendingFilter();
- pendingFilter.value = Query(storage.tabs.tab()).getPendingFilter();
- _refreshTasks();
- }
-
- void toggleWaitingFilter() {
- Query(storage.tabs.tab()).toggleWaitingFilter();
- waitingFilter.value = Query(storage.tabs.tab()).getWaitingFilter();
- _refreshTasks();
- }
-
- void toggleProjectFilter(String project) {
- Query(storage.tabs.tab()).toggleProjectFilter(project);
- projectFilter.value = Query(storage.tabs.tab()).projectFilter();
- _refreshTasks();
- }
-
- void toggleTagUnion() {
- Query(storage.tabs.tab()).toggleTagUnion();
- tagUnion.value = Query(storage.tabs.tab()).tagUnion();
- _refreshTasks();
- }
-
- void selectSort(String sort) {
- Query(storage.tabs.tab()).setSelectedSort(sort);
- selectedSort.value = Query(storage.tabs.tab()).getSelectedSort();
- _refreshTasks();
- }
-
- void toggleTagFilter(String tag) {
- if (selectedTags.contains('+$tag')) {
- selectedTags
- ..remove('+$tag')
- ..add('-$tag');
- } else if (selectedTags.contains('-$tag')) {
- selectedTags.remove('-$tag');
- } else {
- selectedTags.add('+$tag');
- }
- Query(storage.tabs.tab()).toggleTagFilter(tag);
- selectedTags.addAll(Query(storage.tabs.tab()).getSelectedTags());
- _refreshTasks();
- }
-
- Task getTask(String uuid) {
- return storage.data.getTask(uuid);
- }
-
- void mergeTask(Task task) {
- storage.data.mergeTask(task);
-
- _refreshTasks();
- }
-
- Future synchronize(BuildContext context, bool isDialogNeeded) async {
- try {
- final connectivityResult = await Connectivity().checkConnectivity();
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- if (connectivityResult == ConnectivityResult.none) {
- ScaffoldMessenger.of(context).showSnackBar(SnackBar(
- content: Text(
- 'You are not connected to the internet. Please check your network connection.',
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- backgroundColor: tColors.secondaryBackgroundColor,
- duration: const Duration(seconds: 2)));
- } else {
- if (isDialogNeeded) {
- showDialog(
- context: context,
- barrierDismissible: false,
- builder: (BuildContext context) {
- return Dialog(
- elevation: 5,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(10.0),
- ),
- child: Container(
- padding: const EdgeInsets.all(16.0),
- child: const Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- CircularProgressIndicator(),
- SizedBox(height: 16.0),
- Text(
- "Syncing",
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeLarge,
- // fontWeight: TaskWarriorFonts.bold,
- // ),
- ),
- SizedBox(height: 8.0),
- Text(
- "Please wait...",
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeSmall,
- // fontWeight: TaskWarriorFonts.regular,
- // ),
- ),
- ],
- ),
- ),
- );
- },
- );
- }
-
- var header = await storage.home.synchronize(await client());
- _refreshTasks();
- pendingTags.value = _pendingTags();
- projects.value = _projects();
-
- ScaffoldMessenger.of(context).showSnackBar(SnackBar(
- content: Text(
- '${header['code']}: ${header['status']}',
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- backgroundColor: tColors.secondaryBackgroundColor,
- duration: const Duration(seconds: 2)));
-
- if (isDialogNeeded) {
- Get.back(closeOverlays: true);
- return;
- }
- }
- } catch (e, trace) {
- if (isDialogNeeded) {
- Get.back(closeOverlays: true);
- }
- logError(e, trace);
- }
- }
-
- void toggleSortHeader() {
- sortHeaderVisible.value = !sortHeaderVisible.value;
- }
-
- void toggleSearch() {
- searchVisible.value = !searchVisible.value;
- if (!searchVisible.value) {
- searchedTasks.assignAll(queriedTasks);
- searchController.text = '';
- }
- }
-
- void search(String term) {
- searchedTasks.assignAll(
- queriedTasks
- .where(
- (task) =>
- task.description.toLowerCase().contains(term.toLowerCase()),
- )
- .toList(),
- );
- }
-
- void setInitialTabIndex(int index) {
- storage.tabs.setInitialTabIndex(index);
- pendingFilter.value = Query(storage.tabs.tab()).getPendingFilter();
- waitingFilter.value = Query(storage.tabs.tab()).getWaitingFilter();
- selectedSort.value = Query(storage.tabs.tab()).getSelectedSort();
- selectedTags.addAll(Query(storage.tabs.tab()).getSelectedTags());
- projectFilter.value = Query(storage.tabs.tab()).projectFilter();
- _refreshTasks();
- }
-
- void addTab() {
- storage.tabs.addTab();
- }
-
- List tabUuids() {
- return storage.tabs.tabUuids();
- }
-
- int initialTabIndex() {
- return storage.tabs.initialTabIndex();
- }
-
- void removeTab(int index) {
- storage.tabs.removeTab(index);
- pendingFilter.value = Query(storage.tabs.tab()).getPendingFilter();
- waitingFilter.value = Query(storage.tabs.tab()).getWaitingFilter();
- selectedSort.value = Query(storage.tabs.tab()).getSelectedSort();
- selectedTags.addAll(Query(storage.tabs.tab()).getSelectedTags());
- _refreshTasks();
- }
-
- void renameTab({
- required String tab,
- required String name,
- }) {
- storage.tabs.renameTab(tab: tab, name: name);
- }
-
- String? tabAlias(String tabUuid) {
- return storage.tabs.alias(tabUuid);
- }
-
- RxBool isSyncNeeded = false.obs;
-
- void checkForSync(BuildContext context) {
- if (!isSyncNeeded.value) {
- isNeededtoSyncOnStart(context);
- isSyncNeeded.value = true;
- }
- }
-
- isNeededtoSyncOnStart(BuildContext context) async {
- final SharedPreferences prefs = await SharedPreferences.getInstance();
- bool? value;
- value = prefs.getBool('sync-onStart') ?? false;
- String? clientId, encryptionSecret;
- clientId = await CredentialsStorage.getClientId();
- encryptionSecret = await CredentialsStorage.getEncryptionSecret();
- if (value) {
- synchronize(context, false);
- refreshTasks(clientId!, encryptionSecret!);
- } else {}
- }
-
- RxBool syncOnStart = false.obs;
- RxBool syncOnTaskCreate = false.obs;
- RxBool delaytask = false.obs;
- RxBool change24hr = false.obs;
- RxBool taskchampion = false.obs;
-
- // dialogue box
- final formKey = GlobalKey();
- final namecontroller = TextEditingController();
- final projectcontroller = TextEditingController();
- var due = Rxn();
- RxString dueString = ''.obs;
- final priorityList = ['L', 'X', 'M', 'H'];
- final priorityColors = [
- TaskWarriorColors.green,
- TaskWarriorColors.grey,
- TaskWarriorColors.yellow,
- TaskWarriorColors.red,
- ];
- RxString priority = 'X'.obs;
-
- final tagcontroller = TextEditingController();
- RxList tags = [].obs;
- RxBool inThePast = false.obs;
-
- Filters getFilters() {
- var selectedTagsMap = {
- for (var tag in selectedTags) tag.substring(1): tag,
- };
-
- var keys = (pendingTags.keys.toSet()..addAll(selectedTagsMap.keys)).toList()
- ..sort();
-
- var tags = {
- for (var tag in keys)
- tag: TagFilterMetadata(
- display:
- '${selectedTagsMap[tag] ?? tag} ${pendingTags[tag]?.frequency ?? 0}',
- selected: selectedTagsMap.containsKey(tag),
- ),
- };
-
- var tagFilters = TagFilters(
- tagUnion: tagUnion.value,
- toggleTagUnion: toggleTagUnion,
- tags: tags,
- toggleTagFilter: toggleTagFilter,
- );
- var filters = Filters(
- pendingFilter: pendingFilter.value,
- waitingFilter: waitingFilter.value,
- togglePendingFilter: togglePendingFilter,
- toggleWaitingFilter: toggleWaitingFilter,
- projects: projects,
- projectFilter: projectFilter.value,
- toggleProjectFilter: toggleProjectFilter,
- tagFilters: tagFilters,
- );
- return filters;
- }
-
- // select profile
- void refreshTaskWithNewProfile() {
- storage = Storage(
- Directory(
- '${splashController.baseDirectory.value.path}/profiles/${splashController.currentProfile.value}',
- ),
- );
- _refreshTasks();
- }
-
- RxBool useDelayTask = false.obs;
-
- Future loadDelayTask() async {
- final SharedPreferences prefs = await SharedPreferences.getInstance();
- useDelayTask.value = prefs.getBool('delaytask') ?? false;
- }
-
- RxBool isDarkModeOn = false.obs;
-
- void initLanguageAndDarkMode() {
- isDarkModeOn.value = AppSettings.isDarkMode;
- selectedLanguage.value = AppSettings.selectedLanguage;
- HomeWidget.saveWidgetData(
- "themeMode", AppSettings.isDarkMode ? "dark" : "light");
- HomeWidget.updateWidget(androidName: "TaskWarriorWidgetProvider");
- // print("called and value is${isDarkModeOn.value}");
- }
-
- final addKey = GlobalKey();
- final searchKey1 = GlobalKey();
- final searchKey2 = GlobalKey();
- final filterKey = GlobalKey();
- final menuKey = GlobalKey();
- final refreshKey = GlobalKey();
-
- late TutorialCoachMark tutorialCoachMark;
-
- void initInAppTour() {
- tutorialCoachMark = TutorialCoachMark(
- targets: addTargetsPage(
- addKey: addKey,
- searchKey: searchKey1,
- filterKey: filterKey,
- menuKey: menuKey,
- refreshKey: refreshKey,
- ),
- colorShadow: TaskWarriorColors.black,
- paddingFocus: 10,
- opacityShadow: 0.8,
- hideSkip: true,
- onFinish: () {
- SaveTourStatus.saveInAppTourStatus(true);
- });
- }
-
- void showInAppTour(BuildContext context) {
- Future.delayed(
- const Duration(milliseconds: 500),
- () {
- SaveTourStatus.getInAppTourStatus().then((value) => {
- if (value == false)
- {
- tutorialCoachMark.show(context: context),
- }
- else
- {
- // ignore: avoid_print
- debugPrint('User has seen this page'),
- // User has seen this page
- }
- });
- },
- );
- }
-
- final GlobalKey statusKey = GlobalKey();
- final GlobalKey projectsKey = GlobalKey();
- final GlobalKey projectsKeyTaskc = GlobalKey();
- final GlobalKey filterTagKey = GlobalKey();
- final GlobalKey sortByKey = GlobalKey();
-
- void initFilterDrawerTour() {
- tutorialCoachMark = TutorialCoachMark(
- targets: filterDrawer(
- statusKey: statusKey,
- projectsKey: projectsKey,
- projectsKeyTaskc: projectsKeyTaskc,
- filterTagKey: filterTagKey,
- sortByKey: sortByKey,
- ),
- colorShadow: TaskWarriorColors.black,
- paddingFocus: 10,
- opacityShadow: 1.00,
- hideSkip: true,
- onFinish: () {
- SaveTourStatus.saveFilterTourStatus(true);
- },
- );
- }
-
- void showFilterDrawerTour(BuildContext context) {
- Future.delayed(
- const Duration(milliseconds: 500),
- () {
- SaveTourStatus.getFilterTourStatus().then((value) => {
- if (value == false)
- {
- tutorialCoachMark.show(context: context),
- }
- else
- {
- // ignore: avoid_print
- print('User has seen this page'),
- }
- });
- },
- );
- }
-
- final taskItemKey = GlobalKey();
-
- void initTaskSwipeTutorial() {
- tutorialCoachMark = TutorialCoachMark(
- targets: addTaskSwipeTutorialTargets(taskItemKey: taskItemKey),
- colorShadow: TaskWarriorColors.black,
- paddingFocus: 10,
- opacityShadow: 1.00,
- hideSkip: true,
- onFinish: () {
- SaveTourStatus.saveTaskSwipeTutorialStatus(true);
- },
- );
- }
-
- void showTaskSwipeTutorial(BuildContext context) {
- SaveTourStatus.getTaskSwipeTutorialStatus().then((value) {
- print("value is $value");
- print("tasks is ${tasks.isNotEmpty}");
- if (value == false) {
- initTaskSwipeTutorial();
- tutorialCoachMark.show(context: context);
- } else {
- debugPrint('User has already seen the task swipe tutorial');
- }
- });
- }
-
- late RxString uuid = "".obs;
- late RxBool isHomeWidgetTaskTapped = false.obs;
-
- void handleHomeWidgetClicked() async {
- Uri? uri = await HomeWidget.initiallyLaunchedFromHomeWidget();
- if (uri != null) {
- if (uri.host == "cardclicked") {
- if (uri.queryParameters["uuid"] != null) {
- uuid.value = uri.queryParameters["uuid"] as String;
- isHomeWidgetTaskTapped.value = true;
- Future.delayed(Duration.zero, () {
- Get.toNamed(Routes.DETAIL_ROUTE, arguments: ["uuid", uuid.value]);
- });
- }
- } else if (uri.host == "addclicked") {
- showAddDialogAfterWidgetClick();
- }
- }
- HomeWidget.widgetClicked.listen((uri) async {
- if (uri != null) {
- if (uri.host == "cardclicked") {
- if (uri.queryParameters["uuid"] != null) {
- uuid.value = uri.queryParameters["uuid"] as String;
- isHomeWidgetTaskTapped.value = true;
- }
- debugPrint('uuid is $uuid');
- Get.toNamed(Routes.DETAIL_ROUTE, arguments: ["uuid", uuid.value]);
- } else if (uri.host == "addclicked") {
- showAddDialogAfterWidgetClick();
- }
- }
- });
- }
-
- void showAddDialogAfterWidgetClick() {
- Widget showDialog = Material(
- child: AddTaskBottomSheet(
- homeController: this, forTaskC: taskchampion.value));
- Get.dialog(showDialog);
- }
-}
diff --git a/lib/app/modules/home/controllers/widget.controller.dart b/lib/app/modules/home/controllers/widget.controller.dart
deleted file mode 100644
index 5c17c844..00000000
--- a/lib/app/modules/home/controllers/widget.controller.dart
+++ /dev/null
@@ -1,154 +0,0 @@
-// ignore_for_file: file_names
-
-import 'dart:convert';
-import 'dart:io';
-
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:get/get.dart';
-import 'package:home_widget/home_widget.dart';
-import 'package:syncfusion_flutter_charts/charts.dart';
-import 'package:taskwarrior/app/models/filters.dart';
-import 'package:taskwarrior/app/models/json/task.dart';
-import 'package:taskwarrior/app/models/storage.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/modules/splash/controllers/splash_controller.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/urgency.dart';
-// import 'package:taskwarrior/widgets/taskfunctions/datetime_differences.dart';
-
-class WidgetController extends GetxController {
- final HomeController storageWidget = Get.find();
- late Storage storage;
- late final Filters filters; // Use RxList for observable list
- List dailyBurnDown = [];
- Directory? baseDirectory;
- RxList allData = [].obs; // Use RxList for observable list
- bool stopTraver = false;
-
- void fetchAllData() async {
- if (Platform.isAndroid || Platform.isIOS) {
- // storageWidget = StorageWidget.of(context!); // Use Get.context from GetX
- // var currentProfile = ProfilesWidget.of(context!).currentProfile;
- var currentProfile = Get.find().currentProfile.value;
- baseDirectory = Get.find().baseDirectory();
- storage =
- Storage(Directory('${baseDirectory!.path}/profiles/$currentProfile'));
- allData.assignAll(storage.data.allData());
- sendAndUpdate();
- }
- }
-
- Future sendAndUpdate() async {
- await sendData();
- await updateWidget();
- }
-
- Future sendData() async {
- final HomeController taskController = Get.find();
- int lengthBeforeFilters = allData.length;
- List tasks = allData;
- debugPrint(
- 'Tasks: ${tasks.length}, ${taskController.projectFilter}, ${taskController.pendingFilter.value}, ${taskController.selectedSort.value}');
- if (taskController.projectFilter.value != 'All Projects' &&
- taskController.projectFilter.toString().isNotEmpty) {
- tasks = tasks
- .where((task) => task.project == taskController.projectFilter.value)
- .toList();
- } else {
- tasks = List.from(tasks);
- }
-
- // Apply other filters and sorting
- tasks.sort((a, b) => a.id!.compareTo(b.id!));
-
- tasks = tasks.where((task) {
- if (taskController.pendingFilter.value) {
- return task.status == 'pending';
- } else {
- return task.status == 'completed';
- }
- }).toList();
-
- tasks = tasks.where((task) {
- var tags = task.tags?.toSet() ?? {};
- if (taskController.tagUnion.value) {
- if (taskController.selectedTags.isEmpty) {
- return true;
- }
- return taskController.selectedTags.any((tag) => (tag.startsWith('+'))
- ? tags.contains(tag.substring(1))
- : !tags.contains(tag.substring(1)));
- } else {
- return taskController.selectedTags.every((tag) => (tag.startsWith('+'))
- ? tags.contains(tag.substring(1))
- : !tags.contains(tag.substring(1)));
- }
- }).toList();
-
- // Apply sorting based on selectedSort
- tasks.sort((a, b) {
- switch (taskController.selectedSort.value) {
- case 'Created+':
- return a.entry.compareTo(b.entry);
- case 'Created-':
- return b.entry.compareTo(a.entry);
- case 'Modified+':
- return a.modified!.compareTo(b.modified!);
- case 'Modified-':
- return b.modified!.compareTo(a.modified!);
- case 'Due till+':
- return a.due!.compareTo(b.due!);
- case 'Due till-':
- return b.due!.compareTo(a.due!);
- case 'Priority-':
- return a.priority!.compareTo(b.priority!);
- case 'Priority+':
- return b.priority!.compareTo(a.priority!);
- case 'Project+':
- return a.project!.compareTo(b.project!);
- case 'Project-':
- return b.project!.compareTo(a.project!);
- case 'Urgency-':
- return b.urgency!.compareTo(a.urgency!);
- case 'Urgency+':
- return a.urgency!.compareTo(b.urgency!);
- default:
- return 0;
- }
- });
- List> l = [];
- for (var task in tasks) {
- l.add({
- "description": task.description,
- "urgency": 'urgencyLevel : ${urgency(task)}',
- "uuid": task.uuid,
- "priority": task.priority ?? "N"
- });
- }
- if (l.isEmpty && lengthBeforeFilters > 0) {
- l.add({
- "description": "No tasks found because of filter",
- "urgency": "urgencyLevel : 0",
- "priority": "2",
- "uuid": "NO_TASK"
- });
- } else if (l.isEmpty && lengthBeforeFilters == 0) {
- l.add({
- "description": "No tasks found",
- "urgency": "urgencyLevel : 0",
- "priority": "1",
- "uuid": "NO_TASK"
- });
- }
- await HomeWidget.saveWidgetData("tasks", jsonEncode(l));
- }
-
- Future updateWidget() async {
- try {
- return HomeWidget.updateWidget(
- name: 'TaskWarriorWidgetProvider', iOSName: 'HomeWidgetExample');
- } on PlatformException catch (exception) {
- debugPrint('Error Updating Widget. $exception');
- }
- }
-}
diff --git a/lib/app/modules/home/views/add_task_bottom_sheet_new.dart b/lib/app/modules/home/views/add_task_bottom_sheet_new.dart
deleted file mode 100644
index 6449d389..00000000
--- a/lib/app/modules/home/views/add_task_bottom_sheet_new.dart
+++ /dev/null
@@ -1,435 +0,0 @@
-import 'dart:io';
-
-import 'package:flutter/material.dart';
-import 'package:get/get.dart';
-import 'package:google_fonts/google_fonts.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-import 'package:taskwarrior/app/models/json/task.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/modules/home/controllers/widget.controller.dart';
-import 'package:taskwarrior/app/utils/add_task_dialogue/date_picker_input.dart';
-import 'package:taskwarrior/app/utils/add_task_dialogue/tags_input.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/add_task_dialog_utils.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/tags.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/taskparser.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/v3/models/task.dart';
-
-class AddTaskBottomSheet extends StatelessWidget {
- final HomeController homeController;
- final bool forTaskC;
- const AddTaskBottomSheet(
- {required this.homeController, super.key, this.forTaskC = false});
-
- @override
- Widget build(BuildContext context) {
- const padding = 12.0;
- return Padding(
- padding: EdgeInsets.only(
- bottom: MediaQuery.of(context).viewInsets.bottom,
- ),
- child: Form(
- key: homeController.formKey,
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Padding(
- padding: const EdgeInsets.all(padding),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- TextButton(
- onPressed: () {
- Get.back();
- },
- child: Text(SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .cancel),
- ),
- Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .addTaskTitle,
- style: const TextStyle(
- fontSize: 20,
- fontWeight: FontWeight.bold,
- ),
- ),
- TextButton(
- onPressed: () {
- if (forTaskC) {
- onSaveButtonClickedTaskC(context);
- } else {
- onSaveButtonClicked(context);
- }
- },
- child: Text(SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .save),
- ),
- ],
- ),
- ),
- Flexible(
- child: SingleChildScrollView(
- child: Column(
- children: [
- Padding(
- padding: const EdgeInsets.all(padding),
- child: TextFormField(
- controller: homeController.namecontroller,
- validator: (value) => value!.isEmpty
- ? SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .descriprtionCannotBeEmpty
- : null,
- decoration: InputDecoration(
- labelText: SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .enterTaskDescription,
- border: OutlineInputBorder(),
- ),
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(padding),
- child: buildProjectInput(context)),
- Padding(
- padding: const EdgeInsets.only(
- left: padding, right: padding, top: padding),
- child: buildDatePicker(context),
- ),
- Padding(
- padding: const EdgeInsets.all(padding),
- child: buildPriority(context),
- ),
- Padding(
- padding: const EdgeInsets.all(padding),
- child: buildTagsInput(context),
- ),
- const Padding(padding: EdgeInsets.all(20)),
- ],
- ),
- ),
- ),
- ],
- ),
- ),
- );
- }
-
- Widget buildProjectInput(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Autocomplete(
- optionsBuilder: (textEditingValue) async {
- Iterable projects = getProjects();
- return projects.where((String project) =>
- project
- .toLowerCase()
- .contains(textEditingValue.text.toLowerCase()) &&
- project != '');
- },
- optionsViewBuilder: (context, onAutoCompleteSelect, options) {
- return Align(
- alignment: Alignment.topLeft,
- child: Material(
- elevation: 4.0,
- child: Container(
- width: MediaQuery.of(context).size.width - 12 * 2,
- decoration: BoxDecoration(
- color: tColors.primaryBackgroundColor,
- borderRadius: BorderRadius.circular(4.0),
- ),
- child: ListView.separated(
- shrinkWrap: true,
- padding: const EdgeInsets.symmetric(vertical: 8),
- itemCount: options.length,
- separatorBuilder: (context, i) =>
- Divider(height: 1, color: tColors.secondaryBackgroundColor),
- itemBuilder: (BuildContext context, int index) {
- return InkWell(
- onTap: () {
- onAutoCompleteSelect(options.elementAt(index));
- },
- child: Padding(
- padding: const EdgeInsets.symmetric(
- horizontal: 16.0, vertical: 12.0),
- child: Text(
- options.elementAt(index),
- style: const TextStyle(fontSize: 16),
- ),
- ),
- );
- },
- ),
- ),
- ),
- );
- },
- fieldViewBuilder:
- (context, textEditingController, focusNode, onFieldSubmitted) =>
- TextFormField(
- controller: textEditingController,
- decoration: InputDecoration(
- labelText: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .enterProject,
- border: OutlineInputBorder(),
- ),
- onChanged: (value) => homeController.projectcontroller.text = value,
- focusNode: focusNode,
- validator: (value) {
- if (value != null && value.contains(" ")) {
- return SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .canNotHaveWhiteSpace;
- }
- return null;
- },
- ),
- );
- }
-
- Widget buildTagsInput(BuildContext context) => AddTaskTagsInput(
- suggestions: tagSet(homeController.storage.data.allData()),
- onTagsChanges: (p0) => homeController.tags.value = p0,
- );
-
- Widget buildDatePicker(BuildContext context) => AddTaskDatePickerInput(
- onDateChanges: (List p0) {
- homeController.selectedDates.value = p0;
- },
- onlyDueDate: forTaskC,
- );
-
- Widget buildPriority(BuildContext context) => Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Obx(
- () => TextField(
- readOnly: true, // Make the field read-only
- controller: TextEditingController(
- text: getPriorityText(homeController
- .priority.value), // Display the selected priority
- ),
- decoration: InputDecoration(
- labelText: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .priority,
- border: const OutlineInputBorder(),
- suffixIcon: Padding(
- padding: const EdgeInsets.only(right: 8.0),
- child: GestureDetector(
- onTap: () {
- debugPrint("Open priority selection.");
- },
- child: Row(
- mainAxisSize: MainAxisSize.min,
- children: [
- for (int i = 0;
- i < homeController.priorityList.length;
- i++)
- GestureDetector(
- onTap: () {
- homeController.priority.value =
- homeController.priorityList[i];
- debugPrint(homeController.priority.value);
- },
- child: AnimatedContainer(
- margin: const EdgeInsets.only(right: 5),
- padding: const EdgeInsets.symmetric(
- horizontal: 10, vertical: 5),
- duration: const Duration(milliseconds: 200),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(8),
- border: Border.all(
- color: homeController.priority.value ==
- homeController.priorityList[i]
- ? AppSettings.isDarkMode
- ? TaskWarriorColors
- .kLightPrimaryBackgroundColor
- : TaskWarriorColors
- .kprimaryBackgroundColor
- : AppSettings.isDarkMode
- ? TaskWarriorColors
- .kprimaryBackgroundColor
- : TaskWarriorColors
- .kLightPrimaryBackgroundColor,
- ),
- ),
- child: Center(
- child: Text(
- homeController.priorityList[i],
- style: GoogleFonts.poppins(
- fontWeight: FontWeight.bold,
- fontSize: 16,
- color: homeController.priorityColors[i],
- ),
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- ),
- )
- ],
- );
-
- Set getProjects() {
- Iterable tasks = homeController.storage.data.allData();
- return tasks
- .where((task) => task.project != null)
- .fold({}, (aggregate, task) => aggregate..add(task.project!));
- }
-
- void onSaveButtonClickedTaskC(BuildContext context) async {
- if (homeController.formKey.currentState!.validate()) {
- debugPrint("tags ${homeController.tags}");
- var task = TaskForC(
- description: homeController.namecontroller.text,
- status: 'pending',
- priority: homeController.priority.value,
- entry: DateTime.now().toIso8601String(),
- id: 0,
- project: homeController.projectcontroller.text != ""
- ? homeController.projectcontroller.text
- : null,
- uuid: '',
- urgency: 0,
- due: getDueDate(homeController.selectedDates).toString(),
- end: '',
- modified: 'r',
- tags: homeController.tags,
- start: '',
- wait: '',
- rtype: '',
- recur: '',
- depends: [],
- annotations: []);
- await homeController.taskdb.insertTask(task);
- homeController.namecontroller.text = '';
- homeController.due.value = null;
- homeController.priority.value = 'M';
- homeController.projectcontroller.text = '';
- ScaffoldMessenger.of(context).showSnackBar(SnackBar(
- content: Text(
- SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .addTaskTaskAddedSuccessfully,
- style: TextStyle(
- color: AppSettings.isDarkMode
- ? TaskWarriorColors.kprimaryTextColor
- : TaskWarriorColors.kLightPrimaryTextColor,
- ),
- ),
- backgroundColor: AppSettings.isDarkMode
- ? TaskWarriorColors.ksecondaryBackgroundColor
- : TaskWarriorColors.kLightSecondaryBackgroundColor,
- duration: const Duration(seconds: 2)));
- Navigator.of(context).pop();
- }
- }
-
- void onSaveButtonClicked(BuildContext context) async {
- // print(homeController.formKey.currentState);
- if (homeController.formKey.currentState!.validate()) {
- try {
- var task = taskParser(homeController.namecontroller.text)
- .rebuild((b) =>
- b..due = getDueDate(homeController.selectedDates)?.toUtc())
- .rebuild((p) => p..priority = homeController.priority.value)
- .rebuild((t) => t..project = homeController.projectcontroller.text)
- .rebuild((t) =>
- t..wait = getWaitDate(homeController.selectedDates)?.toUtc())
- .rebuild((t) =>
- t..until = getUntilDate(homeController.selectedDates)?.toUtc())
- .rebuild((t) => t
- ..scheduled =
- getSchedDate(homeController.selectedDates)?.toUtc());
- if (homeController.tags.isNotEmpty) {
- task = task.rebuild((t) => t..tags.replace(homeController.tags));
- }
- Get.find().mergeTask(task);
- homeController.namecontroller.text = '';
- homeController.projectcontroller.text = '';
- homeController.dueString.value = "";
- homeController.priority.value = 'X';
- homeController.tagcontroller.text = '';
- homeController.tags.value = [];
- homeController.update();
- Get.back();
- if (Platform.isAndroid) {
- WidgetController widgetController = Get.put(WidgetController());
- widgetController.fetchAllData();
- widgetController.update();
- }
-
- homeController.update();
-
- ScaffoldMessenger.of(context).showSnackBar(SnackBar(
- content: Text(
- SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .addTaskTaskAddedSuccessfully,
- style: TextStyle(
- color: AppSettings.isDarkMode
- ? TaskWarriorColors.kprimaryTextColor
- : TaskWarriorColors.kLightPrimaryTextColor,
- ),
- ),
- backgroundColor: AppSettings.isDarkMode
- ? TaskWarriorColors.ksecondaryBackgroundColor
- : TaskWarriorColors.kLightSecondaryBackgroundColor,
- duration: const Duration(seconds: 2)));
-
- final SharedPreferences prefs = await SharedPreferences.getInstance();
- bool? value;
- value = prefs.getBool('sync-OnTaskCreate') ?? false;
- // late InheritedStorage storageWidget;
- // storageWidget = StorageWidget.of(context);
- var storageWidget = Get.find();
- if (value) {
- storageWidget.synchronize(context, true);
- }
- } on FormatException catch (e) {
- ScaffoldMessenger.of(context).showSnackBar(SnackBar(
- content: Text(
- e.message,
- style: TextStyle(
- color: AppSettings.isDarkMode
- ? TaskWarriorColors.kprimaryTextColor
- : TaskWarriorColors.kLightPrimaryTextColor,
- ),
- ),
- backgroundColor: AppSettings.isDarkMode
- ? TaskWarriorColors.ksecondaryBackgroundColor
- : TaskWarriorColors.kLightSecondaryBackgroundColor,
- duration: const Duration(seconds: 2)));
- }
- }
- }
-}
diff --git a/lib/app/modules/home/views/filter_drawer_home_page.dart b/lib/app/modules/home/views/filter_drawer_home_page.dart
deleted file mode 100644
index 91a85dda..00000000
--- a/lib/app/modules/home/views/filter_drawer_home_page.dart
+++ /dev/null
@@ -1,452 +0,0 @@
-// ignore_for_file: unrelated_type_equality_checks
-
-import 'package:flutter/material.dart';
-import 'package:get/get_state_manager/get_state_manager.dart';
-import 'package:taskwarrior/app/models/filters.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/modules/home/views/project_column_home_page.dart';
-import 'package:taskwarrior/app/modules/home/views/project_column_taskc.dart';
-import 'package:taskwarrior/app/services/tag_filter.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class FilterDrawer extends StatelessWidget {
- final Filters filters;
- final HomeController homeController;
- const FilterDrawer(
- {required this.filters, required this.homeController, super.key});
-
- @override
- Widget build(BuildContext context) {
- homeController.initFilterDrawerTour();
- homeController.showFilterDrawerTour(context);
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- var tileColor = AppSettings.isDarkMode
- ? TaskWarriorColors.ksecondaryBackgroundColor
- : TaskWarriorColors.kLightPrimaryBackgroundColor;
- return Drawer(
- backgroundColor: tColors.dialogBackgroundColor,
- surfaceTintColor: tColors.primaryBackgroundColor,
- child: SafeArea(
- child: Padding(
- padding: const EdgeInsets.all(8),
- child: ListView(
- primary: false,
- key: const PageStorageKey('tags-filter'),
- children: [
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Container(
- height: 45,
- alignment: Alignment.center,
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 0.0),
- child: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerApplyFilters,
- // style: GoogleFonts.poppins(
- // fontWeight: TaskWarriorFonts.bold,
- // color: (AppSettings.isDarkMode
- // ? TaskWarriorColors.kprimaryTextColor
- // : TaskWarriorColors.kLightPrimaryTextColor),
- // fontSize: TaskWarriorFonts.fontSizeExtraLarge),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- color: tColors.primaryTextColor,
- fontSize: TaskWarriorFonts.fontSizeExtraLarge,
- ),
- ),
- ),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Container(
- // width: MediaQuery.of(context).size.width * 1,
- // padding: const EdgeInsets.all(12),
- decoration: BoxDecoration(
- color: tileColor,
- borderRadius: BorderRadius.circular(8),
- border: Border.all(color: TaskWarriorColors.borderColor),
- ),
- child: ListTile(
- contentPadding: const EdgeInsets.only(
- left: 8,
- ),
- title: RichText(
- key: homeController.statusKey,
- maxLines: 2,
- text: TextSpan(
- children: [
- TextSpan(
- text:
- '${SentenceManager(currentLanguage: homeController.selectedLanguage.value).sentences.filterDrawerStatus} : ',
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- )),
- TextSpan(
- text: filters.pendingFilter
- ? SentenceManager(
- currentLanguage: homeController
- .selectedLanguage.value)
- .sentences
- .filterDrawerPending
- : SentenceManager(
- currentLanguage: homeController
- .selectedLanguage.value)
- .sentences
- .filterDrawerCompleted,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- )),
- ],
- ),
- ),
- onTap: filters.togglePendingFilter,
- textColor: tColors.primaryTextColor,
- ),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Container(
- decoration: BoxDecoration(
- color: tileColor,
- borderRadius: BorderRadius.circular(8),
- border: Border.all(color: TaskWarriorColors.borderColor),
- ),
- child: Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Text(
- !filters.waitingFilter
- ? SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerShowWaiting
- : SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerHideWaiting,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- )),
- Switch(
- value: filters.waitingFilter,
- onChanged: (_) => filters.toggleWaitingFilter(),
- )
- ],
- ),
- ),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Visibility(
- visible: !homeController.taskchampion.value,
- child: Container(
- key: homeController.projectsKey,
- width: MediaQuery.of(context).size.width * 1,
- padding: const EdgeInsets.all(12),
- decoration: BoxDecoration(
- color: tileColor,
- borderRadius: BorderRadius.circular(8),
- border: Border.all(
- color: TaskWarriorColors.borderColor,
- ),
- ),
- child: ProjectsColumn(
- projects: filters.projects,
- projectFilter: filters.projectFilter,
- callback: filters.toggleProjectFilter,
- ),
- ),
- ),
- Visibility(
- visible: homeController.taskchampion.value,
- child: FutureBuilder>(
- future: homeController.getUniqueProjects(),
- builder: (BuildContext context,
- AsyncSnapshot> snapshot) {
- if (snapshot.hasData) {
- return Container(
- key: homeController.projectsKeyTaskc,
- width: MediaQuery.of(context).size.width * 1,
- padding: const EdgeInsets.all(12),
- decoration: BoxDecoration(
- color: tileColor,
- borderRadius: BorderRadius.circular(8),
- border:
- Border.all(color: TaskWarriorColors.borderColor),
- ),
- child: ProjectColumnTaskc(
- callback: filters.toggleProjectFilter,
- projects: snapshot.data!,
- projectFilter: filters.projectFilter,
- ),
- );
- } else {
- return Center(
- child: Text(SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerNoProjectsAvailable));
- }
- },
- ),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Visibility(
- visible: !homeController.taskchampion.value,
- child: Container(
- key: homeController.filterTagKey,
- width: MediaQuery.of(context).size.width * 1,
- padding: const EdgeInsets.all(12),
- decoration: BoxDecoration(
- color: tileColor,
- borderRadius: BorderRadius.circular(8),
- border: Border.all(color: TaskWarriorColors.borderColor),
- ),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: [
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 0.0),
- child: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerFilterTagBy,
- // style: GoogleFonts.poppins(
- // color: (AppSettings.isDarkMode
- // ? TaskWarriorColors.kprimaryTextColor
- // : TaskWarriorColors.kLightSecondaryTextColor),
- // //
- // fontSize: TaskWarriorFonts.fontSizeLarge),
- //textAlign: TextAlign.right,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 8.0),
- child: TagFiltersWrap(filters.tagFilters),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- ],
- ),
- ),
- ),
- Visibility(
- visible: !homeController.taskchampion.value,
- child: const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- ),
- Container(
- key: homeController.sortByKey,
- width: MediaQuery.of(context).size.width * 1,
- padding: const EdgeInsets.all(12),
- decoration: BoxDecoration(
- color: tileColor,
- borderRadius: BorderRadius.circular(8),
- border: Border.all(color: TaskWarriorColors.borderColor),
- ),
- //height: 30,
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: [
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 0.0),
- child: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerSortBy,
- // style: GoogleFonts.poppins(
- // color: (AppSettings.isDarkMode
- // ? TaskWarriorColors.kprimaryTextColor
- // : TaskWarriorColors.kLightPrimaryTextColor),
- // fontSize: TaskWarriorFonts.fontSizeLarge),
- // textAlign: TextAlign.right,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- )),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 8.0),
- child: Wrap(
- spacing: 8,
- runSpacing: 4,
- children: [
- for (var sort in [
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerCreated,
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerModified,
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerStartTime,
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerDueTill,
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerPriority,
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerProject,
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerTags,
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerUrgency,
- ])
- Obx(
- () => ChoiceChip(
- label: (homeController.selectedSort.value
- .startsWith(sort))
- ? Text(
- homeController.selectedSort.value,
- )
- : Text(sort),
- selected: false,
- onSelected: (_) {
- if (homeController.selectedSort == '$sort+') {
- homeController.selectSort('$sort-');
- } else if (homeController.selectedSort ==
- '$sort-') {
- homeController.selectSort(sort);
- } else {
- homeController.selectSort('$sort+');
- }
- },
- // labelStyle: GoogleFonts.poppins(
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.black
- // : TaskWarriorColors.white),
- // backgroundColor: AppSettings.isDarkMode
- // ? TaskWarriorColors
- // .kLightSecondaryBackgroundColor
- // : TaskWarriorColors.ksecondaryBackgroundColor,
- ),
- )
- ],
- ),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- Container(
- width: 200,
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(10),
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.kLightSecondaryBackgroundColor
- // : TaskWarriorColors.ksecondaryBackgroundColor,
- ),
- child: TextButton(
- onPressed: () {
- if (homeController.selectedSort.value.endsWith('+') ||
- homeController.selectedSort.value.endsWith('-')) {
- homeController.selectSort(
- homeController.selectedSort.value.substring(
- 0,
- homeController.selectedSort.value.length -
- 1));
- }
- },
- child: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .filterDrawerResetSort,
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeMedium,
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.kLightSecondaryTextColor
- // : TaskWarriorColors.ksecondaryTextColor),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- color: tColors.primaryTextColor,
- )),
- ),
- ),
- const Divider(
- color: Color.fromARGB(0, 48, 46, 46),
- ),
- ],
- ),
- )
- ],
- ),
- ),
- ),
- );
- }
-}
diff --git a/lib/app/modules/home/views/home_page_app_bar.dart b/lib/app/modules/home/views/home_page_app_bar.dart
deleted file mode 100644
index f4b22218..00000000
--- a/lib/app/modules/home/views/home_page_app_bar.dart
+++ /dev/null
@@ -1,254 +0,0 @@
-// ignore_for_file: use_build_context_synchronously
-
-import 'package:flutter/material.dart';
-
-import 'package:get/get.dart';
-import 'package:taskwarrior/app/routes/app_pages.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/taskchampion/credentials_storage.dart';
-import 'package:taskwarrior/app/utils/taskserver/taskserver.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-import '../controllers/home_controller.dart';
-
-class HomePageAppBar extends StatelessWidget implements PreferredSizeWidget {
- final HomeController controller;
- final Server? server;
- final Credentials? credentials;
- const HomePageAppBar(
- {required this.server,
- required this.credentials,
- required this.controller,
- super.key});
-
- void _showLoadingSnackBar(BuildContext context, String message) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- ScaffoldMessenger.of(context).showSnackBar(
- SnackBar(
- duration: const Duration(days: 1),
- backgroundColor: tColors.secondaryBackgroundColor,
- content: Row(
- children: [
- SizedBox(
- width: 20,
- height: 20,
- child: CircularProgressIndicator(
- strokeWidth: 2,
- color: tColors.primaryTextColor,
- ),
- ),
- const SizedBox(width: 16),
- Text(
- message,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ],
- ),
- ),
- );
- }
-
- void _showResultSnackBar(BuildContext context, String message, bool isError) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- ScaffoldMessenger.of(context).showSnackBar(
- SnackBar(
- backgroundColor: tColors.secondaryBackgroundColor,
- content: Text(
- message,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- action: isError
- ? SnackBarAction(
- label: SentenceManager(
- currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageSetup,
- onPressed: () {
- if (controller.taskchampion.value) {
- Get.toNamed(Routes.MANAGE_TASK_CHAMPION_CREDS);
- } else {
- Get.toNamed(Routes.MANAGE_TASK_SERVER);
- }
- },
- textColor: TaskWarriorColors.purple,
- )
- : null,
- ),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return AppBar(
- backgroundColor: TaskWarriorColors.kprimaryBackgroundColor,
- surfaceTintColor: TaskWarriorColors.kprimaryBackgroundColor,
- title: Center(
- child: Obx(
- () => Text(
- SentenceManager(currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageTitle,
- style: TextStyle(
- fontFamily: FontFamily.poppins, color: TaskWarriorColors.white),
- ),
- ),
- ),
- actions: [
- Obx(
- () => IconButton(
- key: controller.searchKey1,
- icon: (controller.searchVisible.value)
- ? Tooltip(
- message: SentenceManager(
- currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageCancelSearchTooltip,
- child: Icon(Icons.cancel, color: TaskWarriorColors.white))
- : Tooltip(
- message: SentenceManager(
- currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageSearchTooltip,
- child: Icon(Icons.search, color: TaskWarriorColors.white)),
- onPressed: controller.toggleSearch,
- ),
- ),
- Builder(
- builder: (context) => Obx(() => IconButton(
- key: controller.refreshKey,
- icon: Icon(Icons.refresh, color: TaskWarriorColors.white),
- onPressed: controller.isRefreshing.value
- ? null
- : () async {
- if (controller.taskchampion.value) {
- var c = await CredentialsStorage.getClientId();
- var e =
- await CredentialsStorage.getEncryptionSecret();
- if (c != null && e != null) {
- try {
- controller.isRefreshing.value = true;
- _showLoadingSnackBar(
- context,
- SentenceManager(
- currentLanguage:
- controller.selectedLanguage.value)
- .sentences
- .homePageFetchingTasks);
-
- await controller.refreshTasks(c, e);
-
- ScaffoldMessenger.of(context)
- .hideCurrentSnackBar();
-
- _showResultSnackBar(
- context,
- SentenceManager(
- currentLanguage:
- controller.selectedLanguage.value)
- .sentences
- .homePageFetchingTasks,
- false);
- } catch (e) {
- debugPrint('Error refreshing tasks: $e');
- ScaffoldMessenger.of(context)
- .hideCurrentSnackBar();
- _showResultSnackBar(
- context,
- SentenceManager(
- currentLanguage:
- controller.selectedLanguage.value)
- .sentences
- .homePageTaskWarriorNotConfigured,
- true);
- } finally {
- controller.isRefreshing.value = false;
- }
- } else if (c == null || e == null) {
- _showResultSnackBar(
- context,
- SentenceManager(
- currentLanguage:
- controller.selectedLanguage.value)
- .sentences
- .homePageTaskWarriorNotConfigured,
- true);
- }
- } else {
- if (server != null || credentials != null) {
- controller.isRefreshing.value = true;
- try {
- await controller.synchronize(context, true);
- ScaffoldMessenger.of(context)
- .hideCurrentSnackBar();
- } catch (e) {
- ScaffoldMessenger.of(context)
- .hideCurrentSnackBar();
- _showResultSnackBar(
- context,
- SentenceManager(
- currentLanguage:
- controller.selectedLanguage.value)
- .sentences
- .homePageTaskWarriorNotConfigured,
- true);
- } finally {
- controller.isRefreshing.value = false;
- }
- } else {
- _showResultSnackBar(
- context,
- SentenceManager(
- currentLanguage:
- controller.selectedLanguage.value)
- .sentences
- .homePageTaskWarriorNotConfigured,
- true);
- }
- }
- },
- )),
- ),
- Builder(
- builder: (context) => IconButton(
- key: controller.filterKey,
- icon: Obx(
- () => Tooltip(
- message: SentenceManager(
- currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageFilter,
- child: Icon(Icons.filter_list, color: TaskWarriorColors.white),
- ),
- ),
- onPressed: () => Scaffold.of(context).openEndDrawer(),
- ),
- ),
- ],
- leading: Builder(
- builder: (context) => IconButton(
- key: controller.menuKey,
- icon: Obx(
- () => Tooltip(
- message: SentenceManager(
- currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageMenu,
- child: Icon(Icons.menu, color: TaskWarriorColors.white)),
- ),
- onPressed: () => Scaffold.of(context).openDrawer(),
- ),
- ),
- );
- }
-
- @override
- Size get preferredSize => AppBar().preferredSize;
-}
diff --git a/lib/app/modules/home/views/home_page_body.dart b/lib/app/modules/home/views/home_page_body.dart
deleted file mode 100644
index d9f3c314..00000000
--- a/lib/app/modules/home/views/home_page_body.dart
+++ /dev/null
@@ -1,132 +0,0 @@
-import 'package:double_back_to_close_app/double_back_to_close_app.dart';
-import 'package:flutter/material.dart';
-import 'package:get/get.dart';
-import 'package:taskwarrior/app/modules/home/views/show_tasks.dart';
-import 'package:taskwarrior/app/modules/home/views/tasks_builder.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import '../controllers/home_controller.dart';
-
-class HomePageBody extends StatelessWidget {
- final HomeController controller;
- const HomePageBody({required this.controller, super.key});
-
- @override
- Widget build(BuildContext context) {
- controller.initInAppTour();
- controller.showInAppTour(context);
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- return DoubleBackToCloseApp(
- snackBar: SnackBar(
- content: Text(SentenceManager(
- currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageTapBackToExit)),
- child: Container(
- color: tColors.dialogBackgroundColor,
- child: Padding(
- padding: const EdgeInsets.only(left: 8.0, right: 8.0),
- child: Obx(
- () => Column(
- children: [
- if (controller.searchVisible.value)
- Container(
- margin: const EdgeInsets.symmetric(
- horizontal: 10, vertical: 10),
- child: SearchBar(
- backgroundColor: WidgetStateProperty.all(
- (tColors.primaryBackgroundColor!)),
- surfaceTintColor: WidgetStateProperty.all(
- (tColors.primaryBackgroundColor!)),
- controller: controller.searchController,
- // shape:,
- onChanged: (value) {
- controller.search(value);
- },
-
- shape: WidgetStateProperty.resolveWith(
- (Set states) {
- if (states.contains(WidgetState.focused)) {
- return RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(12.0),
- side: BorderSide(
- color: tColors.primaryTextColor!,
- width: 2.0,
- ),
- );
- } else {
- return RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(12.0),
- side: BorderSide(
- color: tColors.primaryTextColor!,
- width: 1.5,
- ),
- );
- }
- },
- ),
- leading: const Icon(Icons.search_rounded),
- trailing: [
- (controller.searchController.text.isNotEmpty)
- ? IconButton(
- key: GlobalKey(),
- icon: Icon(Icons.cancel,
- color: TaskWarriorColors.black),
- onPressed: () {
- controller.searchController.clear();
- controller
- .search(controller.searchController.text);
- },
- )
- : const SizedBox(
- width: 0,
- height: 0,
- )
- ],
-
- hintText: SentenceManager(
- currentLanguage:
- controller.selectedLanguage.value)
- .sentences
- .homePageSearchHint,
- ),
- ),
- Visibility(
- visible: !controller.taskchampion.value,
- child: Expanded(
- child: Scrollbar(
- child: Obx(
- () => TasksBuilder(
- // darkmode: AppSettings.isDarkMode,
- useDelayTask: controller.useDelayTask.value,
- taskData: controller.searchedTasks,
- pendingFilter: controller.pendingFilter.value,
- waitingFilter: controller.waitingFilter.value,
- searchVisible: controller.searchVisible.value,
- selectedLanguage: controller.selectedLanguage.value,
- scrollController: controller.scrollController,
- showbtn: controller.showbtn.value,
- ),
- ),
- ),
- ),
- ),
- Visibility(
- visible: controller.taskchampion.value,
- child: Expanded(
- child: Scrollbar(
- child: TaskViewBuilder(
- pendingFilter: controller.pendingFilter.value,
- selectedSort: controller.selectedSort.value,
- project: controller.projectFilter.value,
- ),
- )))
- ],
- ),
- ),
- ),
- ),
- );
- }
-}
diff --git a/lib/app/modules/home/views/home_page_floating_action_button.dart b/lib/app/modules/home/views/home_page_floating_action_button.dart
deleted file mode 100644
index d2730a23..00000000
--- a/lib/app/modules/home/views/home_page_floating_action_button.dart
+++ /dev/null
@@ -1,82 +0,0 @@
-import 'package:flutter/material.dart';
-
-import 'package:taskwarrior/app/modules/home/views/add_task_bottom_sheet_new.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import '../controllers/home_controller.dart';
-
-class HomePageFloatingActionButton extends StatelessWidget {
- final HomeController controller;
- const HomePageFloatingActionButton({required this.controller, super.key});
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return FloatingActionButton(
- key: controller.addKey,
- heroTag: "btn3",
- backgroundColor: tColors.primaryTextColor,
- child: Tooltip(
- message: SentenceManager(
- currentLanguage: controller.selectedLanguage.value)
- .sentences
- .homePageAddTaskTooltip,
- child: Icon(
- Icons.add,
- color: tColors.secondaryBackgroundColor,
- ),
- ),
- onPressed: () => (controller.taskchampion.value)
- ? (showModalBottomSheet(
- context: context,
- isScrollControlled: true,
- shape: const RoundedRectangleBorder(
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(0),
- topRight: Radius.circular(0),
- ),
- ),
- builder: (context) => AddTaskBottomSheet(
- homeController: controller,
- forTaskC: true,
- ),
- ).then((value) {
- if (controller.isSyncNeeded.value && value != "cancel") {
- controller.isNeededtoSyncOnStart(context);
- }
- }))
- : (showModalBottomSheet(
- context: context,
- isScrollControlled: true,
- shape: const RoundedRectangleBorder(
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(0),
- topRight: Radius.circular(0),
- ),
- ),
- builder: (context) => AddTaskBottomSheet(
- homeController: controller,
- ),
- ).then((value) {
- if (controller.isSyncNeeded.value && value != "cancel") {
- controller.isNeededtoSyncOnStart(context);
- }
- }))
- // .then((value) {
- // // print(value);
-
- // //if auto sync is turned on
- // if (isSyncNeeded) {
- // //if user have not created any event then
- // //we won't call sync method
- // if (value == "cancel") {
- // } else {
- // //else we can sync new tasks
- // isNeededtoSyncOnStart();
- // }
- // }
- // }),
- );
- }
-}
diff --git a/lib/app/modules/home/views/home_page_nav_drawer_menu_item.dart b/lib/app/modules/home/views/home_page_nav_drawer_menu_item.dart
deleted file mode 100644
index 435a54a6..00000000
--- a/lib/app/modules/home/views/home_page_nav_drawer_menu_item.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class NavDrawerMenuItem extends StatelessWidget {
- final IconData icon;
- final String text;
- final VoidCallback onTap;
-
- const NavDrawerMenuItem({
- super.key,
- required this.icon,
- required this.text,
- required this.onTap,
- });
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- return InkWell(
- onTap: onTap,
- child: Container(
- color: tColors.dialogBackgroundColor,
- padding: const EdgeInsets.symmetric(vertical: 18, horizontal: 10),
- child: Row(
- children: [
- Icon(
- icon,
- color: tColors.primaryTextColor,
- ),
- const SizedBox(width: 10),
- Text(
- text,
- style: TextStyle(
- color: tColors.primaryTextColor,
- fontSize: TaskWarriorFonts.fontSizeMedium,
- ),
- ),
- ],
- ),
- ),
- );
- }
-}
diff --git a/lib/app/modules/home/views/home_view.dart b/lib/app/modules/home/views/home_view.dart
deleted file mode 100644
index e2f62bb1..00000000
--- a/lib/app/modules/home/views/home_view.dart
+++ /dev/null
@@ -1,62 +0,0 @@
-import 'package:flutter/material.dart';
-
-import 'package:get/get.dart';
-
-import 'package:taskwarrior/app/modules/home/views/filter_drawer_home_page.dart';
-import 'package:taskwarrior/app/modules/home/views/home_page_app_bar.dart';
-import 'package:taskwarrior/app/modules/home/views/home_page_body.dart';
-import 'package:taskwarrior/app/modules/home/views/home_page_floating_action_button.dart';
-import 'package:taskwarrior/app/modules/home/views/nav_drawer.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/taskserver/taskserver.dart';
-import 'package:taskwarrior/app/utils/home_path/home_path.dart' as rc;
-
-import '../controllers/home_controller.dart';
-
-class HomeView extends GetView {
- const HomeView({super.key});
- @override
- Widget build(BuildContext context) {
- Server? server;
- Credentials? credentials;
-
- var contents = rc.Taskrc(controller.storage.home.home).readTaskrc();
- if (contents != null) {
- server = Taskrc.fromString(contents).server;
- credentials = Taskrc.fromString(contents).credentials;
- }
-
- if (contents != null) {
- server = Taskrc.fromString(contents).server;
- credentials = Taskrc.fromString(contents).credentials;
- }
-
- controller.checkForSync(context);
-
- return Obx(
- () => Scaffold(
- appBar: HomePageAppBar(
- server: server,
- credentials: credentials,
- controller: controller,
- ),
- backgroundColor: controller.isDarkModeOn.value
- ? TaskWarriorColors.kprimaryBackgroundColor
- : TaskWarriorColors.kLightPrimaryBackgroundColor,
- drawer: NavDrawer(homeController: controller),
- body: HomePageBody(
- controller: controller,
- ),
- endDrawer: Obx(
- () => FilterDrawer(
- filters: controller.getFilters(),
- homeController: controller,
- ),
- ),
- floatingActionButton:
- HomePageFloatingActionButton(controller: controller),
- resizeToAvoidBottomInset: false,
- ),
- );
- }
-}
diff --git a/lib/app/modules/home/views/nav_drawer.dart b/lib/app/modules/home/views/nav_drawer.dart
deleted file mode 100644
index 396b81b7..00000000
--- a/lib/app/modules/home/views/nav_drawer.dart
+++ /dev/null
@@ -1,313 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:get/get.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/modules/home/views/home_page_nav_drawer_menu_item.dart';
-import 'package:taskwarrior/app/modules/home/views/theme_clipper.dart';
-import 'package:taskwarrior/app/modules/reports/views/reports_view_taskc.dart';
-import 'package:taskwarrior/app/routes/app_pages.dart';
-import 'package:taskwarrior/app/utils/constants/constants.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/constants/utilites.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/themes/dark_theme.dart';
-import 'package:taskwarrior/app/utils/themes/light_theme.dart';
-
-class NavDrawer extends StatelessWidget {
- final HomeController homeController;
- const NavDrawer({super.key, required this.homeController});
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Drawer(
- backgroundColor: tColors.dialogBackgroundColor,
- surfaceTintColor: tColors.dialogBackgroundColor,
- child: Container(
- color: tColors.dialogBackgroundColor,
- child: ListView(
- padding: EdgeInsets.zero,
- children: [
- Container(
- color: tColors.dialogBackgroundColor,
- padding: const EdgeInsets.only(top: 50, left: 15, right: 10),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value)
- .sentences
- .homePageMenu,
- style: TextStyle(
- fontSize: TaskWarriorFonts.fontSizeExtraLarge,
- fontWeight: TaskWarriorFonts.bold,
- color: tColors.primaryTextColor,
- ),
- ),
- Padding(
- padding: const EdgeInsets.only(right: 10),
- child: ThemeSwitcherClipper(
- isDarkMode: AppSettings.isDarkMode,
- onTap: (bool newMode) async {
- Get.changeThemeMode(
- newMode ? ThemeMode.dark : ThemeMode.light);
- AppSettings.isDarkMode = newMode;
- await SelectedTheme.saveMode(AppSettings.isDarkMode);
- // Get.back();
- homeController.initLanguageAndDarkMode();
- Get.changeTheme(
- AppSettings.isDarkMode ? darkTheme : lightTheme);
- },
- child: Icon(
- tColors.icons,
- color: tColors.primaryTextColor,
- size: 15,
- ),
- ),
- ),
- ],
- ),
- ),
- Container(
- color: tColors.dialogBackgroundColor,
- height: Get.height * 0.03,
- ),
- Visibility(
- visible: homeController.taskchampion.value,
- child: NavDrawerMenuItem(
- icon: Icons.task_alt,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.ccsyncCredentials,
- onTap: () {
- Get.toNamed(Routes.MANAGE_TASK_CHAMPION_CREDS);
- },
- ),
- ),
- Visibility(
- visible: homeController.taskchampion.value,
- child: NavDrawerMenuItem(
- icon: Icons.delete,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.deleteTaskTitle,
- onTap: () {
- showDialog(
- context: context,
- builder: (BuildContext context) {
- return Utils.showAlertDialog(
- title: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value,
- ).sentences.deleteTaskConfirmation,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- content: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value,
- ).sentences.deleteTaskWarning,
- style: TextStyle(
- color: tColors.primaryDisabledTextColor,
- ),
- ),
- actions: [
- TextButton(
- child: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value,
- ).sentences.homePageCancel,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- onPressed: () {
- Navigator.of(context).pop(); // Close the dialog
- },
- ),
- TextButton(
- child: Text(
- SentenceManager(
- currentLanguage:
- homeController.selectedLanguage.value,
- ).sentences.navDrawerConfirm,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- onPressed: () {
- homeController.deleteAllTasksInDB();
- Navigator.of(context).pop(); // Close the dialog
- },
- ),
- ],
- );
- },
- );
- }),
- ),
- Visibility(
- visible: !homeController.taskchampion.value,
- child: Obx(
- () => NavDrawerMenuItem(
- icon: Icons.person_rounded,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.navDrawerProfile,
- onTap: () {
- Get.toNamed(Routes.PROFILE);
- },
- ),
- ),
- ),
- Visibility(
- visible: !homeController.taskchampion.value,
- child: Obx(
- () => NavDrawerMenuItem(
- icon: Icons.summarize,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.navDrawerReports,
- onTap: () {
- Get.toNamed(Routes.REPORTS);
- },
- ),
- ),
- ),
- Visibility(
- visible: homeController.taskchampion.value,
- child: Obx(
- () => NavDrawerMenuItem(
- icon: Icons.summarize,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.navDrawerReports,
- onTap: () {
- Get.to(() => ReportsHomeTaskc());
- },
- ),
- ),
- ),
- Obx(
- () => NavDrawerMenuItem(
- icon: Icons.info,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.navDrawerAbout,
- onTap: () {
- Get.toNamed(Routes.ABOUT);
- },
- ),
- ),
- Obx(
- () => NavDrawerMenuItem(
- icon: Icons.settings,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.navDrawerSettings,
- onTap: () async {
- final SharedPreferences prefs =
- await SharedPreferences.getInstance();
- homeController.syncOnStart.value =
- prefs.getBool('sync-onStart') ?? false;
- homeController.syncOnTaskCreate.value =
- prefs.getBool('sync-OnTaskCreate') ?? false;
- homeController.delaytask.value =
- prefs.getBool('delaytask') ?? false;
- homeController.change24hr.value =
- prefs.getBool('24hourformate') ?? false;
-
- Get.toNamed(Routes.SETTINGS);
- },
- ),
- ),
- Obx(
- () => NavDrawerMenuItem(
- icon: Icons.exit_to_app,
- text: SentenceManager(
- currentLanguage: homeController.selectedLanguage.value,
- ).sentences.navDrawerExit,
- onTap: () {
- _showExitConfirmationDialog(context);
- },
- ),
- ),
- ],
- ),
- ),
- );
- }
-
- Future _showExitConfirmationDialog(BuildContext context) async {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return showDialog(
- context: context,
- barrierDismissible:
- false, // Prevents closing the dialog by tapping outside
- builder: (BuildContext context) {
- return Utils.showAlertDialog(
- title: Text(
- SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .homePageExitApp,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- content: Text(
- SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .homePageAreYouSureYouWantToExit,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- actions: [
- TextButton(
- child: Text(
- SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .homePageCancel,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- onPressed: () {
- Navigator.of(context).pop(); // Close the dialog
- },
- ),
- TextButton(
- child: Text(
- SentenceManager(
- currentLanguage: homeController.selectedLanguage.value)
- .sentences
- .homePageExit,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- onPressed: () {
- Navigator.of(context).pop(); // Close the dialog
- SystemNavigator.pop(); // Exit the app
- },
- ),
- ],
- );
- },
- );
- }
-}
diff --git a/lib/app/modules/home/views/project_column_home_page.dart b/lib/app/modules/home/views/project_column_home_page.dart
deleted file mode 100644
index 2247bb60..00000000
--- a/lib/app/modules/home/views/project_column_home_page.dart
+++ /dev/null
@@ -1,219 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:get/get.dart';
-
-import 'package:google_fonts/google_fonts.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/projects.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class ProjectsColumn extends StatelessWidget {
- const ProjectsColumn({
- required this.projects,
- required this.projectFilter,
- required this.callback,
- super.key,
- });
-
- final Map projects;
- final String projectFilter;
- final void Function(String) callback;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- return Column(
- children: [
- Padding(
- padding: const EdgeInsets.all(10.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Text(
- "${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.project} : ",
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- ),
- ),
- SizedBox(
- child: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Text(
- projectFilter == "" ? SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.notSelected : projectFilter,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- ),
- ),
- ],
- ),
- ),
- ),
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.only(left: 10, right: 10, top: 10),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- Text(SentenceManager(
- currentLanguage: AppSettings.selectedLanguage).sentences.allProjects,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- )),
- ],
- ),
- ),
- if (projects.isNotEmpty)
- ...projects.entries
- .where((entry) => entry.value.parent == null)
- .map((entry) => ProjectTile(
- project: entry.key,
- projects: projects,
- projectFilter: projectFilter,
- callback: callback,
- ))
- else
- Column(
- children: [
- Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .noProjectsFound,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- ),
- ),
- SizedBox(
- height: Get.height * 0.02,
- ),
- ],
- ),
- ],
- );
- }
-}
-
-class ProjectTile extends StatelessWidget {
- const ProjectTile({
- required this.project,
- required this.projects,
- required this.projectFilter,
- required this.callback,
- super.key,
- });
-
- final String project;
- final Map projects;
- final String projectFilter;
- final void Function(String) callback;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
-
- var node = projects[project]!;
-
- var title = Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- Flexible(
- child: Text(
- project,
- style: GoogleFonts.poppins(
- color: tColors.primaryTextColor,
- ),
- )
- ),
- Text(
- (node.children.isEmpty)
- ? '${node.subtasks}'
- : '(${node.tasks}) ${node.subtasks}',
- style: GoogleFonts.poppins(
- color: tColors.primaryTextColor
- ),
- )
- ],
- );
-
- var radio = Radio(
- activeColor: tColors.primaryTextColor,
- focusColor: tColors.secondaryTextColor,
- toggleable: true,
- value: project,
- groupValue: projectFilter,
- onChanged: (_) => callback(project),
- );
-
- return (node.children.isEmpty)
- ? GestureDetector(
- onTap: () => callback(project),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- radio,
- Text(
- project,
- maxLines: 3,
- // style: GoogleFonts.poppins(
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.white
- // : TaskWarriorColors.black),
- ),
- const Spacer(),
- Container(
- padding: const EdgeInsets.symmetric(horizontal: 4),
- margin: const EdgeInsets.only(right: 10),
- decoration: const BoxDecoration(
- // color: (AppSettings.isDarkMode
- // ? TaskWarriorColors.white
- // : TaskWarriorColors.ksecondaryBackgroundColor),
- ),
- child: Text(
- (node.children.isEmpty)
- ? '${node.subtasks}'
- : '(${node.tasks}) ${node.subtasks}',
- maxLines: 1,
- style: GoogleFonts.poppins(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- ],
- ),
- )
- : ExpansionTile(
- controlAffinity: ListTileControlAffinity.leading,
- key: PageStorageKey(project),
- leading: radio,
- title: title,
- backgroundColor: tColors.primaryTextColor,
- textColor: tColors.primaryTextColor,
- children: node.children
- .map((childProject) => ProjectTile(
- project: childProject,
- projects: projects,
- projectFilter: projectFilter,
- callback: callback,
- ))
- .toList(),
- );
- }
-}
diff --git a/lib/app/modules/home/views/project_column_taskc.dart b/lib/app/modules/home/views/project_column_taskc.dart
deleted file mode 100644
index 4c7cd774..00000000
--- a/lib/app/modules/home/views/project_column_taskc.dart
+++ /dev/null
@@ -1,139 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-
-class ProjectColumnTaskc extends StatelessWidget {
- const ProjectColumnTaskc({
- super.key,
- required this.projects,
- required this.projectFilter,
- required this.callback,
- });
-
- final List projects;
- final String projectFilter;
- final void Function(String) callback;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return Column(
- children: [
- Padding(
- padding: const EdgeInsets.all(10.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage,
- ).sentences.project,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontWeight: TaskWarriorFonts.bold,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- ),
- ),
- const SizedBox(
- width: 10,
- ),
- Expanded(
- child: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Text(
- projectFilter.isEmpty
- ? SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .notSelected
- : projectFilter,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- ProjectTileTaskc(
- project: SentenceManager(
- currentLanguage: AppSettings.selectedLanguage,
- ).sentences.allProjects,
- projectFilter: projectFilter,
- callback: callback),
- if (projects.isNotEmpty)
- ...projects.map((entry) => ProjectTileTaskc(
- project: entry,
- projectFilter: projectFilter,
- callback: callback,
- ))
- else
- Column(
- children: [
- Text(
- SentenceManager(currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .noProjectsFound,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeSmall,
- color: tColors.primaryTextColor,
- ),
- ),
- const SizedBox(
- height: 10,
- ),
- ],
- ),
- ],
- );
- }
-}
-
-class ProjectTileTaskc extends StatelessWidget {
- const ProjectTileTaskc({
- super.key,
- required this.project,
- required this.projectFilter,
- required this.callback,
- });
-
- final String project;
- final String projectFilter;
- final void Function(String) callback;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
- return GestureDetector(
- onTap: () => callback(project),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- Radio(
- value: project,
- groupValue: projectFilter,
- onChanged: (_) => callback(project),
- ),
- Text(
- project,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- const Spacer(),
- ],
- ),
- );
- }
-}
diff --git a/lib/app/modules/home/views/show_tasks.dart b/lib/app/modules/home/views/show_tasks.dart
deleted file mode 100644
index 7440043c..00000000
--- a/lib/app/modules/home/views/show_tasks.dart
+++ /dev/null
@@ -1,255 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:flutter_slidable/flutter_slidable.dart';
-import 'package:get/get.dart';
-import 'package:google_fonts/google_fonts.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/routes/app_pages.dart';
-import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/v3/db/task_database.dart';
-import 'package:taskwarrior/app/v3/models/task.dart';
-import 'package:taskwarrior/app/v3/net/complete.dart';
-import 'package:taskwarrior/app/v3/net/delete.dart';
-
-class TaskViewBuilder extends StatelessWidget {
- const TaskViewBuilder({
- super.key,
- this.project,
- required this.pendingFilter,
- required this.selectedSort,
- });
-
- final String selectedSort;
- final bool pendingFilter;
- final String? project;
-
- @override
- Widget build(BuildContext context) {
- final HomeController taskController = Get.find();
- TaskwarriorColorTheme tColors =
- Theme.of(context).extension()!;
-
- return Obx(() {
- List tasks = List.from(taskController.tasks);
- // Filter tasks based on the selected project
- if (project != 'All Projects') {
- tasks = tasks.where((task) => task.project == project).toList();
- } else {
- tasks = List.from(tasks);
- }
-
- // Apply other filters and sorting
- tasks.sort((a, b) => b.id.compareTo(a.id));
-
- tasks = tasks.where((task) {
- if (pendingFilter) {
- return task.status == 'pending';
- } else {
- return task.status == 'completed';
- }
- }).toList();
- // Apply sorting based on selectedSort
- tasks.sort((a, b) {
- switch (selectedSort) {
- case 'Created+':
- return a.entry.compareTo(b.entry);
- case 'Created-':
- return b.entry.compareTo(a.entry);
- case 'Modified+':
- return a.modified!.compareTo(b.modified!);
- case 'Modified-':
- return b.modified!.compareTo(a.modified!);
- case 'Due till+':
- return a.due!.compareTo(b.due!);
- case 'Due till-':
- return b.due!.compareTo(a.due!);
- case 'Priority-':
- return b.priority!.compareTo(a.priority!);
- case 'Priority+':
- return a.priority!.compareTo(b.priority!);
- case 'Project+':
- return a.project!.compareTo(b.project!);
- case 'Project-':
- return b.project!.compareTo(a.project!);
- case 'Urgency-':
- return b.urgency!.compareTo(a.urgency!);
- case 'Urgency+':
- return a.urgency!.compareTo(b.urgency!);
- default:
- return 0;
- }
- });
-
- return Scaffold(
- backgroundColor: tColors.dialogBackgroundColor,
- body: tasks.isEmpty
- ? Padding(
- padding: const EdgeInsets.all(16.0),
- child: Center(
- child: Text(
- SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .clickOnBottomRightButtonToStartAddingTasks,
- textAlign: TextAlign.center,
- style: GoogleFonts.poppins(
- fontSize: TaskWarriorFonts.fontSizeLarge,
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- )
- : ListView.builder(
- shrinkWrap: true,
- padding: EdgeInsets.only(
- top: 4,
- left: 2,
- right: 2,
- bottom: MediaQuery.of(context).size.height * 0.1,
- ),
- itemCount: tasks.length,
- itemBuilder: (context, index) {
- TaskForC task = tasks[index];
- return Slidable(
- startActionPane: ActionPane(
- motion: const BehindMotion(),
- children: [
- SlidableAction(
- onPressed: (context) {
- _markTaskAsCompleted(task.uuid!);
- ScaffoldMessenger.of(context).showSnackBar(
- SnackBar(
- content: Text(
- SentenceManager(
- currentLanguage:
- AppSettings.selectedLanguage)
- .sentences
- .taskMarkedAsCompleted,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- );
- },
- icon: Icons.done,
- label: SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .complete,
- backgroundColor: TaskWarriorColors.green,
- ),
- ],
- ),
- endActionPane: ActionPane(
- motion: const DrawerMotion(),
- children: [
- SlidableAction(
- onPressed: (context) {
- _markTaskAsDeleted(task.uuid!);
- ScaffoldMessenger.of(context).showSnackBar(
- SnackBar(
- content: Text(
- SentenceManager(
- currentLanguage:
- AppSettings.selectedLanguage)
- .sentences
- .taskMarkedAsDeleted,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- ),
- );
- },
- icon: Icons.delete,
- label: SentenceManager(
- currentLanguage: AppSettings.selectedLanguage)
- .sentences
- .delete,
- backgroundColor: TaskWarriorColors.red,
- ),
- ],
- ),
- child: Card(
- color: tColors.secondaryBackgroundColor,
- child: InkWell(
- splashColor: tColors.primaryBackgroundColor,
- onTap: () =>
- Get.toNamed(Routes.TASKC_DETAILS, arguments: task),
- child: Container(
- decoration: BoxDecoration(
- border: Border.all(
- color: tColors.primaryTextColor!,
- ),
- color: tColors.primaryBackgroundColor,
- borderRadius: BorderRadius.circular(8.0),
- boxShadow: const [
- BoxShadow(
- color: Colors.black12,
- blurRadius: 4.0,
- offset: Offset(0, 2),
- ),
- ],
- ),
- child: ListTile(
- leading: CircleAvatar(
- backgroundColor:
- _getPriorityColor(task.priority!),
- radius: 8,
- ),
- title: Text(
- task.description,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: GoogleFonts.poppins(
- color: tColors.primaryTextColor,
- ),
- ),
- subtitle: Text(
- '${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.detailPageUrgency}: ${task.urgency!.floorToDouble()} | ${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.detailPageStatus}: ${task.status}',
- style: GoogleFonts.poppins(
- color: tColors.secondaryTextColor,
- ),
- ),
- ),
- ),
- ),
- ),
- );
- },
- ),
- );
- });
- }
-
- void _markTaskAsCompleted(String uuid) async {
- TaskDatabase taskDatabase = TaskDatabase();
- await taskDatabase.open();
- taskDatabase.markTaskAsCompleted(uuid);
- completeTask('email', uuid);
- }
-
- void _markTaskAsDeleted(String uuid) async {
- TaskDatabase taskDatabase = TaskDatabase();
- await taskDatabase.open();
- taskDatabase.markTaskAsDeleted(uuid);
- deleteTask('email', uuid);
- }
-
- Color _getPriorityColor(String priority) {
- switch (priority) {
- case 'H':
- return Colors.red;
- case 'M':
- return Colors.yellow;
- case 'L':
- return Colors.green;
- default:
- return Colors.grey;
- }
- }
-}
diff --git a/lib/app/modules/home/views/tag_filters_wrap.dart b/lib/app/modules/home/views/tag_filters_wrap.dart
deleted file mode 100644
index c9024406..00000000
--- a/lib/app/modules/home/views/tag_filters_wrap.dart
+++ /dev/null
@@ -1,71 +0,0 @@
-import 'package:flutter/material.dart';
-
-
-class TagFilterMetadata {
- const TagFilterMetadata({
- required this.display,
- required this.selected,
- });
-
- final String display;
- final bool selected;
-}
-
-class TagFilters {
- const TagFilters({
- required this.tagUnion,
- required this.toggleTagUnion,
- required this.tags,
- required this.toggleTagFilter,
- });
-
- final bool tagUnion;
- final void Function() toggleTagUnion;
- final Map tags;
- final void Function(String) toggleTagFilter;
-}
-
-class TagFiltersWrap extends StatelessWidget {
- const TagFiltersWrap(this.filters, {super.key});
-
- final TagFilters filters;
-
- @override
- Widget build(BuildContext context) {
- return Wrap(
- spacing: 4,
- children: [
- FilterChip(
- onSelected: (_) => filters.toggleTagUnion(),
- label: Text(
- filters.tagUnion ? 'OR' : 'AND',
- // style: GoogleFonts.poppins(
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.black
- // : TaskWarriorColors.white,
- // ),
- ),
- // backgroundColor: AppSettings.isDarkMode
- // ? TaskWarriorColors.kLightSecondaryBackgroundColor
- // : TaskWarriorColors.ksecondaryBackgroundColor,
- ),
- for (var entry in filters.tags.entries)
- FilterChip(
- onSelected: (_) => filters.toggleTagFilter(entry.key),
- label: Text(
- entry.value.display,
- // style: GoogleFonts.poppins(
- // fontWeight: entry.value.selected ? TaskWarriorFonts.bold : null,
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.black
- // : TaskWarriorColors.white,
- // ),
- ),
- // backgroundColor: AppSettings.isDarkMode
- // ? TaskWarriorColors.kLightSecondaryBackgroundColor
- // : TaskWarriorColors.kprimaryBackgroundColor,
- ),
- ],
- );
- }
-}
diff --git a/lib/app/modules/home/views/tas_list_item.dart b/lib/app/modules/home/views/tas_list_item.dart
deleted file mode 100644
index 6c6041bc..00000000
--- a/lib/app/modules/home/views/tas_list_item.dart
+++ /dev/null
@@ -1,225 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:taskwarrior/app/models/json/task.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/language/supported_language.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/datetime_differences.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/modify.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/urgency.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class TaskListItem extends StatelessWidget {
- const TaskListItem(
- this.task, {
- this.pendingFilter = false,
- this.waitingFilter = false,
- super.key,
- required this.useDelayTask,
- required this.modify,
- required this.selectedLanguage,
- });
-
- final Task task;
- final bool pendingFilter;
- final bool waitingFilter;
- final Modify modify;
- final bool useDelayTask;
- final SupportedLanguage selectedLanguage;
-
- @override
- Widget build(BuildContext context) {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- // ignore: unused_element
- void saveChanges() async {
- var now = DateTime.now().toUtc();
- modify.save(
- modified: () => now,
- );
- ScaffoldMessenger.of(context).showSnackBar(SnackBar(
- content: Text(
- SentenceManager(currentLanguage: selectedLanguage)
- .sentences
- .taskUpdated,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- backgroundColor: tColors.secondaryBackgroundColor,
- duration: const Duration(seconds: 2)));
- }
-
- bool isDueWithinOneDay(DateTime dueDate) {
- DateTime now = DateTime.now();
- Duration difference = dueDate.difference(now);
- return difference.inDays < 1 && difference.inMicroseconds > 0;
- }
-
- bool isOverDue(DateTime dueDate) {
- DateTime now = DateTime.now();
- Duration difference = dueDate.difference(now);
- return difference.inMicroseconds < 0;
- }
-
- MaterialColor colours = Colors.grey;
- Color colour =tColors.primaryTextColor!;
- Color dimColor = tColors.dimCol!;
- if (task.priority == 'H') {
- colours = Colors.red;
- } else if (task.priority == 'M') {
- colours = Colors.yellow;
- } else if (task.priority == 'L') {
- colours = Colors.green;
- }
-
- if ((task.status[0].toUpperCase()) == 'P') {
- // Pending tasks
- return Container(
- decoration: BoxDecoration(
- border: Border.all(
- color: (task.due != null &&
- isDueWithinOneDay(task.due!) &&
- useDelayTask)
- ? Colors
- .red // Set border color to red if due within 1 day and useDelayTask is true
- : dimColor, // Set default border color
- ),
- borderRadius: BorderRadius.circular(8.0),
- color: (task.due != null && isOverDue(task.due!) && useDelayTask)
- ? Colors.red.withAlpha(50)
- : tColors.primaryBackgroundColor,
- ),
- child: ListTile(
- title: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Row(
- children: [
- CircleAvatar(
- backgroundColor: colours,
- radius: 8,
- ),
- const SizedBox(width: 8),
- SizedBox(
- width: MediaQuery.of(context).size.width * 0.70,
- child: Text(
- '${(task.id == 0) ? '#' : task.id}. ${task.description}',
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- // style: GoogleFonts.poppins(
- // color: colour,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins, color: colour),
- ),
- ),
- ],
- ),
- Text(
- (task.annotations != null)
- ? ' [${task.annotations!.length}]'
- : '',
- // style: GoogleFonts.poppins(
- // color: colour,
- // ),
- style: TextStyle(fontFamily: FontFamily.poppins, color: colour),
- ),
- ],
- ),
- subtitle: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Flexible(
- child: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Text(
- '${pendingFilter ? '' : '${task.status[0].toUpperCase()}\n'}'
- '${SentenceManager(currentLanguage: selectedLanguage).sentences.homePageLastModified} : ${(task.modified != null) ? age(task.modified!) : ((task.start != null) ? age(task.start!) : '-')} | '
- '${SentenceManager(currentLanguage: selectedLanguage).sentences.homePageDue} : ${(task.due != null) ? when(task.due!) : '-'}'
- .replaceFirst(RegExp(r' \[\]$'), '')
- .replaceAll(RegExp(r' +'), ' '),
- overflow: TextOverflow.ellipsis,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- color: dimColor,
- fontSize: TaskWarriorFonts.fontSizeSmall),
- ),
- ),
- ),
- Text(
- formatUrgency(urgency(task)),
- // style: GoogleFonts.poppins(
- // color: colour,
- // ),
- style: TextStyle(fontFamily: FontFamily.poppins, color: colour),
- ),
- ],
- ),
- ),
- );
- } else {
- // Completed tasks
- return ListTile(
- title: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Row(
- children: [
- CircleAvatar(
- backgroundColor: colours,
- radius: 8,
- ),
- const SizedBox(width: 8),
- SizedBox(
- width: MediaQuery.of(context).size.width * 0.65,
- child: Text(
- '${(task.id == 0) ? '#' : task.id}. ${task.description}',
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- // style: GoogleFonts.poppins(
- // color: colour,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins, color: colour),
- ),
- ),
- ],
- ),
- ],
- ),
- subtitle: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Flexible(
- child: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Text(
- '${SentenceManager(currentLanguage: selectedLanguage).sentences.homePageLastModified} :${(task.modified != null) ? age(task.modified!) : ((task.start != null) ? age(task.start!) : '-')} | '
- '${SentenceManager(currentLanguage: selectedLanguage).sentences.homePageDue} : ${(task.due != null) ? when(task.due!) : '-'}'
- .replaceFirst(RegExp(r' \[\]$'), '')
- .replaceAll(RegExp(r' +'), ' '),
- overflow: TextOverflow.ellipsis,
- // style: GoogleFonts.poppins(
- // color: dimColor,
- // fontSize: TaskWarriorFonts.fontSizeSmall,
- // ),
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- color: dimColor,
- fontSize: TaskWarriorFonts.fontSizeSmall),
- ),
- ),
- ),
- Text(
- formatUrgency(urgency(task)),
- // style: GoogleFonts.poppins(
- // color: colour,
- // ),
- style: TextStyle(fontFamily: FontFamily.poppins, color: colour),
- ),
- ],
- ),
- );
- }
- }
-}
diff --git a/lib/app/modules/home/views/tasks_builder.dart b/lib/app/modules/home/views/tasks_builder.dart
deleted file mode 100644
index 1584b349..00000000
--- a/lib/app/modules/home/views/tasks_builder.dart
+++ /dev/null
@@ -1,287 +0,0 @@
-// ignore_for_file: file_names
-
-import 'dart:io';
-
-import 'package:flutter/material.dart';
-import 'package:flutter_slidable/flutter_slidable.dart';
-import 'package:get/get.dart';
-import 'package:taskwarrior/app/models/models.dart';
-import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
-import 'package:taskwarrior/app/modules/home/controllers/widget.controller.dart';
-import 'package:taskwarrior/app/modules/home/views/tas_list_item.dart';
-import 'package:taskwarrior/app/routes/app_pages.dart';
-import 'package:taskwarrior/app/services/notification_services.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart';
-import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
-import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
-import 'package:taskwarrior/app/utils/language/supported_language.dart';
-import 'package:taskwarrior/app/utils/taskfunctions/modify.dart';
-import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
-
-class TasksBuilder extends StatelessWidget {
- const TasksBuilder({
- super.key,
- required this.taskData,
- required this.pendingFilter,
- required this.waitingFilter,
- required this.useDelayTask,
- required this.searchVisible,
- required this.selectedLanguage,
- required this.scrollController,
- required this.showbtn,
- });
-
- final List taskData;
- final bool pendingFilter;
- final bool waitingFilter;
- final bool searchVisible;
- final bool useDelayTask;
- final SupportedLanguage selectedLanguage;
- final ScrollController scrollController;
- final bool showbtn;
- void setStatus(BuildContext context, String newValue, String id) {
- var storageWidget = Get.find();
- Modify modify = Modify(
- getTask: storageWidget.getTask,
- mergeTask: storageWidget.mergeTask,
- uuid: id,
- );
- modify.set('status', newValue);
- saveChanges(context, modify, id, newValue);
- }
-
- void saveChanges(
- BuildContext context, Modify modify, String id, String newValue) async {
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- var now = DateTime.now().toUtc();
- modify.save(
- modified: () => now,
- );
- ScaffoldMessenger.of(context).showSnackBar(SnackBar(
- content: Text(
- SentenceManager(currentLanguage: selectedLanguage)
- .sentences
- .taskUpdated,
- style: TextStyle(
- color: tColors.primaryTextColor,
- ),
- ),
- backgroundColor: tColors.secondaryBackgroundColor,
- duration: const Duration(seconds: 2),
- action: SnackBarAction(
- label:
- SentenceManager(currentLanguage: selectedLanguage).sentences.undo,
- onPressed: () {
- undoChanges(context, id, 'pending');
- },
- ),
- ));
- }
-
- void undoChanges(BuildContext context, String id, String originalValue) {
- var storageWidget = Get.find();
- Modify modify = Modify(
- getTask: storageWidget.getTask,
- mergeTask: storageWidget.mergeTask,
- uuid: id,
- );
- modify.set('status', originalValue);
- modify.save(
- modified: () => DateTime.now().toUtc(),
- );
- storageWidget.update();
- }
-
- void cancelNotification(Task task) {
- NotificationService notificationService = NotificationService();
-
- int notificationId = notificationService.calculateNotificationId(
- task.due!, task.description, false, task.entry);
- notificationService.cancelNotification(notificationId);
-
- if (task.wait != null) {
- notificationId = notificationService.calculateNotificationId(
- task.wait!, task.description, true, task.entry);
- notificationService.cancelNotification(notificationId);
- }
- }
-
- @override
- Widget build(BuildContext context) {
- // print(taskData);
- TaskwarriorColorTheme tColors = Theme.of(context).extension()!;
- var storageWidget = Get.find();
- return Scaffold(
- floatingActionButtonLocation:
- FloatingActionButtonLocation.miniStartFloat,
- floatingActionButton: showbtn ? AnimatedOpacity(
- duration: const Duration(milliseconds: 100), //show/hide animation
- opacity: showbtn ? 1.0 : 0.0, //set obacity to 1 on visible, or hide
- child: FloatingActionButton(
- heroTag: "btn2",
- onPressed: () {
- scrollController.animateTo(
- //go to top of scroll
- 0, //scroll offset to go
- duration:
- const Duration(milliseconds: 500), //duration of scroll
- curve: Curves.fastLinearToSlowEaseIn //scroll type
- );
- },
- backgroundColor: tColors.primaryTextColor,
- child: Icon(
- Icons.arrow_upward,
- color: tColors.secondaryBackgroundColor,
- ),
- ),
- ) : null,
- backgroundColor: Colors.transparent,
- body: Obx(
- () => taskData.isEmpty
- ? Padding(
- padding: const EdgeInsets.all(16.0),
- child: Center(
- child: Text(
- (searchVisible)
- ? '${SentenceManager(currentLanguage: selectedLanguage).sentences.homePageSearchNotFound} :('
- : SentenceManager(currentLanguage: selectedLanguage)
- .sentences
- .homePageClickOnTheBottomRightButtonToStartAddingTasks,
- textAlign: TextAlign.center,
- style: TextStyle(
- fontFamily: FontFamily.poppins,
- fontSize: TaskWarriorFonts.fontSizeLarge,
- color: tColors.primaryTextColor
- ),
- // style: GoogleFonts.poppins(
- // fontSize: TaskWarriorFonts.fontSizeLarge,
- // color: AppSettings.isDarkMode
- // ? TaskWarriorColors.kLightPrimaryBackgroundColor
- // : TaskWarriorColors.kprimaryBackgroundColor,
- // ),
- ),
- ),
- )
- : ListView.builder(
- padding:
- const EdgeInsets.symmetric(vertical: 4, horizontal: 2),
- itemCount: taskData.length,
- controller: scrollController,
- primary: false,
- itemBuilder: (context, index) {
- var task = taskData[index];
- final itemKey = index == 0
- ? storageWidget.taskItemKey
- : ValueKey(task.uuid);
-
- return pendingFilter
- ? Slidable(
- key: itemKey,
- startActionPane: ActionPane(
- motion: const BehindMotion(),
- children: [
- SlidableAction(
- onPressed: (context) {
- // Complete task without confirmation
- setStatus(context, 'completed', task.uuid);
- if (task.due != null) {
- DateTime? dtb = task.due;
- dtb =
- dtb!.add(const Duration(minutes: 1));
- cancelNotification(task);
- }
- },
- icon: Icons.done,
- label: SentenceManager(currentLanguage: selectedLanguage)
- .sentences
- .complete,
- backgroundColor: TaskWarriorColors.green,
- ),
- ],
- ),
- endActionPane: ActionPane(
- motion: const DrawerMotion(),
- children: [
- SlidableAction(
- onPressed: (context) {
- // Delete task without confirmation
- setStatus(context, 'deleted', task.uuid);
- if (task.due != null) {
- DateTime? dtb = task.due;
- dtb =
- dtb!.add(const Duration(minutes: 1));
- cancelNotification(task);
- }
- if (Platform.isAndroid) {
- WidgetController widgetController =
- Get.put(WidgetController());
- widgetController.fetchAllData();
-
- widgetController.update();
- }
- },
- icon: Icons.delete,
- label: SentenceManager(currentLanguage: selectedLanguage)
- .sentences
- .delete,
- backgroundColor: TaskWarriorColors.red,
- ),
- ],
- ),
- child: Card(
- color: tColors.secondaryBackgroundColor,
- child: InkWell(
- splashColor: tColors.secondaryBackgroundColor,
- onTap: () {
- Get.toNamed(Routes.DETAIL_ROUTE,
- arguments: ["uuid", task.uuid]);
- },
- // child: Text(task.entry.toString()),
- // onTap: () => Navigator.push(
- // context,
- // MaterialPageRoute(
- // builder: (context) => DetailRouteView(task.uuid),
- // ),
- // ),
- child: TaskListItem(
- task,
- pendingFilter: pendingFilter,
- useDelayTask: useDelayTask,
- modify: Modify(
- getTask: storageWidget.getTask,
- mergeTask: storageWidget.mergeTask,
- uuid: task.uuid,
- ),
- selectedLanguage: selectedLanguage,
- ),
- ),
- ),
- )
- : Card(
- color: tColors.secondaryBackgroundColor,
- child: InkWell(
- splashColor: tColors.secondaryBackgroundColor,
- onTap: () {
- Get.toNamed(Routes.DETAIL_ROUTE,
- arguments: ["uuid", task.uuid]);
- },
- // child: Text(task.entry.toString()),
- child: TaskListItem(
- task,
- pendingFilter: pendingFilter,
- useDelayTask: useDelayTask,
- modify: Modify(
- getTask: storageWidget.getTask,
- mergeTask: storageWidget.mergeTask,
- uuid: task.uuid,
- ),
- selectedLanguage: selectedLanguage,
- ),
- ),
- );
- },
- ),
- ));
- }
-}
diff --git a/lib/app/modules/home/views/theme_clipper.dart b/lib/app/modules/home/views/theme_clipper.dart
deleted file mode 100644
index a00d9216..00000000
--- a/lib/app/modules/home/views/theme_clipper.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
-
-class ThemeSwitcherClipper extends StatelessWidget {
- final bool isDarkMode;
- final Function(bool) onTap;
-
- const ThemeSwitcherClipper({
- super.key,
- required this.isDarkMode,
- required this.onTap,
- required Icon child,
- });
-
- @override
- Widget build(BuildContext context) {
- return GestureDetector(
- onTap: () async {
- onTap(!isDarkMode);
- },
- child: ClipOval(
- child: Hero(
- tag: 'theme_switcher',
- child: SizedBox(
- width: 60,
- height: 60,
- child: Center(
- child: AnimatedSwitcher(
- duration: const Duration(seconds: 2),
- child: Icon(
- isDarkMode ? Icons.dark_mode : Icons.light_mode,
- key: UniqueKey(),
- color: isDarkMode
- ? TaskWarriorColors.white
- : TaskWarriorColors.black,
- size: 40,
- ),
- )),
- ),
- ),
- ),
- );
- }
-}
diff --git a/lib/app/modules/logs/bindings/logs_binding.dart b/lib/app/modules/logs/bindings/logs_binding.dart
deleted file mode 100644
index 46a37ce8..00000000
--- a/lib/app/modules/logs/bindings/logs_binding.dart
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'package:get/get.dart';
-
-import '../controllers/logs_controller.dart';
-
-class LogsBinding extends Bindings {
- @override
- void dependencies() {
- Get.lazyPut(
- () => LogsController(),
- );
- }
-}
diff --git a/lib/app/modules/logs/controllers/logs_controller.dart b/lib/app/modules/logs/controllers/logs_controller.dart
deleted file mode 100644
index c4873eb2..00000000
--- a/lib/app/modules/logs/controllers/logs_controller.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-import 'package:get/get.dart';
-import 'package:taskwarrior/app/utils/debug_logger/log_databse_helper.dart';
-
-class LogsController extends GetxController {
- final LogDatabaseHelper _logDatabaseHelper = LogDatabaseHelper();
- var logs = >[].obs;
- var isLoading = true.obs;
-
- @override
- void onInit() {
- super.onInit();
- loadLogs();
- }
-
- Future loadLogs() async {
- isLoading.value = true;
- final fetchedLogs = await _logDatabaseHelper.getLogs();
- logs.assignAll(fetchedLogs); // Update the RxList
- isLoading.value = false;
- }
-
- Future