getDaysNameUI method

List<Widget> getDaysNameUI()

Implementation

List<Widget> getDaysNameUI() {
  final List<Widget> listUI = <Widget>[];
  for (int 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.primaryColor),
          ),
        ),
      ),
    );
  }
  return listUI;
}