I made a blank screen, where I added a timer of 300 miliseconds using Future.delayed, which then took me to the required screen. This is how I solved it.