Created
November 16, 2020 14:32
-
-
Save himanshusharma89/4a0970f767120535d3361e6949cf861e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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