Last active
February 9, 2020 13:08
-
-
Save vishweshsoni/695634f7e1939e315485d3826e45d95d to your computer and use it in GitHub Desktop.
Thumbs_Up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Widget concaveWithThumb(String txt) { | |
return Container( | |
width: MediaQuery.of(context).size.width / 4, | |
height: MediaQuery.of(context).size.height / 8, | |
child: Center(child: Icon(Icons.thumb_up)), | |
decoration: BoxDecoration( | |
color: Color(0xFFf8fbf8), | |
borderRadius: BorderRadius.all(Radius.circular(30)), | |
boxShadow: [ | |
BoxShadow( | |
color: Colors.grey[200], | |
offset: Offset(10.0, 10.0), | |
blurRadius: 10.0, | |
spreadRadius: 2.0), | |
BoxShadow( | |
color: Colors.white, | |
offset: Offset(-10.0, -10.0), | |
blurRadius: 10.0, | |
spreadRadius: 2.0) | |
]), | |
); | |
} | |
Widget convexWithThumb(String txt, Color _clr) { | |
return Container( | |
width: MediaQuery.of(context).size.width / 4, | |
height: MediaQuery.of(context).size.height / 8, | |
child: Center( | |
child: Icon( | |
Icons.thumb_up, | |
color: Colors.blueAccent, | |
), | |
), | |
decoration: BoxDecoration( | |
color: _clr, | |
// border: Border.fromBorderSide(BorderSide(style: BorderStyle.solid,width: 3.0,color: Color(0xFFF8F1F1))), | |
borderRadius: BorderRadius.all(Radius.circular(30)), | |
gradient: LinearGradient( | |
begin: Alignment.topLeft, | |
end: Alignment.bottomRight, | |
colors: _fill, | |
stops: [0.1, 0.5, 0.9], | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment