🧩 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 |