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.
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.
- mobkit_dashed_border
Custom border implementation for dashed lines and curves in Flutter.
57Compare - material_new_shapes
Provides Material 3 shape definitions (e.g., RoundedPolygon, Cubic) for Flutter UI.
48Compare - focusable_control_builder
Easily create custom controls that respond correctly to mouse and keyboard.
60Compare - shape_of_view_null_safe
Give a custom shape to any Flutter widget with pre-built or custom shapes.
55Compare