This code does not covers all the possible scenarios. You can definitely add support for EmtpyView. FutureBuilder evaluates every single time when the build function is fired or when the widget is rendered so it might not be the best solution for this possible case.

iOS Developer, speaker and educator. Top Udemy and LinkedIn instructor. Lead instructor at DigitalCrafts. https://www.udemy.com/user/mohammad-azam-2/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store