Skip to content

Instantly share code, notes, and snippets.

View Rokata9's full-sized avatar

Rosen Dimov Rokata9

View GitHub Profile
View WallpostButton.kt
package com.example.secondtry.components
import androidx.compose.foundation.Border
import androidx.compose.foundation.Image
import androidx.compose.foundation.Text
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Button
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
View RoundedImage.kt
package com.example.secondtry
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.preferredSize
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Card
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
View List.kt
package com.example.secondtry
import androidx.compose.foundation.lazy.LazyColumnFor
import androidx.compose.runtime.Composable
import kotlin.time.ExperimentalTime
@ExperimentalTime
@Composable
fun WallpostsList(list: ArrayList<Wallpost>) {
View RootActivity.kt
package com.example.secondtry
import android.os.Bundle
import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.ui.platform.setContent
import androidx.lifecycle.Observer
import org.koin.android.viewmodel.ext.android.viewModel
import kotlin.time.ExperimentalTime
View ComposableRowsCols.kt
package com.example.secondtry
import androidx.compose.foundation.Image
import androidx.compose.foundation.Text
import androidx.compose.foundation.layout.*
import androidx.compose.material.Divider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.layoutId
View MyScreen.kt
package com.example.secondtry
import androidx.compose.foundation.Image
import androidx.compose.foundation.Text
import androidx.compose.foundation.layout.*
import androidx.compose.material.Divider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.vectorResource