dayWidgetMaker method

Widget dayWidgetMaker(
  1. dynamic day,
  2. dynamic context
)

Implementation

Widget dayWidgetMaker(day, context) {
  return InkWell(
    onTap: (() {
      Navigator.pop(context);
      onHeaderChanged.call(day);
    }),
    child: Center(
      child: Container(
        padding: EdgeInsets.all(8),
        decoration: day == selectedDay ? selectedDecoration : null,
        child: Text(
          '$day',
          style: TextStyle(
            fontSize: 16,
            color: day == selectedDay ? Colors.white : null,
            // fontFamily: DayStyle?.font,
          ),
        ),
      ),
    ),
  );
}