Skip to content

Instantly share code, notes, and snippets.

@sethladd
Created January 11, 2017 17:37
Show Gist options
  • Save sethladd/21490b9a6bf3f8dc81e8ea92cacac28d to your computer and use it in GitHub Desktop.
Save sethladd/21490b9a6bf3f8dc81e8ea92cacac28d to your computer and use it in GitHub Desktop.
var stack = Stack (
key: 1
Image.asset ( // background photo
"assets/texture.jpg"
fit: ImageFit.cover
height: 600.0
)
Positioned ( // headline
left: 0.0
bottom: 108.0
width: 490.0
height: 80.0
Container(
decoration: BoxDecoration (
backgroundColor: Colors.black
)
)
)
Positioned (
left: 16.0
bottom: 128.0
Text (
"Lorem ipsum dolor."
style: TextStyle(
color: Colors.blue[500]
fontSize: 42.0
fontWeight: FontWeight.w900
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment