void _addSpecialRegions() {
final DateTime date = DateTime.now();
Random random = Random();
for (int i = 0; i < _employeeCollection.length; i++) {
_specialTimeRegions.add(TimeRegion(
startTime: DateTime(date.year, date.month, date.day, 13, 0, 0),
endTime: DateTime(date.year, date.month, date.day, 14, 0, 0),
//text: 'Lunch',
resourceIds: <Object>[_employeeCollection[i].id],
recurrenceRule: 'FREQ=DAILY;INTERVAL=1',
color: Colors.red,
enablePointerInteraction: false));
}
}
I'm looking for an example code about resource view with json (online) in Flutter. Can you help me?