FabioFiuza / scrollable_clean_calendar

A calendar with vertical scroll
MIT License
35 stars 59 forks source link

daySelected color change to unselected color when update ui in onDayTapped method #45

Open guvanch07 opened 1 year ago

guvanch07 commented 1 year ago
CleanCalendarController get calendarController => CleanCalendarController(
        minDate: DateTime.now(),
        maxDate: DateTime.now().add(const Duration(days: 32)),
        onDayTapped: (d) {
          read.onChangedDateMain(d); <<<<<<<<<<<<<<<<<<calling method
          log('${d.timeZoneOffset.inHours}');
        },
        rangeMode: false,
        weekdayStart: DateTime.monday,
      );
void onChangedDateMain(DateTime date) {
    final formated = DateFormat('d MMMM,EEEE', 'en').format(date);
    choosedDateMain = formated;
    notifyListeners();
  }