Skip to content

Commit

Permalink
Merge pull request #24 from mende273/add_dumb_home_screen_header_cate…
Browse files Browse the repository at this point in the history
…gories

Add dumb home header category items as a temporary placeholder
  • Loading branch information
mende273 authored Mar 13, 2023
2 parents 4322e3f + 1de2ccf commit a081f8e
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ package com.jumrukovski.quotescompose.ui.feature.home

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.navigation.NavHostController
import com.jumrukovski.quotescompose.ui.theme.PrimaryBackgroundColor

Expand All @@ -17,6 +22,20 @@ fun HomeScreen(navHostController: NavHostController) {
.fillMaxSize()
.background(MaterialTheme.colorScheme.PrimaryBackgroundColor)
) {
Text(text = "Home screen")
MainScreen()
}
}

@Composable
private fun MainScreen(){
val dumbItems = listOf("item 1","item 2","item 3","item 4")
Column {
LazyRow{
items(dumbItems){
Box(modifier = Modifier.padding(16.dp)){
Text(text = it)
}
}
}
}
}

0 comments on commit a081f8e

Please sign in to comment.