Skip to content
pubscout

superellipse_shape

0.2.0, released 5 years ago by an unverified publisher

Provides a SuperellipseShape widget to draw superellipse shapes in Flutter.

WASM-ready
$ flutter pub add superellipse_shape
Source repository

What it does

The package supplies a Material-compatible SuperellipseShape widget that renders a shape transitioning between a rectangle and a circle. It accepts a BorderRadiusGeometry to control corner curvature and works on all Flutter platforms.

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

Use it when

  • You need a custom superellipse (rounded‑rectangle‑to‑circle) shape in your UI
  • You want a simple, null‑safe widget without extra dependencies

Skip it when

  • You require complex animated shape morphing
  • You need a full UI kit or extensive theming beyond a single shape

Strengths

  • Easy to integrate as a regular widget
  • Supports null‑safety and all Flutter platforms
  • BorderRadiusGeometry allows per‑corner control

Weaknesses

  • Limited to static shape rendering
  • No built‑in animation or advanced styling options

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
class SuperellipseDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Material(
      color: Colors.blueAccent[400],
      shape: SuperellipseShape(
        borderRadius: BorderRadius.circular(28.0),
      ),
      child: Container(width: 100.0, height: 100.0),
    );
  }
}

Alternatives

Packages that do the same job and could replace superellipse_shape.