Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created April 25, 2019 09:42
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 MarcinusX/74548d6d24b5fe0cf2e7e6665da38dc6 to your computer and use it in GitHub Desktop.
Save MarcinusX/74548d6d24b5fe0cf2e7e6665da38dc6 to your computer and use it in GitHub Desktop.
class _SlidingCardsViewState extends State<SlidingCardsView> {
@override
Widget build(BuildContext context) {
return SizedBox(
height: MediaQuery.of(context).size.height * 0.55, //<-- set height of the card
child: SlidingCard( //<-- new widget
name: 'Shenzhen GLOBAL DESIGN AWARD 2018',
date: '4.20-30',
assetName: 'steve-johnson.jpeg',
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment