Last active
February 15, 2020 06:14
-
-
Save slamdon/c5c2604c7e37042d19e758ba04a70771 to your computer and use it in GitHub Desktop.
BuildTextContainer
This file contains 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
Widget _buildTextContainer() { | |
var titleContainer = Text( | |
this.trip.title, | |
style: TextStyle( | |
color: Colors.white, | |
fontWeight: FontWeight.bold, | |
letterSpacing: 1.0, | |
fontSize: 14, | |
), | |
); | |
var descriptionContainer = Padding( | |
padding: EdgeInsets.only(top: 8), | |
child: Text( | |
this.trip.description, | |
style: TextStyle( | |
color: Colors.white, | |
fontSize: 16, | |
fontWeight: FontWeight.bold, | |
), | |
), | |
); | |
return Positioned( | |
bottom: 60, | |
left: 32, | |
right: 32, | |
child: Column( | |
children: <Widget>[ | |
titleContainer, | |
descriptionContainer, | |
], | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment