Skip to main content

Posts

Showing posts with the label Flutter

Code with me: Savings Tracker App- Part 1: Setting up File Structure

 My goal for this project is to create a savings tracker app. With this project, I will also be learning how to implement clean app architecture and use Provider for State Management. I may even endeavor to create my own SQL database for local storage.  I came across this tutorial on how to use Provider and the MVVM app architecture. I like this tutorial because he broke down the Model View View Model architecture in a way that I was able to grasp.  What is a View Model? The Model is the business logic portion of the app. Business logic is the core function of the app. It is what you would be able to do on paper if you didn't have a computer. For my savings tracker app, the business logic is the function that allows you to add and subtract money from the savings fund.  What is a View? The View is the UI of the app. It is the screens and buttons that the user interacts with. To have clean architecture it is important to keep the business logic and any databases or AP...

Adding Customizations: Allowing user to set default background image

 So right now in my Shopping List App, the user is able to change the background for each of their lists. Their choice is saved in Firebase Firestore so it will persist across devices and sessions.  Right now the default background for every new list is the blue background. But what if the user doesn't want to have to change the background for every single list. What if they just want their favorite picture to be the background for every list.  Well to make that possible I want to create a page that allows them to choose what the default background picture will be for every new list created.  To do this I will create a document in the Firebase Firestore called defaultBackground and store the user's default selection there. This will be stored in a variable. When new lists are created it will fetch the image from that variable. This will only be used for the first time a list is created. Once a list is created to change the background they can do so inside of that lis...