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