Flutter - How To Add a Shadow Under a Container (BoxShadow Tutorial)

Flutter Mentor
Flutter Mentor
9.2 هزار بار بازدید - 3 سال پیش - Want to know how to
Want to know how to add a shadow to any widget by wrapping it with a container with BoxShadow?

It's very simple and easy to define how it looks.

Just watch this quick Flutter video tutorial to learn how to do it.

But essentially, you just need to access the Container's decoration property, give it a BoxDecoration which has a boxShadow property. Then, you give it a list and inside that list place a BoxShadow class. Then you customize to your liking.

00:00 - Intro
00:32 - Adding the BoxShadow
01:29 - Picking The Shadow Color
01:45 - The spreadRadius Property
02:11 - The blurRadius Property
02:35 - The offset Property
03:35 - Applying Opacity to Shadow Color
04:09 - Final Conclusions
04:31 - Like & Subscribe
04:39 - Flutter Mentor Out

#flutter #dropshadow #boxshadow

Credits:

OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library Mitsubachi – Smith The Mister (No Cop...
3 سال پیش در تاریخ 1400/04/14 منتشر شده است.
9,240 بـار بازدید شده
... بیشتر