fix
This commit is contained in:
parent
cd41e026ee
commit
6244a587db
@ -119,8 +119,15 @@ class Mount with ChangeNotifier {
|
|||||||
return <String>[];
|
return <String>[];
|
||||||
}
|
}
|
||||||
|
|
||||||
debugPrint("response|$jsonDecode(response.body)");
|
List<String> ret = [];
|
||||||
return jsonDecode(response.body) as List<String>;
|
{
|
||||||
|
final list = jsonDecode(response.body) as List;
|
||||||
|
for (var item in list) {
|
||||||
|
ret.add(item as String);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint('$e');
|
debugPrint('$e');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user