aleksanderwozniak / table_calendar

Highly customizable, feature-packed calendar widget for Flutter
Apache License 2.0
1.84k stars 1k forks source link

TableBorder doesn't cut background color corners when rounded #756

Open radeckid opened 1 year ago

radeckid commented 1 year ago

Description Calendar Style doesn't cut corners when TableBorder is circular. Maybe some clipBehavior is needed.
That looks my calendarStyle:

calendarStyle: CalendarStyle(
          selectedDecoration: const BoxDecoration(color: AppColors.orange),
          defaultDecoration: const BoxDecoration(color: AppColors.inputFillAlpineGoat),
          weekendDecoration: const BoxDecoration(color: AppColors.inputFillAlpineGoat),
          outsideDaysVisible: false,
          isTodayHighlighted: false,
          cellMargin: EdgeInsets.zero,
          selectedTextStyle: h500TextStyle.copyWith(fontSize: 18.sp, color: AppColors.white),
          defaultTextStyle: h500TextStyle.copyWith(fontSize: 18.sp, color: AppColors.black),
          weekendTextStyle: h500TextStyle.copyWith(fontSize: 18.sp, color: AppColors.black),
          tableBorder: TableBorder.all(
            borderRadius: BorderRadius.circular(12.h),
            color: AppColors.neutralGray,
            width: 1.24.w,
          ),
        ),

Screenshots Zrzut ekranu 2023-01-4 o 11 01 29

asinel commented 3 months ago

I have same problem