Skip to content

Instantly share code, notes, and snippets.

@slamdon
Created February 23, 2020 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slamdon/4870aafed3fa9e6465bc7840fd522896 to your computer and use it in GitHub Desktop.
Save slamdon/4870aafed3fa9e6465bc7840fd522896 to your computer and use it in GitHub Desktop.
InformationContainer
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