buildRefreshView method
Implementation
buildRefreshView(BuildContext context) {
return AnimatedOpacity(
duration: const Duration(milliseconds: 300),
opacity: !isInTodayIndex() ? 1 : 0,
child: InkWell(
customBorder: CircleBorder(),
onTap: () {
TimelineCalendar.dateTime =
TimelineCalendar.calendarProvider.getDateTime();
onDateTimeReset.call();
},
child: Padding(
padding: const EdgeInsets.all(5),
child: Icon(
Icons.restore,
size: 24,
color: HeaderOptions.of(context).resetDateColor,
),
),
),
);
}