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

The corner radius in Material Design appears to be more rounded compared to this library. #21

Open
danish-Omniful opened this issue Jan 20, 2025 · 3 comments

Comments

@danish-Omniful
Copy link

No description provided.

@stoyan-vuchev
Copy link
Owner

Could you give a little more context? Thanks!

@danish-Omniful
Copy link
Author

if we apply the corner radius of the Material Design, it appears more rounded , but in library it is less rounded

@stoyan-vuchev
Copy link
Owner

The roundness might vary depending on the corner radius and corner smoothing. The larger the corner smoothing, the less rounder it appears. If you're using a larger corner smoothing value (e.g. >= 0.72f), try decreasing it to (e.g. <= 0.62f) and it should appear more rounded.

SquircleShape(
    radius = 48.dp, // Adjust the radius to your needs.
    cornerSmoothing = 0.62f
)

Let me know if this resolves the issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants