Created
February 23, 2020 11:57
-
-
Save slamdon/4870aafed3fa9e6465bc7840fd522896 to your computer and use it in GitHub Desktop.
InformationContainer
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 _buildInformationTopContainer(BuildContext context) { | |
return Container( | |
child: Row( | |
children: <Widget>[ | |
Expanded( | |
child: Text(this.product.title), | |
flex: 1, | |
), | |
Expanded( | |
child: ListView.builder( | |
scrollDirection: Axis.horizontal, | |
itemCount: this.product.score, | |
itemBuilder: (context, index) { | |
return Icon(Icons.star, color: Colors.yellow); | |
}, | |
), | |
flex: 2, | |
) | |
], | |
), | |
height: 40, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment