|
|
|
@ -518,24 +518,30 @@ fun NiaCatalog() {
|
|
|
|
|
item { Text("Tags", Modifier.padding(top = 16.dp)) }
|
|
|
|
|
item {
|
|
|
|
|
FlowRow(mainAxisSpacing = 16.dp) {
|
|
|
|
|
var expandedTopic by remember { mutableStateOf<String?>(null) }
|
|
|
|
|
|
|
|
|
|
var firstFollowed by remember { mutableStateOf(false) }
|
|
|
|
|
NiaTopicTag(
|
|
|
|
|
expanded = expandedTopic == "Topic 1",
|
|
|
|
|
followed = firstFollowed,
|
|
|
|
|
onDropMenuToggle = { show -> expandedTopic = if (show) "Topic 1" else null },
|
|
|
|
|
onFollowClick = { firstFollowed = true },
|
|
|
|
|
onUnfollowClick = { firstFollowed = false },
|
|
|
|
|
onBrowseClick = {},
|
|
|
|
|
text = { Text(text = "Topic".uppercase()) },
|
|
|
|
|
text = { Text(text = "Topic 1".uppercase()) },
|
|
|
|
|
followText = { Text(text = "Follow") },
|
|
|
|
|
unFollowText = { Text(text = "Unfollow") },
|
|
|
|
|
browseText = { Text(text = "Browse topic") }
|
|
|
|
|
)
|
|
|
|
|
var secondFollowed by remember { mutableStateOf(true) }
|
|
|
|
|
NiaTopicTag(
|
|
|
|
|
expanded = expandedTopic == "Topic 2",
|
|
|
|
|
followed = secondFollowed,
|
|
|
|
|
onDropMenuToggle = { show -> expandedTopic = if (show) "Topic 2" else null },
|
|
|
|
|
onFollowClick = { secondFollowed = true },
|
|
|
|
|
onUnfollowClick = { secondFollowed = false },
|
|
|
|
|
onBrowseClick = {},
|
|
|
|
|
text = { Text(text = "Topic".uppercase()) },
|
|
|
|
|
text = { Text(text = "Topic 2".uppercase()) },
|
|
|
|
|
followText = { Text(text = "Follow") },
|
|
|
|
|
unFollowText = { Text(text = "Unfollow") },
|
|
|
|
|
browseText = { Text(text = "Browse topic") }
|
|
|
|
|