Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected day with style rectangle with circular border #896

Open
NayadeMR opened this issue Oct 2, 2024 · 2 comments
Open

Selected day with style rectangle with circular border #896

NayadeMR opened this issue Oct 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@NayadeMR
Copy link

NayadeMR commented Oct 2, 2024

I define this:

        calendarStyle: const CalendarStyle(
            weekendTextStyle: TextStyle(
              color: Colors.grey,
            ),
            selectedDecoration: BoxDecoration(
              color: Color.fromRGBO(42, 87, 160, 1),
              shape: BoxShape.rectangle,
              borderRadius: BorderRadius.all(Radius.circular(10)),
            )),
      )

But when I selected a date there is an error: shape != BoxShape.circle || borderRadius == null
js_primitives.dart:30 is not true

@NayadeMR NayadeMR added the bug Something isn't working label Oct 2, 2024
@Cfcool100
Copy link

Cfcool100 commented Oct 8, 2024

try to set decoration defaultDecoration, outsideDecoration and rowDecoration,
eg:
selectedDecoration: BoxDecoration( color: Color.fromRGBO(42, 87, 160, 1), shape: BoxShape.rectangle, borderRadius: BorderRadius.all(Radius.circular(10)), )), defaultDecoration: BoxDecoration( shape: BoxShape.rectangle, borderRadius: BorderRadius.all(Radius.circular(10)), ), ), outsideDecoration: BoxDecoration( shape: BoxShape.rectangle, borderRadius: BorderRadius.all(Radius.circular(10)), ), ), rawDecoration: BoxDecoration( shape: BoxShape.rectangle, borderRadius: BorderRadius.all(Radius.circular(10)), ), ),
that works for me

@NayadeMR
Copy link
Author

NayadeMR commented Oct 9, 2024

Thank you, I'll try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants