myDarkBoxDec function
Decoration
myDarkBoxDec(
- dynamic animation, {
- dynamic isCircle = false,
})
Implementation
Decoration myDarkBoxDec(animation, {isCircle = false}) {
return BoxDecoration(
shape: isCircle ? BoxShape.circle : BoxShape.rectangle,
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [
Colors.grey[700]!,
Colors.grey[600]!,
Colors.grey[700]!,
// Color(0xfff6f7f9),
],
stops: [
// animation.value * 0.1,
animation.value - 1,
animation.value,
animation.value + 1,
// animation.value + 5,
// 1.0,
],
),
);
}