Skip to content
pubscout

custom_rounded_rectangle_border

0.3.0, released 3 years ago by an unverified publisher

Draw custom shape borders with full control over how individual sides are rendered.

WASM-ready
$ flutter pub add custom_rounded_rectangle_border
Source repository

What it does

Provides a CustomRoundedRectangleBorder class to use in decorations and shapes. Allows specifying individual side borders and corner styles simultaneously, addressing built-in Flutter shape limitations.

AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need non-uniform borders combined with a border radius on shapes
  • You want explicit control over individual sides and corners of a rectangle border

Skip it when

  • Standard Flutter Border and BorderRadius combinations fulfill your requirements

Strengths

  • Solves a specific Flutter layout and styling issue regarding borders and radii
  • Simple usage with familiar BoxDecoration or ShapeDecoration patterns

Weaknesses

  • Very limited scope focusing only on custom rounded rectangle borders
  • No documentation on complex shape rendering beyond basic examples

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
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),
    ),
),)

Alternatives

Packages that do the same job and could replace custom_rounded_rectangle_border.