├── linux
├── .gitignore
├── main.cc
├── flutter
│ ├── generated_plugin_registrant.h
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugins.cmake
│ └── CMakeLists.txt
├── my_application.h
├── my_application.cc
└── CMakeLists.txt
├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── 16.png
│ │ │ ├── 20.png
│ │ │ ├── 29.png
│ │ │ ├── 32.png
│ │ │ ├── 40.png
│ │ │ ├── 48.png
│ │ │ ├── 50.png
│ │ │ ├── 55.png
│ │ │ ├── 57.png
│ │ │ ├── 58.png
│ │ │ ├── 60.png
│ │ │ ├── 64.png
│ │ │ ├── 72.png
│ │ │ ├── 76.png
│ │ │ ├── 80.png
│ │ │ ├── 87.png
│ │ │ ├── 88.png
│ │ │ ├── 100.png
│ │ │ ├── 1024.png
│ │ │ ├── 114.png
│ │ │ ├── 120.png
│ │ │ ├── 128.png
│ │ │ ├── 144.png
│ │ │ ├── 152.png
│ │ │ ├── 167.png
│ │ │ ├── 172.png
│ │ │ ├── 180.png
│ │ │ ├── 196.png
│ │ │ ├── 216.png
│ │ │ ├── 256.png
│ │ │ ├── 512.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
└── .gitignore
├── .vscode
└── settings.json
├── macos
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner
│ ├── Configs
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ ├── Warnings.xcconfig
│ │ └── AppInfo.xcconfig
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── app_icon_1024.png
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ ├── app_icon_64.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Release.entitlements
│ ├── DebugProfile.entitlements
│ ├── MainFlutterWindow.swift
│ └── Info.plist
├── .gitignore
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner.xcodeproj
│ ├── project.xcworkspace
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ └── xcschemes
│ └── Runner.xcscheme
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── manifest.json
└── index.html
├── Assets
└── images
│ ├── logo.jpg
│ ├── real2.png
│ ├── appstore.png
│ ├── playstore.png
│ ├── first befor login 1.png
│ ├── first before login 4.png
│ ├── first before login 2.png
│ ├── first before login 3 (copy).png
│ └── fontfamily
│ ├── Imprima-Regular.ttf
│ └── InriaSerif-Bold.ttf
├── android
├── gradle.properties
├── app
│ ├── key
│ │ └── private_key.pepk
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── fouvty
│ │ │ │ │ └── grasshopper
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── windows
├── runner
│ ├── resources
│ │ └── app_icon.ico
│ ├── resource.h
│ ├── utils.h
│ ├── runner.exe.manifest
│ ├── flutter_window.h
│ ├── CMakeLists.txt
│ ├── main.cpp
│ ├── utils.cpp
│ ├── flutter_window.cpp
│ ├── Runner.rc
│ ├── win32_window.h
│ └── win32_window.cpp
├── .gitignore
├── flutter
│ ├── generated_plugin_registrant.h
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugins.cmake
│ └── CMakeLists.txt
└── CMakeLists.txt
├── README.md
├── lib
├── models
│ ├── catogary
│ │ ├── categoryModel.dart
│ │ └── categoryModel.g.dart
│ └── transaction
│ │ ├── transcationDB.dart
│ │ └── transcationDB.g.dart
├── screens
│ ├── working_Pages
│ │ ├── cattogary
│ │ │ ├── forloop_Statitics.dart
│ │ │ ├── statistcsPage.dart
│ │ │ ├── incomePiechart.dart
│ │ │ └── expancePieChart.dart
│ │ ├── catogaryPages
│ │ │ ├── editCatogry.dart
│ │ │ ├── showDiloge.dart
│ │ │ ├── ExpenseCatogarylist.dart
│ │ │ ├── catogaryPage.dart
│ │ │ └── incomeCatogarylist.dart
│ │ ├── homePage.dart
│ │ └── settingsPage.dart
│ ├── genaralItems
│ │ └── constentItems.dart
│ ├── extra_Pages
│ │ ├── notification.dart
│ │ └── searchPage.dart
│ └── firstTime_Login
│ │ ├── splashScreen.dart
│ │ ├── loginScreen.dart
│ │ └── introductionPages.dart
├── main.dart
└── db
│ ├── catogary
│ └── catogrydb.dart
│ └── transcation
│ └── transactoin_db.dart
├── .gitignore
├── test
└── widget_test.dart
├── analysis_options.yaml
├── .metadata
└── pubspec.yaml
/linux/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "cmake.configureOnOpen": false
3 | }
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/Assets/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/logo.jpg
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/Assets/images/real2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/real2.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/Assets/images/appstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/appstore.png
--------------------------------------------------------------------------------
/Assets/images/playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/playstore.png
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/android/app/key/private_key.pepk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/android/app/key/private_key.pepk
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/Assets/images/first befor login 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/first befor login 1.png
--------------------------------------------------------------------------------
/Assets/images/first before login 4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/first before login 4.png
--------------------------------------------------------------------------------
/Assets/images/first before login 2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/first before login 2.png
--------------------------------------------------------------------------------
/Assets/images/first before login 3 (copy).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/first before login 3 (copy).png
--------------------------------------------------------------------------------
/Assets/images/fontfamily/Imprima-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/fontfamily/Imprima-Regular.ttf
--------------------------------------------------------------------------------
/Assets/images/fontfamily/InriaSerif-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/Assets/images/fontfamily/InriaSerif-Bold.ttf
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/48.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/55.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/55.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/88.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/88.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/172.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/172.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/196.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/196.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/216.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/216.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/harshadok/Grasshopper_money_assistant/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/fouvty/grasshopper/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.fouvty.grasshopper
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/linux/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
7 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/windows/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral/
2 |
3 | # Visual Studio user-specific files.
4 | *.suo
5 | *.user
6 | *.userosscache
7 | *.sln.docstates
8 |
9 | # Visual Studio build-related files.
10 | x64/
11 | x86/
12 |
13 | # Visual Studio cache files
14 | # files ending in .cache can be ignored
15 | *.[Cc]ache
16 | # but keep track of directories ending in .cache
17 | !*.[Cc]ache/
18 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void fl_register_plugins(FlPluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void RegisterPlugins(flutter::PluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 | #include
10 |
11 | void RegisterPlugins(flutter::PluginRegistry* registry) {
12 | UrlLauncherWindowsRegisterWithRegistrar(
13 | registry->GetRegistrarForPlugin("UrlLauncherWindows"));
14 | }
15 |
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/linux/my_application.h:
--------------------------------------------------------------------------------
1 | #ifndef FLUTTER_MY_APPLICATION_H_
2 | #define FLUTTER_MY_APPLICATION_H_
3 |
4 | #include
5 |
6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
7 | GtkApplication)
8 |
9 | /**
10 | * my_application_new:
11 | *
12 | * Creates a new Flutter-based application.
13 | *
14 | * Returns: a new #MyApplication.
15 | */
16 | MyApplication* my_application_new();
17 |
18 | #endif // FLUTTER_MY_APPLICATION_H_
19 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/windows/runner/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by Runner.rc
4 | //
5 | #define IDI_APP_ICON 101
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 102
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1001
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 | #include
10 |
11 | void fl_register_plugins(FlPluginRegistry* registry) {
12 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
13 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
14 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
15 | }
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # _save_karo
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/lib/models/catogary/categoryModel.dart:
--------------------------------------------------------------------------------
1 | import 'package:hive_flutter/adapters.dart';
2 | part 'categoryModel.g.dart';
3 |
4 | @HiveType(typeId: 2)
5 | enum CatogaryType {
6 | @HiveField(1)
7 | icome,
8 | @HiveField(2)
9 | expence;
10 | }
11 |
12 | @HiveType(typeId: 1)
13 | class CatogeryModel {
14 | @HiveField(0)
15 | final String id;
16 | @HiveField(1)
17 | final String name;
18 | @HiveField(2)
19 | final bool isDeleted;
20 | @HiveField(3)
21 | final CatogaryType type;
22 |
23 | CatogeryModel(
24 | {required this.id,
25 | required this.name,
26 | this.isDeleted = false,
27 | required this.type});
28 | }
29 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = _save_karo
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.SaveKaro
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/windows/runner/utils.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_UTILS_H_
2 | #define RUNNER_UTILS_H_
3 |
4 | #include
5 | #include
6 |
7 | // Creates a console for the process, and redirects stdout and stderr to
8 | // it for both the runner and the Flutter library.
9 | void CreateAndAttachConsole();
10 |
11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string
12 | // encoded in UTF-8. Returns an empty std::string on failure.
13 | std::string Utf8FromUtf16(const wchar_t* utf16_string);
14 |
15 | // Gets the command line arguments passed in as a std::vector,
16 | // encoded in UTF-8. Returns an empty std::vector on failure.
17 | std::vector GetCommandLineArguments();
18 |
19 | #endif // RUNNER_UTILS_H_
20 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | url_launcher_linux
7 | )
8 |
9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
10 | )
11 |
12 | set(PLUGIN_BUNDLED_LIBRARIES)
13 |
14 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
19 | endforeach(plugin)
20 |
21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
24 | endforeach(ffi_plugin)
25 |
--------------------------------------------------------------------------------
/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import flutter_local_notifications
9 | import path_provider_macos
10 | import share_plus_macos
11 | import shared_preferences_macos
12 | import url_launcher_macos
13 |
14 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
15 | FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin"))
16 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
17 | SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
18 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
19 | UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
20 | }
21 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | url_launcher_windows
7 | )
8 |
9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
10 | )
11 |
12 | set(PLUGIN_BUNDLED_LIBRARIES)
13 |
14 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
19 | endforeach(plugin)
20 |
21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
24 | endforeach(ffi_plugin)
25 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/windows/runner/runner.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PerMonitorV2
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Web related
36 | lib/generated_plugin_registrant.dart
37 |
38 | # Symbolication related
39 | app.*.symbols
40 |
41 | # Obfuscation related
42 | app.*.map.json
43 |
44 | # Android Studio will place build artifacts here
45 | /android/app/debug
46 | /android/app/profile
47 | /android/app/release
48 |
--------------------------------------------------------------------------------
/lib/models/transaction/transcationDB.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/models/catogary/categoryModel.dart';
2 | import 'package:hive_flutter/adapters.dart';
3 | part 'transcationDB.g.dart';
4 |
5 | @HiveType(typeId: 3)
6 | class TranscationModel {
7 | @HiveField(0)
8 | final String purpose;
9 | @HiveField(1)
10 | final double amount;
11 | @HiveField(2)
12 | final DateTime date;
13 | @HiveField(3)
14 | final CatogaryType type;
15 | @HiveField(4)
16 | final CatogeryModel catogaryModel;
17 | @HiveField(5)
18 | final String id;
19 |
20 | // ignore: prefer_typing_uninitialized_variables
21 | var catogaryName;
22 |
23 | TranscationModel(
24 | {required this.purpose,
25 | required this.amount,
26 | required this.date,
27 | required this.type,
28 | required this.catogaryModel,
29 | required this.id});
30 | }
31 |
32 |
33 | // {
34 | // id = DateTime.now().microsecondsSinceEpoch.toString();
35 | // }
36 |
37 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/cattogary/forloop_Statitics.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/models/transaction/transcationDB.dart';
2 |
3 | class ChartData {
4 | String? catogaryName;
5 | double? amount;
6 |
7 | ChartData({required this.catogaryName, required this.amount});
8 | }
9 |
10 | chartLogic(List model) {
11 | String catogaryNamee;
12 | double value;
13 | List visited = [];
14 | List newdatas = [];
15 |
16 | for (var i = 0; i < model.length; i++) {
17 | visited.add(0);
18 | }
19 | for (var i = 0; i < model.length; i++) {
20 | value = model[i].amount;
21 | catogaryNamee = model[i].catogaryModel.name;
22 |
23 | for (var j = i + 1; j < model.length; j++) {
24 | if (model[i].catogaryModel.name == model[j].catogaryModel.name) {
25 | value += model[j].amount;
26 | visited[j] = -1;
27 | }
28 | }
29 |
30 | if (visited[i] != -1) {
31 | newdatas.add(ChartData(catogaryName: catogaryNamee, amount: value));
32 | }
33 | }
34 |
35 | return newdatas;
36 | }
37 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "_save_karo",
3 | "short_name": "_save_karo",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/windows/runner/flutter_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_FLUTTER_WINDOW_H_
2 | #define RUNNER_FLUTTER_WINDOW_H_
3 |
4 | #include
5 | #include
6 |
7 | #include
8 |
9 | #include "win32_window.h"
10 |
11 | // A window that does nothing but host a Flutter view.
12 | class FlutterWindow : public Win32Window {
13 | public:
14 | // Creates a new FlutterWindow hosting a Flutter view running |project|.
15 | explicit FlutterWindow(const flutter::DartProject& project);
16 | virtual ~FlutterWindow();
17 |
18 | protected:
19 | // Win32Window:
20 | bool OnCreate() override;
21 | void OnDestroy() override;
22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
23 | LPARAM const lparam) noexcept override;
24 |
25 | private:
26 | // The project to run.
27 | flutter::DartProject project_;
28 |
29 | // The Flutter instance hosted by this window.
30 | std::unique_ptr flutter_controller_;
31 | };
32 |
33 | #endif // RUNNER_FLUTTER_WINDOW_H_
34 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:_save_karo/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/windows/runner/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.14)
2 | project(runner LANGUAGES CXX)
3 |
4 | # Define the application target. To change its name, change BINARY_NAME in the
5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
6 | # work.
7 | #
8 | # Any new source files that you add to the application should be added here.
9 | add_executable(${BINARY_NAME} WIN32
10 | "flutter_window.cpp"
11 | "main.cpp"
12 | "utils.cpp"
13 | "win32_window.cpp"
14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
15 | "Runner.rc"
16 | "runner.exe.manifest"
17 | )
18 |
19 | # Apply the standard set of build settings. This can be removed for applications
20 | # that need different build settings.
21 | apply_standard_settings(${BINARY_NAME})
22 |
23 | # Disable Windows macros that collide with C++ standard library functions.
24 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
25 |
26 | # Add dependency libraries and include directories. Add any application-specific
27 | # dependencies here.
28 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
29 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
30 |
31 | # Run the Flutter tool portions of the build. This must not be removed.
32 | add_dependencies(${BINARY_NAME} flutter_assemble)
33 |
--------------------------------------------------------------------------------
/windows/runner/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "flutter_window.h"
6 | #include "utils.h"
7 |
8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
9 | _In_ wchar_t *command_line, _In_ int show_command) {
10 | // Attach to console when present (e.g., 'flutter run') or create a
11 | // new console when running with a debugger.
12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
13 | CreateAndAttachConsole();
14 | }
15 |
16 | // Initialize COM, so that it is available for use in the library and/or
17 | // plugins.
18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
19 |
20 | flutter::DartProject project(L"data");
21 |
22 | std::vector command_line_arguments =
23 | GetCommandLineArguments();
24 |
25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
26 |
27 | FlutterWindow window(project);
28 | Win32Window::Point origin(10, 10);
29 | Win32Window::Size size(1280, 720);
30 | if (!window.CreateAndShow(L"_save_karo", origin, size)) {
31 | return EXIT_FAILURE;
32 | }
33 | window.SetQuitOnClose(true);
34 |
35 | ::MSG msg;
36 | while (::GetMessage(&msg, nullptr, 0, 0)) {
37 | ::TranslateMessage(&msg);
38 | ::DispatchMessage(&msg);
39 | }
40 |
41 | ::CoUninitialize();
42 | return EXIT_SUCCESS;
43 | }
44 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/catogaryPages/editCatogry.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/models/catogary/categoryModel.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | import '../../../db/catogary/catogrydb.dart';
5 |
6 | Future openDailoge(context, type) async {
7 | final nameEditingControler = TextEditingController();
8 | return showDialog(
9 | context: context,
10 | builder: (context) {
11 | return AlertDialog(
12 | title: const Text("Add Catogery"),
13 | content: TextField(
14 | controller: nameEditingControler,
15 | autofocus: true,
16 | decoration: const InputDecoration(hintText: "Enter Catogery"),
17 | ),
18 | actions: [
19 | TextButton(
20 | onPressed: () {
21 | final namecheck = nameEditingControler.text;
22 | if (namecheck.isEmpty) {
23 | return;
24 | }
25 | final typecheck = type;
26 | final catogryModel = CatogeryModel(
27 | name: namecheck,
28 | type: typecheck,
29 | id: DateTime.now().microsecondsSinceEpoch.toString());
30 | CatogaryDB().insertCatogry(catogryModel);
31 |
32 | Navigator.of(context).pop();
33 | },
34 | child: const Text("Submit"))
35 | ],
36 | );
37 | });
38 | }
39 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/catogaryPages/showDiloge.dart:
--------------------------------------------------------------------------------
1 | // ignore: file_names
2 | import 'package:_save_karo/models/catogary/categoryModel.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | import '../../../db/catogary/catogrydb.dart';
6 |
7 | Future openDailoge(context, type) async {
8 | final nameEditingControler = TextEditingController();
9 | return showDialog(
10 | context: context,
11 | builder: (context) {
12 | return AlertDialog(
13 | title: const Text("Add Catogery"),
14 | content: TextField(
15 | controller: nameEditingControler,
16 | autofocus: true,
17 | decoration: const InputDecoration(hintText: "Enter Catogery"),
18 | ),
19 | actions: [
20 | TextButton(
21 | onPressed: () {
22 | final namecheck = nameEditingControler.text;
23 | if (namecheck.isEmpty) {
24 | return;
25 | }
26 | final typeLocal = type;
27 | final catogryModel = CatogeryModel(
28 | name: namecheck,
29 | type: typeLocal,
30 | id: DateTime.now().microsecondsSinceEpoch.toString());
31 | CatogaryDB().insertCatogry(catogryModel);
32 |
33 | Navigator.of(context).pop();
34 | },
35 | child: const Text("Submited"))
36 | ],
37 | );
38 | });
39 | }
40 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/models/catogary/categoryModel.dart';
2 | import 'package:_save_karo/models/transaction/transcationDB.dart';
3 | import 'package:_save_karo/screens/extra_Pages/notification.dart';
4 | import 'package:_save_karo/screens/firstTime_Login/splashScreen.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:flutter/services.dart';
7 | import 'package:hive_flutter/hive_flutter.dart';
8 |
9 | Future main() async {
10 | WidgetsFlutterBinding.ensureInitialized();
11 | NotificationService().initNotification();
12 |
13 | await Hive.initFlutter();
14 | if (!Hive.isAdapterRegistered(CatogaryTypeAdapter().typeId)) {
15 | Hive.registerAdapter(CatogaryTypeAdapter());
16 | }
17 |
18 | if (!Hive.isAdapterRegistered(CatogeryModelAdapter().typeId)) {
19 | Hive.registerAdapter(CatogeryModelAdapter());
20 | }
21 | if (!Hive.isAdapterRegistered(TranscationModelAdapter().typeId)) {
22 | Hive.registerAdapter(TranscationModelAdapter());
23 | }
24 | SystemChrome.setPreferredOrientations(
25 | [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);
26 | runApp(const MyApp());
27 | }
28 |
29 | class MyApp extends StatelessWidget {
30 | const MyApp({Key? key}) : super(key: key);
31 | static const String titile = "Upload to Github";
32 | @override
33 | Widget build(BuildContext context) {
34 | return MaterialApp(
35 | debugShowCheckedModeBanner: false,
36 | title: 'Flutter Demo',
37 | theme: ThemeData(
38 | //brightness: Brightness.dark),
39 | primarySwatch: Colors.grey),
40 | home: const SplashSCreen());
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/models/transaction/transcationDB.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'transcationDB.dart';
4 |
5 | // **************************************************************************
6 | // TypeAdapterGenerator
7 | // **************************************************************************
8 |
9 | class TranscationModelAdapter extends TypeAdapter {
10 | @override
11 | final int typeId = 3;
12 |
13 | @override
14 | TranscationModel read(BinaryReader reader) {
15 | final numOfFields = reader.readByte();
16 | final fields = {
17 | for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
18 | };
19 | return TranscationModel(
20 | purpose: fields[0] as String,
21 | amount: fields[1] as double,
22 | date: fields[2] as DateTime,
23 | type: fields[3] as CatogaryType,
24 | catogaryModel: fields[4] as CatogeryModel,
25 | id: fields[5] as String,
26 | );
27 | //.id = fields[5] as String?;
28 | }
29 |
30 | @override
31 | void write(BinaryWriter writer, TranscationModel obj) {
32 | writer
33 | ..writeByte(6)
34 | ..writeByte(0)
35 | ..write(obj.purpose)
36 | ..writeByte(1)
37 | ..write(obj.amount)
38 | ..writeByte(2)
39 | ..write(obj.date)
40 | ..writeByte(3)
41 | ..write(obj.type)
42 | ..writeByte(4)
43 | ..write(obj.catogaryModel)
44 | ..writeByte(5)
45 | ..write(obj.id);
46 | }
47 |
48 | @override
49 | int get hashCode => typeId.hashCode;
50 |
51 | @override
52 | bool operator ==(Object other) =>
53 | identical(this, other) ||
54 | other is TranscationModelAdapter &&
55 | runtimeType == other.runtimeType &&
56 | typeId == other.typeId;
57 | }
58 |
--------------------------------------------------------------------------------
/lib/screens/genaralItems/constentItems.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:intl/intl.dart';
3 |
4 | const backroundColure = Color.fromARGB(255, 66, 77, 82);
5 | const fontFamilyCustome = "Imprima";
6 |
7 | const stylepopertyOfTransactionPage = TextStyle(
8 | fontSize: 15,
9 | color: Color.fromRGBO(0, 0, 0, 55),
10 | fontFamily: "Imprima",
11 | fontWeight: FontWeight.w200);
12 |
13 | const fontcolure = Color.fromARGB(255, 38, 44, 47);
14 |
15 | const boxDecoration = BoxDecoration(
16 | border:
17 | Border(bottom: BorderSide(width: 1, color: Color.fromRGBO(0, 0, 0, 70))),
18 | );
19 | const backroundUnselectedColur = Color.fromRGBO(217, 217, 217, 20);
20 |
21 | const genaralTextStyle = TextStyle(
22 | color: Color.fromRGBO(0, 0, 0, 55),
23 | fontFamily: "Imprima",
24 | fontWeight: FontWeight.w200);
25 | const incomeTextColure = Color(0xff649564);
26 | const expenseTextColure = Color.fromARGB(194, 245, 82, 82);
27 | const totelTextColure = Color.fromARGB(255, 7, 21, 42);
28 | // ignore: constant_identifier_names
29 | const IconsColure = Color.fromARGB(255, 94, 75, 70);
30 | const commonIconColure = Color(0xF0F1F0E8);
31 | // ignore: constant_identifier_names
32 | const SettingsTextStyle = TextStyle(
33 | fontSize: 20,
34 | color: Color.fromRGBO(0, 0, 0, 55),
35 | fontFamily: "Imprima",
36 | fontWeight: FontWeight.w200);
37 |
38 | final DateFormat dateFormatterFull = DateFormat("dd-MM-yyyy");
39 | final DateFormat dateFormatterDate = DateFormat("d MMM");
40 | final DateFormat dateFormatterDay = DateFormat("E");
41 | final DateFormat dateFormatterKey = DateFormat("MMdd");
42 | final DateFormat dateFormatter = DateFormat("HHmmss");
43 | final DateFormat dateFormatterMonth = DateFormat("MMM yyyy");
44 | final DateFormat dateFormatterPeriod = DateFormat("ddMMyyyy");
45 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
17 | base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
18 | - platform: android
19 | create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
20 | base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
21 | - platform: ios
22 | create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
23 | base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
24 | - platform: linux
25 | create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
26 | base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
27 | - platform: macos
28 | create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
29 | base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
30 | - platform: web
31 | create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
32 | base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
33 | - platform: windows
34 | create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
35 | base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Save Karo
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | _save_karo
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
11 |
19 |
23 |
27 |
28 |
29 |
30 |
31 |
32 |
34 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/windows/runner/utils.cpp:
--------------------------------------------------------------------------------
1 | #include "utils.h"
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 |
8 | #include
9 |
10 | void CreateAndAttachConsole() {
11 | if (::AllocConsole()) {
12 | FILE *unused;
13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) {
14 | _dup2(_fileno(stdout), 1);
15 | }
16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) {
17 | _dup2(_fileno(stdout), 2);
18 | }
19 | std::ios::sync_with_stdio();
20 | FlutterDesktopResyncOutputStreams();
21 | }
22 | }
23 |
24 | std::vector GetCommandLineArguments() {
25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.
26 | int argc;
27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
28 | if (argv == nullptr) {
29 | return std::vector();
30 | }
31 |
32 | std::vector command_line_arguments;
33 |
34 | // Skip the first argument as it's the binary name.
35 | for (int i = 1; i < argc; i++) {
36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i]));
37 | }
38 |
39 | ::LocalFree(argv);
40 |
41 | return command_line_arguments;
42 | }
43 |
44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) {
45 | if (utf16_string == nullptr) {
46 | return std::string();
47 | }
48 | int target_length = ::WideCharToMultiByte(
49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
50 | -1, nullptr, 0, nullptr, nullptr);
51 | std::string utf8_string;
52 | if (target_length == 0 || target_length > utf8_string.max_size()) {
53 | return utf8_string;
54 | }
55 | utf8_string.resize(target_length);
56 | int converted_length = ::WideCharToMultiByte(
57 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
58 | -1, utf8_string.data(),
59 | target_length, nullptr, nullptr);
60 | if (converted_length == 0) {
61 | return std::string();
62 | }
63 | return utf8_string;
64 | }
65 |
--------------------------------------------------------------------------------
/windows/runner/flutter_window.cpp:
--------------------------------------------------------------------------------
1 | #include "flutter_window.h"
2 |
3 | #include
4 |
5 | #include "flutter/generated_plugin_registrant.h"
6 |
7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project)
8 | : project_(project) {}
9 |
10 | FlutterWindow::~FlutterWindow() {}
11 |
12 | bool FlutterWindow::OnCreate() {
13 | if (!Win32Window::OnCreate()) {
14 | return false;
15 | }
16 |
17 | RECT frame = GetClientArea();
18 |
19 | // The size here must match the window dimensions to avoid unnecessary surface
20 | // creation / destruction in the startup path.
21 | flutter_controller_ = std::make_unique(
22 | frame.right - frame.left, frame.bottom - frame.top, project_);
23 | // Ensure that basic setup of the controller was successful.
24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) {
25 | return false;
26 | }
27 | RegisterPlugins(flutter_controller_->engine());
28 | SetChildContent(flutter_controller_->view()->GetNativeWindow());
29 | return true;
30 | }
31 |
32 | void FlutterWindow::OnDestroy() {
33 | if (flutter_controller_) {
34 | flutter_controller_ = nullptr;
35 | }
36 |
37 | Win32Window::OnDestroy();
38 | }
39 |
40 | LRESULT
41 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
42 | WPARAM const wparam,
43 | LPARAM const lparam) noexcept {
44 | // Give Flutter, including plugins, an opportunity to handle window messages.
45 | if (flutter_controller_) {
46 | std::optional result =
47 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
48 | lparam);
49 | if (result) {
50 | return *result;
51 | }
52 | }
53 |
54 | switch (message) {
55 | case WM_FONTCHANGE:
56 | flutter_controller_->engine()->ReloadSystemFonts();
57 | break;
58 | }
59 |
60 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
61 | }
62 |
--------------------------------------------------------------------------------
/lib/screens/extra_Pages/notification.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_local_notifications/flutter_local_notifications.dart';
2 | import 'package:timezone/timezone.dart' as tz;
3 |
4 | class NotificationService {
5 | static final NotificationService _notoficatoionService =
6 | NotificationService._internal();
7 |
8 | factory NotificationService() {
9 | return _notoficatoionService;
10 | }
11 |
12 | final FlutterLocalNotificationsPlugin flutterLocalNotificationPlugin =
13 | FlutterLocalNotificationsPlugin();
14 | NotificationService._internal();
15 | Future initNotification() async {
16 | const AndroidInitializationSettings intiolizationSettingsAndroid =
17 | AndroidInitializationSettings("@mipmap/ic_launcher");
18 |
19 | const InitializationSettings initializationSettings =
20 | InitializationSettings(android: intiolizationSettingsAndroid);
21 |
22 | await flutterLocalNotificationPlugin.initialize(initializationSettings);
23 | }
24 |
25 | Future showNotification(
26 | int id, String title, String body, int seconds) async {
27 | await flutterLocalNotificationPlugin.zonedSchedule(
28 | id,
29 | title,
30 | body,
31 | tz.TZDateTime.now(tz.local).add(Duration(seconds: seconds)),
32 |
33 | // ignore: prefer_const_constructors
34 | NotificationDetails(
35 | android: const AndroidNotificationDetails(
36 | "main Channel"
37 | "Main Channel",
38 | "Save it Notification",
39 | importance: Importance.max,
40 | priority: Priority.max,
41 | icon: "@mipmap/ic_launcher")),
42 | //payload: TranscationDb.instance.balanceNotifier.value.toString(),
43 | uiLocalNotificationDateInterpretation:
44 | UILocalNotificationDateInterpretation.absoluteTime,
45 | androidAllowWhileIdle: true);
46 | }
47 |
48 | Future cancellAllNotification() async {
49 | await flutterLocalNotificationPlugin.cancelAll();
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | _save_karo
33 |
34 |
35 |
39 |
40 |
41 |
42 |
43 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/lib/models/catogary/categoryModel.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'categoryModel.dart';
4 |
5 | // **************************************************************************
6 | // TypeAdapterGenerator
7 | // **************************************************************************
8 |
9 | class CatogeryModelAdapter extends TypeAdapter {
10 | @override
11 | final int typeId = 1;
12 |
13 | @override
14 | CatogeryModel read(BinaryReader reader) {
15 | final numOfFields = reader.readByte();
16 | final fields = {
17 | for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
18 | };
19 | return CatogeryModel(
20 | id: fields[0] as String,
21 | name: fields[1] as String,
22 | isDeleted: fields[2] as bool,
23 | type: fields[3] as CatogaryType,
24 | );
25 | }
26 |
27 | @override
28 | void write(BinaryWriter writer, CatogeryModel obj) {
29 | writer
30 | ..writeByte(4)
31 | ..writeByte(0)
32 | ..write(obj.id)
33 | ..writeByte(1)
34 | ..write(obj.name)
35 | ..writeByte(2)
36 | ..write(obj.isDeleted)
37 | ..writeByte(3)
38 | ..write(obj.type);
39 | }
40 |
41 | @override
42 | int get hashCode => typeId.hashCode;
43 |
44 | @override
45 | bool operator ==(Object other) =>
46 | identical(this, other) ||
47 | other is CatogeryModelAdapter &&
48 | runtimeType == other.runtimeType &&
49 | typeId == other.typeId;
50 | }
51 |
52 | class CatogaryTypeAdapter extends TypeAdapter {
53 | @override
54 | final int typeId = 2;
55 |
56 | @override
57 | CatogaryType read(BinaryReader reader) {
58 | switch (reader.readByte()) {
59 | case 1:
60 | return CatogaryType.icome;
61 | case 2:
62 | return CatogaryType.expence;
63 | default:
64 | return CatogaryType.icome;
65 | }
66 | }
67 |
68 | @override
69 | void write(BinaryWriter writer, CatogaryType obj) {
70 | switch (obj) {
71 | case CatogaryType.icome:
72 | writer.writeByte(1);
73 | break;
74 | case CatogaryType.expence:
75 | writer.writeByte(2);
76 | break;
77 | }
78 | }
79 |
80 | @override
81 | int get hashCode => typeId.hashCode;
82 |
83 | @override
84 | bool operator ==(Object other) =>
85 | identical(this, other) ||
86 | other is CatogaryTypeAdapter &&
87 | runtimeType == other.runtimeType &&
88 | typeId == other.typeId;
89 | }
90 |
--------------------------------------------------------------------------------
/lib/db/catogary/catogrydb.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: non_constant_identifier_names, invalid_use_of_visible_for_testing_member, invalid_use_of_protected_member
2 |
3 | import 'package:_save_karo/models/catogary/categoryModel.dart';
4 | import 'package:flutter/widgets.dart';
5 | import 'package:hive_flutter/adapters.dart';
6 |
7 | // ignore: constant_identifier_names
8 | const CATOGARY_DB_NAME = 'Catogary_db';
9 |
10 | abstract class CatogerydbFunctions {
11 | Future> getCatogaries();
12 | Future insertCatogry(CatogeryModel value);
13 | Future deletCatogry(String catogaryID);
14 | //Future editCatogry(CatogeryModel value , index);
15 | }
16 |
17 | class CatogaryDB implements CatogerydbFunctions {
18 | CatogaryDB.internal();
19 | static CatogaryDB instance = CatogaryDB.internal();
20 |
21 | factory CatogaryDB() {
22 | return instance;
23 | }
24 |
25 | ValueNotifier> incomeCatogaryList = ValueNotifier([]);
26 | ValueNotifier> expenseCatogaryList = ValueNotifier([]);
27 | @override
28 | Future insertCatogry(CatogeryModel value) async {
29 | // ignore:
30 | final CatogryDB = await Hive.openBox(CATOGARY_DB_NAME);
31 | await CatogryDB.put(value.id, value);
32 | refreshUi();
33 | }
34 |
35 | @override
36 | Future> getCatogaries() async {
37 | final CatogryDB = await Hive.openBox(CATOGARY_DB_NAME);
38 | return CatogryDB.values.toList();
39 | }
40 |
41 | Future refreshUi() async {
42 | final allCatogerys = await getCatogaries();
43 | incomeCatogaryList.value.clear();
44 | expenseCatogaryList.value.clear();
45 | await Future.forEach(allCatogerys, (CatogeryModel catogary) {
46 | if (catogary.type == CatogaryType.icome) {
47 | incomeCatogaryList.value.add(catogary);
48 | } else {
49 | expenseCatogaryList.value.add(catogary);
50 | }
51 | });
52 | incomeCatogaryList.notifyListeners();
53 | expenseCatogaryList.notifyListeners();
54 | }
55 |
56 | @override
57 | Future deletCatogry(String catogaryID) async {
58 | final catogaryDb = await Hive.openBox(CATOGARY_DB_NAME);
59 | await catogaryDb.delete(catogaryID);
60 | refreshUi();
61 | }
62 |
63 | // @override
64 | // Future editCatogry(CatogeryModel value, int index) async {
65 | // final _CatogryDB = await Hive.openBox(CATOGARY_DB_NAME);
66 |
67 | // await _CatogryDB.putAt( index, value);
68 | // refreshUi();
69 | // }
70 | }
71 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 | def keystoreProperties = new Properties()
28 | def keystorePropertiesFile = rootProject.file('key.properties')
29 | if (keystorePropertiesFile.exists()) {
30 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
31 | }
32 |
33 | android {
34 | compileSdkVersion flutter.compileSdkVersion
35 | ndkVersion flutter.ndkVersion
36 |
37 | compileOptions {
38 | sourceCompatibility JavaVersion.VERSION_1_8
39 | targetCompatibility JavaVersion.VERSION_1_8
40 | }
41 |
42 | kotlinOptions {
43 | jvmTarget = '1.8'
44 | }
45 |
46 | sourceSets {
47 | main.java.srcDirs += 'src/main/kotlin'
48 | }
49 |
50 | defaultConfig {
51 |
52 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
53 | applicationId "com.fouvty.grasshopper"
54 | // You can update the following values to match your application needs.
55 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
56 | minSdkVersion flutter.minSdkVersion
57 | targetSdkVersion flutter.targetSdkVersion
58 | versionCode flutterVersionCode.toInteger()
59 | versionName flutterVersionName
60 | multiDexEnabled true
61 | }
62 | signingConfigs {
63 | release {
64 | keyAlias keystoreProperties['keyAlias']
65 | keyPassword keystoreProperties['keyPassword']
66 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
67 | storePassword keystoreProperties['storePassword']
68 | }
69 | }
70 |
71 |
72 | buildTypes {
73 | release {
74 |
75 | signingConfig signingConfigs.release
76 | }
77 | }
78 | }
79 |
80 | flutter {
81 | source '../..'
82 | }
83 |
84 | dependencies {
85 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
86 | implementation 'com.google.android.material:material:1.4.0'
87 | }
88 |
--------------------------------------------------------------------------------
/linux/flutter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file controls Flutter-level build steps. It should not be edited.
2 | cmake_minimum_required(VERSION 3.10)
3 |
4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
5 |
6 | # Configuration provided via flutter tool.
7 | include(${EPHEMERAL_DIR}/generated_config.cmake)
8 |
9 | # TODO: Move the rest of this into files in ephemeral. See
10 | # https://github.com/flutter/flutter/issues/57146.
11 |
12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...),
13 | # which isn't available in 3.10.
14 | function(list_prepend LIST_NAME PREFIX)
15 | set(NEW_LIST "")
16 | foreach(element ${${LIST_NAME}})
17 | list(APPEND NEW_LIST "${PREFIX}${element}")
18 | endforeach(element)
19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
20 | endfunction()
21 |
22 | # === Flutter Library ===
23 | # System-level dependencies.
24 | find_package(PkgConfig REQUIRED)
25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
28 |
29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
30 |
31 | # Published to parent scope for install step.
32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
36 |
37 | list(APPEND FLUTTER_LIBRARY_HEADERS
38 | "fl_basic_message_channel.h"
39 | "fl_binary_codec.h"
40 | "fl_binary_messenger.h"
41 | "fl_dart_project.h"
42 | "fl_engine.h"
43 | "fl_json_message_codec.h"
44 | "fl_json_method_codec.h"
45 | "fl_message_codec.h"
46 | "fl_method_call.h"
47 | "fl_method_channel.h"
48 | "fl_method_codec.h"
49 | "fl_method_response.h"
50 | "fl_plugin_registrar.h"
51 | "fl_plugin_registry.h"
52 | "fl_standard_message_codec.h"
53 | "fl_standard_method_codec.h"
54 | "fl_string_codec.h"
55 | "fl_value.h"
56 | "fl_view.h"
57 | "flutter_linux.h"
58 | )
59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
60 | add_library(flutter INTERFACE)
61 | target_include_directories(flutter INTERFACE
62 | "${EPHEMERAL_DIR}"
63 | )
64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
65 | target_link_libraries(flutter INTERFACE
66 | PkgConfig::GTK
67 | PkgConfig::GLIB
68 | PkgConfig::GIO
69 | )
70 | add_dependencies(flutter flutter_assemble)
71 |
72 | # === Flutter tool backend ===
73 | # _phony_ is a non-existent file to force this command to run every time,
74 | # since currently there's no way to get a full input/output list from the
75 | # flutter tool.
76 | add_custom_command(
77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_
79 | COMMAND ${CMAKE_COMMAND} -E env
80 | ${FLUTTER_TOOL_ENVIRONMENT}
81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
83 | VERBATIM
84 | )
85 | add_custom_target(flutter_assemble DEPENDS
86 | "${FLUTTER_LIBRARY}"
87 | ${FLUTTER_LIBRARY_HEADERS}
88 | )
89 |
--------------------------------------------------------------------------------
/lib/screens/firstTime_Login/splashScreen.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:_save_karo/db/transcation/transactoin_db.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:shared_preferences/shared_preferences.dart';
6 |
7 | import '../working_Pages/homePage.dart';
8 | import 'introductionPages.dart';
9 |
10 | class SplashSCreen extends StatefulWidget {
11 | const SplashSCreen({Key? key}) : super(key: key);
12 |
13 | @override
14 | State createState() => _SplashSCreenState();
15 | }
16 |
17 | class _SplashSCreenState extends State {
18 | @override
19 | void initState() {
20 | Timer(const Duration(seconds: 5), () async {
21 | await TranscationDb.instance.refreshUi();
22 | // ignore: use_build_context_synchronously
23 | ceckLogin(context);
24 | });
25 |
26 | super.initState();
27 | }
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | TranscationDb.instance.refreshUi();
32 | return Scaffold(
33 | backgroundColor: const Color.fromARGB(255, 243, 243, 243),
34 | body: Padding(
35 | padding: const EdgeInsets.only(top: 120),
36 | child: Column(
37 | mainAxisAlignment: MainAxisAlignment.start,
38 | children: [
39 | const SizedBox(
40 | height: 100,
41 | ),
42 | Image.asset(
43 | "Assets/images/real2.png",
44 | height: 300,
45 | width: 180,
46 | ),
47 | const SizedBox(
48 | height: 10,
49 | ),
50 | Row(
51 | children: const [
52 | SizedBox(
53 | width: 10,
54 | height: 50,
55 | ),
56 | Text(
57 | "Grasshopper :Money Assistant ",
58 | style: TextStyle(fontWeight: FontWeight.w200, fontSize: 32),
59 | ),
60 | ],
61 | ),
62 | Row(
63 | children: const [
64 | SizedBox(
65 | width: 130,
66 | ),
67 | Text(
68 | "Will Bring Wealth.",
69 | style: TextStyle(
70 | fontSize: 20,
71 | color: Color.fromRGBO(0, 0, 0, 55),
72 | fontFamily: "Imprima",
73 | ),
74 | ),
75 | ],
76 | ),
77 | ],
78 | ),
79 | ),
80 | );
81 | }
82 | }
83 |
84 | ceckLogin(BuildContext context) async {
85 | final sharedPreferences = await SharedPreferences.getInstance();
86 | final checkKeyValue = sharedPreferences.getBool("keyName") ?? false;
87 | if (checkKeyValue == false) {
88 | // ignore: use_build_context_synchronously
89 | Navigator.pushReplacement(
90 | context,
91 | MaterialPageRoute(
92 | builder: (context) => const IndroScreen1(),
93 | ));
94 | } else {
95 | // ignore: use_build_context_synchronously
96 | Navigator.pushReplacement(
97 | context, MaterialPageRoute(builder: (context) => const HomePage()));
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/windows/runner/Runner.rc:
--------------------------------------------------------------------------------
1 | // Microsoft Visual C++ generated resource script.
2 | //
3 | #pragma code_page(65001)
4 | #include "resource.h"
5 |
6 | #define APSTUDIO_READONLY_SYMBOLS
7 | /////////////////////////////////////////////////////////////////////////////
8 | //
9 | // Generated from the TEXTINCLUDE 2 resource.
10 | //
11 | #include "winres.h"
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | #undef APSTUDIO_READONLY_SYMBOLS
15 |
16 | /////////////////////////////////////////////////////////////////////////////
17 | // English (United States) resources
18 |
19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
21 |
22 | #ifdef APSTUDIO_INVOKED
23 | /////////////////////////////////////////////////////////////////////////////
24 | //
25 | // TEXTINCLUDE
26 | //
27 |
28 | 1 TEXTINCLUDE
29 | BEGIN
30 | "resource.h\0"
31 | END
32 |
33 | 2 TEXTINCLUDE
34 | BEGIN
35 | "#include ""winres.h""\r\n"
36 | "\0"
37 | END
38 |
39 | 3 TEXTINCLUDE
40 | BEGIN
41 | "\r\n"
42 | "\0"
43 | END
44 |
45 | #endif // APSTUDIO_INVOKED
46 |
47 |
48 | /////////////////////////////////////////////////////////////////////////////
49 | //
50 | // Icon
51 | //
52 |
53 | // Icon with lowest ID value placed first to ensure application icon
54 | // remains consistent on all systems.
55 | IDI_APP_ICON ICON "resources\\app_icon.ico"
56 |
57 |
58 | /////////////////////////////////////////////////////////////////////////////
59 | //
60 | // Version
61 | //
62 |
63 | #ifdef FLUTTER_BUILD_NUMBER
64 | #define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER
65 | #else
66 | #define VERSION_AS_NUMBER 1,0,0
67 | #endif
68 |
69 | #ifdef FLUTTER_BUILD_NAME
70 | #define VERSION_AS_STRING #FLUTTER_BUILD_NAME
71 | #else
72 | #define VERSION_AS_STRING "1.0.0"
73 | #endif
74 |
75 | VS_VERSION_INFO VERSIONINFO
76 | FILEVERSION VERSION_AS_NUMBER
77 | PRODUCTVERSION VERSION_AS_NUMBER
78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
79 | #ifdef _DEBUG
80 | FILEFLAGS VS_FF_DEBUG
81 | #else
82 | FILEFLAGS 0x0L
83 | #endif
84 | FILEOS VOS__WINDOWS32
85 | FILETYPE VFT_APP
86 | FILESUBTYPE 0x0L
87 | BEGIN
88 | BLOCK "StringFileInfo"
89 | BEGIN
90 | BLOCK "040904e4"
91 | BEGIN
92 | VALUE "CompanyName", "com.example" "\0"
93 | VALUE "FileDescription", "_save_karo" "\0"
94 | VALUE "FileVersion", VERSION_AS_STRING "\0"
95 | VALUE "InternalName", "_save_karo" "\0"
96 | VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0"
97 | VALUE "OriginalFilename", "_save_karo.exe" "\0"
98 | VALUE "ProductName", "_save_karo" "\0"
99 | VALUE "ProductVersion", VERSION_AS_STRING "\0"
100 | END
101 | END
102 | BLOCK "VarFileInfo"
103 | BEGIN
104 | VALUE "Translation", 0x409, 1252
105 | END
106 | END
107 |
108 | #endif // English (United States) resources
109 | /////////////////////////////////////////////////////////////////////////////
110 |
111 |
112 |
113 | #ifndef APSTUDIO_INVOKED
114 | /////////////////////////////////////////////////////////////////////////////
115 | //
116 | // Generated from the TEXTINCLUDE 3 resource.
117 | //
118 |
119 |
120 | /////////////////////////////////////////////////////////////////////////////
121 | #endif // not APSTUDIO_INVOKED
122 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/lib/screens/firstTime_Login/loginScreen.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/screens/genaralItems/constentItems.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:shared_preferences/shared_preferences.dart';
4 |
5 | import '../working_Pages/homePage.dart';
6 |
7 | class LginScreen extends StatelessWidget {
8 | const LginScreen({Key? key}) : super(key: key);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return Scaffold(
13 | body: SafeArea(
14 | child: Padding(
15 | padding: const EdgeInsets.all(20),
16 | child: Column(
17 | mainAxisAlignment: MainAxisAlignment.center,
18 | crossAxisAlignment: CrossAxisAlignment.start,
19 | children: [
20 | const Text(
21 | "Login",
22 | style: TextStyle(
23 | fontSize: 30,
24 | fontFamily: "Imprima",
25 | fontWeight: FontWeight.bold),
26 | ),
27 | const SizedBox(
28 | height: 10,
29 | ),
30 | const Text(
31 | "Welcome Back!",
32 | style: TextStyle(
33 | fontSize: 20,
34 | fontFamily: "Imprima",
35 | ),
36 | ),
37 | const SizedBox(
38 | height: 15,
39 | ),
40 | ElevatedButton(
41 | onPressed: () {
42 | submited(context);
43 | },
44 | style: ElevatedButton.styleFrom(
45 | primary: const Color.fromRGBO(217, 217, 217, 23),
46 | fixedSize: const Size(400, 50)),
47 | child: const Text(
48 | "Sing Up With Google ",
49 | style: TextStyle(
50 | color: Color.fromRGBO(0, 0, 0, 55),
51 | fontFamily: "Imprima",
52 | ),
53 | ),
54 | ),
55 | const SizedBox(
56 | height: 25,
57 | ),
58 | ElevatedButton(
59 | onPressed: () {
60 | gotoTransaction(context);
61 | },
62 | style: ElevatedButton.styleFrom(
63 | primary: const Color.fromRGBO(217, 217, 217, 23),
64 | fixedSize: const Size(400, 50)),
65 | child: const Text(
66 | "Get Started",
67 | style: TextStyle(
68 | color: Color.fromRGBO(0, 0, 0, 55),
69 | fontFamily: "Imprima",
70 | ),
71 | ),
72 | )
73 | ],
74 | ),
75 | ),
76 | ));
77 | }
78 |
79 | submited(con) {
80 | {
81 | final snackBar = SnackBar(
82 | duration: const Duration(seconds: 4),
83 | backgroundColor: backroundColure,
84 | content: const Text(
85 | ' This option will be added,\n Start with get started',
86 | style: TextStyle(fontSize: 15, fontFamily: fontFamilyCustome)),
87 | action: SnackBarAction(
88 | label: 'Ok',
89 | textColor: backroundUnselectedColur,
90 | onPressed: () {},
91 | ),
92 | );
93 |
94 | ScaffoldMessenger.of(con).showSnackBar(snackBar);
95 | }
96 | }
97 | }
98 |
99 | gotoTransaction(BuildContext context) async {
100 | final sharedPreferences = await SharedPreferences.getInstance();
101 | sharedPreferences.setBool("keyName", true);
102 | // ignore: use_build_context_synchronously
103 | Navigator.of(context).pushReplacement(
104 | MaterialPageRoute(builder: (context) => const HomePage()));
105 | }
106 |
--------------------------------------------------------------------------------
/windows/runner/win32_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_WIN32_WINDOW_H_
2 | #define RUNNER_WIN32_WINDOW_H_
3 |
4 | #include
5 |
6 | #include
7 | #include
8 | #include
9 |
10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be
11 | // inherited from by classes that wish to specialize with custom
12 | // rendering and input handling
13 | class Win32Window {
14 | public:
15 | struct Point {
16 | unsigned int x;
17 | unsigned int y;
18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {}
19 | };
20 |
21 | struct Size {
22 | unsigned int width;
23 | unsigned int height;
24 | Size(unsigned int width, unsigned int height)
25 | : width(width), height(height) {}
26 | };
27 |
28 | Win32Window();
29 | virtual ~Win32Window();
30 |
31 | // Creates and shows a win32 window with |title| and position and size using
32 | // |origin| and |size|. New windows are created on the default monitor. Window
33 | // sizes are specified to the OS in physical pixels, hence to ensure a
34 | // consistent size to will treat the width height passed in to this function
35 | // as logical pixels and scale to appropriate for the default monitor. Returns
36 | // true if the window was created successfully.
37 | bool CreateAndShow(const std::wstring& title,
38 | const Point& origin,
39 | const Size& size);
40 |
41 | // Release OS resources associated with window.
42 | void Destroy();
43 |
44 | // Inserts |content| into the window tree.
45 | void SetChildContent(HWND content);
46 |
47 | // Returns the backing Window handle to enable clients to set icon and other
48 | // window properties. Returns nullptr if the window has been destroyed.
49 | HWND GetHandle();
50 |
51 | // If true, closing this window will quit the application.
52 | void SetQuitOnClose(bool quit_on_close);
53 |
54 | // Return a RECT representing the bounds of the current client area.
55 | RECT GetClientArea();
56 |
57 | protected:
58 | // Processes and route salient window messages for mouse handling,
59 | // size change and DPI. Delegates handling of these to member overloads that
60 | // inheriting classes can handle.
61 | virtual LRESULT MessageHandler(HWND window,
62 | UINT const message,
63 | WPARAM const wparam,
64 | LPARAM const lparam) noexcept;
65 |
66 | // Called when CreateAndShow is called, allowing subclass window-related
67 | // setup. Subclasses should return false if setup fails.
68 | virtual bool OnCreate();
69 |
70 | // Called when Destroy is called.
71 | virtual void OnDestroy();
72 |
73 | private:
74 | friend class WindowClassRegistrar;
75 |
76 | // OS callback called by message pump. Handles the WM_NCCREATE message which
77 | // is passed when the non-client area is being created and enables automatic
78 | // non-client DPI scaling so that the non-client area automatically
79 | // responsponds to changes in DPI. All other messages are handled by
80 | // MessageHandler.
81 | static LRESULT CALLBACK WndProc(HWND const window,
82 | UINT const message,
83 | WPARAM const wparam,
84 | LPARAM const lparam) noexcept;
85 |
86 | // Retrieves a class instance pointer for |window|
87 | static Win32Window* GetThisFromHandle(HWND const window) noexcept;
88 |
89 | bool quit_on_close_ = false;
90 |
91 | // window handle for top level window.
92 | HWND window_handle_ = nullptr;
93 |
94 | // window handle for hosted content.
95 | HWND child_content_ = nullptr;
96 | };
97 |
98 | #endif // RUNNER_WIN32_WINDOW_H_
99 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/homePage.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: prefer_const_construct
2 |
3 | import 'package:_save_karo/db/catogary/catogrydb.dart';
4 | import 'package:_save_karo/db/transcation/transactoin_db.dart';
5 | import 'package:_save_karo/screens/extra_Pages/notification.dart';
6 | import 'package:_save_karo/screens/genaralItems/constentItems.dart';
7 | import 'package:_save_karo/screens/working_Pages/catogaryPages/catogaryPage.dart';
8 | import 'package:_save_karo/screens/working_Pages/cattogary/statistcsPage.dart';
9 | import 'package:flutter/material.dart';
10 |
11 | import 'package:timezone/data/latest.dart' as tz;
12 | import 'settingsPage.dart';
13 | import 'transactionP_age.dart';
14 |
15 | class HomePage extends StatefulWidget {
16 | const HomePage({Key? key}) : super(key: key);
17 |
18 | @override
19 | State createState() => _HomePageState();
20 | }
21 |
22 | class _HomePageState extends State {
23 | int _curretnindex = 0;
24 | @override
25 | void initState() {
26 | tz.initializeTimeZones();
27 | showNotification();
28 | super.initState();
29 | }
30 |
31 | Future showNotification() async {
32 | String balace = TranscationDb.instance.balanceNotifier.value.toString();
33 | String income = TranscationDb.instance.incomeNotifier.value.toString();
34 | String expanec = TranscationDb.instance.expanceNotifier.value.toString();
35 | await NotificationService().showNotification(
36 | 1,
37 | "GrassShopper : Will Bring Wealth",
38 | "Don't Forget To Add Your Transaction",
39 | 3,
40 | );
41 | await NotificationService().showNotification(
42 | 2,
43 | "💰 Your Total Balance: $balace 💰",
44 | "🔼 Income : $income 🔽 Expance : $expanec",
45 | 3,
46 | );
47 | }
48 |
49 | final _page = [
50 | const TransactionPage(),
51 | const StatisticsPage(),
52 | const CatogaryPage(),
53 | const SettingPage()
54 | ];
55 | @override
56 | Widget build(BuildContext context) {
57 | CatogaryDB.instance.refreshUi();
58 | return Scaffold(
59 | body: _page[_curretnindex],
60 | bottomNavigationBar: Padding(
61 | padding: const EdgeInsets.all(2.0),
62 | child: Container(
63 | decoration: const BoxDecoration(
64 | color: backroundColure,
65 | borderRadius: BorderRadius.all(Radius.circular(15)),
66 | ),
67 | child: BottomNavigationBar(
68 | currentIndex: _curretnindex,
69 | type: BottomNavigationBarType.fixed,
70 | backgroundColor: backroundColure,
71 | selectedFontSize: 14,
72 | unselectedFontSize: 12,
73 | selectedLabelStyle:
74 | const TextStyle(fontFamily: fontFamilyCustome),
75 | selectedItemColor: Colors.black,
76 | unselectedItemColor: commonIconColure,
77 | onTap: (newIndex) {
78 | setState(() {
79 | _curretnindex = newIndex;
80 | });
81 | },
82 | items: const [
83 | BottomNavigationBarItem(
84 | icon: Icon(Icons.library_books_rounded),
85 | label: "Transaction",
86 | ),
87 | BottomNavigationBarItem(
88 | icon: Icon(Icons.pie_chart),
89 | label: "Statistics",
90 | ),
91 | BottomNavigationBarItem(
92 | icon: Icon(Icons.category), label: "Category"),
93 | BottomNavigationBarItem(
94 | icon: Icon(Icons.settings), label: "Settings"),
95 | ]),
96 | ),
97 | ),
98 | );
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/lib/screens/extra_Pages/searchPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/db/transcation/transactoin_db.dart';
2 | import 'package:_save_karo/models/transaction/transcationDB.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | import 'editAndDeleteTransactionPage.dart';
6 |
7 | class SerchClass extends SearchDelegate {
8 | @override
9 | List? buildActions(BuildContext context) {
10 | return [
11 | IconButton(
12 | onPressed: () {
13 | query = '';
14 | },
15 | icon: const Icon(Icons.clear),
16 | )
17 | ];
18 | }
19 |
20 | @override
21 | Widget? buildLeading(BuildContext context) {
22 | return IconButton(
23 | onPressed: () {
24 | close(context, null);
25 | },
26 | icon: const Icon(Icons.arrow_back));
27 | }
28 |
29 | @override
30 | Widget buildResults(BuildContext context) {
31 | return ValueListenableBuilder(
32 | valueListenable: TranscationDb.instance.transcationListNotifier,
33 | builder: (BuildContext ctx, List studentList,
34 | Widget? child) {
35 | return ListView.separated(
36 | itemBuilder: (ctx, index) {
37 | final data = studentList[index];
38 | if (query.toLowerCase() == data.catogaryModel.name.toLowerCase()) {
39 | return Padding(
40 | padding: const EdgeInsets.all(20),
41 | child: ListTile(
42 | leading: const Icon(Icons.person),
43 | onTap: () {
44 | Navigator.push(
45 | context,
46 | MaterialPageRoute(
47 | builder: (context) => EditAndDelet(
48 | dats: data,
49 | )));
50 | },
51 | title: Text(
52 | data.catogaryModel.name,
53 | ),
54 | ),
55 | );
56 | } else {
57 | return Container();
58 | }
59 | },
60 | separatorBuilder: (ctx, index) {
61 | return Container();
62 | },
63 | itemCount: studentList.length,
64 | );
65 | },
66 | );
67 | }
68 |
69 | @override
70 | Widget buildSuggestions(BuildContext context) {
71 | return ValueListenableBuilder(
72 | valueListenable: TranscationDb.instance.transcationListNotifier,
73 | builder: (BuildContext ctx, List studentList,
74 | Widget? child) {
75 | return ListView.separated(
76 | itemBuilder: (ctx, index) {
77 | final data = studentList[index];
78 | if (query == data.catogaryModel.name[0].toLowerCase() ||
79 | query == data.catogaryModel.name[0].toUpperCase()) {
80 | return Padding(
81 | padding: const EdgeInsets.all(20),
82 | child: ListTile(
83 | leading: const Icon(Icons.person),
84 | onTap: () {
85 | Navigator.push(
86 | context,
87 | MaterialPageRoute(
88 | builder: (context) => EditAndDelet(
89 | dats: data,
90 | )));
91 | },
92 | title: Text(
93 | data.catogaryModel.name,
94 | ),
95 | ),
96 | );
97 | } else {
98 | return Container();
99 | }
100 | },
101 | separatorBuilder: (ctx, index) {
102 | return Container();
103 | },
104 | itemCount: studentList.length,
105 | );
106 | },
107 | );
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/windows/flutter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file controls Flutter-level build steps. It should not be edited.
2 | cmake_minimum_required(VERSION 3.14)
3 |
4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
5 |
6 | # Configuration provided via flutter tool.
7 | include(${EPHEMERAL_DIR}/generated_config.cmake)
8 |
9 | # TODO: Move the rest of this into files in ephemeral. See
10 | # https://github.com/flutter/flutter/issues/57146.
11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
12 |
13 | # === Flutter Library ===
14 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
15 |
16 | # Published to parent scope for install step.
17 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
18 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
19 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
20 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
21 |
22 | list(APPEND FLUTTER_LIBRARY_HEADERS
23 | "flutter_export.h"
24 | "flutter_windows.h"
25 | "flutter_messenger.h"
26 | "flutter_plugin_registrar.h"
27 | "flutter_texture_registrar.h"
28 | )
29 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
30 | add_library(flutter INTERFACE)
31 | target_include_directories(flutter INTERFACE
32 | "${EPHEMERAL_DIR}"
33 | )
34 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
35 | add_dependencies(flutter flutter_assemble)
36 |
37 | # === Wrapper ===
38 | list(APPEND CPP_WRAPPER_SOURCES_CORE
39 | "core_implementations.cc"
40 | "standard_codec.cc"
41 | )
42 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
43 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
44 | "plugin_registrar.cc"
45 | )
46 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
47 | list(APPEND CPP_WRAPPER_SOURCES_APP
48 | "flutter_engine.cc"
49 | "flutter_view_controller.cc"
50 | )
51 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
52 |
53 | # Wrapper sources needed for a plugin.
54 | add_library(flutter_wrapper_plugin STATIC
55 | ${CPP_WRAPPER_SOURCES_CORE}
56 | ${CPP_WRAPPER_SOURCES_PLUGIN}
57 | )
58 | apply_standard_settings(flutter_wrapper_plugin)
59 | set_target_properties(flutter_wrapper_plugin PROPERTIES
60 | POSITION_INDEPENDENT_CODE ON)
61 | set_target_properties(flutter_wrapper_plugin PROPERTIES
62 | CXX_VISIBILITY_PRESET hidden)
63 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
64 | target_include_directories(flutter_wrapper_plugin PUBLIC
65 | "${WRAPPER_ROOT}/include"
66 | )
67 | add_dependencies(flutter_wrapper_plugin flutter_assemble)
68 |
69 | # Wrapper sources needed for the runner.
70 | add_library(flutter_wrapper_app STATIC
71 | ${CPP_WRAPPER_SOURCES_CORE}
72 | ${CPP_WRAPPER_SOURCES_APP}
73 | )
74 | apply_standard_settings(flutter_wrapper_app)
75 | target_link_libraries(flutter_wrapper_app PUBLIC flutter)
76 | target_include_directories(flutter_wrapper_app PUBLIC
77 | "${WRAPPER_ROOT}/include"
78 | )
79 | add_dependencies(flutter_wrapper_app flutter_assemble)
80 |
81 | # === Flutter tool backend ===
82 | # _phony_ is a non-existent file to force this command to run every time,
83 | # since currently there's no way to get a full input/output list from the
84 | # flutter tool.
85 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
86 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
87 | add_custom_command(
88 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
89 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
90 | ${CPP_WRAPPER_SOURCES_APP}
91 | ${PHONY_OUTPUT}
92 | COMMAND ${CMAKE_COMMAND} -E env
93 | ${FLUTTER_TOOL_ENVIRONMENT}
94 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
95 | windows-x64 $
96 | VERBATIM
97 | )
98 | add_custom_target(flutter_assemble DEPENDS
99 | "${FLUTTER_LIBRARY}"
100 | ${FLUTTER_LIBRARY_HEADERS}
101 | ${CPP_WRAPPER_SOURCES_CORE}
102 | ${CPP_WRAPPER_SOURCES_PLUGIN}
103 | ${CPP_WRAPPER_SOURCES_APP}
104 | )
105 |
--------------------------------------------------------------------------------
/linux/my_application.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | #include
4 | #ifdef GDK_WINDOWING_X11
5 | #include
6 | #endif
7 |
8 | #include "flutter/generated_plugin_registrant.h"
9 |
10 | struct _MyApplication {
11 | GtkApplication parent_instance;
12 | char** dart_entrypoint_arguments;
13 | };
14 |
15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
16 |
17 | // Implements GApplication::activate.
18 | static void my_application_activate(GApplication* application) {
19 | MyApplication* self = MY_APPLICATION(application);
20 | GtkWindow* window =
21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
22 |
23 | // Use a header bar when running in GNOME as this is the common style used
24 | // by applications and is the setup most users will be using (e.g. Ubuntu
25 | // desktop).
26 | // If running on X and not using GNOME then just use a traditional title bar
27 | // in case the window manager does more exotic layout, e.g. tiling.
28 | // If running on Wayland assume the header bar will work (may need changing
29 | // if future cases occur).
30 | gboolean use_header_bar = TRUE;
31 | #ifdef GDK_WINDOWING_X11
32 | GdkScreen* screen = gtk_window_get_screen(window);
33 | if (GDK_IS_X11_SCREEN(screen)) {
34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
36 | use_header_bar = FALSE;
37 | }
38 | }
39 | #endif
40 | if (use_header_bar) {
41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
42 | gtk_widget_show(GTK_WIDGET(header_bar));
43 | gtk_header_bar_set_title(header_bar, "_save_karo");
44 | gtk_header_bar_set_show_close_button(header_bar, TRUE);
45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
46 | } else {
47 | gtk_window_set_title(window, "_save_karo");
48 | }
49 |
50 | gtk_window_set_default_size(window, 1280, 720);
51 | gtk_widget_show(GTK_WIDGET(window));
52 |
53 | g_autoptr(FlDartProject) project = fl_dart_project_new();
54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
55 |
56 | FlView* view = fl_view_new(project);
57 | gtk_widget_show(GTK_WIDGET(view));
58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
59 |
60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view));
61 |
62 | gtk_widget_grab_focus(GTK_WIDGET(view));
63 | }
64 |
65 | // Implements GApplication::local_command_line.
66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
67 | MyApplication* self = MY_APPLICATION(application);
68 | // Strip out the first argument as it is the binary name.
69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
70 |
71 | g_autoptr(GError) error = nullptr;
72 | if (!g_application_register(application, nullptr, &error)) {
73 | g_warning("Failed to register: %s", error->message);
74 | *exit_status = 1;
75 | return TRUE;
76 | }
77 |
78 | g_application_activate(application);
79 | *exit_status = 0;
80 |
81 | return TRUE;
82 | }
83 |
84 | // Implements GObject::dispose.
85 | static void my_application_dispose(GObject* object) {
86 | MyApplication* self = MY_APPLICATION(object);
87 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
88 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
89 | }
90 |
91 | static void my_application_class_init(MyApplicationClass* klass) {
92 | G_APPLICATION_CLASS(klass)->activate = my_application_activate;
93 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
94 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
95 | }
96 |
97 | static void my_application_init(MyApplication* self) {}
98 |
99 | MyApplication* my_application_new() {
100 | return MY_APPLICATION(g_object_new(my_application_get_type(),
101 | "application-id", APPLICATION_ID,
102 | "flags", G_APPLICATION_NON_UNIQUE,
103 | nullptr));
104 | }
105 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/cattogary/statistcsPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/screens/genaralItems/constentItems.dart';
2 | import 'package:_save_karo/screens/working_Pages/cattogary/expancePieChart.dart';
3 | import 'package:_save_karo/screens/working_Pages/cattogary/incomePiechart.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:intl/intl.dart';
6 |
7 | import 'overViewCatogary.dart';
8 |
9 | class StatisticsPage extends StatefulWidget {
10 | const StatisticsPage({Key? key}) : super(key: key);
11 |
12 | @override
13 | State createState() => _StatisticsPageState();
14 | }
15 |
16 | class _StatisticsPageState extends State
17 | with TickerProviderStateMixin {
18 | List items = ['Monthly', 'Yearly', 'period'];
19 | DateTime datetime = DateTime.now();
20 |
21 | String? selectedItem = "Monthly";
22 | select() {
23 | String? formateDate;
24 |
25 | if (selectedItem == items[0]) {
26 | formateDate = DateFormat.yMMM().format(datetime);
27 | } else if (selectedItem == items[1]) {
28 | formateDate = DateFormat.y().format(datetime);
29 | }
30 | return formateDate;
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | TabController tabController = TabController(length: 3, vsync: this);
36 | return SafeArea(
37 | child: Scaffold(
38 | body: Column(children: [
39 | Container(
40 | height: 60,
41 | width: 400,
42 | decoration: const BoxDecoration(
43 | border: Border(
44 | bottom: BorderSide(
45 | width: 1, color: Color.fromRGBO(0, 0, 0, 70))),
46 | color: backroundColure),
47 | child: const Card(
48 | elevation: 2,
49 | child: ListTile(
50 | title: Text(
51 | "Statistics Window",
52 | style: TextStyle(
53 | fontFamily: fontFamilyCustome,
54 | fontWeight: FontWeight.bold,
55 | fontSize: 18,
56 | color: fontcolure),
57 | ),
58 | ),
59 | )),
60 | const SizedBox(height: 10),
61 | Padding(
62 | padding: const EdgeInsets.only(left: 10, right: 10),
63 | child: Card(
64 | shape:
65 | RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
66 | elevation: 4,
67 | child: Container(
68 | decoration: BoxDecoration(
69 | color: backroundUnselectedColur,
70 | borderRadius: BorderRadius.circular(12)),
71 | child: TabBar(
72 | labelColor: backroundUnselectedColur,
73 | unselectedLabelColor: fontcolure,
74 | indicator: BoxDecoration(
75 | borderRadius: BorderRadius.circular(12),
76 | color: backroundColure),
77 | labelPadding: const EdgeInsets.symmetric(horizontal: 15),
78 | controller: tabController,
79 | tabs: const [
80 | Tab(
81 | child: Text(
82 | "OVERVIEW",
83 | style: TextStyle(fontFamily: fontFamilyCustome),
84 | ),
85 | ),
86 | Tab(
87 | child: Text(
88 | "INCOME",
89 | style: TextStyle(fontFamily: fontFamilyCustome),
90 | ),
91 | ),
92 | Tab(
93 | child: Text(
94 | "EXPENSE",
95 | style: TextStyle(fontFamily: fontFamilyCustome),
96 | ),
97 | )
98 | ],
99 | ),
100 | ),
101 | ),
102 | ),
103 | Expanded(
104 | child: TabBarView(controller: tabController, children: const [
105 | CatogryOverView(),
106 | IncomeCatogary(),
107 | ExapanceCatogary()
108 | ]),
109 | ),
110 | ])),
111 | );
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/windows/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Project-level configuration.
2 | cmake_minimum_required(VERSION 3.14)
3 | project(_save_karo LANGUAGES CXX)
4 |
5 | # The name of the executable created for the application. Change this to change
6 | # the on-disk name of your application.
7 | set(BINARY_NAME "_save_karo")
8 |
9 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
10 | # versions of CMake.
11 | cmake_policy(SET CMP0063 NEW)
12 |
13 | # Define build configuration option.
14 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
15 | if(IS_MULTICONFIG)
16 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
17 | CACHE STRING "" FORCE)
18 | else()
19 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
20 | set(CMAKE_BUILD_TYPE "Debug" CACHE
21 | STRING "Flutter build mode" FORCE)
22 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
23 | "Debug" "Profile" "Release")
24 | endif()
25 | endif()
26 | # Define settings for the Profile build mode.
27 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
28 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
29 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
30 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
31 |
32 | # Use Unicode for all projects.
33 | add_definitions(-DUNICODE -D_UNICODE)
34 |
35 | # Compilation settings that should be applied to most targets.
36 | #
37 | # Be cautious about adding new options here, as plugins use this function by
38 | # default. In most cases, you should add new options to specific targets instead
39 | # of modifying this function.
40 | function(APPLY_STANDARD_SETTINGS TARGET)
41 | target_compile_features(${TARGET} PUBLIC cxx_std_17)
42 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
43 | target_compile_options(${TARGET} PRIVATE /EHsc)
44 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
45 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>")
46 | endfunction()
47 |
48 | # Flutter library and tool build rules.
49 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
50 | add_subdirectory(${FLUTTER_MANAGED_DIR})
51 |
52 | # Application build; see runner/CMakeLists.txt.
53 | add_subdirectory("runner")
54 |
55 | # Generated plugin build rules, which manage building the plugins and adding
56 | # them to the application.
57 | include(flutter/generated_plugins.cmake)
58 |
59 |
60 | # === Installation ===
61 | # Support files are copied into place next to the executable, so that it can
62 | # run in place. This is done instead of making a separate bundle (as on Linux)
63 | # so that building and running from within Visual Studio will work.
64 | set(BUILD_BUNDLE_DIR "$")
65 | # Make the "install" step default, as it's required to run.
66 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
67 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
68 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
69 | endif()
70 |
71 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
72 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
73 |
74 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
75 | COMPONENT Runtime)
76 |
77 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
78 | COMPONENT Runtime)
79 |
80 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
81 | COMPONENT Runtime)
82 |
83 | if(PLUGIN_BUNDLED_LIBRARIES)
84 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
85 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
86 | COMPONENT Runtime)
87 | endif()
88 |
89 | # Fully re-copy the assets directory on each build to avoid having stale files
90 | # from a previous install.
91 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
92 | install(CODE "
93 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
94 | " COMPONENT Runtime)
95 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
96 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
97 |
98 | # Install the AOT library on non-Debug builds only.
99 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
100 | CONFIGURATIONS Profile;Release
101 | COMPONENT Runtime)
102 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: _save_karo
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `flutter pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+2
19 |
20 | environment:
21 | sdk: ">=2.17.0 <3.0.0"
22 |
23 | # Dependencies specify other packages that your package needs in order to work.
24 | # To automatically upgrade your package dependencies to the latest versions
25 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
26 | # dependencies can be manually updated by changing the version numbers below to
27 | # the latest version available on pub.dev. To see which dependencies have newer
28 | # versions available, run `flutter pub outdated`.
29 | dependencies:
30 | flutter:
31 | sdk: flutter
32 |
33 |
34 | # The following adds the Cupertino Icons font to your application.
35 | # Use with the CupertinoIcons class for iOS style icons.
36 | cupertino_icons: ^1.0.2
37 | introduction_screen: ^3.0.2
38 | shared_preferences: ^2.0.15
39 | animated_splash_screen: ^1.2.0
40 | load_switch: ^1.1.0
41 | syncfusion_flutter_charts: any
42 | path_provider:
43 | hive:
44 | hive_flutter:
45 | intl: ^0.17.0
46 | flutter_local_notifications:
47 | timezone: ^0.8.0
48 | url_launcher: ^6.1.3
49 | share_plus: ^4.0.9
50 | change_app_package_name: ^1.1.0
51 |
52 |
53 | dev_dependencies:
54 | flutter_test:
55 | sdk: flutter
56 | hive_generator:
57 | build_runner:
58 |
59 | # The "flutter_lints" package below contains a set of recommended lints to
60 | # encourage good coding practices. The lint set provided by the package is
61 | # activated in the `analysis_options.yaml` file located at the root of your
62 | # package. See that file for information about deactivating specific lint
63 | # rules and activating additional ones.
64 | flutter_lints: ^2.0.0
65 |
66 | # For information on the generic Dart part of this file, see the
67 | # following page: https://dart.dev/tools/pub/pubspec
68 |
69 | # The following section is specific to Flutter packages.
70 | flutter:
71 | uses-material-design: true
72 | assets:
73 | - Assets/images/
74 |
75 |
76 | # An image asset can refer to one or more resolution-specific "variants", see
77 | # https://flutter.dev/assets-and-images/#resolution-aware
78 |
79 | # For details regarding adding assets from package dependencies, see
80 | # https://flutter.dev/assets-and-images/#from-packages
81 |
82 | # To add custom fonts to your application, add a fonts section here,
83 | # in this "flutter" section. Each entry in this list should have a
84 | # "family" key with the font family name, and a "fonts" key with a
85 | # list giving the asset and other descriptors for the font. For
86 | # example:
87 | fonts:
88 | - family: InriaSerif
89 | fonts:
90 | - asset: Assets/images/fontfamily/InriaSerif-Bold.ttf
91 | - family: Imprima
92 | fonts:
93 | - asset: Assets/images/fontfamily/Imprima-Regular.ttf
94 | # - asset: fonts/Schyler-Italic.ttf
95 | # style: italic
96 | # - family: Trajan Pro
97 | # fonts:
98 | # - asset: fonts/TrajanPro.ttf
99 | # - asset: fonts/TrajanPro_Bold.ttf
100 | # weight: 700
101 | #
102 | # For details regarding fonts from package dependencies,
103 | # see https://flutter.dev/custom-fonts/#from-packages
104 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/catogaryPages/ExpenseCatogarylist.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/db/catogary/catogrydb.dart';
2 | import 'package:_save_karo/models/catogary/categoryModel.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | import '../../genaralItems/constentItems.dart';
6 |
7 | class ExpenseCatogryList extends StatelessWidget {
8 | const ExpenseCatogryList({Key? key}) : super(key: key);
9 | final type = CatogaryType.expence;
10 | //final _type1 = CatogaryType.icome;
11 | //final _type2 = CatogaryType.expence;
12 | @override
13 | Widget build(BuildContext context) {
14 | return ValueListenableBuilder(
15 | valueListenable: CatogaryDB().expenseCatogaryList,
16 | builder: (
17 | BuildContext context,
18 | List newList,
19 | Widget? _,
20 | ) {
21 | return newList.isEmpty
22 | ? const Card(child: Center(child: Text(" No Data")))
23 | : Column(
24 | children: [
25 | Expanded(
26 | child: Card(
27 | color: commonIconColure,
28 | child: ListView.separated(
29 | itemBuilder: ((context, index) {
30 | final catogary = newList[index];
31 | return Card(
32 | child: ListTile(
33 | title: Text(catogary.name),
34 | trailing: Wrap(
35 | spacing: 5, // space between two icons
36 | children: [
37 | IconButton(
38 | onPressed: () {
39 | showConfrom(context, catogary);
40 | },
41 | icon: const Icon(
42 | Icons.delete,
43 | color: expenseTextColure,
44 | )),
45 |
46 | /// icon-2
47 | ],
48 | ),
49 | ),
50 | );
51 | }),
52 | separatorBuilder: (context, index) {
53 | return const Divider(
54 | height: 20,
55 | );
56 | },
57 | itemCount: newList.length,
58 | ),
59 | ),
60 | ),
61 | ],
62 | );
63 | });
64 | }
65 |
66 | Future showConfrom(context, catogary) async {
67 | return showDialog(
68 | context: context,
69 | barrierDismissible: false, // user must tap button!
70 | builder: (BuildContext context) {
71 | return AlertDialog(
72 | title: const Text(
73 | 'Delete Catogary',
74 | style: genaralTextStyle,
75 | ),
76 | content: SingleChildScrollView(
77 | child: Column(
78 | children: const [
79 | // Text('This is a demo alert dialog.'),
80 | Text(
81 | 'Are you sure want to delete this expense category',
82 | style: genaralTextStyle,
83 | ),
84 | ],
85 | ),
86 | ),
87 | actions: [
88 | TextButton(
89 | child: const Text(
90 | 'Confirm',
91 | style: TextStyle(
92 | color: expenseTextColure, fontFamily: fontFamilyCustome),
93 | ),
94 | onPressed: () {
95 | CatogaryDB.instance.deletCatogry(catogary.id);
96 | Navigator.of(context).pop();
97 | },
98 | ),
99 | TextButton(
100 | child: const Text(
101 | 'Cancel',
102 | style: TextStyle(
103 | color: totelTextColure, fontFamily: fontFamilyCustome),
104 | ),
105 | onPressed: () {
106 | Navigator.of(context).pop();
107 | },
108 | ),
109 | ],
110 | );
111 | },
112 | );
113 | }
114 | }
115 |
--------------------------------------------------------------------------------
/lib/db/transcation/transactoin_db.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: invalid_use_of_protected_member, invalid_use_of_visible_for_testing_member
2 |
3 | import 'package:_save_karo/models/catogary/categoryModel.dart';
4 | import 'package:_save_karo/models/transaction/transcationDB.dart';
5 | import 'package:flutter/foundation.dart';
6 | import 'package:flutter/widgets.dart';
7 | import 'package:hive_flutter/hive_flutter.dart';
8 |
9 | import '../catogary/catogrydb.dart';
10 |
11 | // ignore: constant_identifier_names
12 | const TRANSACTION_DB_NAME = "Trasnaction-db";
13 |
14 | abstract class TranscationDbFunction {
15 | Future addTransaction(TranscationModel obj);
16 | Future> getAllTransactions();
17 | Future deleteTransaction(String id);
18 | Future editTransaction(String id, TranscationModel obj);
19 | Future deleteall();
20 | }
21 |
22 | class TranscationDb implements TranscationDbFunction {
23 | TranscationDb._internal();
24 | static TranscationDb instance = TranscationDb._internal();
25 | factory TranscationDb() {
26 | return instance;
27 | }
28 |
29 | ValueNotifier> transcationListNotifier =
30 | ValueNotifier([]);
31 |
32 | ValueNotifier> incomeTranscationNotider =
33 | ValueNotifier([]);
34 |
35 | ValueNotifier> expanceTranscationNotifier =
36 | ValueNotifier([]);
37 |
38 | ValueNotifier> filterListNotification =
39 | ValueNotifier([]);
40 |
41 | ValueNotifier> sortpiechartlisener = ValueNotifier([]);
42 | ValueNotifier balanceNotifier = ValueNotifier(0);
43 | ValueNotifier incomeNotifier = ValueNotifier(0);
44 | ValueNotifier expanceNotifier = ValueNotifier(0);
45 |
46 | @override
47 | Future addTransaction(TranscationModel obj) async {
48 | final addtrnsactionDb =
49 | await Hive.openBox(TRANSACTION_DB_NAME);
50 | await addtrnsactionDb.put(obj.id, obj);
51 | }
52 |
53 | Future refreshUi() async {
54 | balanceNotifier.value = 0;
55 | incomeNotifier.value = 0;
56 | expanceNotifier.value = 0;
57 | final list = await getAllTransactions();
58 | list.sort((first, second) => second.date.compareTo(first.date));
59 | transcationListNotifier.value.clear();
60 | incomeTranscationNotider.value.clear();
61 | expanceTranscationNotifier.value.clear();
62 | transcationListNotifier.value.addAll(list);
63 | // ignore: ,
64 |
65 | for (var cataogary in list) {
66 | if (cataogary.type == CatogaryType.icome) {
67 | incomeTranscationNotider.value.add(cataogary);
68 | } else {
69 | expanceTranscationNotifier.value.add(cataogary);
70 | }
71 | }
72 |
73 | await Future.forEach(list, (TranscationModel obj) {
74 | if (obj.catogaryModel.type == CatogaryType.icome) {
75 | incomeNotifier.value = incomeNotifier.value + obj.amount;
76 | } else {
77 | expanceNotifier.value = expanceNotifier.value + obj.amount;
78 | }
79 | balanceNotifier.value = incomeNotifier.value - expanceNotifier.value;
80 | });
81 |
82 | balanceNotifier.notifyListeners();
83 |
84 | incomeNotifier.notifyListeners();
85 | expanceNotifier.notifyListeners();
86 |
87 | transcationListNotifier.notifyListeners();
88 | expanceTranscationNotifier.notifyListeners();
89 | transcationListNotifier.notifyListeners();
90 | }
91 |
92 | @override
93 | Future> getAllTransactions() async {
94 | final addDb = await Hive.openBox(TRANSACTION_DB_NAME);
95 |
96 | return addDb.values.toList();
97 | }
98 |
99 | @override
100 | Future deleteTransaction(String id) async {
101 | final deletdb = await Hive.openBox(TRANSACTION_DB_NAME);
102 | await deletdb.delete(id);
103 | refreshUi();
104 | }
105 |
106 | @override
107 | Future editTransaction(String id, TranscationModel obj) async {
108 | final editTranscation =
109 | await Hive.openBox(TRANSACTION_DB_NAME);
110 | editTranscation.put(id, obj);
111 | }
112 |
113 | @override
114 | Future deleteall() async {
115 | final deletTransaction =
116 | await Hive.openBox(TRANSACTION_DB_NAME);
117 | deletTransaction.clear();
118 | final deleteCatogary = await Hive.openBox(CATOGARY_DB_NAME);
119 | deleteCatogary.clear();
120 | refreshUi();
121 |
122 | throw UnimplementedError();
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/catogaryPages/catogaryPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/db/catogary/catogrydb.dart';
2 | import 'package:_save_karo/models/catogary/categoryModel.dart';
3 | import 'package:_save_karo/screens/genaralItems/constentItems.dart';
4 | import 'package:_save_karo/screens/working_Pages/catogaryPages/incomeCatogarylist.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | import 'ExpenseCatogarylist.dart';
8 | import 'editCatogry.dart';
9 |
10 | class CatogaryPage extends StatefulWidget {
11 | const CatogaryPage({Key? key}) : super(key: key);
12 |
13 | @override
14 | State createState() => _CatogaryPageState();
15 | }
16 |
17 | class _CatogaryPageState extends State
18 | with TickerProviderStateMixin {
19 | final _type1 = CatogaryType.icome;
20 | final _type2 = CatogaryType.expence;
21 |
22 | // List items = ['Monthly', 'Yearly', 'period'];
23 | // String? selectedItem = "Monthly";
24 |
25 | @override
26 | void initState() {
27 | CatogaryDB().refreshUi();
28 |
29 | super.initState();
30 | }
31 |
32 | @override
33 | Widget build(BuildContext context) {
34 | TabController tabController = TabController(length: 2, vsync: this);
35 | return SafeArea(
36 | child: Scaffold(
37 | floatingActionButton: FloatingActionButton(
38 | onPressed: () {
39 | if (tabController.index == 0) {
40 | openDailoge(
41 | context,
42 | _type1,
43 | );
44 | } else {
45 | openDailoge(context, _type2);
46 | }
47 | },
48 | backgroundColor: backroundColure,
49 | child: const Icon(Icons.add)),
50 | body: Column(
51 | children: [
52 | Container(
53 | height: 60,
54 | width: 400,
55 | decoration: const BoxDecoration(
56 | border: Border(
57 | bottom: BorderSide(
58 | width: 1, color: Color.fromRGBO(0, 0, 0, 70))),
59 | color: backroundColure),
60 | child: const Card(
61 | elevation: 2,
62 | child: ListTile(
63 | title: Text(
64 | "Category Window",
65 | style: TextStyle(
66 | fontFamily: fontFamilyCustome,
67 | fontWeight: FontWeight.bold,
68 | fontSize: 18,
69 | color: fontcolure),
70 | ),
71 | ),
72 | )),
73 | const SizedBox(height: 30),
74 | Padding(
75 | padding: const EdgeInsets.only(left: 15, right: 15),
76 | child: Card(
77 | shape: RoundedRectangleBorder(
78 | borderRadius: BorderRadius.circular(12)),
79 | elevation: 4,
80 | child: Container(
81 | decoration: BoxDecoration(
82 | color: backroundUnselectedColur,
83 | borderRadius: BorderRadius.circular(12)),
84 | child: TabBar(
85 | indicator: BoxDecoration(
86 | borderRadius: BorderRadius.circular(12),
87 | color: backroundColure,
88 | ),
89 | labelPadding: const EdgeInsets.symmetric(horizontal: 30),
90 | labelColor: backroundUnselectedColur,
91 | unselectedLabelColor: fontcolure,
92 | tabs: const [
93 | Tab(
94 | child: Text(
95 | "INCOME",
96 | style: TextStyle(fontFamily: fontFamilyCustome),
97 | ),
98 | ),
99 | Tab(
100 | child: Text(
101 | "EXPENSE",
102 | style: TextStyle(fontFamily: fontFamilyCustome),
103 | ),
104 | )
105 | ],
106 | controller: tabController,
107 | ),
108 | ),
109 | ),
110 | ),
111 | Expanded(
112 | child: TabBarView(
113 | physics: const NeverScrollableScrollPhysics(),
114 | controller: tabController,
115 | children: const [
116 | IncomeCatogryWidget(),
117 | ExpenseCatogryList()
118 | ])),
119 | ],
120 | ),
121 | ),
122 | );
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/catogaryPages/incomeCatogarylist.dart:
--------------------------------------------------------------------------------
1 | import 'package:_save_karo/db/catogary/catogrydb.dart';
2 | import 'package:_save_karo/models/catogary/categoryModel.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | import '../../genaralItems/constentItems.dart';
6 |
7 | class IncomeCatogryWidget extends StatelessWidget {
8 | const IncomeCatogryWidget({Key? key}) : super(key: key);
9 | // final _type2 = CatogaryType.expence;
10 | // final _type = CatogaryType.icome;
11 | @override
12 | Widget build(BuildContext context) {
13 | return ValueListenableBuilder(
14 | valueListenable: CatogaryDB().incomeCatogaryList,
15 | builder: (
16 | BuildContext context,
17 | List newList,
18 | Widget? _,
19 | ) {
20 | return newList.isEmpty
21 | ? const Center(child: Text("No Data"))
22 | : Column(
23 | children: [
24 | Expanded(
25 | child: Card(
26 | color: commonIconColure,
27 | child: ListView.separated(
28 | itemBuilder: ((context, index) {
29 | final catogary = newList[index];
30 | return Card(
31 | elevation: 2,
32 | child: ListTile(
33 | title: Text(catogary.name),
34 | trailing: Wrap(
35 | spacing: 5, // space between two icons
36 | children: [
37 | // IconButton(
38 | // onPressed: () {
39 | // // editCatogry(context, index);
40 | // // editDailoge(context, catogary);
41 | // },
42 | // icon: const Icon(
43 | // Icons.edit,
44 | // color: IconsColure,
45 | // )), // icon-1
46 | IconButton(
47 | onPressed: () {
48 | showConfrom(context, catogary);
49 | },
50 | icon: const Icon(
51 | Icons.delete,
52 | color: expenseTextColure,
53 | )),
54 |
55 | /// icon-2
56 | ],
57 | ),
58 | ),
59 | );
60 | }),
61 | separatorBuilder: (context, index) {
62 | return const Divider(
63 | height: 20,
64 | );
65 | },
66 | itemCount: newList.length,
67 | ),
68 | ),
69 | ),
70 | ],
71 | );
72 | });
73 | }
74 |
75 | Future showConfrom(context, catogary) async {
76 | return showDialog(
77 | context: context,
78 | barrierDismissible: false, // user must tap button!
79 | builder: (BuildContext context) {
80 | return AlertDialog(
81 | title: const Text(
82 | 'Delete Catogary',
83 | style: genaralTextStyle,
84 | ),
85 | content: SingleChildScrollView(
86 | child: Column(
87 | children: const [
88 | // Text('This is a demo alert dialog.'),
89 | Text(
90 | 'Are you sure want to delete this income category',
91 | style: genaralTextStyle,
92 | ),
93 | ],
94 | ),
95 | ),
96 | actions: [
97 | TextButton(
98 | child: const Text(
99 | 'Confirm',
100 | style: TextStyle(
101 | color: expenseTextColure, fontFamily: fontFamilyCustome),
102 | ),
103 | onPressed: () {
104 | CatogaryDB.instance.deletCatogry(catogary.id);
105 | Navigator.of(context).pop();
106 | },
107 | ),
108 | TextButton(
109 | child: const Text(
110 | 'Cancel',
111 | style: TextStyle(
112 | color: totelTextColure, fontFamily: fontFamilyCustome),
113 | ),
114 | onPressed: () {
115 | Navigator.of(context).pop();
116 | },
117 | ),
118 | ],
119 | );
120 | },
121 | );
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/linux/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Project-level configuration.
2 | cmake_minimum_required(VERSION 3.10)
3 | project(runner LANGUAGES CXX)
4 |
5 | # The name of the executable created for the application. Change this to change
6 | # the on-disk name of your application.
7 | set(BINARY_NAME "_save_karo")
8 | # The unique GTK application identifier for this application. See:
9 | # https://wiki.gnome.org/HowDoI/ChooseApplicationID
10 | set(APPLICATION_ID "com.example.u_save_karo")
11 |
12 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
13 | # versions of CMake.
14 | cmake_policy(SET CMP0063 NEW)
15 |
16 | # Load bundled libraries from the lib/ directory relative to the binary.
17 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
18 |
19 | # Root filesystem for cross-building.
20 | if(FLUTTER_TARGET_PLATFORM_SYSROOT)
21 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
22 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
23 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
24 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
25 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
26 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
27 | endif()
28 |
29 | # Define build configuration options.
30 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
31 | set(CMAKE_BUILD_TYPE "Debug" CACHE
32 | STRING "Flutter build mode" FORCE)
33 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
34 | "Debug" "Profile" "Release")
35 | endif()
36 |
37 | # Compilation settings that should be applied to most targets.
38 | #
39 | # Be cautious about adding new options here, as plugins use this function by
40 | # default. In most cases, you should add new options to specific targets instead
41 | # of modifying this function.
42 | function(APPLY_STANDARD_SETTINGS TARGET)
43 | target_compile_features(${TARGET} PUBLIC cxx_std_14)
44 | target_compile_options(${TARGET} PRIVATE -Wall -Werror)
45 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
46 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
47 | endfunction()
48 |
49 | # Flutter library and tool build rules.
50 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
51 | add_subdirectory(${FLUTTER_MANAGED_DIR})
52 |
53 | # System-level dependencies.
54 | find_package(PkgConfig REQUIRED)
55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
56 |
57 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
58 |
59 | # Define the application target. To change its name, change BINARY_NAME above,
60 | # not the value here, or `flutter run` will no longer work.
61 | #
62 | # Any new source files that you add to the application should be added here.
63 | add_executable(${BINARY_NAME}
64 | "main.cc"
65 | "my_application.cc"
66 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
67 | )
68 |
69 | # Apply the standard set of build settings. This can be removed for applications
70 | # that need different build settings.
71 | apply_standard_settings(${BINARY_NAME})
72 |
73 | # Add dependency libraries. Add any application-specific dependencies here.
74 | target_link_libraries(${BINARY_NAME} PRIVATE flutter)
75 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
76 |
77 | # Run the Flutter tool portions of the build. This must not be removed.
78 | add_dependencies(${BINARY_NAME} flutter_assemble)
79 |
80 | # Only the install-generated bundle's copy of the executable will launch
81 | # correctly, since the resources must in the right relative locations. To avoid
82 | # people trying to run the unbundled copy, put it in a subdirectory instead of
83 | # the default top-level location.
84 | set_target_properties(${BINARY_NAME}
85 | PROPERTIES
86 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
87 | )
88 |
89 | # Generated plugin build rules, which manage building the plugins and adding
90 | # them to the application.
91 | include(flutter/generated_plugins.cmake)
92 |
93 |
94 | # === Installation ===
95 | # By default, "installing" just makes a relocatable bundle in the build
96 | # directory.
97 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
98 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
99 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
100 | endif()
101 |
102 | # Start with a clean build bundle directory every time.
103 | install(CODE "
104 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
105 | " COMPONENT Runtime)
106 |
107 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
108 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
109 |
110 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
111 | COMPONENT Runtime)
112 |
113 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
114 | COMPONENT Runtime)
115 |
116 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
117 | COMPONENT Runtime)
118 |
119 | foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
120 | install(FILES "${bundled_library}"
121 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
122 | COMPONENT Runtime)
123 | endforeach(bundled_library)
124 |
125 | # Fully re-copy the assets directory on each build to avoid having stale files
126 | # from a previous install.
127 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
128 | install(CODE "
129 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
130 | " COMPONENT Runtime)
131 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
132 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
133 |
134 | # Install the AOT library on non-Debug builds only.
135 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
136 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
137 | COMPONENT Runtime)
138 | endif()
139 |
--------------------------------------------------------------------------------
/lib/screens/firstTime_Login/introductionPages.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:introduction_screen/introduction_screen.dart';
3 |
4 | import 'loginScreen.dart';
5 |
6 | class IndroScreen1 extends StatelessWidget {
7 | const IndroScreen1({Key? key}) : super(key: key);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Scaffold(
12 | body: Padding(
13 | padding: const EdgeInsets.all(8.0),
14 | child: SafeArea(
15 | child: IntroductionScreen(
16 | showSkipButton: true,
17 | globalBackgroundColor: Colors.white,
18 | dotsDecorator: DotsDecorator(
19 | activeShape: RoundedRectangleBorder(
20 | borderRadius: BorderRadius.circular(5)),
21 | color: const Color.fromRGBO(38, 31, 31, 100),
22 | size: const Size(10, 8),
23 | activeColor: Colors.black),
24 | next: const Text(
25 | 'Next',
26 | style:
27 | TextStyle(fontFamily: "Imprima", fontWeight: FontWeight.bold),
28 | ),
29 | skip: const Text(
30 | "Skip ",
31 | style:
32 | TextStyle(fontFamily: "Imprima", fontWeight: FontWeight.bold),
33 | ),
34 | onSkip: () {
35 | Navigator.pushReplacement(context,
36 | MaterialPageRoute(builder: (context) => const LginScreen()));
37 | },
38 | done: const Text("Done",
39 | style: TextStyle(fontWeight: FontWeight.w600)),
40 | onDone: () {
41 | Navigator.pushReplacement(context,
42 | MaterialPageRoute(builder: (context) => const LginScreen()));
43 | },
44 | baseBtnStyle: TextButton.styleFrom(
45 | shape: RoundedRectangleBorder(
46 | borderRadius: BorderRadius.circular(25.0),
47 | ),
48 | ),
49 | skipStyle: TextButton.styleFrom(primary: Colors.black),
50 | doneStyle: TextButton.styleFrom(primary: Colors.black),
51 | nextStyle: TextButton.styleFrom(primary: Colors.black),
52 | pages: [
53 | PageViewModel(
54 | decoration: const PageDecoration(
55 | bodyPadding: EdgeInsets.all(20),
56 | titlePadding: EdgeInsets.only(top: 10),
57 | imageAlignment: Alignment.center,
58 | titleTextStyle: TextStyle(
59 | fontSize: 20,
60 | fontWeight: FontWeight.bold,
61 | fontFamily: "InriaSerif"),
62 | bodyTextStyle: TextStyle(fontFamily: "InriaSerif")),
63 | title: "Simple and intuitive",
64 | body:
65 | "log any transaction within second and,stay on top of your money.",
66 | image: Image.asset(
67 | 'Assets/images/first befor login 1.png',
68 | height: 250,
69 | width: 250,
70 | )),
71 | PageViewModel(
72 | decoration: const PageDecoration(
73 | bodyPadding: EdgeInsets.all(20),
74 | titlePadding: EdgeInsets.only(top: 10),
75 | imageAlignment: Alignment.center,
76 | titleTextStyle: TextStyle(
77 | fontSize: 20,
78 | fontWeight: FontWeight.bold,
79 | fontFamily: "InriaSerif"),
80 | bodyTextStyle: TextStyle(fontFamily: "InriaSerif")),
81 | title: "Get detailed analysis",
82 | body:
83 | "informative statistics based on your behaviour.\n Make better decisions with your money!",
84 | image: Image.asset(
85 | 'Assets/images/first before login 2.png',
86 | height: 250,
87 | width: 250,
88 | )),
89 | PageViewModel(
90 | decoration: const PageDecoration(
91 | bodyPadding: EdgeInsets.all(20),
92 | titlePadding: EdgeInsets.only(top: 10),
93 | imageAlignment: Alignment.center,
94 | titleTextStyle: TextStyle(
95 | fontSize: 20,
96 | fontWeight: FontWeight.bold,
97 | fontFamily: "InriaSerif"),
98 | bodyTextStyle: TextStyle(fontFamily: "InriaSerif")),
99 | title: "Stay on track with budgets",
100 | body:
101 | "Create a budget and,get future predictions if you are likely to overshoot.",
102 | image: Image.asset(
103 | 'Assets/images/first before login 3 (copy).png',
104 | height: 250,
105 | width: 250,
106 | )),
107 | PageViewModel(
108 | decoration: const PageDecoration(
109 | bodyPadding: EdgeInsets.all(20),
110 | titlePadding: EdgeInsets.only(top: 10),
111 | imageAlignment: Alignment.center,
112 | titleTextStyle: TextStyle(
113 | fontSize: 20,
114 | fontWeight: FontWeight.bold,
115 | fontFamily: "InriaSerif"),
116 | bodyTextStyle: TextStyle(fontFamily: "InriaSerif")),
117 | title: "We respect your privacy!",
118 | body:
119 | "We stand firm on respectiong our users’ privacy and would never change our stand on that.",
120 | image: Image.asset(
121 | 'Assets/images/first before login 4.png',
122 | height: 250,
123 | width: 250,
124 | )),
125 | ],
126 | ),
127 | ),
128 | ),
129 | );
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {"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"},{"idiom":"watch","filename":"172.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"86x86","expected-size":"172","role":"quickLook"},{"idiom":"watch","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"40x40","expected-size":"80","role":"appLauncher"},{"idiom":"watch","filename":"88.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"40mm","scale":"2x","size":"44x44","expected-size":"88","role":"appLauncher"},{"idiom":"watch","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"44mm","scale":"2x","size":"50x50","expected-size":"100","role":"appLauncher"},{"idiom":"watch","filename":"196.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"42mm","scale":"2x","size":"98x98","expected-size":"196","role":"quickLook"},{"idiom":"watch","filename":"216.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"44mm","scale":"2x","size":"108x108","expected-size":"216","role":"quickLook"},{"idiom":"watch","filename":"48.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"24x24","expected-size":"48","role":"notificationCenter"},{"idiom":"watch","filename":"55.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"42mm","scale":"2x","size":"27.5x27.5","expected-size":"55","role":"notificationCenter"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch","role":"companionSettings","scale":"3x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch","role":"companionSettings","scale":"2x"},{"size":"1024x1024","expected-size":"1024","filename":"1024.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch-marketing","scale":"1x"},{"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"}]}
--------------------------------------------------------------------------------
/windows/runner/win32_window.cpp:
--------------------------------------------------------------------------------
1 | #include "win32_window.h"
2 |
3 | #include
4 |
5 | #include "resource.h"
6 |
7 | namespace {
8 |
9 | constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW";
10 |
11 | // The number of Win32Window objects that currently exist.
12 | static int g_active_window_count = 0;
13 |
14 | using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd);
15 |
16 | // Scale helper to convert logical scaler values to physical using passed in
17 | // scale factor
18 | int Scale(int source, double scale_factor) {
19 | return static_cast(source * scale_factor);
20 | }
21 |
22 | // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module.
23 | // This API is only needed for PerMonitor V1 awareness mode.
24 | void EnableFullDpiSupportIfAvailable(HWND hwnd) {
25 | HMODULE user32_module = LoadLibraryA("User32.dll");
26 | if (!user32_module) {
27 | return;
28 | }
29 | auto enable_non_client_dpi_scaling =
30 | reinterpret_cast(
31 | GetProcAddress(user32_module, "EnableNonClientDpiScaling"));
32 | if (enable_non_client_dpi_scaling != nullptr) {
33 | enable_non_client_dpi_scaling(hwnd);
34 | FreeLibrary(user32_module);
35 | }
36 | }
37 |
38 | } // namespace
39 |
40 | // Manages the Win32Window's window class registration.
41 | class WindowClassRegistrar {
42 | public:
43 | ~WindowClassRegistrar() = default;
44 |
45 | // Returns the singleton registar instance.
46 | static WindowClassRegistrar* GetInstance() {
47 | if (!instance_) {
48 | instance_ = new WindowClassRegistrar();
49 | }
50 | return instance_;
51 | }
52 |
53 | // Returns the name of the window class, registering the class if it hasn't
54 | // previously been registered.
55 | const wchar_t* GetWindowClass();
56 |
57 | // Unregisters the window class. Should only be called if there are no
58 | // instances of the window.
59 | void UnregisterWindowClass();
60 |
61 | private:
62 | WindowClassRegistrar() = default;
63 |
64 | static WindowClassRegistrar* instance_;
65 |
66 | bool class_registered_ = false;
67 | };
68 |
69 | WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr;
70 |
71 | const wchar_t* WindowClassRegistrar::GetWindowClass() {
72 | if (!class_registered_) {
73 | WNDCLASS window_class{};
74 | window_class.hCursor = LoadCursor(nullptr, IDC_ARROW);
75 | window_class.lpszClassName = kWindowClassName;
76 | window_class.style = CS_HREDRAW | CS_VREDRAW;
77 | window_class.cbClsExtra = 0;
78 | window_class.cbWndExtra = 0;
79 | window_class.hInstance = GetModuleHandle(nullptr);
80 | window_class.hIcon =
81 | LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON));
82 | window_class.hbrBackground = 0;
83 | window_class.lpszMenuName = nullptr;
84 | window_class.lpfnWndProc = Win32Window::WndProc;
85 | RegisterClass(&window_class);
86 | class_registered_ = true;
87 | }
88 | return kWindowClassName;
89 | }
90 |
91 | void WindowClassRegistrar::UnregisterWindowClass() {
92 | UnregisterClass(kWindowClassName, nullptr);
93 | class_registered_ = false;
94 | }
95 |
96 | Win32Window::Win32Window() {
97 | ++g_active_window_count;
98 | }
99 |
100 | Win32Window::~Win32Window() {
101 | --g_active_window_count;
102 | Destroy();
103 | }
104 |
105 | bool Win32Window::CreateAndShow(const std::wstring& title,
106 | const Point& origin,
107 | const Size& size) {
108 | Destroy();
109 |
110 | const wchar_t* window_class =
111 | WindowClassRegistrar::GetInstance()->GetWindowClass();
112 |
113 | const POINT target_point = {static_cast(origin.x),
114 | static_cast(origin.y)};
115 | HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST);
116 | UINT dpi = FlutterDesktopGetDpiForMonitor(monitor);
117 | double scale_factor = dpi / 96.0;
118 |
119 | HWND window = CreateWindow(
120 | window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE,
121 | Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),
122 | Scale(size.width, scale_factor), Scale(size.height, scale_factor),
123 | nullptr, nullptr, GetModuleHandle(nullptr), this);
124 |
125 | if (!window) {
126 | return false;
127 | }
128 |
129 | return OnCreate();
130 | }
131 |
132 | // static
133 | LRESULT CALLBACK Win32Window::WndProc(HWND const window,
134 | UINT const message,
135 | WPARAM const wparam,
136 | LPARAM const lparam) noexcept {
137 | if (message == WM_NCCREATE) {
138 | auto window_struct = reinterpret_cast(lparam);
139 | SetWindowLongPtr(window, GWLP_USERDATA,
140 | reinterpret_cast(window_struct->lpCreateParams));
141 |
142 | auto that = static_cast(window_struct->lpCreateParams);
143 | EnableFullDpiSupportIfAvailable(window);
144 | that->window_handle_ = window;
145 | } else if (Win32Window* that = GetThisFromHandle(window)) {
146 | return that->MessageHandler(window, message, wparam, lparam);
147 | }
148 |
149 | return DefWindowProc(window, message, wparam, lparam);
150 | }
151 |
152 | LRESULT
153 | Win32Window::MessageHandler(HWND hwnd,
154 | UINT const message,
155 | WPARAM const wparam,
156 | LPARAM const lparam) noexcept {
157 | switch (message) {
158 | case WM_DESTROY:
159 | window_handle_ = nullptr;
160 | Destroy();
161 | if (quit_on_close_) {
162 | PostQuitMessage(0);
163 | }
164 | return 0;
165 |
166 | case WM_DPICHANGED: {
167 | auto newRectSize = reinterpret_cast(lparam);
168 | LONG newWidth = newRectSize->right - newRectSize->left;
169 | LONG newHeight = newRectSize->bottom - newRectSize->top;
170 |
171 | SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,
172 | newHeight, SWP_NOZORDER | SWP_NOACTIVATE);
173 |
174 | return 0;
175 | }
176 | case WM_SIZE: {
177 | RECT rect = GetClientArea();
178 | if (child_content_ != nullptr) {
179 | // Size and position the child window.
180 | MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,
181 | rect.bottom - rect.top, TRUE);
182 | }
183 | return 0;
184 | }
185 |
186 | case WM_ACTIVATE:
187 | if (child_content_ != nullptr) {
188 | SetFocus(child_content_);
189 | }
190 | return 0;
191 | }
192 |
193 | return DefWindowProc(window_handle_, message, wparam, lparam);
194 | }
195 |
196 | void Win32Window::Destroy() {
197 | OnDestroy();
198 |
199 | if (window_handle_) {
200 | DestroyWindow(window_handle_);
201 | window_handle_ = nullptr;
202 | }
203 | if (g_active_window_count == 0) {
204 | WindowClassRegistrar::GetInstance()->UnregisterWindowClass();
205 | }
206 | }
207 |
208 | Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept {
209 | return reinterpret_cast(
210 | GetWindowLongPtr(window, GWLP_USERDATA));
211 | }
212 |
213 | void Win32Window::SetChildContent(HWND content) {
214 | child_content_ = content;
215 | SetParent(content, window_handle_);
216 | RECT frame = GetClientArea();
217 |
218 | MoveWindow(content, frame.left, frame.top, frame.right - frame.left,
219 | frame.bottom - frame.top, true);
220 |
221 | SetFocus(child_content_);
222 | }
223 |
224 | RECT Win32Window::GetClientArea() {
225 | RECT frame;
226 | GetClientRect(window_handle_, &frame);
227 | return frame;
228 | }
229 |
230 | HWND Win32Window::GetHandle() {
231 | return window_handle_;
232 | }
233 |
234 | void Win32Window::SetQuitOnClose(bool quit_on_close) {
235 | quit_on_close_ = quit_on_close;
236 | }
237 |
238 | bool Win32Window::OnCreate() {
239 | // No-op; provided for subclasses.
240 | return true;
241 | }
242 |
243 | void Win32Window::OnDestroy() {
244 | // No-op; provided for subclasses.
245 | }
246 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/cattogary/incomePiechart.dart:
--------------------------------------------------------------------------------
1 | // import 'package:flutter/material.dart';
2 | // ignore_for_file: invalid_use_of_protected_member, invalid_use_of_visible_for_testing_member
3 |
4 | import 'package:_save_karo/models/transaction/transcationDB.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:syncfusion_flutter_charts/charts.dart';
7 |
8 | import '../../../db/transcation/transactoin_db.dart';
9 | import '../../../models/catogary/categoryModel.dart';
10 | import '../../genaralItems/constentItems.dart';
11 | import 'forloop_Statitics.dart';
12 |
13 | class IncomeCatogary extends StatefulWidget {
14 | const IncomeCatogary({Key? key}) : super(key: key);
15 |
16 | @override
17 | State createState() => _CatogryOverViewState();
18 | }
19 |
20 | class _CatogryOverViewState extends State {
21 | late TooltipBehavior _tooltipBehavior;
22 | DateTime monthYear = DateTime.now();
23 | String popupItem = 'Monthly';
24 | @override
25 | void initState() {
26 | filteFuction();
27 | _tooltipBehavior = TooltipBehavior(enable: true);
28 | super.initState();
29 | }
30 |
31 | ValueNotifier> filterMonthNotification =
32 | ValueNotifier([]);
33 |
34 | ValueNotifier> filterYearNotification =
35 | ValueNotifier([]);
36 |
37 | ValueNotifier> filterDayNotification =
38 | ValueNotifier([]);
39 |
40 | @override
41 | Widget build(BuildContext context) {
42 | filteFuction();
43 | List dataIncome;
44 | popupItem == "Monthly"
45 | ? dataIncome = chartLogic(filterMonthNotification.value)
46 | : popupItem == "Yearly"
47 | ? dataIncome = chartLogic(filterYearNotification.value)
48 | : dataIncome = chartLogic(filterDayNotification.value);
49 | filteFuction();
50 |
51 | return Column(
52 | children: [
53 | Row(
54 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
55 | children: [
56 | popupItem == 'Day'
57 | ? Padding(
58 | padding: const EdgeInsets.all(10),
59 | child: Container(
60 | decoration: BoxDecoration(
61 | border:
62 | Border.all(width: 1, color: totelTextColure),
63 | borderRadius: BorderRadius.circular(5)),
64 | child: const Padding(
65 | padding: EdgeInsets.all(5),
66 | child: Text(
67 | " Today ",
68 | style: TextStyle(fontSize: 15),
69 | ),
70 | )),
71 | )
72 | : Row(
73 | children: [
74 | const SizedBox(
75 | width: .01,
76 | ),
77 | IconButton(
78 | splashRadius: 0.01,
79 | onPressed: () {
80 | setState(
81 | () {
82 | if (popupItem == 'Monthly') {
83 | monthYear = DateTime(
84 | monthYear.year, monthYear.month - 1);
85 | } else if (popupItem == 'Yearly') {
86 | monthYear = DateTime(
87 | monthYear.year - 1, monthYear.month);
88 | }
89 | },
90 | );
91 | filteFuction();
92 | },
93 | icon: const Icon(
94 | Icons.arrow_back_ios,
95 | // color: fontcolure,
96 | size: 15,
97 | ),
98 | visualDensity: const VisualDensity(horizontal: -4),
99 | ),
100 | Text(
101 | popupItem == 'Monthly'
102 | ? dateFormatterMonth.format(monthYear)
103 | : popupItem == "Yearly"
104 | ? monthYear.year.toString()
105 | : dateFormatterFull.format(monthYear),
106 | ),
107 | IconButton(
108 | splashRadius: .01,
109 | onPressed: () {
110 | setState(() {
111 | if (popupItem == "Day") {
112 | DateTime(monthYear.year, monthYear.day + 1);
113 | } else if (popupItem == 'Yearly') {
114 | monthYear = DateTime(
115 | monthYear.year + 1, monthYear.month);
116 | } else if (popupItem == 'Monthly') {
117 | monthYear = DateTime(
118 | monthYear.year, monthYear.month + 1);
119 | }
120 | });
121 | filteFuction();
122 | },
123 | icon: const Icon(
124 | Icons.arrow_forward_ios,
125 | size: 15,
126 | ),
127 | visualDensity: const VisualDensity(horizontal: -4)),
128 | ],
129 | ),
130 | PopupMenuButton(
131 | onSelected: (val) {
132 | if (val != null) {
133 | if (val == 'Monthly') {
134 | monthYear = DateTime.now();
135 | popupItem = val.toString();
136 | setState(() {});
137 | } else if (val == 'Yearly') {
138 | monthYear = DateTime.now();
139 | popupItem = val.toString();
140 | setState(() {});
141 | } else if (val == 'Day') {
142 | monthYear = DateTime.now();
143 | popupItem = val.toString();
144 | setState(() {});
145 | }
146 | }
147 | },
148 | initialValue: popupItem,
149 | itemBuilder: (context) => [
150 | const PopupMenuItem(
151 | value: 'Monthly',
152 | child: Text(
153 | 'Monthly',
154 | // textSize: 14
155 | ),
156 | ),
157 | const PopupMenuItem(
158 | value: 'Yearly',
159 | child: Text(
160 | 'Yearly',
161 | // textSize: 14
162 | ),
163 | ),
164 | const PopupMenuItem(
165 | value: 'Day',
166 | child: Text('Day'
167 | // textSize: 14
168 | ),
169 | ),
170 | ],
171 | child: Padding(
172 | padding: const EdgeInsets.only(right: 03),
173 | child: Container(
174 | padding: const EdgeInsets.symmetric(horizontal: 5),
175 | decoration: BoxDecoration(
176 | border: Border.all(color: fontcolure),
177 | borderRadius: BorderRadius.circular(5)),
178 | child: Row(
179 | children: [
180 | Text(
181 | popupItem,
182 | //textSize: 14
183 | ),
184 | const Icon(Icons.keyboard_arrow_down_outlined)
185 | ],
186 | ),
187 | ),
188 | ),
189 | )
190 | ],
191 | ),
192 | SfCircularChart(
193 | legend: Legend(
194 | isVisible: true, overflowMode: LegendItemOverflowMode.wrap),
195 | tooltipBehavior: _tooltipBehavior,
196 | series: [
197 | PieSeries(
198 | dataSource: dataIncome,
199 | xValueMapper: (ChartData datas, _) => datas.catogaryName,
200 | yValueMapper: (ChartData datas, _) => datas.amount)
201 | ],
202 | ),
203 | ],
204 | );
205 | }
206 |
207 | Future filteFuction() async {
208 | final list = await TranscationDb.instance.getAllTransactions();
209 | filterYearNotification.value.clear();
210 | filterMonthNotification.value.clear();
211 | filterDayNotification.value.clear();
212 | await Future.forEach(list, (TranscationModel obj) {
213 | if (obj.date.day == monthYear.day &&
214 | obj.catogaryModel.type == CatogaryType.icome) {
215 | filterDayNotification.value.add(obj);
216 | }
217 | if (obj.date.year == monthYear.year &&
218 | obj.catogaryModel.type == CatogaryType.icome) {
219 | filterYearNotification.value.add(obj);
220 | }
221 | if (obj.date.month == monthYear.month &&
222 | obj.catogaryModel.type == CatogaryType.icome) {
223 | filterMonthNotification.value.add(obj);
224 | }
225 | });
226 | filterDayNotification.notifyListeners();
227 | filterMonthNotification.notifyListeners();
228 | filterYearNotification.notifyListeners();
229 | }
230 | }
231 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/cattogary/expancePieChart.dart:
--------------------------------------------------------------------------------
1 | // import 'package:flutter/material.dart';
2 | // ignore_for_file: invalid_use_of_protected_member, invalid_use_of_visible_for_testing_member
3 |
4 | import 'package:_save_karo/screens/genaralItems/constentItems.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:syncfusion_flutter_charts/charts.dart';
7 |
8 | import '../../../db/transcation/transactoin_db.dart';
9 | import '../../../models/catogary/categoryModel.dart';
10 | import '../../../models/transaction/transcationDB.dart';
11 | import 'forloop_Statitics.dart';
12 |
13 | class ExapanceCatogary extends StatefulWidget {
14 | const ExapanceCatogary({Key? key}) : super(key: key);
15 |
16 | @override
17 | State createState() => _CatogryOverViewState();
18 | }
19 |
20 | class _CatogryOverViewState extends State {
21 | late TooltipBehavior _tooltipBehavior;
22 | DateTime monthYear = DateTime.now();
23 | String popupItem = 'Monthly';
24 |
25 | ValueNotifier> filterMonthNotification =
26 | ValueNotifier([]);
27 |
28 | ValueNotifier> filterYearNotification =
29 | ValueNotifier([]);
30 |
31 | ValueNotifier> filterDayNotification =
32 | ValueNotifier([]);
33 | @override
34 | void initState() {
35 | _tooltipBehavior = TooltipBehavior(enable: true);
36 | filteFuction();
37 | super.initState();
38 | }
39 |
40 | @override
41 | Widget build(BuildContext context) {
42 | filteFuction();
43 | List dataIncome;
44 | popupItem == "Monthly"
45 | ? dataIncome = chartLogic(filterMonthNotification.value)
46 | : popupItem == "Yearly"
47 | ? dataIncome = chartLogic(filterYearNotification.value)
48 | : dataIncome = chartLogic(filterDayNotification.value);
49 | filteFuction();
50 |
51 | return Column(
52 | children: [
53 | Row(
54 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
55 | children: [
56 | popupItem == 'Day'
57 | ? Padding(
58 | padding: const EdgeInsets.all(10),
59 | child: Container(
60 | decoration: BoxDecoration(
61 | border:
62 | Border.all(width: 1, color: totelTextColure),
63 | borderRadius: BorderRadius.circular(5)),
64 | child: const Padding(
65 | padding: EdgeInsets.all(5),
66 | child: Text(
67 | " Today ",
68 | style: TextStyle(fontSize: 15),
69 | ),
70 | )),
71 | )
72 | : Row(
73 | children: [
74 | const SizedBox(
75 | width: .01,
76 | ),
77 | IconButton(
78 | splashRadius: 0.01,
79 | onPressed: () {
80 | setState(
81 | () {
82 | if (popupItem == 'Monthly') {
83 | monthYear = DateTime(
84 | monthYear.year, monthYear.month - 1);
85 | } else if (popupItem == 'Yearly') {
86 | monthYear = DateTime(
87 | monthYear.year - 1, monthYear.month);
88 | }
89 | },
90 | );
91 | filteFuction();
92 | },
93 | icon: const Icon(
94 | Icons.arrow_back_ios,
95 | // color: fontcolure,
96 | size: 15,
97 | ),
98 | visualDensity: const VisualDensity(horizontal: -4),
99 | ),
100 | Text(
101 | popupItem == 'Monthly'
102 | ? dateFormatterMonth.format(monthYear)
103 | : popupItem == "Yearly"
104 | ? monthYear.year.toString()
105 | : dateFormatterFull.format(monthYear),
106 | ),
107 | IconButton(
108 | splashRadius: .01,
109 | onPressed: () {
110 | setState(() {
111 | if (popupItem == "Day") {
112 | DateTime(monthYear.year, monthYear.day + 1);
113 | } else if (popupItem == 'Yearly') {
114 | monthYear = DateTime(
115 | monthYear.year + 1, monthYear.month);
116 | } else if (popupItem == 'Monthly') {
117 | monthYear = DateTime(
118 | monthYear.year, monthYear.month + 1);
119 | }
120 | });
121 | filteFuction();
122 | },
123 | icon: const Icon(
124 | Icons.arrow_forward_ios,
125 | size: 15,
126 | ),
127 | visualDensity: const VisualDensity(horizontal: -4)),
128 | ],
129 | ),
130 | PopupMenuButton(
131 | onSelected: (val) {
132 | if (val != null) {
133 | if (val == 'Monthly') {
134 | monthYear = DateTime.now();
135 | popupItem = val.toString();
136 | setState(() {});
137 | } else if (val == 'Yearly') {
138 | monthYear = DateTime.now();
139 | popupItem = val.toString();
140 | setState(() {});
141 | } else if (val == 'Day') {
142 | monthYear = DateTime.now();
143 | popupItem = val.toString();
144 | setState(() {});
145 | }
146 | }
147 | },
148 | initialValue: popupItem,
149 | itemBuilder: (context) => [
150 | const PopupMenuItem(
151 | value: 'Monthly',
152 | child: Text(
153 | 'Monthly',
154 | // textSize: 14
155 | ),
156 | ),
157 | const PopupMenuItem(
158 | value: 'Yearly',
159 | child: Text(
160 | 'Yearly',
161 | // textSize: 14
162 | ),
163 | ),
164 | const PopupMenuItem(
165 | value: 'Day',
166 | child: Text('Day'
167 | // textSize: 14
168 | ),
169 | ),
170 | ],
171 | child: Padding(
172 | padding: const EdgeInsets.only(right: 03),
173 | child: Container(
174 | padding: const EdgeInsets.symmetric(horizontal: 5),
175 | decoration: BoxDecoration(
176 | border: Border.all(color: fontcolure),
177 | borderRadius: BorderRadius.circular(5)),
178 | child: Row(
179 | children: [
180 | Text(
181 | popupItem,
182 | //textSize: 14
183 | ),
184 | const Icon(Icons.keyboard_arrow_down_outlined)
185 | ],
186 | ),
187 | ),
188 | ),
189 | )
190 | ],
191 | ),
192 | SfCircularChart(
193 | legend: Legend(
194 | isVisible: true, overflowMode: LegendItemOverflowMode.wrap),
195 | tooltipBehavior: _tooltipBehavior,
196 | series: [
197 | PieSeries(
198 | dataSource: dataIncome,
199 | xValueMapper: (ChartData datas, _) => datas.catogaryName,
200 | yValueMapper: (ChartData datas, _) => datas.amount)
201 | ],
202 | ),
203 | ],
204 | );
205 | }
206 |
207 | Future filteFuction() async {
208 | final list = await TranscationDb.instance.getAllTransactions();
209 | filterYearNotification.value.clear();
210 | filterMonthNotification.value.clear();
211 | filterDayNotification.value.clear();
212 | await Future.forEach(list, (TranscationModel obj) {
213 | if (obj.date.day == monthYear.day &&
214 | obj.catogaryModel.type == CatogaryType.expence) {
215 | filterDayNotification.value.add(obj);
216 | }
217 | if (obj.date.year == monthYear.year &&
218 | obj.catogaryModel.type == CatogaryType.expence) {
219 | filterYearNotification.value.add(obj);
220 | }
221 | if (obj.date.month == monthYear.month &&
222 | obj.catogaryModel.type == CatogaryType.expence) {
223 | filterMonthNotification.value.add(obj);
224 | }
225 | });
226 | filterDayNotification.notifyListeners();
227 | filterMonthNotification.notifyListeners();
228 | filterYearNotification.notifyListeners();
229 | }
230 | }
231 |
--------------------------------------------------------------------------------
/lib/screens/working_Pages/settingsPage.dart:
--------------------------------------------------------------------------------
1 | // ignore: file_names
2 | // ignore_for_file: deprecated_member_use
3 |
4 | import 'package:_save_karo/db/transcation/transactoin_db.dart';
5 | import 'package:_save_karo/screens/extra_Pages/notification.dart';
6 | import 'package:_save_karo/screens/genaralItems/constentItems.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:load_switch/load_switch.dart';
9 | import 'package:share_plus/share_plus.dart';
10 | import 'package:url_launcher/url_launcher.dart';
11 |
12 | class SettingPage extends StatefulWidget {
13 | const SettingPage({Key? key}) : super(key: key);
14 |
15 | @override
16 | State createState() => _SettingPageState();
17 | }
18 |
19 | class _SettingPageState extends State {
20 | bool value = true;
21 | Future _getFuture() async {
22 | await Future.delayed(const Duration(seconds: 1));
23 | return !value;
24 | }
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return Scaffold(
29 | body: SafeArea(
30 | child: Column(
31 | children: [
32 | Container(
33 | height: 60,
34 | width: 400,
35 | decoration: const BoxDecoration(
36 | border: Border(
37 | bottom: BorderSide(
38 | width: 1, color: Color.fromRGBO(0, 0, 0, 70))),
39 | color: backroundColure),
40 | child: const Card(
41 | elevation: 2,
42 | child: ListTile(
43 | title: Text(
44 | "Settings Page",
45 | style: TextStyle(
46 | fontFamily: fontFamilyCustome,
47 | fontWeight: FontWeight.bold,
48 | fontSize: 18,
49 | color: fontcolure),
50 | ),
51 | ),
52 | )),
53 | Padding(
54 | padding: const EdgeInsets.all(20.0),
55 | child: Column(
56 | children: [
57 | Row(
58 | children: [
59 | const SizedBox(
60 | width: 16,
61 | ),
62 | const Icon(
63 | Icons.notifications_active,
64 | color: IconsColure,
65 | ),
66 | const SizedBox(
67 | width: 32,
68 | ),
69 | const Text(
70 | "Notification",
71 | style: SettingsTextStyle,
72 | ),
73 | const SizedBox(
74 | width: 145,
75 | ),
76 | LoadSwitch(
77 | width: 40.0,
78 | height: 20.0,
79 | trueColor: IconsColure,
80 | falseColor: backroundUnselectedColur,
81 | spinColor: const Color.fromRGBO(0, 0, 0, 55),
82 | value: value,
83 | future: _getFuture,
84 | onChange: (v) {
85 | value = v;
86 |
87 | setState(() {});
88 | },
89 | onTap: (v) {
90 | NotificationService().cancellAllNotification();
91 | },
92 | ),
93 | ],
94 | ),
95 | const SizedBox(
96 | height: 12,
97 | ),
98 | GestureDetector(
99 | onTap: () {
100 | showConfrom(context);
101 | },
102 | child: const ListTile(
103 | title: Text(
104 | "Reset Everything",
105 | style: SettingsTextStyle,
106 | ),
107 | leading: Icon(
108 | Icons.cleaning_services_sharp,
109 | color: IconsColure,
110 | )),
111 | ),
112 | GestureDetector(
113 | onTap: () {
114 | onshare(context);
115 | },
116 | child: const ListTile(
117 | title: Text(
118 | "Share",
119 | style: SettingsTextStyle,
120 | ),
121 | leading: Icon(
122 | Icons.share,
123 | color: IconsColure,
124 | )),
125 | ),
126 | GestureDetector(
127 | onTap: () {
128 | gottoplaystore();
129 | },
130 | child: const ListTile(
131 | title: Text(
132 | "Write A Reveiew",
133 | style: SettingsTextStyle,
134 | ),
135 | leading: Icon(
136 | Icons.rate_review_rounded,
137 | color: IconsColure,
138 | )),
139 | ),
140 | GestureDetector(
141 | onTap: () {
142 | _launcher();
143 | },
144 | child: const ListTile(
145 | title: Text(
146 | "FeedBack ",
147 | style: SettingsTextStyle,
148 | ),
149 | leading: Icon(
150 | Icons.feedback_rounded,
151 | color: IconsColure,
152 | )),
153 | ),
154 | GestureDetector(
155 | onTap: () {
156 | _gotoweb();
157 | },
158 | child: const ListTile(
159 | title: Text("About Us", style: SettingsTextStyle),
160 | leading: Icon(
161 | Icons.perm_device_information_rounded,
162 | color: IconsColure,
163 | )),
164 | ),
165 | ],
166 | ),
167 | ),
168 | ],
169 | ),
170 | ),
171 | );
172 | }
173 |
174 | Future gottoplaystore() async {
175 | if (await launch(
176 | 'https://play.google.com/store/apps/details?id=com.fouvty.grasshopper')) {
177 | throw "Try Again";
178 | }
179 | }
180 |
181 | submited() {
182 | {
183 | final snackBar = SnackBar(
184 | duration: const Duration(seconds: 2),
185 | backgroundColor: backroundColure,
186 | content: const Text('Reset Completed',
187 | style: TextStyle(fontSize: 15, fontFamily: fontFamilyCustome)),
188 | action: SnackBarAction(
189 | label: 'Ok',
190 | textColor: backroundUnselectedColur,
191 | onPressed: () {
192 | // Some code to undo the change.
193 | },
194 | ),
195 | );
196 |
197 | ScaffoldMessenger.of(context).showSnackBar(snackBar);
198 | }
199 | }
200 |
201 | Future showConfrom(context) async {
202 | return showDialog(
203 | context: context,
204 | barrierDismissible: false, // user must tap button!mvaskgit
205 | builder: (BuildContext context) {
206 | return AlertDialog(
207 | title: const Text(
208 | 'Reset Everything',
209 | style: genaralTextStyle,
210 | ),
211 | content: SingleChildScrollView(
212 | child: Column(
213 | children: const [
214 | Text(
215 | 'Are you sure want to clear all your data',
216 | style: genaralTextStyle,
217 | ),
218 | ],
219 | ),
220 | ),
221 | actions: [
222 | TextButton(
223 | child: const Text(
224 | 'Confirm',
225 | style: TextStyle(
226 | color: expenseTextColure, fontFamily: fontFamilyCustome),
227 | ),
228 | onPressed: () {
229 | TranscationDb.instance.deleteall();
230 | submited();
231 |
232 | Navigator.of(context).pop();
233 | },
234 | ),
235 | TextButton(
236 | child: const Text(
237 | 'Cancel',
238 | style: TextStyle(
239 | color: totelTextColure, fontFamily: fontFamilyCustome),
240 | ),
241 | onPressed: () {
242 | Navigator.of(context).pop();
243 | },
244 | ),
245 | ],
246 | );
247 | },
248 | );
249 | }
250 |
251 | Future _launcher() async {
252 | if (await launch('mailto:harshadodakkal@gmail.com')) {
253 | throw "Try Again";
254 | }
255 | }
256 |
257 | Future _gotoweb() async {
258 | if (await launch('https://harshadok.github.io/myPersonal/')) {
259 | throw "Try Again";
260 | }
261 | }
262 |
263 | Future onshare(con) async {
264 | final box = context.findRenderObject() as RenderBox?;
265 | await Share.share(
266 | "Grasshopper: Money Assistant \n Click Here To Download The Application :https://play.google.com/store/apps/details?id=com.fouvty.grasshopper",
267 | subject: "subject",
268 | sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
269 | );
270 | }
271 | }
272 | //random text deelt at eny time
273 |
--------------------------------------------------------------------------------