|
|
|
|
@ -9,6 +9,9 @@ class RoundedContainer extends StatefulWidget {
|
|
|
|
|
final double elevation;
|
|
|
|
|
final bool showBorder;
|
|
|
|
|
final Color borderColor;
|
|
|
|
|
final double shadowWidth;
|
|
|
|
|
final double shadowSpreadRadius;
|
|
|
|
|
final double shadowDy;
|
|
|
|
|
final bool customCornerRaduis;
|
|
|
|
|
final double topLeft;
|
|
|
|
|
final double bottomRight;
|
|
|
|
|
@ -27,6 +30,9 @@ class RoundedContainer extends StatefulWidget {
|
|
|
|
|
this.elevation = 1,
|
|
|
|
|
this.showBorder = false,
|
|
|
|
|
this.borderColor = Colors.red,
|
|
|
|
|
this.shadowWidth = 0.1,
|
|
|
|
|
this.shadowSpreadRadius = 10,
|
|
|
|
|
this.shadowDy = 5,
|
|
|
|
|
this.customCornerRaduis = false,
|
|
|
|
|
this.topLeft = 0,
|
|
|
|
|
this.topRight = 0,
|
|
|
|
|
@ -59,10 +65,10 @@ class _RoundedContainerState extends State<RoundedContainer> {
|
|
|
|
|
: BorderRadius.circular(widget.raduis),
|
|
|
|
|
boxShadow: [
|
|
|
|
|
BoxShadow(
|
|
|
|
|
color: Colors.grey.withOpacity(0.1),
|
|
|
|
|
spreadRadius: 10,
|
|
|
|
|
color: Colors.grey.withOpacity(widget.shadowWidth),
|
|
|
|
|
spreadRadius: widget.shadowSpreadRadius,
|
|
|
|
|
blurRadius: 5,
|
|
|
|
|
offset: Offset(0, 5), // changes position of shadow
|
|
|
|
|
offset: Offset(0, widget.shadowDy), // changes position of shadow
|
|
|
|
|
),
|
|
|
|
|
])
|
|
|
|
|
: null,
|
|
|
|
|
|