无法加载源'dart:convert / runtime / libconvert_patch.dart':<source not =“” available =“” />

时间:2019-01-24 13:01:44

标签: dart flutter

enter image description here

  

我无法摆脱这个错误

Future<List<Widget>> getTeamPages(String idLeague) async {
    var data = await http.get(
        "https://www.thesportsdb.com/api/v1/json/1/lookup_all_teams.php?id=$idLeague");


    List<Widget> listTeamPages = [];

    var jsonData = json.decode(data.body);

    for (var s in jsonData["teams"]) {

0 个答案:

没有答案