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