animateToCurrentDay method

void animateToCurrentDay()

Implementation

void animateToCurrentDay() {
  WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
    if (_scrollController.hasClients)
      _scrollController.animateTo(findSelectedDayOffset(),
          duration: Duration(milliseconds: 500), curve: Curves.ease);
  });
}