How can I add shadow to the widget in flutter?
Container( decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.4), spreadRadius: 2, blurRadius: 8, ), ], ), ),
How can I add shadow to the widget in flutter?
Container( decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey.withOpacity(0.4), spreadRadius: 2, blurRadius: 8, ), ], ), ),
flutter set shadow
new Container( height: 200.0, decoration: new BoxDecoration( boxShadow: [ color: Colors.white, //background color of box BoxShadow( color: Colors.red, blurRadius: 25.0, // soften the shadow spreadRadius: 5.0, //extend the shadow offset: Offset( 15.0, // Move to right 10 horizontally 15.0, // Move to bottom 10 Vertically ), ) ], ), child: new Text("Hello world"), );
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us