Skip to content

Instantly share code, notes, and snippets.

@himanshusharma89
Created November 16, 2020 14:32
Show Gist options
  • Save himanshusharma89/4a0970f767120535d3361e6949cf861e to your computer and use it in GitHub Desktop.
Save himanshusharma89/4a0970f767120535d3361e6949cf861e to your computer and use it in GitHub Desktop.
Widget cardWidget() {
return Padding(
padding: const EdgeInsets.only(top: 5.0, bottom: 8),
child: Container(
width: MediaQuery.of(context).size.width * 0.91,
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 15),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
boxShadow: [
BoxShadow(
offset: Offset(1, 3), color: Colors.grey[300], blurRadius: 5),
BoxShadow(
offset: Offset(-1, -3),
color: Colors.grey[300],
blurRadius: 5)
]),
child: Row(
children: [
Icon(
Icons.image_rounded,
size: 22,
),
SizedBox(
width: 10,
),
Text(
"Title of Card",
style: TextStyle(fontSize: 15),
)
],
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment