Problem with http.get and Null types in response ift.tt/3fM10U0 Hi! Does anybody can help me on this? This is a really weird behaviour if you ask me. stackoverflow.com/questions/6297… Thanks guys! @FlutterDev #flutterdev
2
4
9
0
2
@r_FlutterDev @FlutterDev Something like this will do try { final Response response = await http.get(finalUrl); if (response.statusCode == 200) { final encode = jsonDecode(response.body); } } catch (e) { print(e); }
@r_FlutterDev @FlutterDev This happened to me as well not a long time ago, wrapping it on try catch will give you the stacktrace, you need to do it manually