Category : Figma

Figma Squircle Flutter implementation of Figma’s corner smoothing. Usage Decoration The SmoothRectangleBorder can be provided to a regular ShapeDecoration with a custom SmoothBorderRadius. Container( height: 100, width: 100, decoration: ShapeDecoration( color: Colors.red.withOpacity(0.75), shape: SmoothRectangleBorder( borderRadius: SmoothBorderRadius( cornerRadius: 10, cornerSmoothing: 0.5, ), ), ), ) Only Each corner can have an independent smoothing and radius. SmoothBorderRadius.only( topLeft: SmoothRadius( cornerRadius: 10, cornerSmoothing: ..

Read more