superellipse_shape
0.2.0, released 5 years ago by an unverified publisher
Provides a SuperellipseShape widget to draw superellipse shapes in Flutter.
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.
- morphable_shape
Create responsive shapes and morph between them in Flutter.
83Compare - simple_tooltip
A Flutter widget for customizable balloon‑style tooltips.
50Compare - material_new_shapes
Provides Material 3 shape definitions (e.g., RoundedPolygon, Cubic) for Flutter UI.
48Compare - tab_overview
Tab switcher with live thumbnails in a grid, zoom transitions, and drag-and-drop reordering.
73Compare