flutter http get post code example Example 1: import http flutter dependencies: http: ^0.12.2 Example 2: http package flutter dependencies: http: ^0.12.1