Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Last active October 4, 2020 09:28
Show Gist options
  • Save TechieBlossom/237bafe7b043c1454dfe1597db1f8a70 to your computer and use it in GitHub Desktop.
Save TechieBlossom/237bafe7b043c1454dfe1597db1f8a70 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
//1
fit: StackFit.expand,
children: <Widget>[
//2
FractionallySizedBox(
//3
alignment: Alignment.topCenter,
//4
heightFactor: 0.6,
// TODO: Add MovieCarouselWidget here in child
child: Placeholder(color: Colors.grey),
),
FractionallySizedBox(
//5
alignment: Alignment.bottomCenter,
//6
heightFactor: 0.4,
//7
child: Placeholder(color: Colors.white),
),
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment