Answered by : gifted-gazelle-p7s1niobxdrg
Container( decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.8), spreadRadius: 10, blurRadius: 5, offset: Offset(0, 7), // changes position of shadow ), ], ), child: Image.asset(chocolateImage),
)
Source : https://stackoverflow.com/questions/52227846/how-can-i-add-shadow-to-the-widget-in-flutter | Last Update : Wed, 15 Apr 20
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
Answered by : faithful-falcon-z3cpablnr9p5
BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.5), spreadRadius: 5, blurRadius: 7, offset: Offset(0, 3), // changes position of shadow ), ],
)
Source : https://stackoverflow.com/questions/52227846/how-can-i-add-shadow-to-the-widget-in-flutter | Last Update : Sat, 04 Jul 20
Answered by : donate-me
boxShadow: [ BoxShadow( color: Colors.redAccent, offset: Offset(0.0, 1.0), //(x,y) blurRadius: 3.0, ), ],
Source : | Last Update : Sat, 18 Sep 21
Answered by : arrogant-aardvark-91n7mot47phz
decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.8), spreadRadius: 10, blurRadius: 5, offset: Offset(0, 7), // changes position of shadow ), ], ),
Source : | Last Update : Tue, 11 Jan 22
Answered by : mateen-ejaz
Container( height: MediaQuery.of(context).size.height / 6.2, width: MediaQuery.of(context).size.width / 1.1, decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.black.withOpacity(0.1), spreadRadius: 3, blurRadius: 8, offset: Offset(2, 0), // changes position of shadow ) ], color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(12))),
Source : | Last Update : Fri, 09 Sep 22
Answered by : friendly-finch-zwil4b4pl9n0
return Container( margin: EdgeInsets.only(left: 30, top: 100, right: 30, bottom: 50), height: double.infinity, width: double.infinity, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(10), topRight: Radius.circular(10), bottomLeft: Radius.circular(10), bottomRight: Radius.circular(10) ), boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.5), spreadRadius: 5, blurRadius: 7, offset: Offset(0, 3), // changes position of shadow ), ], ),
Source : https://stackoverflow.com/questions/52227846/how-can-i-add-shadow-to-the-widget-in-flutter | Last Update : Wed, 27 May 20
Answered by : condemned-cormorant-f1glfb9zgr4u
return Container( margin: EdgeInsets.only(left: 30, top: 100, right: 30, bottom: 50), height: double.infinity, width: double.infinity, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(10), topRight: Radius.circular(10), bottomLeft: Radius.circular(10), bottomRight: Radius.circular(10) ), boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.5), spreadRadius: 5, blurRadius: 7, offset: Offset(0, 3), // changes position of shadow ), ], ),
)
Source : https://stackoverflow.com/questions/52227846/how-can-i-add-shadow-to-the-widget-in-flutter | Last Update : Wed, 12 Jan 22
Answered by : funny-falcon-kmkkvsy6xkqf
Card( elevation: 8, child: Container(width: 100, height: 100, color: Colors.blue), ),
Source : | Last Update : Wed, 03 Feb 21
Answered by : clear-caribou-419po7twsp74
BackdropFilter
Source : | Last Update : Thu, 21 May 20