Skip to content
pubscout

shape_of_view_null_safe

3.1.1, released a year ago by codingfries.com

Give a custom shape to any Flutter widget with pre-built or custom shapes.

WASM-ready
$ flutter pub add shape_of_view_null_safe
Source repository

What it does

Allows developers to wrap any Flutter widget in a custom shape such as a circle, round rect, arc, diagonal, triangle, bubble, star, or polygon. Supports elevation and custom path builders.

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

Use it when

  • You need to clip or shape standard widgets into custom geometric forms like circles, arcs, or diagonals.
  • You want to build Material Design 2 UI components with specific corners, cutouts, or borders.

Skip it when

  • You only need standard border radii or simple clipping available out of the box in Flutter (like ClipRRect).
  • You require complex animations or physics-based shape morphing.

Strengths

  • Provides a wide variety of pre-created shapes (Circle, RoundRect, CutCorner, Arc, Diagonal, Triangle, Bubble, Star, Polygon).
  • Supports custom shapes using a path builder or by extending the Shape class.

Weaknesses

  • Limited to static shape definitions provided by the library or custom paths.
  • Material Design 2 focused, which may require adjustments for MD3 design systems.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
ShapeOfView(
  shape: CircleShape(
    borderColor: Colors.white,
    borderWidth: 2,
  ),
  child: Container(color: Colors.blue),
)

Alternatives

Packages that do the same job and could replace shape_of_view_null_safe.

Works with

Packages commonly used together with shape_of_view_null_safe: ones it builds on, ones built on it, and its own family.