How Can I Add Shadow To The Widget In Flutter

[Solved] How Can I Add Shadow To The Widget In Flutter | Swift - Code Explorer | yomemimo.com
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

Answers related to how can i add shadow to the widget in flutter

Code Explorer Popular Question For Swift