learn how to use flutter bloc to manage your states in an example