how to handle http request in flutter code example Example 1: http flutter http: ^0.12.2 Example 2: http package flutter dependencies: http: ^0.12.1