Category : dio

I’m new to flutter. I have here my dropdown list where i’ve fetched data from my server. String _mySelection; final String url = "http://10.23.13.0/schoolproj/fetch.php"; List data = List(); Future<String> getSWData() async { var res = await http .get(Uri.encodeFull(url), headers: {"Accept": "application/json"}); var resBody = json.decode(res.body); setState(() { data = resBody; }); And a Dropdown widget ..

Read more

I’m using Dio package to retrieve data from my database(php and mySQL). The application was working fine for more than 1 year after I upgrade Flutter for some reason I’m now getting this error: DioError [DioErrorType.DEFAULT]: OS Error: Connection reset by peer, errno = 104 How can I solve this ? Sourc..

Read more