Skip to content

Instantly share code, notes, and snippets.

@vishweshsoni
Last active February 9, 2020 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vishweshsoni/e4308773cf3a84ae4f701a9e5bc8bbb2 to your computer and use it in GitHub Desktop.
Save vishweshsoni/e4308773cf3a84ae4f701a9e5bc8bbb2 to your computer and use it in GitHub Desktop.
Concav
static List<Color> _fill = <Color>[
Colors.grey[200],
Color(0xFFf8fbf8),
Colors.white
];
Widget concav(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.favorite,
color: Colors.red,
),
),
decoration: BoxDecoration(
color: _clr,
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