@@ -23,6 +23,7 @@ import androidx.ui.core.Clip
23
23
import androidx.ui.core.Opacity
24
24
import androidx.ui.core.Text
25
25
import androidx.ui.foundation.Box
26
+ import androidx.ui.foundation.Box
26
27
import androidx.ui.foundation.SimpleImage
27
28
import androidx.ui.foundation.VerticalScroller
28
29
import androidx.ui.foundation.selection.Toggleable
@@ -138,13 +139,13 @@ private fun PublicationsTab() {
138
139
}
139
140
140
141
@Composable
141
- private fun TabWithTopics (tabname : String , topics : List <String >) {
142
+ private fun TabWithTopics (tabName : String , topics : List <String >) {
142
143
VerticalScroller {
143
144
Column (modifier = LayoutPadding (top = 16 .dp)) {
144
145
topics.forEach { topic ->
145
146
TopicItem (
146
147
getTopicKey(
147
- tabname ,
148
+ tabName ,
148
149
" - " ,
149
150
topic
150
151
),
@@ -158,7 +159,7 @@ private fun TabWithTopics(tabname: String, topics: List<String>) {
158
159
159
160
@Composable
160
161
private fun TabWithSections (
161
- tabname : String ,
162
+ tabName : String ,
162
163
sections : Map <String , List <String >>
163
164
) {
164
165
VerticalScroller {
@@ -171,7 +172,7 @@ private fun TabWithSections(
171
172
topics.forEach { topic ->
172
173
TopicItem (
173
174
getTopicKey(
174
- tabname ,
175
+ tabName ,
175
176
section,
176
177
topic
177
178
), topic
@@ -264,5 +265,5 @@ fun PreviewPeopleTab() {
264
265
@Preview
265
266
@Composable
266
267
fun PreviewTabWithTopics () {
267
- TabWithTopics (tabname = " preview" , topics = listOf (" Hello" , " Compose" ))
268
+ TabWithTopics (tabName = " preview" , topics = listOf (" Hello" , " Compose" ))
268
269
}
0 commit comments