Member-only story

A Better Way To Shape Widgets Not In The Flutter 4.0 SDK

Fred Grott
4 min readApr 13, 2023

--

While some complex components have a shape parameter, what about the components that do not have a shape parameter and all the custom widgets you implement in your app? Shape of view allows shaping of all widgets, even your custom widgets, with an easy configuration. Let me show you how in this article.

What Am I Building

I am using the null safe version of the shape view package:

And a typical use looks like this:

An Example

Basically, we use the ShapeOfView widget to wrap a widget and supply a shape such as:

--

--

Fred Grott
Fred Grott

No responses yet