How to only add a shadow on one specific side of a Container?

You can set the offset property of BoxShadow. It is defined as Offset(double dx, double dy). So, for example:

boxShadow: [
  BoxShadow(
    blurRadius: 5.0,
    offset: Offset(3.0, 0),
  ),
],

This will cast a shadow only at 3 units to the right (dx).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)