Repository navigation
Create CustomRoundedRectangleBorder - #17441
bramvbilsen wants to merge 4 commits into
Conversation
This class is similar to the RoundedRectangleBorder, but differs in the sense that the appearance of each border and corner are specified on its own. This allows the user to have non-uniform borders with different colors and different widths while keeping the possibility to not show a side or corner border. The following image shows the capabilities of this class: https://imgur.com/a/PtnJIAX
|
AppVeyor is timing out: Not sure how to fix this. |
Sides can now be null. If a side is null, it will not get painted.
|
Woops, my latest commit seems to have broken something. I'll work on that as soon as possible and let you know! |
|
The bug introduced in the previous commit is fixed! |
|
@bramvbilsen I like the look here! I think this would be a great standalone package. If we want to include it in the Flutter framework itself, we probably want to make sure we can lerp between these borders and the regular |
|
@Hixie Sounds good, I'll wrap it in a package! I just noticed that the lerping doesn't work correctly all the time so I'm gonna have to fix that first. |
|
@bramvbilsen If we're moving to putting this in a package, I'm going to close this PR. Please let me know if you want me to review any code you end up publishing, I'd be happy to do so. |
|
@Hixie I'm definitely going to take you up on that offer when I find the time to finish the package! |
|
Did this end up in a package somewhere? I couldn't find it on pub.dartlang.org |
|
@irundaia It still isn't not, I still want to make it into a plugin but just haven't found the time in these last few months. |
|
@bramvbilsen What about now, is the package out? |
|
@bramvbilsen Any update on this? I want this thing... |
|
Can anybody tell me how to use the given class? I tried to provide it inside container decoration. But, that accepts |
|
Thanks for this @bramvbilsen! I just published it as a package here for anyone interested [like me :)]: https://pub.dev/packages/custom_rounded_rectangle_border |
This class is similar to the RoundedRectangleBorder, but differs in the sense that the appearance of each border and corner are specified on its own. This allows the user to have non-uniform borders with different colors and different widths while keeping the possibility to not show a side or corner border.

The following image shows the capabilities of this class