Skip to content

Instantly share code, notes, and snippets.

@shiburagi

shiburagi/fix.dart

Last active Sep 22, 2019
Embed
What would you like to do?
Future<List> _getAllEvents(String lectid) async{
var url = "http://www.71slabsolution.com/appointmy/geteventslect.php";
final response = await http.post(url,body: {
"useridval":lectid.toString(),
});
var jsonData = json.decode(response.body);
_events={};
for(var i = 0; i < jsonData.length; i++) {
var _dt = jsonData[i]['EVT_DT'];
List _listDate = _dt.split("-");
print(jsonData[i]['EVT_DT']);
_events[DateTime.parse(jsonData[i]['EVT_DT'])] = _dt;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.