https://api.androidhive.info/json/movies.json
- Clone this repo
- Run Packages get
- Open the Chrome browser with the command on MAC
open /Applications/Google\ Chrome.app --args --disable-web-security --user-data-dir
- We used the above command because when fetching the data from API, Chrome passes additional parameters to the request which results in
XMHttpRequestError
. You can check the issue at: flutter/flutter#32892