I want to get current months all dates and weekdays like below image
i get all dates with below code
DateTime now = DateTime.now();
late DateTime lastDayOfMonth;
lastDayOfMonth = DateTime(now.year, now.month + 1, 0);
Row(
children: List.generate(
lastDayOfMonth.day,
(index) => Padding(
padding: const EdgeInsets.only(right: 24.0),
child: Text(
"${index + 1}",
),
),
),
but i didn't get weekdays according dates