Created
December 14, 2019 15:23
-
-
Save rrifafauzikomara/58f4fc2a45d81cb1174b12c9e0628f6f 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
import 'package:flutter/material.dart'; | |
import 'package:network/network.dart'; | |
Widget buildGenreChip(int id) { | |
return Container( | |
margin: EdgeInsets.only(right: 10), | |
padding: EdgeInsets.all(8), | |
child: Text( | |
Genres.genres[id], | |
style: TextStyle(fontSize: 12), | |
), | |
decoration: BoxDecoration( | |
border: Border.all(color: Colors.grey), | |
borderRadius: BorderRadius.circular(20), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment