Last active
December 6, 2018 13:31
-
-
Save shubie/90af9dd5923b669f47af56275695b955 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
| 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