Skip to content

Instantly share code, notes, and snippets.

@vishweshsoni vishweshsoni/covex.dart

Last active Feb 9, 2020
What would you like to do?
//Creating convex effect
Widget convex(String txt) {
return Container(
width: MediaQuery.of(context).size.width / 4,
height: MediaQuery.of(context).size.height / 8,
child: Center(child: Icon(Icons.favorite_border)),
decoration: BoxDecoration(
color: Color(0xFFf8fbf8),
borderRadius: BorderRadius.all(Radius.circular(30)),
boxShadow: [
color: Colors.grey[200],
offset: Offset(10.0, 10.0),
blurRadius: 10.0,
spreadRadius: 2.0),
color: Colors.white,
offset: Offset(-10.0, -10.0),
blurRadius: 10.0,
spreadRadius: 2.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.