Want to add box shadow to a transparent Container in Flutter? Use the below flutter example to add box shadow to a transparent Container.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | Container( height: 210.0, decoration: BoxDecoration( boxShadow: [ new BoxShadow( color: Colors.grey, blurRadius: 10.0, ),], ), child: ClipPath( clipper: ShapeBorderClipper( shape: RoundedRectangleBorder( borderRadius: BorderRadius.all(Radius.circular(10)) ) ), child: Container( height: 200.0, decoration: BoxDecoration( color: Colors.white, border: Border( left: BorderSide( color: Theme.of(context).primaryColor, width: 7.0 ) ) ), child: Text("kokoko"), ), ), ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.