π§© 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 |