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

Define radius for each corner? #21

Open
pzehle opened this issue Mar 20, 2022 · 1 comment
Open

Define radius for each corner? #21

pzehle opened this issue Mar 20, 2022 · 1 comment

Comments

@pzehle
Copy link

pzehle commented Mar 20, 2022

Any idea on how to define the radius for each one of the corners?

@tronghuy5555
Copy link

tronghuy5555 commented Oct 30, 2023

DottedBorder(
   customPath: (size) {
       return Path()
         ..addRRect(
               borderRadius
                                    .resolve(Directionality.of(context))
                                    .toRRect(
                                      Rect.fromLTRB(
                                          0, 0, size.width, size.height),
                                    ),
                              );
                          },
                          child: [Your child],
);

ScreenShot 2023-10-30 at 11 47 10@2x

Please use custompath to custom border radius you want.

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