🧩 SoftContainer

A simple yet flexible Flutter widget that provides a soft-looking container with customizable styling, shadows, padding, margins, and more.


🌟 Features

βœ… Customizable width & height
βœ… Custom border radius
βœ… Optional box decoration
βœ… Optional shadow
βœ… Custom shadow color
βœ… Custom padding & margin
βœ… SafeArea integration
βœ… Perfect for cards, sections, or soft UI effects


Property Type Default Description
width double? null Width of the container
height double? null Height of the container
child Widget? null Content inside the container
alignment Alignment Alignment.center Alignment of the child
boxDecoration BoxDecoration? null Custom decoration if you want full control
margin EdgeInsetsGeometry EdgeInsets.all(15) Outer spacing
padding EdgeInsetsGeometry EdgeInsets.all(15) Inner spacing
borderRadius double 10 Container corner radius
isBoxShadow bool true Enables or disables the shadow
isBoxDecoration bool true Enables default decoration
containerColor Color Colors.white Background color
boxShadowColor Color Colors.white10 Shadow color

Libraries

soft_container