Here you will learn how to use http bloc example The code for main.dart The code for data_screen.dart The code for repository.dart The code for app_events.dart The code for app_blocs.dart The code for user_model.dart
Month: September 2022
Flutter Go Router Go vs Push
Previously we have seen how to navigate to different screens using go router. In this section we will take a closer look how to use context.go() and context.push() GoRouter uses context.go() and context.push(). They all push new screens to the stack. context.go() removes all the previous stacks context.push() keeps the earlier stacks. If you learn…
Flutter BLoC Http Post Request
Previously we have covered BLoC http get request. Now we do post request here. Flutter BLoC http post request example. Using bloc post request could be scary for beginners. Here I have covered in detail about post request. First create a repository. This repository would connect to the server and post data. This is where…