├── .gitignore ├── .metadata ├── LICENSE ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── expense_app │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ └── ic_launcher.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ ├── ic_launcher_adaptive_fore.png │ │ │ └── launch_image.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ ├── ic_launcher_adaptive_fore.png │ │ │ └── launch_image.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ ├── ic_launcher_adaptive_fore.png │ │ │ └── launch_image.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ ├── ic_launcher_adaptive_fore.png │ │ │ └── launch_image.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ ├── ic_launcher_adaptive_fore.png │ │ │ └── launch_image.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── fonts │ ├── OFL.txt │ ├── OpenSans-Bold.ttf │ ├── OpenSans-Regular.ttf │ ├── Poppins-Bold.ttf │ ├── Poppins-Light.ttf │ ├── Poppins-Medium.ttf │ └── Poppins-Regular.ttf └── images │ ├── ankan.jpeg │ ├── app_icon.png │ └── wallet.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── 1024.png │ │ ├── 114.png │ │ ├── 120.png │ │ ├── 180.png │ │ ├── 29.png │ │ ├── 40.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 60.png │ │ ├── 80.png │ │ ├── 87.png │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── blocs │ ├── app_bloc_observer.dart │ ├── app_blocs.dart │ ├── google_ads │ │ ├── googleads_cubit.dart │ │ └── googleads_state.dart │ ├── search_cubit │ │ ├── search_cubit.dart │ │ └── search_state.dart │ ├── theme_cubit │ │ ├── theme_cubit.dart │ │ └── theme_state.dart │ └── transactions │ │ ├── transactions_bloc.dart │ │ ├── transactions_event.dart │ │ └── transactions_state.dart ├── extensions │ ├── currency_extension.dart │ └── extensions.dart ├── main.dart ├── models │ ├── models.dart │ └── transaction.dart ├── repositories │ ├── repositories.dart │ ├── theme_repository.dart │ └── transactions_repository.dart ├── screens │ ├── about.dart │ ├── change_theme.dart │ ├── details.dart │ ├── developer.dart │ ├── home.dart │ ├── screens.dart │ ├── search.dart │ └── settings.dart └── widgets │ ├── banner_ad.dart │ ├── details_title.dart │ ├── dev_link.dart │ ├── new_transaction.dart │ ├── rounded_image.dart │ ├── select_color_card.dart │ ├── settings_card.dart │ ├── transaction_item.dart │ ├── transaction_list.dart │ ├── week_bar_chart.dart │ ├── week_pie_chart.dart │ └── widgets.dart ├── pubspec.lock ├── pubspec.yaml └── screenshots ├── icon.png ├── ss1.png ├── ss2.png ├── ss3.png ├── ss4.png ├── ss5.png ├── ss6.png ├── ss7.png └── ss8.png /.gitignore: -------------------------------------------------------------------------------- 1 | key.properties 2 | 3 | # Ads IDs 4 | ad_ids.dart 5 | 6 | # Miscellaneous 7 | *.class 8 | *.log 9 | *.pyc 10 | *.swp 11 | .DS_Store 12 | .atom/ 13 | .buildlog/ 14 | .history 15 | .svn/ 16 | .vscode 17 | 18 | # IntelliJ related 19 | *.iml 20 | *.ipr 21 | *.iws 22 | .idea/ 23 | 24 | # The .vscode folder contains launch configuration and tasks you configure in 25 | # VS Code which you may wish to be included in version control, so this line 26 | # is commented out by default. 27 | #.vscode/ 28 | 29 | # Flutter/Dart/Pub related 30 | **/doc/api/ 31 | **/ios/Flutter/.last_build_id 32 | .dart_tool/ 33 | .flutter-plugins 34 | .flutter-plugins-dependencies 35 | .packages 36 | .pub-cache/ 37 | .pub/ 38 | /build/ 39 | 40 | # Web related 41 | lib/generated_plugin_registrant.dart 42 | 43 | # Symbolication related 44 | app.*.symbols 45 | 46 | # Obfuscation related 47 | app.*.map.json 48 | 49 | # Exceptions to above rules. 50 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 51 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 2ae34518b87dd891355ed6c6ea8cb68c4d52bb9d 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Expense Tracker 4 | 5 | A Flutter App with which you can track your daily expenditures. 6 | It shows a Real-Time Weekly Bar Graph of the tracked Expenditures. 7 | You can also delete an added expenditure. 8 | 9 | # Run The App on Your Android Device Now 10 | 11 |

12 | Get it on Google Play 13 |

