My app is running fine but the main issue is that every time i open the app or reopen the page the it rebuilds and the firebase request increases exponentially. The only solution i can think of it is to implement shared preferences to store the data locally to remove unnecessary requests.