Skip to content

Create CustomRoundedRectangleBorder - #17441

Closed
bramvbilsen wants to merge 4 commits into
flutter:masterfrom
bramvbilsen:patch-1
Closed

bramvbilsen wants to merge 4 commits into
flutter:masterfrom
bramvbilsen:patch-1

Conversation

@bramvbilsen

Copy link
Copy Markdown

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
screenshot_1525893115

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
@bramvbilsen

Copy link
Copy Markdown
Author

AppVeyor is timing out:

Build execution time has reached the maximum allowed time for your plan (60 minutes).

Not sure how to fix this.

Sides can now be null. If a side is null, it will not get painted.
@bramvbilsen

Copy link
Copy Markdown
Author

Woops, my latest commit seems to have broken something. I'll work on that as soon as possible and let you know!

@bramvbilsen

Copy link
Copy Markdown
Author

The bug introduced in the previous commit is fixed!

@Hixie

Hixie commented May 15, 2018

Copy link
Copy Markdown
Contributor

@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 Border class, CircleBorder, and various such things. What do you think, would it make more sense as a standalone package or do you want to do the more detailed work that'll be needed for including this in the framework?

@bramvbilsen

Copy link
Copy Markdown
Author

@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.

@Hixie

Hixie commented May 29, 2018

Copy link
Copy Markdown
Contributor

@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 Hixie closed this May 29, 2018
@bramvbilsen

Copy link
Copy Markdown
Author

@Hixie I'm definitely going to take you up on that offer when I find the time to finish the package!

@irundaia

Copy link
Copy Markdown
Contributor

Did this end up in a package somewhere? I couldn't find it on pub.dartlang.org

@bramvbilsen

Copy link
Copy Markdown
Author

@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.

@Riz-waan

Copy link
Copy Markdown

@bramvbilsen What about now, is the package out?

@AntiqPeace

Copy link
Copy Markdown

@bramvbilsen Any update on this? I want this thing...

@AntiqPeace

Copy link
Copy Markdown

Can anybody tell me how to use the given class? I tried to provide it inside container decoration. But, that accepts BoxBorder and this is a ShapeBorder...

@lekanbar

Copy link
Copy Markdown

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

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants