Skip to main content

Posts

Showing posts from May, 2021

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 list and it wi