getDaysNameUI method

List<Widget> getDaysNameUI()

Implementation

List<Widget> getDaysNameUI() {
  final List<Widget> listUI = [];

  for (var i = 0; i < 7; i++) {
    listUI.add(
      Expanded(
        child: Center(
          child: Text(
            DateFormat("EEE").format(dateList[i]),
            style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: widget.weekDaysTextColor),
          ),
        ),
      ),
    );
  }

  return listUI;
}