custom_rounded_rectangle_border 0.3.0 copy "custom_rounded_rectangle_border: ^0.3.0" to clipboard
custom_rounded_rectangle_border: ^0.3.0 copied to clipboard

A simple package for drawing custom shape borders with full control on how you want the sides to be rendered.

Custom rounded rectangle border #

A simple package for drawing custom shape borders with full control on how you want the sides to be rendered.

It simply addresses an open Flutter issue where an error is thrown when you try to set a borderRadius and border at the same time, see open issue below: Support non-uniform Borders with a non-zero borderRadius

Sample Usage #

Container(
    decoration: ShapeDecoration(
    shape: CustomRoundedRectangleBorder(
      borderRadius: BorderRadius.only(
          bottomLeft: 5.0,
          bottomRight: 5.0),
      leftSide: BorderSide(
          color: Colors.black),
      bottomLeftCornerSide: BorderSide(
          color: Colors.black),
      rightSide: BorderSide(
          color: Colors.black),
      bottomRightCornerSide: BorderSide(
          color: Colors.black),
      bottomSide: BorderSide(
          color: Colors.black),
    ),
),)
copied to clipboard

Flutter #

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

23
likes
150
points
1.52k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.13 - 2025.03.28

A simple package for drawing custom shape borders with full control on how you want the sides to be rendered.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_rounded_rectangle_border