14 | 15 | ## Details 16 | 17 | • [BLOC](https://github.com/felangel/bloc/tree/master/packages/flutter_bloc) for State Management 18 | 19 | • [FL_Chart](https://pub.dev/packages/fl_chart) for Bar and Pie Chart 20 | 21 | • [Google AdMob](https://admob.google.com/) for showing Banner Ads 22 | 23 | • [sqflite](https://pub.dev/packages/sqflite) for database operations 24 | 25 | ## Screenshots 26 | 27 | 28 | 29 | ### Track your expenses. See Weekly Bar Graph and Pie Chart. Made with Flutter. 30 | 31 | • Private – No Tracking. All your expenses data remains on your phone. If you uninstall the app the data is automatically deleted. 32 | 33 | • Simple – Easy to add, update, search and delete all your expenses. 34 | 35 | • Add Pictures – Add pictures of bills to keep track of your spendings. 36 | 37 | • Open Source – Expense Tracker is a completely open source app made by a single developer from scratch. 38 | 39 | 40 | Disclaimer: 41 | This app is purely made for learning purposes. Please treat it as such. 42 | 43 | 44 | For support, questions, or more information, please mail: contact@ankan.dev 45 | 46 | Checkout my site ([ankan.dev](https://ankan.dev)) or follow me on ([Twitter](https://twitter.com/ankan_sikdar)) and ([Instagram](https://www.instagram.com/ankan_sikdar)) for any updates. 47 | 48 | ## Legal Things 49 | 50 | ### Privacy Policy 51 | 52 | [Click here to read the privacy policy](https://expense-tracker-privacy.web.app/). 53 | 54 | ### License 55 | 56 | Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html 57 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | 28 | def keystoreProperties = new Properties() 29 | def keystorePropertiesFile = rootProject.file('key.properties') 30 | if (keystorePropertiesFile.exists()) { 31 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 32 | } 33 | 34 | android { 35 | compileSdkVersion 30 36 | 37 | sourceSets { 38 | main.java.srcDirs += 'src/main/kotlin' 39 | } 40 | 41 | lintOptions { 42 | disable 'InvalidPackage' 43 | } 44 | 45 | defaultConfig { 46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 47 | applicationId "dev.ankan.expense_app" 48 | minSdkVersion 21 49 | targetSdkVersion 30 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | signingConfigs { 55 | release { 56 | keyAlias keystoreProperties['keyAlias'] 57 | keyPassword keystoreProperties['keyPassword'] 58 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 59 | storePassword keystoreProperties['storePassword'] 60 | } 61 | } 62 | 63 | buildTypes { 64 | release { 65 | // Signing with the debug keys for now, so `flutter run --release` works. 66 | // Debug Config 67 | // signingConfig signingConfigs.debug 68 | // Release Config 69 | signingConfig signingConfigs.release 70 | } 71 | } 72 | } 73 | 74 | flutter { 75 | source '../..' 76 | } 77 | 78 | dependencies { 79 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 80 | } 81 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 37 | 41 | 45 | 50 | 54 | 55 | 56 | 57 | 58 | 59 | 61 | 64 | 65 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/expense_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package dev.ankan.expense_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launch_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-hdpi/launch_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launch_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-mdpi/launch_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launch_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xhdpi/launch_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launch_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxhdpi/launch_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launch_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/android/app/src/main/res/mipmap-xxxhdpi/launch_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.5.30' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 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 | 33 | rootProject.allprojects { 34 | 35 | subprojects { 36 | project.configurations.all { 37 | resolutionStrategy.eachDependency { details -> 38 | if (details.requested.group == 'com.github.bumptech.glide' 39 | && details.requested.name.contains('glide')) { 40 | details.useVersion '4.11.0' 41 | } 42 | } 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /assets/fonts/OFL.txt: -------------------------------------------------------------------------------- 1 | Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) 2 | 3 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 4 | This license is copied below, and is also available with a FAQ at: 5 | http://scripts.sil.org/OFL 6 | 7 | 8 | ----------------------------------------------------------- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | ----------------------------------------------------------- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide 14 | development of collaborative font projects, to support the font creation 15 | efforts of academic and linguistic communities, and to provide a free and 16 | open framework in which fonts may be shared and improved in partnership 17 | with others. 18 | 19 | The OFL allows the licensed fonts to be used, studied, modified and 20 | redistributed freely as long as they are not sold by themselves. The 21 | fonts, including any derivative works, can be bundled, embedded, 22 | redistributed and/or sold with any software provided that any reserved 23 | names are not used by derivative works. The fonts and derivatives, 24 | however, cannot be released under any other type of license. The 25 | requirement for fonts to remain under this license does not apply 26 | to any document created using the fonts or their derivatives. 27 | 28 | DEFINITIONS 29 | "Font Software" refers to the set of files released by the Copyright 30 | Holder(s) under this license and clearly marked as such. This may 31 | include source files, build scripts and documentation. 32 | 33 | "Reserved Font Name" refers to any names specified as such after the 34 | copyright statement(s). 35 | 36 | "Original Version" refers to the collection of Font Software components as 37 | distributed by the Copyright Holder(s). 38 | 39 | "Modified Version" refers to any derivative made by adding to, deleting, 40 | or substituting -- in part or in whole -- any of the components of the 41 | Original Version, by changing formats or by porting the Font Software to a 42 | new environment. 43 | 44 | "Author" refers to any designer, engineer, programmer, technical 45 | writer or other person who contributed to the Font Software. 46 | 47 | PERMISSION & CONDITIONS 48 | Permission is hereby granted, free of charge, to any person obtaining 49 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 50 | redistribute, and sell modified and unmodified copies of the Font 51 | Software, subject to the following conditions: 52 | 53 | 1) Neither the Font Software nor any of its individual components, 54 | in Original or Modified Versions, may be sold by itself. 55 | 56 | 2) Original or Modified Versions of the Font Software may be bundled, 57 | redistributed and/or sold with any software, provided that each copy 58 | contains the above copyright notice and this license. These can be 59 | included either as stand-alone text files, human-readable headers or 60 | in the appropriate machine-readable metadata fields within text or 61 | binary files as long as those fields can be easily viewed by the user. 62 | 63 | 3) No Modified Version of the Font Software may use the Reserved Font 64 | Name(s) unless explicit written permission is granted by the corresponding 65 | Copyright Holder. This restriction only applies to the primary font name as 66 | presented to the users. 67 | 68 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 69 | Software shall not be used to promote, endorse or advertise any 70 | Modified Version, except to acknowledge the contribution(s) of the 71 | Copyright Holder(s) and the Author(s) or with their explicit written 72 | permission. 73 | 74 | 5) The Font Software, modified or unmodified, in part or in whole, 75 | must be distributed entirely under this license, and must not be 76 | distributed under any other license. The requirement for fonts to 77 | remain under this license does not apply to any document created 78 | using the Font Software. 79 | 80 | TERMINATION 81 | This license becomes null and void if any of the above conditions are 82 | not met. 83 | 84 | DISCLAIMER 85 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 86 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 87 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 88 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 89 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 90 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 91 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 92 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 93 | OTHER DEALINGS IN THE FONT SOFTWARE. 94 | -------------------------------------------------------------------------------- /assets/fonts/OpenSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/fonts/OpenSans-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/fonts/Poppins-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/fonts/Poppins-Light.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/fonts/Poppins-Medium.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/fonts/Poppins-Regular.ttf -------------------------------------------------------------------------------- /assets/images/ankan.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/images/ankan.jpeg -------------------------------------------------------------------------------- /assets/images/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/images/app_icon.png -------------------------------------------------------------------------------- /assets/images/wallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/assets/images/wallet.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.expenseApp; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.expenseApp; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.expenseApp; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.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/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /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"}]} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | expense_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/blocs/app_bloc_observer.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | 3 | //* For debugging purpose 4 | class AppBlocObserver extends BlocObserver { 5 | @override 6 | void onEvent(Bloc bloc, Object event) { 7 | super.onEvent(bloc, event); 8 | print('\nEvent: $event\n'); 9 | } 10 | 11 | @override 12 | void onError(BlocBase bloc, Object error, StackTrace stackTrace) { 13 | print('\nError: $error\n'); 14 | super.onError(bloc, error, stackTrace); 15 | } 16 | 17 | @override 18 | void onChange(BlocBase bloc, Change change) { 19 | super.onChange(bloc, change); 20 | print('\nChange: $change\n'); 21 | } 22 | 23 | @override 24 | void onTransition(Bloc bloc, Transition transition) { 25 | super.onTransition(bloc, transition); 26 | print('\nTransition: $transition\n'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/blocs/app_blocs.dart: -------------------------------------------------------------------------------- 1 | export 'app_bloc_observer.dart'; 2 | export 'transactions/transactions_bloc.dart'; 3 | export 'search_cubit/search_cubit.dart'; 4 | export 'google_ads/googleads_cubit.dart'; 5 | export 'theme_cubit/theme_cubit.dart'; 6 | -------------------------------------------------------------------------------- /lib/blocs/google_ads/googleads_cubit.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | import 'package:equatable/equatable.dart'; 3 | import 'package:flutter/foundation.dart'; 4 | import 'package:google_mobile_ads/google_mobile_ads.dart'; 5 | import 'ad_ids.dart'; 6 | 7 | part 'googleads_state.dart'; 8 | 9 | class GoogleAdsCubit extends Cubit { 10 | GoogleAdsCubit() : super(GoogleAdsState.initial()) { 11 | getBannerAd(); 12 | } 13 | 14 | Future getBannerAd() async { 15 | emit(state.copyWith(status: AdsStatus.loading)); 16 | try { 17 | await state.adsState; 18 | emit(state.copyWith(status: AdsStatus.loaded)); 19 | } catch (e) { 20 | // * Getting Ready for Release 21 | // print('AdLoad Failed'); 22 | emit(state.copyWith(status: AdsStatus.error)); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/blocs/google_ads/googleads_state.dart: -------------------------------------------------------------------------------- 1 | part of 'googleads_cubit.dart'; 2 | 3 | enum AdsStatus { 4 | initial, 5 | loading, 6 | loaded, 7 | error, 8 | } 9 | 10 | class GoogleAdsState extends Equatable { 11 | final Future adsState; 12 | final AdsStatus status; 13 | 14 | final _bannerAdListener = BannerAdListener( 15 | // Called when an ad is successfully received. 16 | onAdLoaded: (Ad ad) { 17 | // * Getting Ready for Release 18 | // print('Ad loaded.'); 19 | }, 20 | // Called when an ad request failed. 21 | onAdFailedToLoad: (Ad ad, LoadAdError error) { 22 | // Dispose the ad here to free resources. 23 | ad.dispose(); 24 | // * Getting Ready for Release 25 | // print('Ad failed to load: $error'); 26 | }, 27 | 28 | // * Getting Ready for Release 29 | // Called when an ad opens an overlay that covers the screen. 30 | // onAdOpened: (Ad ad) { 31 | // print('Ad opened.'); 32 | // }, 33 | // Called when an ad removes an overlay that covers the screen. 34 | // onAdClosed: (Ad ad) => print('Ad closed.'), 35 | // Called when an impression occurs on the ad. 36 | // onAdImpression: (Ad ad) => print('Ad impression.'), 37 | ); 38 | 39 | BannerAd createBannerAd() { 40 | return BannerAd( 41 | size: AdSize.banner, 42 | adUnitId: AdIds.bannerAdUnitId, 43 | request: AdRequest(), 44 | listener: _bannerAdListener, 45 | ); 46 | } 47 | 48 | GoogleAdsState({ 49 | @required this.adsState, 50 | @required this.status, 51 | }); 52 | 53 | factory GoogleAdsState.initial() { 54 | return GoogleAdsState( 55 | adsState: MobileAds.instance.initialize(), 56 | status: AdsStatus.initial, 57 | ); 58 | } 59 | 60 | @override 61 | List get props => [adsState, status]; 62 | 63 | GoogleAdsState copyWith({ 64 | Future adsState, 65 | AdsStatus status, 66 | BannerAd bannerAd, 67 | }) { 68 | return GoogleAdsState( 69 | adsState: adsState ?? this.adsState, 70 | status: status ?? this.status, 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/blocs/search_cubit/search_cubit.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | import 'package:equatable/equatable.dart'; 3 | import 'package:expense_app/models/models.dart'; 4 | import 'package:expense_app/repositories/repositories.dart'; 5 | import 'package:flutter/cupertino.dart'; 6 | 7 | part 'search_state.dart'; 8 | 9 | class SearchCubit extends Cubit { 10 | final TransactionsRepository _transactionsRepository; 11 | 12 | SearchCubit({@required TransactionsRepository transactionsRepository}) 13 | : _transactionsRepository = transactionsRepository, 14 | super(SearchState.initial()); 15 | 16 | void loadAll() async { 17 | try { 18 | final transactions = await _transactionsRepository.getAllTransactions(); 19 | emit(state.copyWith( 20 | transactions: transactions, status: SearchStatus.loaded)); 21 | } catch (e) { 22 | emit(state.copyWith(status: SearchStatus.error, error: e)); 23 | } 24 | } 25 | 26 | void search(String keyword) async { 27 | if (keyword.isEmpty) { 28 | emit(state.copyWith(status: SearchStatus.searching)); 29 | loadAll(); 30 | return; 31 | } 32 | 33 | try { 34 | final list = 35 | await _transactionsRepository.filterTransactions(keyword: keyword); 36 | emit(state.copyWith(status: SearchStatus.loaded, transactions: list)); 37 | } catch (e) { 38 | emit(state.copyWith(status: SearchStatus.error, error: e)); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/blocs/search_cubit/search_state.dart: -------------------------------------------------------------------------------- 1 | part of 'search_cubit.dart'; 2 | 3 | enum SearchStatus { 4 | initial, 5 | searching, 6 | loaded, 7 | error, 8 | } 9 | 10 | class SearchState extends Equatable { 11 | SearchState( 12 | {@required this.transactions, 13 | @required this.status, 14 | @required this.error}); 15 | 16 | final List transactions; 17 | final SearchStatus status; 18 | final String error; 19 | 20 | factory SearchState.initial() { 21 | return SearchState( 22 | transactions: [], status: SearchStatus.initial, error: ''); 23 | } 24 | 25 | @override 26 | List get props => [transactions, status, error]; 27 | 28 | SearchState copyWith({ 29 | List transactions, 30 | SearchStatus status, 31 | String error, 32 | }) { 33 | return SearchState( 34 | transactions: transactions ?? this.transactions, 35 | status: status ?? this.status, 36 | error: error ?? this.error, 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/blocs/theme_cubit/theme_cubit.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | import 'package:equatable/equatable.dart'; 3 | import 'package:flutter/foundation.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:shared_preferences/shared_preferences.dart'; 6 | 7 | part 'theme_state.dart'; 8 | 9 | class ThemeCubit extends Cubit { 10 | final SharedPreferences _preferences; 11 | 12 | ThemeCubit({@required SharedPreferences preferences}) 13 | : _preferences = preferences, 14 | super(ThemeState.initial()) { 15 | loadThemeIfPresent(); 16 | } 17 | 18 | void toRed() { 19 | emit( 20 | state.copyWith( 21 | color: ThemeColor.red, 22 | theme: redTheme, 23 | ), 24 | ); 25 | saveTheme(ThemeColor.red); 26 | } 27 | 28 | void toPurple() { 29 | emit( 30 | state.copyWith( 31 | color: ThemeColor.purple, 32 | theme: purpleTheme, 33 | ), 34 | ); 35 | saveTheme(ThemeColor.purple); 36 | } 37 | 38 | void toBlue() { 39 | emit( 40 | state.copyWith( 41 | color: ThemeColor.blue, 42 | theme: blueTheme, 43 | ), 44 | ); 45 | saveTheme(ThemeColor.blue); 46 | } 47 | 48 | void toGreen() { 49 | emit( 50 | state.copyWith( 51 | color: ThemeColor.green, 52 | theme: greenTheme, 53 | ), 54 | ); 55 | saveTheme(ThemeColor.green); 56 | } 57 | 58 | void loadThemeIfPresent() { 59 | final savedTheme = _preferences.getString('theme'); 60 | if (savedTheme != null) { 61 | ThemeColor color = ThemeColor.values 62 | .firstWhere((element) => element.toString() == savedTheme); 63 | switch (color) { 64 | case ThemeColor.blue: 65 | toBlue(); 66 | break; 67 | case ThemeColor.purple: 68 | toPurple(); 69 | break; 70 | case ThemeColor.green: 71 | toGreen(); 72 | break; 73 | case ThemeColor.red: 74 | toRed(); 75 | } 76 | } 77 | } 78 | 79 | void saveTheme(ThemeColor color) { 80 | _preferences.setString( 81 | 'theme', 82 | color.toString(), 83 | ); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /lib/blocs/theme_cubit/theme_state.dart: -------------------------------------------------------------------------------- 1 | part of 'theme_cubit.dart'; 2 | 3 | enum ThemeColor { 4 | red, 5 | purple, 6 | blue, 7 | green, 8 | } 9 | 10 | final appBarTheme = AppBarTheme( 11 | textTheme: ThemeData.light().textTheme.copyWith( 12 | headline6: TextStyle( 13 | fontFamily: 'Poppins', 14 | fontWeight: FontWeight.bold, 15 | fontSize: 20, 16 | ), 17 | ), 18 | ); 19 | 20 | final purpleTheme = ThemeData( 21 | primarySwatch: Colors.purple, 22 | accentColor: Colors.amber, 23 | fontFamily: 'Poppins', 24 | appBarTheme: appBarTheme, 25 | ); 26 | 27 | final greenTheme = ThemeData( 28 | primarySwatch: Colors.green, 29 | accentColor: Colors.amber, 30 | fontFamily: 'Poppins', 31 | appBarTheme: appBarTheme, 32 | ); 33 | 34 | final redTheme = ThemeData( 35 | primarySwatch: Colors.red, 36 | accentColor: Colors.grey[350], 37 | fontFamily: 'Poppins', 38 | appBarTheme: appBarTheme, 39 | ); 40 | 41 | final blueTheme = ThemeData( 42 | primarySwatch: Colors.blue, 43 | accentColor: Colors.blueGrey.shade200, 44 | fontFamily: 'Poppins', 45 | appBarTheme: appBarTheme, 46 | ); 47 | 48 | class ThemeState extends Equatable { 49 | final ThemeColor color; 50 | final ThemeData theme; 51 | 52 | ThemeState({ 53 | @required this.color, 54 | @required this.theme, 55 | }); 56 | 57 | factory ThemeState.initial() { 58 | return ThemeState(color: ThemeColor.green, theme: greenTheme); 59 | } 60 | 61 | @override 62 | List get props => [color, theme]; 63 | 64 | ThemeState copyWith({ 65 | ThemeColor color, 66 | ThemeData theme, 67 | }) { 68 | return ThemeState( 69 | color: color ?? this.color, 70 | theme: theme ?? this.theme, 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/blocs/transactions/transactions_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | import 'package:equatable/equatable.dart'; 3 | import 'package:expense_app/models/models.dart'; 4 | import 'package:expense_app/repositories/repositories.dart'; 5 | import 'package:meta/meta.dart'; 6 | 7 | part 'transactions_event.dart'; 8 | part 'transactions_state.dart'; 9 | 10 | class TransactionsBloc extends Bloc { 11 | final TransactionsRepository _transactionsRepository; 12 | 13 | TransactionsBloc({@required TransactionsRepository transactionsRepository}) 14 | : this._transactionsRepository = transactionsRepository, 15 | super(TransactionsState.initial()) { 16 | on( 17 | (TransactionsEvent event, Emitter emit) async { 18 | if (event is UpdateTransactions) { 19 | emit(state.copyWith( 20 | transactionsList: event.transactions, status: TStatus.loaded)); 21 | } 22 | if (event is GetTransactions) { 23 | emit(state.copyWith(status: TStatus.loading)); 24 | try { 25 | final transactions = await _transactionsRepository.loadTransactions(); 26 | add(UpdateTransactions(transactions: transactions)); 27 | } catch (e) { 28 | emit(state.copyWith(status: TStatus.error, error: e)); 29 | } 30 | } 31 | 32 | if (event is AddTransaction) { 33 | emit(state.copyWith(status: TStatus.loading)); 34 | try { 35 | final transactions = await _transactionsRepository.addTransaction( 36 | list: state.transactionsList, addT: event.transaction); 37 | add(UpdateTransactions(transactions: transactions)); 38 | } catch (e) { 39 | emit(state.copyWith(status: TStatus.error, error: e)); 40 | } 41 | } 42 | 43 | if (event is RemoveTransaction) { 44 | emit(state.copyWith(status: TStatus.loading)); 45 | try { 46 | final transactions = await _transactionsRepository.removeTransaction( 47 | list: state.transactionsList, remTID: event.transactionID); 48 | add(UpdateTransactions(transactions: transactions)); 49 | } catch (e) { 50 | emit(state.copyWith(status: TStatus.error, error: e)); 51 | } 52 | } 53 | 54 | if (event is UpdateTransaction) { 55 | emit(state.copyWith(status: TStatus.loading)); 56 | try { 57 | await _transactionsRepository.updateTransaction( 58 | transaction: event.transaction); 59 | final transactions = 60 | await _transactionsRepository.getAllTransactions(); 61 | add(UpdateTransactions(transactions: transactions)); 62 | } catch (e) { 63 | emit(state.copyWith(status: TStatus.error, error: e)); 64 | } 65 | } 66 | }); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /lib/blocs/transactions/transactions_event.dart: -------------------------------------------------------------------------------- 1 | part of 'transactions_bloc.dart'; 2 | 3 | abstract class TransactionsEvent extends Equatable { 4 | const TransactionsEvent(); 5 | 6 | @override 7 | List get props => []; 8 | } 9 | 10 | class GetTransactions extends TransactionsEvent {} 11 | 12 | class UpdateTransactions extends TransactionsEvent { 13 | final List transactions; 14 | 15 | UpdateTransactions({ 16 | @required this.transactions, 17 | }); 18 | 19 | @override 20 | List get props => [transactions]; 21 | } 22 | 23 | class AddTransaction extends TransactionsEvent { 24 | final Transaction transaction; 25 | 26 | AddTransaction({@required this.transaction}); 27 | 28 | @override 29 | List get props => [transaction]; 30 | } 31 | 32 | class RemoveTransaction extends TransactionsEvent { 33 | final String transactionID; 34 | 35 | RemoveTransaction({@required this.transactionID}); 36 | 37 | @override 38 | List get props => [transactionID]; 39 | } 40 | 41 | class UpdateTransaction extends TransactionsEvent { 42 | final Transaction transaction; 43 | 44 | UpdateTransaction({@required this.transaction}); 45 | 46 | @override 47 | List get props => [transaction]; 48 | } 49 | -------------------------------------------------------------------------------- /lib/blocs/transactions/transactions_state.dart: -------------------------------------------------------------------------------- 1 | part of 'transactions_bloc.dart'; 2 | 3 | enum TStatus { 4 | initial, 5 | loading, 6 | loaded, 7 | error, 8 | } 9 | 10 | class TransactionsState extends Equatable { 11 | final List transactionsList; 12 | final TStatus status; 13 | final String error; 14 | 15 | TransactionsState({ 16 | @required this.transactionsList, 17 | @required this.status, 18 | @required this.error, 19 | }); 20 | 21 | factory TransactionsState.initial() { 22 | return TransactionsState( 23 | transactionsList: [], 24 | status: TStatus.initial, 25 | error: '', 26 | ); 27 | } 28 | 29 | @override 30 | List get props => [ 31 | transactionsList, 32 | status, 33 | error, 34 | ]; 35 | 36 | TransactionsState copyWith({ 37 | List transactionsList, 38 | TStatus status, 39 | String error, 40 | }) { 41 | return TransactionsState( 42 | transactionsList: transactionsList ?? this.transactionsList, 43 | status: status ?? this.status, 44 | error: error ?? this.error, 45 | ); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/extensions/currency_extension.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:intl/intl.dart'; 4 | 5 | final formatter = NumberFormat.compactSimpleCurrency( 6 | locale: Platform.localeName, decimalDigits: 2); 7 | 8 | extension CurrencyParsing on double { 9 | String parseCurrency() { 10 | return formatter.format(this); 11 | } 12 | } 13 | 14 | String getCurrencySymbol() { 15 | return formatter.currencySymbol; 16 | } 17 | -------------------------------------------------------------------------------- /lib/extensions/extensions.dart: -------------------------------------------------------------------------------- 1 | export 'currency_extension.dart'; 2 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/services.dart'; 4 | import 'package:flutter_bloc/flutter_bloc.dart'; 5 | import 'package:shared_preferences/shared_preferences.dart'; 6 | 7 | import 'package:expense_app/blocs/app_blocs.dart'; 8 | import 'package:expense_app/repositories/repositories.dart'; 9 | import 'package:expense_app/screens/screens.dart'; 10 | 11 | void main() async { 12 | // Google Fonts License 13 | LicenseRegistry.addLicense(() async* { 14 | final license = await rootBundle.loadString('assets/fonts/OFL.txt'); 15 | yield LicenseEntryWithLineBreaks(['google_fonts'], license); 16 | }); 17 | 18 | WidgetsFlutterBinding.ensureInitialized(); 19 | await SystemChrome.setPreferredOrientations( 20 | [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]); 21 | // * Getting Ready for Release 22 | // Bloc.observer = AppBlocObserver(); 23 | final sharedPreferences = await SharedPreferences.getInstance(); 24 | runApp(new MyApp(sharedPreferences: sharedPreferences)); 25 | } 26 | 27 | class MyApp extends StatelessWidget { 28 | final SharedPreferences sharedPreferences; 29 | const MyApp({ 30 | @required this.sharedPreferences, 31 | }); 32 | 33 | @override 34 | Widget build(BuildContext context) { 35 | return RepositoryProvider( 36 | create: (context) => TransactionsRepository(), 37 | child: MultiBlocProvider( 38 | providers: [ 39 | BlocProvider( 40 | create: (context) => TransactionsBloc( 41 | transactionsRepository: context.read(), 42 | )..add(GetTransactions()), 43 | ), 44 | BlocProvider( 45 | create: (context) => GoogleAdsCubit(), 46 | ), 47 | BlocProvider( 48 | create: (context) => ThemeCubit( 49 | preferences: sharedPreferences, 50 | ), 51 | ), 52 | ], 53 | child: ExpenseTrackerApp(), 54 | ), 55 | ); 56 | } 57 | } 58 | 59 | class ExpenseTrackerApp extends StatelessWidget { 60 | const ExpenseTrackerApp({ 61 | Key key, 62 | }) : super(key: key); 63 | 64 | @override 65 | Widget build(BuildContext context) { 66 | return BlocBuilder( 67 | builder: (context, state) { 68 | return MaterialApp( 69 | debugShowCheckedModeBanner: false, 70 | title: 'Expense Tracker', 71 | home: MyHomePage(), 72 | theme: state.theme, 73 | ); 74 | }, 75 | ); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /lib/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'transaction.dart'; 2 | -------------------------------------------------------------------------------- /lib/models/transaction.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | 4 | class Transaction extends Equatable { 5 | final String id; 6 | final String title; 7 | final double amount; 8 | final DateTime date; 9 | final DateTime createdOn; 10 | final String imagePath; 11 | 12 | Transaction({ 13 | @required this.id, 14 | @required this.title, 15 | @required this.amount, 16 | @required this.date, 17 | @required this.createdOn, 18 | @required this.imagePath, 19 | }); 20 | 21 | @override 22 | List get props { 23 | return [ 24 | id, 25 | title, 26 | amount, 27 | date, 28 | createdOn, 29 | imagePath, 30 | ]; 31 | } 32 | 33 | Transaction copyWith({ 34 | String id, 35 | String title, 36 | double amount, 37 | DateTime date, 38 | DateTime createdOn, 39 | String imagePath, 40 | }) { 41 | return Transaction( 42 | id: id ?? this.id, 43 | title: title ?? this.title, 44 | amount: amount ?? this.amount, 45 | date: date ?? this.date, 46 | createdOn: createdOn ?? this.createdOn, 47 | imagePath: imagePath ?? this.imagePath, 48 | ); 49 | } 50 | 51 | Map toMap() { 52 | return { 53 | 'id': id, 54 | 'title': title, 55 | 'amount': amount.toString(), 56 | 'date': date.millisecondsSinceEpoch, 57 | 'createdOn': createdOn.millisecondsSinceEpoch, 58 | 'imagePath': imagePath, 59 | }; 60 | } 61 | 62 | factory Transaction.fromMap(Map map) { 63 | return Transaction( 64 | id: map['id'], 65 | title: map['title'], 66 | amount: double.tryParse(map['amount']) ?? 0.0, 67 | date: DateTime.fromMillisecondsSinceEpoch(map['date']), 68 | createdOn: DateTime.fromMillisecondsSinceEpoch(map['createdOn']), 69 | imagePath: map['imagePath'], 70 | ); 71 | } 72 | 73 | @override 74 | bool get stringify => true; 75 | } 76 | -------------------------------------------------------------------------------- /lib/repositories/repositories.dart: -------------------------------------------------------------------------------- 1 | export 'transactions_repository.dart'; 2 | -------------------------------------------------------------------------------- /lib/repositories/theme_repository.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/lib/repositories/theme_repository.dart -------------------------------------------------------------------------------- /lib/repositories/transactions_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/models/models.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:path/path.dart'; 4 | import 'package:sqflite/sqflite.dart' as sqf; 5 | 6 | class TransactionsRepository { 7 | static const _tableName = 'transactions'; 8 | String _dbPath; 9 | sqf.Database _db; 10 | 11 | Future> loadTransactions() async { 12 | _dbPath = join(await sqf.getDatabasesPath(), 'transactions_data.db'); 13 | try { 14 | final dbAlreadyExists = await sqf.databaseExists(_dbPath); 15 | if (dbAlreadyExists) { 16 | _db = await sqf.openDatabase(_dbPath, version: 1); 17 | return await getAllTransactions(); 18 | } else { 19 | _db = await sqf.openDatabase( 20 | _dbPath, 21 | version: 1, 22 | onCreate: (db, version) { 23 | return db.execute( 24 | 'CREATE TABLE $_tableName(id TEXT PRIMARY KEY, title TEXT, amount TEXT, date INTEGER, createdOn INTEGER, imagePath TEXT)'); 25 | }, 26 | ); 27 | return []; 28 | } 29 | } catch (e) { 30 | throw Exception('Unable to create/get database.'); 31 | } 32 | } 33 | 34 | Future> getAllTransactions() async { 35 | try { 36 | final List tList = await _db.query(_tableName, orderBy: 'date'); 37 | final List transactions = 38 | tList.map((tMap) => Transaction.fromMap(tMap)).toList(); 39 | return transactions; 40 | } catch (e) { 41 | throw Exception('Unable to get transactions.'); 42 | } 43 | } 44 | 45 | Future> addTransaction( 46 | {@required List list, @required Transaction addT}) async { 47 | try { 48 | await _db.insert(_tableName, addT.toMap(), 49 | conflictAlgorithm: sqf.ConflictAlgorithm.replace); 50 | return await getAllTransactions(); 51 | } catch (e) { 52 | throw Exception('Unable to get add transaction.'); 53 | } 54 | } 55 | 56 | Future> removeTransaction( 57 | {@required List list, @required String remTID}) async { 58 | try { 59 | await _db.delete(_tableName, where: 'id = ?', whereArgs: [remTID]); 60 | return await getAllTransactions(); 61 | } catch (e) { 62 | throw Exception('Unable to get delete transaction.'); 63 | } 64 | } 65 | 66 | Future> filterTransactions( 67 | {@required String keyword}) async { 68 | try { 69 | final filtered = await _db 70 | .query(_tableName, where: 'title LIKE ?', whereArgs: ['%$keyword%']); 71 | final list = filtered.map((e) => Transaction.fromMap(e)).toList(); 72 | return list; 73 | } catch (e) { 74 | throw Exception('Unable to filter transactions.'); 75 | } 76 | } 77 | 78 | Future updateTransaction({@required Transaction transaction}) async { 79 | try { 80 | await _db.update(_tableName, transaction.toMap(), 81 | where: 'id = ?', whereArgs: [transaction.id]); 82 | return true; 83 | } catch (e) { 84 | throw Exception('Unable to update transaction.'); 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /lib/screens/about.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/widgets/widgets.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:package_info/package_info.dart'; 4 | 5 | class AboutPage extends StatefulWidget { 6 | const AboutPage({Key key}) : super(key: key); 7 | 8 | @override 9 | State createState() => _AboutPageState(); 10 | } 11 | 12 | class _AboutPageState extends State { 13 | String appName = "App Name"; 14 | String packageName = "Package Name"; 15 | String version = "Version"; 16 | 17 | PackageInfo packageInfo; 18 | 19 | @override 20 | void initState() { 21 | loadInfo(); 22 | super.initState(); 23 | } 24 | 25 | Future loadInfo() async { 26 | packageInfo = await PackageInfo.fromPlatform(); 27 | setState(() { 28 | appName = packageInfo.appName; 29 | packageName = packageInfo.packageName; 30 | version = packageInfo.version; 31 | }); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return Scaffold( 37 | appBar: AppBar( 38 | title: Text('About App'), 39 | ), 40 | body: SingleChildScrollView( 41 | child: Column( 42 | crossAxisAlignment: CrossAxisAlignment.center, 43 | children: [ 44 | SizedBox(width: double.infinity), 45 | RoundedImage(asset: 'assets/images/app_icon.png'), 46 | Text( 47 | appName, 48 | style: TextStyle( 49 | fontSize: 32, color: Theme.of(context).primaryColor), 50 | ), 51 | SizedBox(height: 32.0), 52 | Text( 53 | packageName, 54 | style: TextStyle(fontSize: 20), 55 | ), 56 | SizedBox(height: 32.0), 57 | Text( 58 | 'Version: $version', 59 | style: TextStyle(fontSize: 18), 60 | ), 61 | SizedBox(height: 32.0), 62 | ], 63 | ), 64 | ), 65 | ); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /lib/screens/change_theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:expense_app/widgets/widgets.dart'; 4 | import 'package:expense_app/blocs/app_blocs.dart'; 5 | 6 | class ChangeThemePage extends StatelessWidget { 7 | const ChangeThemePage({Key key}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | final themeCubit = context.read(); 12 | 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: Text('Change Theme'), 16 | ), 17 | body: Padding( 18 | padding: EdgeInsets.all(16.0), 19 | child: Column( 20 | children: [ 21 | SelectColorCard( 22 | color: Colors.green, 23 | onTap: () { 24 | themeCubit.toGreen(); 25 | }, 26 | title: 'Green', 27 | ), 28 | SelectColorCard( 29 | color: Colors.purple, 30 | onTap: () { 31 | themeCubit.toPurple(); 32 | }, 33 | title: 'Purple', 34 | ), 35 | SelectColorCard( 36 | color: Colors.red, 37 | onTap: () { 38 | themeCubit.toRed(); 39 | }, 40 | title: 'Red', 41 | ), 42 | SelectColorCard( 43 | color: Colors.blue, 44 | onTap: () { 45 | themeCubit.toBlue(); 46 | }, 47 | title: 'Blue', 48 | ), 49 | ], 50 | ), 51 | ), 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /lib/screens/details.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:ui'; 3 | import 'package:expense_app/extensions/extensions.dart'; 4 | import 'package:expense_app/models/models.dart'; 5 | import 'package:expense_app/widgets/new_transaction.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:intl/intl.dart'; 8 | 9 | class DetailsPage extends StatelessWidget { 10 | final Transaction _transaction; 11 | const DetailsPage({Key key, @required Transaction transaction}) 12 | : _transaction = transaction, 13 | super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Scaffold( 18 | appBar: AppBar( 19 | title: Text('Details'), 20 | ), 21 | body: SingleChildScrollView( 22 | child: Padding( 23 | padding: const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 54.0), 24 | child: Column( 25 | children: [ 26 | DetailsRow(title: 'Title:', content: _transaction.title), 27 | DetailsRow( 28 | title: 'Amount:', 29 | content: 30 | '${getCurrencySymbol()} ${_transaction.amount.toStringAsFixed(2)}'), 31 | DetailsRow( 32 | title: 'Date:', 33 | content: 34 | '${DateFormat.yMMMMEEEEd().format(_transaction.date)}'), 35 | DetailsRow( 36 | title: 'Added:', 37 | content: 38 | '${DateFormat.yMMMEd().format(_transaction.createdOn)} ${DateFormat.jm().format(_transaction.createdOn)}'), 39 | if (_transaction.imagePath.isNotEmpty) 40 | Container( 41 | width: double.infinity, 42 | child: Image.file( 43 | File(_transaction.imagePath), 44 | fit: BoxFit.fitWidth, 45 | ), 46 | ), 47 | ], 48 | ), 49 | ), 50 | ), 51 | floatingActionButton: FloatingActionButton( 52 | onPressed: () async { 53 | final editedTransaction = await showModalBottomSheet( 54 | context: context, 55 | builder: (_) => NewTransaction.edit( 56 | transaction: _transaction, 57 | ), 58 | isScrollControlled: true, 59 | ); 60 | if (editedTransaction != null) { 61 | Navigator.pushReplacement( 62 | context, 63 | MaterialPageRoute( 64 | builder: (context) => 65 | DetailsPage(transaction: editedTransaction as Transaction), 66 | ), 67 | ); 68 | } 69 | }, 70 | child: Icon(Icons.edit), 71 | ), 72 | ); 73 | } 74 | } 75 | 76 | class DetailsRow extends StatelessWidget { 77 | final String title; 78 | final String content; 79 | 80 | const DetailsRow({ 81 | Key key, 82 | @required this.title, 83 | @required this.content, 84 | }) : super(key: key); 85 | 86 | @override 87 | Widget build(BuildContext context) { 88 | return Padding( 89 | padding: EdgeInsets.symmetric(vertical: 16.0), 90 | child: Row( 91 | crossAxisAlignment: CrossAxisAlignment.start, 92 | children: [ 93 | Container( 94 | width: MediaQuery.of(context).size.width * 0.25, 95 | margin: EdgeInsets.only(right: 8.0), 96 | child: Text( 97 | title, 98 | style: TextStyle( 99 | color: Theme.of(context).primaryColorDark, 100 | fontSize: 18.0, 101 | fontWeight: FontWeight.bold), 102 | ), 103 | ), 104 | Expanded( 105 | child: Text( 106 | content, 107 | style: TextStyle( 108 | fontSize: 16.0, 109 | ), 110 | ), 111 | ), 112 | ], 113 | ), 114 | ); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /lib/screens/developer.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/widgets/details_title.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import 'package:expense_app/widgets/widgets.dart'; 5 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 6 | import 'package:url_launcher/url_launcher.dart'; 7 | 8 | class DeveloperPage extends StatelessWidget { 9 | const DeveloperPage({Key key}) : super(key: key); 10 | 11 | Future _launchUrl(String url) async { 12 | if (await canLaunch(url)) { 13 | await launch( 14 | url, 15 | forceSafariVC: false, 16 | forceWebView: false, 17 | ); 18 | } else { 19 | // * Getting Ready for Release 20 | // print('Could not launch $url'); 21 | } 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return Scaffold( 27 | appBar: AppBar( 28 | title: Text('contact@ankan.dev'), 29 | ), 30 | body: SingleChildScrollView( 31 | child: Padding( 32 | padding: const EdgeInsets.all(8.0), 33 | child: Column( 34 | mainAxisSize: MainAxisSize.min, 35 | children: [ 36 | RoundedImage( 37 | asset: 'assets/images/ankan.jpeg', 38 | ), 39 | SizedBox(height: 16.0), 40 | Text('Ankan Sikdar', 41 | style: Theme.of(context).textTheme.headline4), 42 | SizedBox(height: 16.0), 43 | Container( 44 | width: double.infinity, 45 | child: DetailsTitle(title: 'About Me'), 46 | ), 47 | Padding( 48 | padding: EdgeInsets.symmetric(horizontal: 4.0), 49 | child: Text( 50 | 'Hello There! First of all I am very grateful to you for using my app. A little about myself. I was born in 1999 and I am an Engineer in Information Technology (Graduated in 2021) from Heritage Institute of Technology, Kolkata. I primarily spend most of my time learning and developing in Flutter. And I love sunsets, stargazing and solitude. Thats all I can think of for now. 😅', 51 | style: Theme.of(context).textTheme.subtitle1, 52 | textAlign: TextAlign.justify, 53 | ), 54 | ), 55 | SizedBox(height: 16.0), 56 | Row( 57 | children: [ 58 | DetailsTitle(title: 'My Links'), 59 | ], 60 | ), 61 | SizedBox(height: 8.0), 62 | Padding( 63 | padding: EdgeInsets.symmetric(horizontal: 4.0), 64 | child: Text( 65 | 'Feel free to contact me regarding a bug, or any criticism that you might have. Or maybe just to talk about coding or life in general.', 66 | style: Theme.of(context).textTheme.subtitle1, 67 | textAlign: TextAlign.justify, 68 | ), 69 | ), 70 | DevLink( 71 | icon: FontAwesomeIcons.github, 72 | label: 'GitHub', 73 | onPressed: () { 74 | _launchUrl('https://github.com/ankanSikdar'); 75 | }, 76 | ), 77 | DevLink( 78 | icon: FontAwesomeIcons.linkedin, 79 | label: 'LinkedIn', 80 | onPressed: () { 81 | _launchUrl('https://www.linkedin.com/in/ankansikdar/'); 82 | }, 83 | ), 84 | DevLink( 85 | icon: FontAwesomeIcons.facebook, 86 | label: 'Facebook', 87 | onPressed: () { 88 | _launchUrl('https://www.facebook.com/ankanSikdar/'); 89 | }, 90 | ), 91 | DevLink( 92 | icon: FontAwesomeIcons.twitter, 93 | label: 'Twitter', 94 | onPressed: () { 95 | _launchUrl('https://twitter.com/ankan_sikdar'); 96 | }, 97 | ), 98 | DevLink( 99 | icon: FontAwesomeIcons.instagram, 100 | label: 'Instagram', 101 | onPressed: () { 102 | _launchUrl('https://www.instagram.com/ankan_sikdar/'); 103 | }, 104 | ), 105 | DevLink( 106 | icon: FontAwesomeIcons.solidEnvelope, 107 | label: 'Send Email', 108 | onPressed: () { 109 | _launchUrl( 110 | 'mailto:contact@ankan.dev?subject=Reason%20you%20are%20contacting%20me&body=Hello%20Ankan%21'); 111 | }, 112 | ), 113 | ], 114 | ), 115 | ), 116 | ), 117 | ); 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /lib/screens/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/blocs/app_blocs.dart'; 2 | import 'package:expense_app/repositories/repositories.dart'; 3 | import 'package:expense_app/screens/screens.dart'; 4 | import 'package:expense_app/widgets/widgets.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_bloc/flutter_bloc.dart'; 7 | 8 | class MyHomePage extends StatefulWidget { 9 | @override 10 | _MyHomePageState createState() => _MyHomePageState(); 11 | } 12 | 13 | class _MyHomePageState extends State { 14 | void _startAddNewTransaction(BuildContext context) { 15 | showModalBottomSheet( 16 | context: context, 17 | builder: (_) => NewTransaction.add(), 18 | isScrollControlled: true, 19 | ); 20 | } 21 | 22 | bool _showBarChart = true; 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | AppBar _appbar = AppBar( 27 | title: Text('Expense Tracker'), 28 | actions: [ 29 | IconButton( 30 | onPressed: () { 31 | Navigator.push( 32 | context, 33 | MaterialPageRoute( 34 | builder: (context) => BlocProvider( 35 | create: (context) => SearchCubit( 36 | transactionsRepository: 37 | context.read(), 38 | )..loadAll(), 39 | child: SearchPage(), 40 | ), 41 | ), 42 | ); 43 | }, 44 | icon: Icon(Icons.search)), 45 | IconButton( 46 | onPressed: () { 47 | Navigator.push( 48 | context, 49 | MaterialPageRoute( 50 | builder: (context) => SettingsPage(), 51 | ), 52 | ); 53 | }, 54 | icon: Icon(Icons.settings)) 55 | ], 56 | ); 57 | 58 | return Scaffold( 59 | appBar: _appbar, 60 | body: SingleChildScrollView( 61 | child: BlocConsumer( 62 | listener: (context, state) { 63 | if (state.status == TStatus.error) { 64 | ScaffoldMessenger.of(context).showSnackBar(SnackBar( 65 | content: Text( 66 | state.error, 67 | style: TextStyle(color: Colors.white), 68 | ), 69 | backgroundColor: Theme.of(context).errorColor, 70 | )); 71 | } 72 | }, 73 | builder: (context, state) { 74 | if (state.status == TStatus.initial || 75 | state.status == TStatus.loading) { 76 | return Container( 77 | width: double.infinity, 78 | height: MediaQuery.of(context).size.height, 79 | child: Center( 80 | child: CircularProgressIndicator(), 81 | ), 82 | ); 83 | } 84 | return state.transactionsList.isEmpty 85 | ? Padding( 86 | padding: EdgeInsets.only(top: 32.0), 87 | child: Column( 88 | mainAxisSize: MainAxisSize.min, 89 | children: [ 90 | Text( 91 | 'No Transactions Added Yet!', 92 | style: TextStyle( 93 | fontSize: 20, 94 | ), 95 | ), 96 | SizedBox( 97 | height: 20, 98 | ), 99 | Container( 100 | width: double.infinity, 101 | height: MediaQuery.of(context).size.height * 0.5, 102 | child: Image.asset( 103 | 'assets/images/wallet.png', 104 | fit: BoxFit.contain, 105 | ), 106 | ), 107 | ], 108 | ), 109 | ) 110 | : Column( 111 | children: [ 112 | Container( 113 | height: (MediaQuery.of(context).size.height - 114 | _appbar.preferredSize.height - 115 | MediaQuery.of(context).padding.top) * 116 | 0.5, 117 | child: GestureDetector( 118 | onHorizontalDragEnd: (details) { 119 | int sensitivity = 8; 120 | if (details.primaryVelocity > sensitivity || 121 | details.primaryVelocity < -sensitivity) { 122 | setState(() { 123 | _showBarChart = !_showBarChart; 124 | }); 125 | } 126 | }, 127 | child: _showBarChart 128 | ? WeekBarChart( 129 | transactions: state.transactionsList) 130 | : WeekPieChart( 131 | transactions: state.transactionsList, 132 | ), 133 | ), 134 | ), 135 | Container( 136 | height: (MediaQuery.of(context).size.height - 137 | _appbar.preferredSize.height - 138 | MediaQuery.of(context).padding.top) * 139 | 0.5, 140 | child: TransactionList( 141 | transactions: 142 | state.transactionsList.reversed.toList(), 143 | deleteTransaction: (String transactionID) { 144 | context.read().add( 145 | RemoveTransaction( 146 | transactionID: transactionID), 147 | ); 148 | }, 149 | ), 150 | ), 151 | ], 152 | ); 153 | }, 154 | ), 155 | ), 156 | floatingActionButton: FloatingActionButton( 157 | onPressed: () => _startAddNewTransaction(context), 158 | child: Icon( 159 | Icons.add, 160 | ), 161 | backgroundColor: Theme.of(context).primaryColor, 162 | foregroundColor: Colors.white, 163 | ), 164 | floatingActionButtonLocation: FloatingActionButtonLocation.miniEndFloat, 165 | ); 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /lib/screens/screens.dart: -------------------------------------------------------------------------------- 1 | export 'home.dart'; 2 | export 'details.dart'; 3 | export 'search.dart'; 4 | export 'settings.dart'; 5 | export 'change_theme.dart'; 6 | export 'about.dart'; 7 | export 'developer.dart'; 8 | -------------------------------------------------------------------------------- /lib/screens/search.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/blocs/app_blocs.dart'; 2 | import 'package:expense_app/widgets/widgets.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_bloc/flutter_bloc.dart'; 5 | 6 | class SearchPage extends StatelessWidget { 7 | const SearchPage({Key key}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | final searchCubit = context.read(); 12 | 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: Text('Search Transactions'), 16 | ), 17 | body: BlocBuilder( 18 | builder: (context, state) { 19 | if (state.status == SearchStatus.error) { 20 | return Center( 21 | child: Text(state.error), 22 | ); 23 | } 24 | 25 | if (state.status == SearchStatus.loaded) { 26 | return Column( 27 | children: [ 28 | Container( 29 | margin: EdgeInsets.all(16.0), 30 | child: TextField( 31 | decoration: InputDecoration( 32 | hintText: 'Search by Title', 33 | ), 34 | onChanged: (keyword) { 35 | searchCubit.search(keyword); 36 | }, 37 | ), 38 | ), 39 | Expanded( 40 | child: state.transactions.isEmpty 41 | ? Center( 42 | child: Text('No Transactions To Show'), 43 | ) 44 | : TransactionList( 45 | transactions: state.transactions, 46 | deleteTransaction: (String transactionID) { 47 | context.read().add( 48 | RemoveTransaction( 49 | transactionID: transactionID), 50 | ); 51 | }, 52 | ), 53 | ), 54 | ], 55 | ); 56 | } 57 | return Center( 58 | child: CircularProgressIndicator(), 59 | ); 60 | }, 61 | ), 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/screens/settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/screens/screens.dart'; 2 | import 'package:expense_app/widgets/widgets.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:url_launcher/url_launcher.dart'; 5 | 6 | class SettingsPage extends StatelessWidget { 7 | const SettingsPage({Key key}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold( 12 | appBar: AppBar( 13 | title: Text('Settings'), 14 | ), 15 | body: SingleChildScrollView( 16 | child: Padding( 17 | padding: const EdgeInsets.all(8.0), 18 | child: Column( 19 | children: [ 20 | SettingsCard( 21 | onTap: () { 22 | Navigator.of(context).push( 23 | MaterialPageRoute( 24 | builder: (context) => ChangeThemePage(), 25 | ), 26 | ); 27 | }, 28 | icon: Icons.color_lens_rounded, 29 | title: 'Change Theme', 30 | ), 31 | SettingsCard( 32 | onTap: () { 33 | Navigator.of(context).push( 34 | MaterialPageRoute( 35 | builder: (context) => DeveloperPage(), 36 | ), 37 | ); 38 | }, 39 | icon: Icons.person, 40 | title: 'Developer Contact', 41 | ), 42 | SettingsCard( 43 | onTap: () async { 44 | final url = 'https://expense-tracker-privacy.web.app'; 45 | if (await canLaunch(url)) { 46 | await launch( 47 | url, 48 | forceSafariVC: false, 49 | forceWebView: false, 50 | ); 51 | } else { 52 | // * Getting Ready for Release 53 | // print('Could not launch $url'); 54 | } 55 | }, 56 | icon: Icons.local_parking_outlined, 57 | title: 'Privacy Policy', 58 | ), 59 | SettingsCard( 60 | onTap: () { 61 | Navigator.of(context).push( 62 | MaterialPageRoute( 63 | builder: (context) => AboutPage(), 64 | ), 65 | ); 66 | }, 67 | icon: Icons.info_rounded, 68 | title: 'About App', 69 | ), 70 | ], 71 | ), 72 | ), 73 | ), 74 | ); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/widgets/banner_ad.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/blocs/app_blocs.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_bloc/flutter_bloc.dart'; 4 | import 'package:google_mobile_ads/google_mobile_ads.dart'; 5 | 6 | class BannerAdWidget extends StatelessWidget { 7 | BannerAdWidget({Key key}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return BlocBuilder( 12 | builder: (context, state) { 13 | if (state.status == AdsStatus.loaded) { 14 | final ad = state.createBannerAd(); 15 | // return Ad 16 | return Container( 17 | width: double.infinity, 18 | height: 50.0, 19 | margin: EdgeInsets.symmetric(vertical: 8.0), 20 | child: AdWidget( 21 | ad: ad..load(), 22 | key: UniqueKey(), 23 | ), 24 | ); 25 | } 26 | return Container(); 27 | }, 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/widgets/details_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DetailsTitle extends StatelessWidget { 4 | final String title; 5 | const DetailsTitle({ 6 | @required this.title, 7 | }); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Padding( 12 | padding: EdgeInsets.fromLTRB(4.0, 0.0, 0.0, 8.0), 13 | child: Text( 14 | title, 15 | style: Theme.of(context).textTheme.headline6.apply( 16 | color: Theme.of(context).primaryColor, 17 | ), 18 | ), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/widgets/dev_link.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | 4 | class DevLink extends StatelessWidget { 5 | final Function onPressed; 6 | final IconData icon; 7 | final String label; 8 | 9 | const DevLink({ 10 | Key key, 11 | @required this.onPressed, 12 | @required this.icon, 13 | @required this.label, 14 | }) : super(key: key); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Container( 19 | margin: EdgeInsets.symmetric(vertical: 16.0), 20 | child: ElevatedButton.icon( 21 | onPressed: onPressed, 22 | icon: FaIcon(icon, color: Colors.white), 23 | label: Text( 24 | label, 25 | style: TextStyle(color: Colors.white), 26 | ), 27 | style: ButtonStyle( 28 | minimumSize: MaterialStateProperty.all( 29 | Size(MediaQuery.of(context).size.width * 0.75, 50.0), 30 | ), 31 | elevation: MaterialStateProperty.all(4.0), 32 | padding: MaterialStateProperty.all( 33 | EdgeInsets.all(16.0), 34 | ), 35 | shape: MaterialStateProperty.all( 36 | RoundedRectangleBorder( 37 | borderRadius: BorderRadius.all( 38 | Radius.circular(15.0), 39 | ), 40 | ), 41 | ), 42 | backgroundColor: 43 | MaterialStateProperty.all(Theme.of(context).primaryColor), 44 | ), 45 | ), 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/widgets/new_transaction.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_bloc/flutter_bloc.dart'; 5 | import 'package:intl/intl.dart'; 6 | import 'package:likk_picker/likk_picker.dart'; 7 | import 'package:path_provider/path_provider.dart'; 8 | import 'package:uuid/uuid.dart'; 9 | 10 | import 'package:expense_app/blocs/app_blocs.dart'; 11 | import 'package:expense_app/extensions/extensions.dart'; 12 | import 'package:expense_app/models/models.dart'; 13 | 14 | enum NewTransactionState { 15 | edit, 16 | add, 17 | } 18 | 19 | class NewTransaction extends StatefulWidget { 20 | final NewTransactionState state; 21 | final Transaction transaction; 22 | 23 | NewTransaction.add({ 24 | Key key, 25 | }) : this.state = NewTransactionState.add, 26 | this.transaction = null, 27 | super(key: key); 28 | 29 | NewTransaction.edit({ 30 | Key key, 31 | @required this.transaction, 32 | }) : this.state = NewTransactionState.edit, 33 | super(key: key); 34 | 35 | @override 36 | _NewTransactionState createState() => _NewTransactionState(); 37 | } 38 | 39 | class _NewTransactionState extends State { 40 | final _titleController = TextEditingController(); 41 | final _amountController = TextEditingController(); 42 | final _dateController = TextEditingController(); 43 | final _formKey = GlobalKey(); 44 | DateTime _pickedDate; 45 | File _imageFile; 46 | Directory _appLibraryDirectory; 47 | GalleryController _controller; 48 | 49 | @override 50 | void initState() { 51 | super.initState(); 52 | _updateDirectory(); 53 | _controller = GalleryController( 54 | gallerySetting: GallerySetting( 55 | enableCamera: true, 56 | maximum: 1, 57 | requestType: RequestType.image, 58 | onItemClick: (entity, list) async { 59 | if (list.isNotEmpty) { 60 | final file = await list[0].entity.file; 61 | _updateImage(file); 62 | Navigator.pop(context); 63 | } 64 | }, 65 | ), 66 | ); 67 | 68 | if (widget.state == NewTransactionState.edit) { 69 | _titleController.text = widget.transaction.title; 70 | _amountController.text = widget.transaction.amount.toString(); 71 | _pickedDate = widget.transaction.date; 72 | _dateController.text = DateFormat.yMMMd().format(_pickedDate); 73 | widget.transaction.imagePath.isNotEmpty 74 | ? _imageFile = File(widget.transaction.imagePath) 75 | : _imageFile = null; 76 | } 77 | } 78 | 79 | Future _updateDirectory() async { 80 | _appLibraryDirectory = await getApplicationDocumentsDirectory(); 81 | _appLibraryDirectory = await _appLibraryDirectory.create(); 82 | } 83 | 84 | void _updateImage(File image) { 85 | final fileExtension = image.path.split('.').last; 86 | if (fileExtension == 'jpg' || 87 | fileExtension == 'jpeg' || 88 | fileExtension == 'png') { 89 | setState(() { 90 | _imageFile = image; 91 | }); 92 | } 93 | } 94 | 95 | void _onSubmit() async { 96 | if (!_formKey.currentState.validate()) { 97 | return; 98 | } 99 | File writtenFile; 100 | if (_imageFile != null) { 101 | final imageFilePath = '${_appLibraryDirectory.path}/${Uuid().v4()}.png'; 102 | final emptyFile = await File(imageFilePath).create(); 103 | writtenFile = await emptyFile.writeAsBytes(_imageFile.readAsBytesSync()); 104 | } 105 | final tBloc = context.read(); 106 | final transaction = Transaction( 107 | id: widget.state == NewTransactionState.add 108 | ? Uuid().v4() 109 | : widget.transaction.id, 110 | title: _titleController.text, 111 | amount: double.parse(_amountController.text), 112 | date: _pickedDate, 113 | imagePath: _imageFile == null ? '' : writtenFile.path, 114 | createdOn: DateTime.now(), 115 | ); 116 | if (widget.state == NewTransactionState.add) { 117 | tBloc.add( 118 | AddTransaction(transaction: transaction), 119 | ); 120 | } else { 121 | tBloc.add( 122 | UpdateTransaction(transaction: transaction), 123 | ); 124 | } 125 | Navigator.of(context).pop(transaction); 126 | } 127 | 128 | void _startDatePicker() { 129 | showDatePicker( 130 | context: context, 131 | initialDate: DateTime.now(), 132 | firstDate: DateTime.parse("2020-01-01 00:00:01Z"), 133 | lastDate: DateTime.now()) 134 | .then((value) { 135 | if (value == null) { 136 | return; 137 | } 138 | _pickedDate = value; 139 | _dateController.text = DateFormat.yMMMd().format(_pickedDate); 140 | }); 141 | } 142 | 143 | @override 144 | void dispose() { 145 | _controller.dispose(); 146 | super.dispose(); 147 | } 148 | 149 | @override 150 | Widget build(BuildContext context) { 151 | return SingleChildScrollView( 152 | child: Card( 153 | margin: EdgeInsets.symmetric( 154 | horizontal: 10, 155 | vertical: 20, 156 | ), 157 | shape: RoundedRectangleBorder( 158 | borderRadius: BorderRadius.circular( 159 | 18, 160 | ), 161 | ), 162 | elevation: 8, 163 | child: Container( 164 | padding: EdgeInsets.only( 165 | top: 20, 166 | left: 20, 167 | right: 20, 168 | bottom: MediaQuery.of(context).viewInsets.bottom, 169 | ), 170 | child: Form( 171 | key: _formKey, 172 | child: Column( 173 | crossAxisAlignment: CrossAxisAlignment.end, 174 | children: [ 175 | TextFormField( 176 | decoration: InputDecoration(labelText: 'Title'), 177 | controller: _titleController, 178 | validator: (value) { 179 | if (value.isEmpty) { 180 | return 'Title cannot be empty'; 181 | } 182 | return null; 183 | }, 184 | ), 185 | TextFormField( 186 | decoration: InputDecoration( 187 | labelText: 'Price', 188 | prefixText: getCurrencySymbol(), 189 | ), 190 | keyboardType: TextInputType.number, 191 | controller: _amountController, 192 | onFieldSubmitted: (_) => _startDatePicker(), 193 | validator: (value) { 194 | if (value.isEmpty) { 195 | return 'Amount cannot be empty'; 196 | } 197 | final price = double.tryParse(value); 198 | if (price == null) { 199 | return 'Please enter numbers only'; 200 | } 201 | if (price <= 0) { 202 | return 'Price must be greater than 0'; 203 | } 204 | if (price >= 1000000) { 205 | return 'Price must be less than 100,00,00'; 206 | } 207 | return null; 208 | }, 209 | ), 210 | Container( 211 | margin: EdgeInsets.only( 212 | top: 10, 213 | bottom: 30, 214 | ), 215 | child: Row( 216 | children: [ 217 | Expanded( 218 | child: TextFormField( 219 | readOnly: true, 220 | controller: _dateController, 221 | decoration: InputDecoration(labelText: 'Date'), 222 | enableInteractiveSelection: false, 223 | validator: (value) { 224 | if (value.isEmpty) { 225 | return 'Please pick a date'; 226 | } 227 | return null; 228 | }, 229 | ), 230 | ), 231 | FlatButton( 232 | onPressed: _startDatePicker, 233 | child: Text( 234 | 'Choose Date', 235 | style: TextStyle( 236 | color: Theme.of(context).primaryColor, 237 | fontSize: 16, 238 | ), 239 | ), 240 | ) 241 | ], 242 | ), 243 | ), 244 | Row( 245 | children: [ 246 | IconButton( 247 | onPressed: () async { 248 | final entity = await _controller.pick(context); 249 | if (entity.isNotEmpty) { 250 | final file = await entity[0].entity.file; 251 | _updateImage(file); 252 | } 253 | }, 254 | icon: Icon(Icons.image), 255 | ), 256 | if (_imageFile != null) 257 | Container( 258 | height: 50, 259 | width: 50, 260 | child: Image.file(_imageFile), 261 | ), 262 | Spacer(), 263 | FlatButton( 264 | onPressed: _onSubmit, 265 | child: Text( 266 | widget.state == NewTransactionState.add 267 | ? 'Add Transaction' 268 | : 'Update', 269 | style: TextStyle( 270 | color: Colors.white, 271 | fontSize: 18, 272 | ), 273 | ), 274 | color: Theme.of(context).primaryColor, 275 | shape: RoundedRectangleBorder( 276 | borderRadius: BorderRadius.circular(18), 277 | ), 278 | padding: EdgeInsets.symmetric( 279 | horizontal: 20, 280 | vertical: 10, 281 | ), 282 | ), 283 | ], 284 | ), 285 | SizedBox( 286 | height: 10, 287 | ) 288 | ], 289 | ), 290 | ), 291 | ), 292 | ), 293 | ); 294 | } 295 | } 296 | -------------------------------------------------------------------------------- /lib/widgets/rounded_image.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class RoundedImage extends StatelessWidget { 4 | final String asset; 5 | 6 | const RoundedImage({ 7 | Key key, 8 | @required this.asset, 9 | }) : super(key: key); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Container( 14 | width: MediaQuery.of(context).size.width - 40, 15 | height: MediaQuery.of(context).size.width - 40, 16 | margin: const EdgeInsets.all(8.0), 17 | child: ClipRRect( 18 | borderRadius: 19 | BorderRadius.circular((MediaQuery.of(context).size.width - 40) / 2), 20 | child: Image.asset( 21 | asset, 22 | fit: BoxFit.contain, 23 | ), 24 | ), 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/widgets/select_color_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SelectColorCard extends StatelessWidget { 4 | final Function onTap; 5 | final Color color; 6 | final String title; 7 | 8 | const SelectColorCard({ 9 | Key key, 10 | @required this.onTap, 11 | @required this.color, 12 | @required this.title, 13 | }) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return GestureDetector( 18 | onTap: onTap, 19 | child: Card( 20 | color: color, 21 | shape: RoundedRectangleBorder( 22 | borderRadius: BorderRadius.circular(18.0), 23 | ), 24 | margin: EdgeInsets.symmetric(vertical: 8.0), 25 | child: Container( 26 | child: Text( 27 | title, 28 | style: TextStyle( 29 | fontSize: 20, 30 | fontWeight: FontWeight.bold, 31 | color: Colors.white, 32 | ), 33 | ), 34 | alignment: Alignment.center, 35 | width: double.infinity, 36 | padding: EdgeInsets.all(16.0), 37 | ), 38 | ), 39 | ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/widgets/settings_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SettingsCard extends StatelessWidget { 4 | final Function onTap; 5 | final IconData icon; 6 | final String title; 7 | 8 | const SettingsCard({ 9 | Key key, 10 | @required this.onTap, 11 | @required this.icon, 12 | @required this.title, 13 | }) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Card( 18 | shape: RoundedRectangleBorder( 19 | borderRadius: BorderRadius.circular(18), 20 | ), 21 | color: Colors.white, 22 | child: InkWell( 23 | onTap: onTap, 24 | borderRadius: BorderRadius.circular(18), 25 | child: Padding( 26 | padding: EdgeInsets.all(16.0), 27 | child: Row( 28 | children: [ 29 | Icon( 30 | icon, 31 | size: 40.0, 32 | color: Theme.of(context).primaryColor, 33 | ), 34 | SizedBox(width: 16.0), 35 | Text( 36 | title, 37 | style: TextStyle( 38 | fontSize: 20, 39 | fontWeight: FontWeight.bold, 40 | color: Theme.of(context).primaryColor, 41 | ), 42 | ) 43 | ], 44 | ), 45 | ), 46 | ), 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /lib/widgets/transaction_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/models/models.dart'; 2 | import 'package:expense_app/screens/screens.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:intl/intl.dart'; 5 | import 'package:expense_app/extensions/currency_extension.dart'; 6 | 7 | class TransactionItem extends StatelessWidget { 8 | TransactionItem({ 9 | Key key, 10 | @required Transaction transaction, 11 | @required Function deleteTransaction, 12 | }) : _transaction = transaction, 13 | _deleteTransaction = deleteTransaction, 14 | super(key: key); 15 | 16 | final Transaction _transaction; 17 | final Function _deleteTransaction; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return Card( 22 | margin: EdgeInsets.all(10), 23 | elevation: 8, 24 | shape: RoundedRectangleBorder( 25 | borderRadius: BorderRadius.circular(18), 26 | ), 27 | child: Dismissible( 28 | key: Key(_transaction.id), 29 | background: Container( 30 | decoration: BoxDecoration( 31 | color: Colors.red, 32 | borderRadius: BorderRadius.circular(18), 33 | ), 34 | padding: EdgeInsets.only(right: 20.0), 35 | child: Align( 36 | alignment: Alignment.centerRight, 37 | child: Icon( 38 | Icons.delete, 39 | color: Colors.white, 40 | size: 30.0, 41 | ), 42 | ), 43 | ), 44 | direction: DismissDirection.endToStart, 45 | onDismissed: (direction) { 46 | _deleteTransaction(_transaction.id); 47 | }, 48 | confirmDismiss: (DismissDirection direction) async { 49 | return await showDialog( 50 | context: context, 51 | builder: (BuildContext context) { 52 | return AlertDialog( 53 | title: Text("Confirm"), 54 | content: 55 | Text("Are you sure you wish to delete this transaction?"), 56 | actions: [ 57 | FlatButton( 58 | onPressed: () => Navigator.of(context).pop(true), 59 | child: Text("DELETE")), 60 | FlatButton( 61 | onPressed: () => Navigator.of(context).pop(false), 62 | child: Text("CANCEL"), 63 | ), 64 | ], 65 | ); 66 | }, 67 | ); 68 | }, 69 | child: InkWell( 70 | borderRadius: BorderRadius.circular(15.0), 71 | onTap: () { 72 | Navigator.push( 73 | context, 74 | MaterialPageRoute( 75 | builder: (context) => DetailsPage(transaction: _transaction), 76 | ), 77 | ); 78 | }, 79 | child: Row( 80 | children: [ 81 | Container( 82 | padding: EdgeInsets.all(10), 83 | margin: EdgeInsets.symmetric( 84 | horizontal: 20, 85 | vertical: 20, 86 | ), 87 | decoration: BoxDecoration( 88 | border: Border.all( 89 | color: Theme.of(context).primaryColor, 90 | width: 2, 91 | ), 92 | borderRadius: BorderRadius.circular(18), 93 | ), 94 | child: Text( 95 | '${_transaction.amount.parseCurrency()}', 96 | style: TextStyle( 97 | fontSize: 20, 98 | fontWeight: FontWeight.bold, 99 | color: Theme.of(context).primaryColor, 100 | ), 101 | ), 102 | ), 103 | Expanded( 104 | child: Column( 105 | crossAxisAlignment: CrossAxisAlignment.start, 106 | children: [ 107 | Text( 108 | _transaction.title, 109 | style: TextStyle( 110 | fontSize: 16, 111 | fontWeight: FontWeight.bold, 112 | overflow: TextOverflow.ellipsis, 113 | ), 114 | maxLines: 2, 115 | ), 116 | Text( 117 | DateFormat.yMMMd().format(_transaction.date), 118 | style: TextStyle( 119 | color: Colors.grey[600], 120 | ), 121 | ), 122 | ], 123 | ), 124 | ), 125 | SizedBox(width: 10.0), 126 | ], 127 | ), 128 | ), 129 | ), 130 | ); 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /lib/widgets/transaction_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/models/models.dart'; 2 | import 'package:expense_app/widgets/widgets.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | class TransactionList extends StatelessWidget { 6 | final List _transactions; 7 | final Function _deleteTransaction; 8 | 9 | TransactionList({List transactions, Function deleteTransaction}) 10 | : _transactions = transactions, 11 | _deleteTransaction = deleteTransaction; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return ListView.builder( 16 | itemBuilder: (context, index) { 17 | if (index == _transactions.length) { 18 | return SizedBox(height: 75.0); 19 | } 20 | if (index != 0 && index % 3 == 0 && _transactions.length > 4) { 21 | return Column( 22 | children: [ 23 | TransactionItem( 24 | transaction: _transactions[index], 25 | deleteTransaction: _deleteTransaction), 26 | BannerAdWidget(), 27 | ], 28 | ); 29 | } 30 | return TransactionItem( 31 | transaction: _transactions[index], 32 | deleteTransaction: _deleteTransaction); 33 | }, 34 | itemCount: _transactions.length + 1, 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/widgets/week_bar_chart.dart: -------------------------------------------------------------------------------- 1 | import 'package:fl_chart/fl_chart.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'dart:math'; 4 | 5 | import 'package:expense_app/models/models.dart'; 6 | 7 | class WeekBarChart extends StatefulWidget { 8 | final List _transactions; 9 | 10 | WeekBarChart({List transactions}) : _transactions = transactions; 11 | 12 | @override 13 | State createState() => WeekBarChartState(); 14 | } 15 | 16 | class WeekBarChartState extends State { 17 | final Color _barBackgroundColor = Colors.white; 18 | int _touchedIndex; 19 | double _total; 20 | List _spendings = List.generate(7, (index) => 0); 21 | 22 | double _calculateTotal() { 23 | if (_spendings.isNotEmpty) { 24 | _spendings.clear(); 25 | _spendings = List.generate(7, (index) => 0); 26 | } 27 | 28 | if (widget._transactions.isEmpty) { 29 | return 0; 30 | } 31 | double sum = 0; 32 | for (Transaction transaction in widget._transactions) { 33 | _spendings[transaction.date.weekday - 1] += transaction.amount; 34 | sum += transaction.amount; 35 | } 36 | return sum; 37 | } 38 | 39 | @override 40 | Widget build(BuildContext context) { 41 | _calculateTotal(); 42 | _total = _spendings.reduce(max); 43 | return Card( 44 | margin: EdgeInsets.all(10), 45 | elevation: 7, 46 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(18)), 47 | color: Theme.of(context).accentColor, 48 | child: Stack( 49 | children: [ 50 | Padding( 51 | padding: const EdgeInsets.all(16), 52 | child: Column( 53 | crossAxisAlignment: CrossAxisAlignment.stretch, 54 | mainAxisAlignment: MainAxisAlignment.start, 55 | mainAxisSize: MainAxisSize.max, 56 | children: [ 57 | Text( 58 | 'Weekly Expenses', 59 | style: TextStyle( 60 | color: Theme.of(context).primaryColorDark, 61 | fontSize: 24, 62 | fontWeight: FontWeight.bold, 63 | ), 64 | ), 65 | const SizedBox( 66 | height: 4, 67 | ), 68 | Text( 69 | 'Bar Chart', 70 | style: TextStyle( 71 | color: Theme.of(context).primaryColor, 72 | fontSize: 18, 73 | fontWeight: FontWeight.bold, 74 | ), 75 | ), 76 | const SizedBox( 77 | height: 38, 78 | ), 79 | Expanded( 80 | child: Padding( 81 | padding: const EdgeInsets.symmetric(horizontal: 8.0), 82 | child: BarChart( 83 | _mainBarData(), 84 | ), 85 | ), 86 | ), 87 | const SizedBox( 88 | height: 12, 89 | ), 90 | ], 91 | ), 92 | ), 93 | ], 94 | ), 95 | ); 96 | } 97 | 98 | BarChartGroupData _makeGroupData( 99 | int x, 100 | double y, { 101 | bool isTouched = false, 102 | double width = 22, 103 | }) { 104 | return BarChartGroupData( 105 | x: x, 106 | barRods: [ 107 | BarChartRodData( 108 | y: isTouched ? y + 1 : y, 109 | colors: [ 110 | isTouched 111 | ? Theme.of(context).primaryColorDark 112 | : Theme.of(context).primaryColor 113 | ], 114 | width: width, 115 | backDrawRodData: BackgroundBarChartRodData( 116 | show: true, y: _total, // Length of all Bars 117 | colors: [_barBackgroundColor]), 118 | ), 119 | ], 120 | ); 121 | } 122 | 123 | // Actual Data 124 | List _showingGroups() => List.generate(7, (i) { 125 | switch (i) { 126 | case 0: 127 | return _makeGroupData(0, _spendings[0], 128 | isTouched: i == _touchedIndex); 129 | case 1: 130 | return _makeGroupData(1, _spendings[1], 131 | isTouched: i == _touchedIndex); 132 | case 2: 133 | return _makeGroupData(2, _spendings[2], 134 | isTouched: i == _touchedIndex); 135 | case 3: 136 | return _makeGroupData(3, _spendings[3], 137 | isTouched: i == _touchedIndex); 138 | case 4: 139 | return _makeGroupData(4, _spendings[4], 140 | isTouched: i == _touchedIndex); 141 | case 5: 142 | return _makeGroupData(5, _spendings[5], 143 | isTouched: i == _touchedIndex); 144 | case 6: 145 | return _makeGroupData(6, _spendings[6], 146 | isTouched: i == _touchedIndex); 147 | default: 148 | return null; 149 | } 150 | }); 151 | 152 | BarChartData _mainBarData() { 153 | return BarChartData( 154 | barTouchData: BarTouchData( 155 | touchTooltipData: BarTouchTooltipData( 156 | tooltipBgColor: Colors.blueGrey, 157 | getTooltipItem: (group, groupIndex, rod, rodIndex) { 158 | String weekDay; 159 | switch (group.x.toInt()) { 160 | case 0: 161 | weekDay = 'Monday'; 162 | break; 163 | case 1: 164 | weekDay = 'Tuesday'; 165 | break; 166 | case 2: 167 | weekDay = 'Wednesday'; 168 | break; 169 | case 3: 170 | weekDay = 'Thursday'; 171 | break; 172 | case 4: 173 | weekDay = 'Friday'; 174 | break; 175 | case 5: 176 | weekDay = 'Saturday'; 177 | break; 178 | case 6: 179 | weekDay = 'Sunday'; 180 | break; 181 | } 182 | return BarTooltipItem( 183 | weekDay + '\n' + '₹ ' + (rod.y - 1).toString(), 184 | TextStyle(color: Colors.white, fontFamily: 'Poppins')); 185 | }), 186 | touchCallback: (touchEvent, barTouchResponse) { 187 | setState(() { 188 | if (barTouchResponse != null && 189 | barTouchResponse.spot != null && 190 | touchEvent.isInterestedForInteractions) { 191 | _touchedIndex = barTouchResponse.spot.touchedBarGroupIndex; 192 | } else { 193 | _touchedIndex = -1; 194 | } 195 | }); 196 | }, 197 | ), 198 | titlesData: FlTitlesData( 199 | show: true, 200 | topTitles: SideTitles(showTitles: false), 201 | bottomTitles: SideTitles( 202 | showTitles: true, 203 | getTextStyles: (context, value) => TextStyle( 204 | color: Theme.of(context).primaryColor, 205 | fontWeight: FontWeight.bold, 206 | fontSize: 14, 207 | ), 208 | margin: 16, 209 | getTitles: (double value) { 210 | switch (value.toInt()) { 211 | case 0: 212 | return 'M'; 213 | case 1: 214 | return 'T'; 215 | case 2: 216 | return 'W'; 217 | case 3: 218 | return 'T'; 219 | case 4: 220 | return 'F'; 221 | case 5: 222 | return 'S'; 223 | case 6: 224 | return 'S'; 225 | default: 226 | return ''; 227 | } 228 | }, 229 | ), 230 | leftTitles: SideTitles( 231 | showTitles: false, 232 | ), 233 | rightTitles: SideTitles( 234 | getTextStyles: (context, value) => TextStyle( 235 | color: Colors.white, fontSize: 8, fontWeight: FontWeight.bold), 236 | showTitles: true, 237 | )), 238 | borderData: FlBorderData( 239 | show: false, 240 | ), 241 | barGroups: _showingGroups(), 242 | ); 243 | } 244 | } 245 | -------------------------------------------------------------------------------- /lib/widgets/week_pie_chart.dart: -------------------------------------------------------------------------------- 1 | import 'package:expense_app/models/models.dart'; 2 | import 'package:fl_chart/fl_chart.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | class WeekPieChart extends StatefulWidget { 6 | final List _transactions; 7 | const WeekPieChart({Key key, List transactions}) 8 | : _transactions = transactions, 9 | super(key: key); 10 | 11 | @override 12 | _WeekPieChartState createState() => _WeekPieChartState(); 13 | } 14 | 15 | class _WeekPieChartState extends State { 16 | List _spendings = List.generate(7, (index) => 0); 17 | 18 | void _generateWeeklyReport() { 19 | if (_spendings.isNotEmpty) { 20 | _spendings.clear(); 21 | _spendings = List.generate(7, (index) => 0); 22 | } 23 | for (Transaction transaction in widget._transactions) { 24 | _spendings[transaction.date.weekday - 1] += transaction.amount; 25 | } 26 | } 27 | 28 | @override 29 | Widget build(BuildContext context) { 30 | _generateWeeklyReport(); 31 | return Card( 32 | margin: EdgeInsets.all(10), 33 | elevation: 7, 34 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(18)), 35 | color: Theme.of(context).accentColor, 36 | child: Stack( 37 | children: [ 38 | Padding( 39 | padding: const EdgeInsets.all(16), 40 | child: Column( 41 | crossAxisAlignment: CrossAxisAlignment.stretch, 42 | mainAxisAlignment: MainAxisAlignment.start, 43 | mainAxisSize: MainAxisSize.max, 44 | children: [ 45 | Text( 46 | 'Weekly Expenses', 47 | style: TextStyle( 48 | color: Theme.of(context).primaryColorDark, 49 | fontSize: 24, 50 | fontWeight: FontWeight.bold, 51 | ), 52 | ), 53 | const SizedBox( 54 | height: 4, 55 | ), 56 | Text( 57 | 'Pie Chart', 58 | style: TextStyle( 59 | color: Theme.of(context).primaryColor, 60 | fontSize: 18, 61 | fontWeight: FontWeight.bold, 62 | ), 63 | ), 64 | Expanded( 65 | child: PieChart( 66 | PieChartData( 67 | sectionsSpace: 3.0, 68 | centerSpaceRadius: 00.0, 69 | startDegreeOffset: 130.0, 70 | borderData: 71 | FlBorderData(border: Border.all(), show: false), 72 | sections: [ 73 | PieChartSectionData( 74 | showTitle: false, 75 | color: Colors.redAccent, 76 | value: _spendings[0], 77 | radius: 75.0, 78 | ), 79 | PieChartSectionData( 80 | showTitle: false, 81 | color: Colors.deepPurple, 82 | value: _spendings[1], 83 | radius: 75.0, 84 | ), 85 | PieChartSectionData( 86 | showTitle: false, 87 | color: Colors.grey, 88 | value: _spendings[2], 89 | radius: 75.0, 90 | ), 91 | PieChartSectionData( 92 | showTitle: false, 93 | color: Colors.green, 94 | value: _spendings[3], 95 | radius: 75.0, 96 | ), 97 | PieChartSectionData( 98 | showTitle: false, 99 | color: Colors.brown, 100 | value: _spendings[4], 101 | radius: 75.0, 102 | ), 103 | PieChartSectionData( 104 | showTitle: false, 105 | color: Colors.blue, 106 | value: _spendings[5], 107 | radius: 75.0, 108 | ), 109 | PieChartSectionData( 110 | showTitle: false, 111 | color: Colors.black, 112 | value: _spendings[6], 113 | radius: 75.0, 114 | ), 115 | ], 116 | ), 117 | ), 118 | ), 119 | SizedBox(height: 8.0), 120 | Row( 121 | mainAxisAlignment: MainAxisAlignment.spaceAround, 122 | mainAxisSize: MainAxisSize.max, 123 | children: const [ 124 | Indicator( 125 | color: Colors.redAccent, 126 | text: 'Mon', 127 | ), 128 | SizedBox( 129 | height: 4, 130 | ), 131 | Indicator( 132 | color: Colors.deepPurple, 133 | text: 'Tue', 134 | ), 135 | SizedBox( 136 | height: 4, 137 | ), 138 | Indicator( 139 | color: Colors.grey, 140 | text: 'Wed', 141 | ), 142 | SizedBox( 143 | height: 4, 144 | ), 145 | Indicator( 146 | color: Colors.green, 147 | text: 'Thu', 148 | ), 149 | SizedBox( 150 | height: 4, 151 | ), 152 | Indicator( 153 | color: Colors.brown, 154 | text: 'Fri', 155 | ), 156 | SizedBox( 157 | height: 4, 158 | ), 159 | Indicator( 160 | color: Colors.blue, 161 | text: 'Sat', 162 | ), 163 | SizedBox( 164 | height: 4, 165 | ), 166 | Indicator( 167 | color: Colors.black, 168 | text: 'Sun', 169 | ), 170 | ], 171 | ), 172 | ], 173 | ), 174 | ), 175 | ], 176 | ), 177 | ); 178 | } 179 | } 180 | 181 | class Indicator extends StatelessWidget { 182 | final Color _color; 183 | final String _text; 184 | final double _size; 185 | final Color _textColor; 186 | 187 | const Indicator({ 188 | Key key, 189 | @required Color color, 190 | @required String text, 191 | double size = 16, 192 | Color textColor = const Color(0xff505050), 193 | }) : _color = color, 194 | _text = text, 195 | _size = size, 196 | _textColor = textColor, 197 | super(key: key); 198 | 199 | @override 200 | Widget build(BuildContext context) { 201 | return Row( 202 | children: [ 203 | Container( 204 | width: _size, 205 | height: _size, 206 | decoration: BoxDecoration( 207 | shape: BoxShape.circle, 208 | color: _color, 209 | ), 210 | ), 211 | const SizedBox( 212 | width: 4, 213 | ), 214 | Text( 215 | _text, 216 | style: TextStyle( 217 | fontSize: 12, fontWeight: FontWeight.bold, color: _textColor), 218 | ) 219 | ], 220 | ); 221 | } 222 | } 223 | -------------------------------------------------------------------------------- /lib/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'new_transaction.dart'; 2 | export 'transaction_item.dart'; 3 | export 'transaction_list.dart'; 4 | export 'week_bar_chart.dart'; 5 | export 'week_pie_chart.dart'; 6 | export 'banner_ad.dart'; 7 | export 'settings_card.dart'; 8 | export 'select_color_card.dart'; 9 | export 'dev_link.dart'; 10 | export 'rounded_image.dart'; 11 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.8.1" 11 | bloc: 12 | dependency: "direct main" 13 | description: 14 | name: bloc 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "7.2.0" 18 | boolean_selector: 19 | dependency: transitive 20 | description: 21 | name: boolean_selector 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.1.0" 25 | camera: 26 | dependency: transitive 27 | description: 28 | name: camera 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "0.9.4" 32 | camera_platform_interface: 33 | dependency: transitive 34 | description: 35 | name: camera_platform_interface 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.1.1" 39 | camera_web: 40 | dependency: transitive 41 | description: 42 | name: camera_web 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.2.1" 46 | characters: 47 | dependency: transitive 48 | description: 49 | name: characters 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.0" 53 | charcode: 54 | dependency: transitive 55 | description: 56 | name: charcode 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.3.1" 60 | clock: 61 | dependency: transitive 62 | description: 63 | name: clock 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.1.0" 67 | collection: 68 | dependency: transitive 69 | description: 70 | name: collection 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.15.0" 74 | cross_file: 75 | dependency: transitive 76 | description: 77 | name: cross_file 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "0.3.1+5" 81 | crypto: 82 | dependency: transitive 83 | description: 84 | name: crypto 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "3.0.1" 88 | cupertino_icons: 89 | dependency: "direct main" 90 | description: 91 | name: cupertino_icons 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "0.1.3" 95 | equatable: 96 | dependency: "direct main" 97 | description: 98 | name: equatable 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "2.0.3" 102 | fake_async: 103 | dependency: transitive 104 | description: 105 | name: fake_async 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.2.0" 109 | ffi: 110 | dependency: transitive 111 | description: 112 | name: ffi 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.1.2" 116 | file: 117 | dependency: transitive 118 | description: 119 | name: file 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "6.1.2" 123 | fl_chart: 124 | dependency: "direct main" 125 | description: 126 | name: fl_chart 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "0.40.0" 130 | flutter: 131 | dependency: "direct main" 132 | description: flutter 133 | source: sdk 134 | version: "0.0.0" 135 | flutter_bloc: 136 | dependency: "direct main" 137 | description: 138 | name: flutter_bloc 139 | url: "https://pub.dartlang.org" 140 | source: hosted 141 | version: "7.3.0" 142 | flutter_plugin_android_lifecycle: 143 | dependency: transitive 144 | description: 145 | name: flutter_plugin_android_lifecycle 146 | url: "https://pub.dartlang.org" 147 | source: hosted 148 | version: "2.0.3" 149 | flutter_test: 150 | dependency: "direct dev" 151 | description: flutter 152 | source: sdk 153 | version: "0.0.0" 154 | flutter_web_plugins: 155 | dependency: transitive 156 | description: flutter 157 | source: sdk 158 | version: "0.0.0" 159 | font_awesome_flutter: 160 | dependency: "direct main" 161 | description: 162 | name: font_awesome_flutter 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "9.2.0" 166 | google_mobile_ads: 167 | dependency: "direct main" 168 | description: 169 | name: google_mobile_ads 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "0.13.5" 173 | intl: 174 | dependency: "direct main" 175 | description: 176 | name: intl 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "0.16.1" 180 | js: 181 | dependency: transitive 182 | description: 183 | name: js 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "0.6.3" 187 | likk_picker: 188 | dependency: "direct main" 189 | description: 190 | name: likk_picker 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "1.0.7+1" 194 | matcher: 195 | dependency: transitive 196 | description: 197 | name: matcher 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "0.12.10" 201 | meta: 202 | dependency: transitive 203 | description: 204 | name: meta 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "1.7.0" 208 | nested: 209 | dependency: transitive 210 | description: 211 | name: nested 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.0.0" 215 | package_info: 216 | dependency: "direct main" 217 | description: 218 | name: package_info 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "2.0.2" 222 | path: 223 | dependency: transitive 224 | description: 225 | name: path 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "1.8.0" 229 | path_provider: 230 | dependency: "direct main" 231 | description: 232 | name: path_provider 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "2.0.5" 236 | path_provider_linux: 237 | dependency: transitive 238 | description: 239 | name: path_provider_linux 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "2.1.0" 243 | path_provider_macos: 244 | dependency: transitive 245 | description: 246 | name: path_provider_macos 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "2.0.2" 250 | path_provider_platform_interface: 251 | dependency: transitive 252 | description: 253 | name: path_provider_platform_interface 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.0.1" 257 | path_provider_windows: 258 | dependency: transitive 259 | description: 260 | name: path_provider_windows 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "2.0.3" 264 | pedantic: 265 | dependency: transitive 266 | description: 267 | name: pedantic 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "1.11.1" 271 | photo_manager: 272 | dependency: transitive 273 | description: 274 | name: photo_manager 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.3.2" 278 | platform: 279 | dependency: transitive 280 | description: 281 | name: platform 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "3.0.2" 285 | plugin_platform_interface: 286 | dependency: transitive 287 | description: 288 | name: plugin_platform_interface 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "2.0.1" 292 | process: 293 | dependency: transitive 294 | description: 295 | name: process 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "4.2.3" 299 | provider: 300 | dependency: transitive 301 | description: 302 | name: provider 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "6.0.0" 306 | quiver: 307 | dependency: transitive 308 | description: 309 | name: quiver 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "3.0.1" 313 | shared_preferences: 314 | dependency: "direct main" 315 | description: 316 | name: shared_preferences 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "2.0.8" 320 | shared_preferences_linux: 321 | dependency: transitive 322 | description: 323 | name: shared_preferences_linux 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "2.0.2" 327 | shared_preferences_macos: 328 | dependency: transitive 329 | description: 330 | name: shared_preferences_macos 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "2.0.2" 334 | shared_preferences_platform_interface: 335 | dependency: transitive 336 | description: 337 | name: shared_preferences_platform_interface 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "2.0.0" 341 | shared_preferences_web: 342 | dependency: transitive 343 | description: 344 | name: shared_preferences_web 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "2.0.2" 348 | shared_preferences_windows: 349 | dependency: transitive 350 | description: 351 | name: shared_preferences_windows 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "2.0.2" 355 | sky_engine: 356 | dependency: transitive 357 | description: flutter 358 | source: sdk 359 | version: "0.0.99" 360 | source_span: 361 | dependency: transitive 362 | description: 363 | name: source_span 364 | url: "https://pub.dartlang.org" 365 | source: hosted 366 | version: "1.8.1" 367 | sqflite: 368 | dependency: "direct main" 369 | description: 370 | name: sqflite 371 | url: "https://pub.dartlang.org" 372 | source: hosted 373 | version: "2.0.0+4" 374 | sqflite_common: 375 | dependency: transitive 376 | description: 377 | name: sqflite_common 378 | url: "https://pub.dartlang.org" 379 | source: hosted 380 | version: "2.0.1+1" 381 | stack_trace: 382 | dependency: transitive 383 | description: 384 | name: stack_trace 385 | url: "https://pub.dartlang.org" 386 | source: hosted 387 | version: "1.10.0" 388 | stream_channel: 389 | dependency: transitive 390 | description: 391 | name: stream_channel 392 | url: "https://pub.dartlang.org" 393 | source: hosted 394 | version: "2.1.0" 395 | stream_transform: 396 | dependency: transitive 397 | description: 398 | name: stream_transform 399 | url: "https://pub.dartlang.org" 400 | source: hosted 401 | version: "2.0.0" 402 | string_scanner: 403 | dependency: transitive 404 | description: 405 | name: string_scanner 406 | url: "https://pub.dartlang.org" 407 | source: hosted 408 | version: "1.1.0" 409 | synchronized: 410 | dependency: transitive 411 | description: 412 | name: synchronized 413 | url: "https://pub.dartlang.org" 414 | source: hosted 415 | version: "3.0.0" 416 | term_glyph: 417 | dependency: transitive 418 | description: 419 | name: term_glyph 420 | url: "https://pub.dartlang.org" 421 | source: hosted 422 | version: "1.2.0" 423 | test_api: 424 | dependency: transitive 425 | description: 426 | name: test_api 427 | url: "https://pub.dartlang.org" 428 | source: hosted 429 | version: "0.4.2" 430 | typed_data: 431 | dependency: transitive 432 | description: 433 | name: typed_data 434 | url: "https://pub.dartlang.org" 435 | source: hosted 436 | version: "1.3.0" 437 | url_launcher: 438 | dependency: "direct main" 439 | description: 440 | name: url_launcher 441 | url: "https://pub.dartlang.org" 442 | source: hosted 443 | version: "6.0.12" 444 | url_launcher_linux: 445 | dependency: transitive 446 | description: 447 | name: url_launcher_linux 448 | url: "https://pub.dartlang.org" 449 | source: hosted 450 | version: "2.0.2" 451 | url_launcher_macos: 452 | dependency: transitive 453 | description: 454 | name: url_launcher_macos 455 | url: "https://pub.dartlang.org" 456 | source: hosted 457 | version: "2.0.2" 458 | url_launcher_platform_interface: 459 | dependency: transitive 460 | description: 461 | name: url_launcher_platform_interface 462 | url: "https://pub.dartlang.org" 463 | source: hosted 464 | version: "2.0.4" 465 | url_launcher_web: 466 | dependency: transitive 467 | description: 468 | name: url_launcher_web 469 | url: "https://pub.dartlang.org" 470 | source: hosted 471 | version: "2.0.4" 472 | url_launcher_windows: 473 | dependency: transitive 474 | description: 475 | name: url_launcher_windows 476 | url: "https://pub.dartlang.org" 477 | source: hosted 478 | version: "2.0.2" 479 | uuid: 480 | dependency: "direct main" 481 | description: 482 | name: uuid 483 | url: "https://pub.dartlang.org" 484 | source: hosted 485 | version: "3.0.4" 486 | vector_math: 487 | dependency: transitive 488 | description: 489 | name: vector_math 490 | url: "https://pub.dartlang.org" 491 | source: hosted 492 | version: "2.1.0" 493 | win32: 494 | dependency: transitive 495 | description: 496 | name: win32 497 | url: "https://pub.dartlang.org" 498 | source: hosted 499 | version: "2.2.9" 500 | xdg_directories: 501 | dependency: transitive 502 | description: 503 | name: xdg_directories 504 | url: "https://pub.dartlang.org" 505 | source: hosted 506 | version: "0.2.0" 507 | sdks: 508 | dart: ">=2.14.0 <3.0.0" 509 | flutter: ">=2.5.0" 510 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: expense_app 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `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 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | bloc: ^7.2.0 25 | cupertino_icons: ^0.1.3 26 | equatable: ^2.0.3 27 | fl_chart: ^0.40.0 28 | flutter: 29 | sdk: flutter 30 | flutter_bloc: ^7.3.0 31 | font_awesome_flutter: ^9.2.0 32 | google_mobile_ads: ^0.13.5 33 | intl: ^0.16.1 34 | likk_picker: ^1.0.7+1 35 | package_info: ^2.0.2 36 | path_provider: ^2.0.5 37 | shared_preferences: ^2.0.8 38 | sqflite: ^2.0.0+4 39 | url_launcher: ^6.0.12 40 | uuid: ^3.0.4 41 | 42 | dev_dependencies: 43 | flutter_test: 44 | sdk: flutter 45 | 46 | # For information on the generic Dart part of this file, see the 47 | # following page: https://dart.dev/tools/pub/pubspec 48 | # The following section is specific to Flutter. 49 | flutter: 50 | # The following line ensures that the Material Icons font is 51 | # included with your application, so that you can use the icons in 52 | # the material Icons class. 53 | uses-material-design: true 54 | # To add assets to your application, add an assets section, like this: 55 | assets: 56 | - assets/images/ 57 | # An image asset can refer to one or more resolution-specific "variants", see 58 | # https://flutter.dev/assets-and-images/#resolution-aware. 59 | # For details regarding adding assets from package dependencies, see 60 | # https://flutter.dev/assets-and-images/#from-packages 61 | # To add custom fonts to your application, add a fonts section here, 62 | # in this "flutter" section. Each entry in this list should have a 63 | # "family" key with the font family name, and a "fonts" key with a 64 | # list giving the asset and other descriptors for the font. For 65 | # example: 66 | fonts: 67 | - family: OpenSans 68 | fonts: 69 | - asset: assets/fonts/OpenSans-Regular.ttf 70 | - asset: assets/fonts/OpenSans-Bold.ttf 71 | weight: 700 72 | - family: Poppins 73 | fonts: 74 | - asset: assets/fonts/Poppins-Regular.ttf 75 | - asset: assets/fonts/Poppins-Bold.ttf 76 | weight: 700 77 | - asset: assets/fonts/Poppins-Light.ttf 78 | - asset: assets/fonts/Poppins-Medium.ttf 79 | # For details regarding fonts from package dependencies, 80 | # see https://flutter.dev/custom-fonts/#from-packages 81 | -------------------------------------------------------------------------------- /screenshots/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/icon.png -------------------------------------------------------------------------------- /screenshots/ss1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss1.png -------------------------------------------------------------------------------- /screenshots/ss2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss2.png -------------------------------------------------------------------------------- /screenshots/ss3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss3.png -------------------------------------------------------------------------------- /screenshots/ss4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss4.png -------------------------------------------------------------------------------- /screenshots/ss5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss5.png -------------------------------------------------------------------------------- /screenshots/ss6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss6.png -------------------------------------------------------------------------------- /screenshots/ss7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss7.png -------------------------------------------------------------------------------- /screenshots/ss8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankanSikdar/flutter-expense-tracker/237fdf6b2db1bedfbaf537cd830bbe8a72a3d123/screenshots/ss8.png --------------------------------------------------------------------------------