getInformationView function

Widget getInformationView(
  1. Color daySelectedColor,
  2. Color themeColor
)

Implementation

Widget getInformationView(Color daySelectedColor, Color themeColor) {
  const double fontSize = 6;
  const double circleSize = 8;

  return Padding(
    padding: const EdgeInsets.only(left: 5, right: 5),
    child: Row(
      mainAxisAlignment: MainAxisAlignment.start,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        const SizedBox(
          width: 5,
        ),
        Container(
          margin: const EdgeInsets.only(right: 2.0),
          width: circleSize,
          height: circleSize,
          decoration: const BoxDecoration(
            shape: BoxShape.circle,
            color: defaultMenstruationColor,
          ),
        ),
        Text(
          WidgetBaseLanguage.periodLabel,
          style: TextStyle(
            fontSize: fontSize,
            fontFamily: MenstrualCycleWidget.defaultFontFamily,
          ),
        ),
        const SizedBox(
          width: 5,
        ),
        DottedBorder(
          color: defaultOvulationColor,
          borderType: BorderType.circle,
          strokeWidth: 1,
          child: Container(
            margin: const EdgeInsets.only(
              left: 2.0,
              right: 2.0,
            ),
            width: circleSize - 2,
            height: circleSize - 2,
            decoration: const BoxDecoration(
              shape: BoxShape.circle,
              color: Colors.white,
            ),
          ),
        ),
        Text(
          WidgetBaseLanguage.predictOvulationDateLabel,
          style: TextStyle(
            fontSize: fontSize,
            fontFamily: MenstrualCycleWidget.defaultFontFamily,
          ),
        ),
        const SizedBox(
          width: 5,
        ),
        DottedBorder(
          color: defaultMenstruationColor,
          borderType: BorderType.circle,
          strokeWidth: 1,
          child: Container(
            margin: const EdgeInsets.only(
              left: 2.0,
              right: 2.0,
            ),
            width: circleSize - 2,
            height: circleSize - 2,
            decoration: const BoxDecoration(
              shape: BoxShape.circle,
              color: Colors.white,
            ),
          ),
        ),
        Text(
          WidgetBaseLanguage.predictPeriodDateLabel,
          style: TextStyle(
            fontSize: fontSize,
            fontFamily: MenstrualCycleWidget.defaultFontFamily,
          ),
        ),
        const SizedBox(
          width: 5,
        ),
        Container(
          margin: const EdgeInsets.only(right: 2.0),
          width: circleSize,
          height: circleSize,
          decoration: BoxDecoration(
            shape: BoxShape.circle,
            color: daySelectedColor,
          ),
        ),
        Text(
          WidgetBaseLanguage.selectedDateLabel,
          style: TextStyle(
            fontSize: fontSize,
            fontFamily: MenstrualCycleWidget.defaultFontFamily,
          ),
        ),
        const SizedBox(
          width: 5,
        ),
        Container(
          margin: const EdgeInsets.only(right: 2.0),
          width: circleSize,
          height: circleSize,
          decoration: BoxDecoration(
            shape: BoxShape.circle,
            color: themeColor,
          ),
        ),
        Text(
          WidgetBaseLanguage.todayLabel,
          style: TextStyle(
            fontSize: fontSize,
            fontFamily: MenstrualCycleWidget.defaultFontFamily,
          ),
        ),
      ],
    ),
  );
}