Skip to content
pubscout

proste_bezier_curve

2.0.2, released 5 years ago by an unverified publisher

Draw standard second and third order Bezier curves to clip widgets easily.

WASM-ready
$ flutter pub add proste_bezier_curve
Source repository

What it does

Provides clipper widgets and data sections to easily draw second and third order Bezier curves for widget clipping or custom paths without complex manual point calculations.

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

Use it when

  • You need to clip widgets with standard Bezier curves (e.g. waves, arches).
  • You want to avoid complex manual point and offset calculations for path clipping.

Skip it when

  • You require complex chart rendering or non-bezier graphic pipelines.
  • You need animations along the bezier paths.

Strengths

  • Simplifies drawing second and third order Bezier curves for clipping.
  • Reduces boilerplate code compared to writing native CustomClipper paths from scratch.
  • Supports multiple curve sections and smooth configurations.

Weaknesses

  • Limited to Bezier curve clipping and paths.
  • Documentation outside the README is minimal.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ClipPath(
  clipper: ProsteBezierCurve(
    position: ClipPosition.bottom,
    list: [
      BezierCurveSection(
        start: Offset(0, 150),
        top: Offset(100, 200),
        end: Offset(200, 150),
      ),
    ],
  ),
  child: Container(
    height: 200,
    color: Colors.red,
  ),
)

Alternatives

Packages that do the same job and could replace proste_bezier_curve.