Skip to content

Instantly share code, notes, and snippets.

@shubie
Last active December 6, 2018 13:31
Show Gist options
  • Save shubie/90af9dd5923b669f47af56275695b955 to your computer and use it in GitHub Desktop.
Save shubie/90af9dd5923b669f47af56275695b955 to your computer and use it in GitHub Desktop.
final topContent = Stack(
children: <Widget>[
Container(
padding: EdgeInsets.only(left: 10.0),
height: MediaQuery.of(context).size.height * 0.5,
decoration: new BoxDecoration(
image: new DecorationImage(
image: new AssetImage("drive-steering-wheel.jpg"),
fit: BoxFit.cover,
),
)),
Container(
height: MediaQuery.of(context).size.height * 0.5,
padding: EdgeInsets.all(40.0),
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, .9)),
child: Center(
child: topContentText,
),
),
Positioned(
left: 8.0,
top: 60.0,
child: InkWell(
onTap: () {
Navigator.pop(context);
},
child: Icon(Icons.arrow_back, color: Colors.white),
),
)
],
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment