Question : How can I add shadow to the widget in flutter?
Answered by : chandramouli-s
Container( decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.4), spreadRadius: 2, blurRadius: 8, ), ], ), ),
Source : | Last Update : Wed, 08 Sep 21
Question : shadow in flutter
Answered by : you
Container( decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.8), spreadRadius: 2, blurRadius: 5, offset: Offset(0, 3), // changes the position of the shadow ), ], ), child: YourWidget(), // Replace YourWidget() with your actual widget
)
Source : | Last Update : Tue, 19 Sep 23