flutter limit http response time
final http.Response response =
await http.get(Uri.parse(URL_TO_FETCH_DATA))
.timeout(const Duration(seconds: 5));
reference:
https://stackoverflow.com/questions/51487818/set-timeout-for-httpclient-get-request