stuff
This commit is contained in:
parent
4905433a3b
commit
9ec87011e1
@ -40,20 +40,17 @@ import androidx.compose.ui.unit.sp
|
||||
// region Header Card
|
||||
@Composable
|
||||
fun HeaderCard(modifier: Modifier = Modifier, balance: String) {
|
||||
|
||||
Surface(
|
||||
shape = RoundedCornerShape(12.dp),
|
||||
color = Color(0xfff9f9f9),
|
||||
border = BorderStroke(1.dp, Color(0xffc6c6c6)),
|
||||
modifier = modifier
|
||||
.requiredWidth(width = 360.dp)
|
||||
.clip(shape = RoundedCornerShape(12.dp))
|
||||
.shadow(
|
||||
elevation = 8.dp,
|
||||
shape = RoundedCornerShape(16.dp),
|
||||
clip = true
|
||||
shape = RoundedCornerShape(12.dp),
|
||||
clip = false
|
||||
)
|
||||
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
@ -63,7 +60,6 @@ fun HeaderCard(modifier: Modifier = Modifier, balance: String) {
|
||||
LayoutMediaTextHeader(modifier, balance)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Composable
|
||||
@ -272,4 +268,3 @@ private fun ButtonDangerPreview() {
|
||||
ButtonDanger(Modifier, "Danger", onClick = { println("success") })
|
||||
}
|
||||
// endregion
|
||||
|
||||
|
@ -1,25 +1,29 @@
|
||||
package at.xaxa.ledger.ui.home
|
||||
|
||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import at.xaxa.ledger.ui.HeaderCard
|
||||
import at.xaxa.ledger.ui.HorizontalCard
|
||||
|
||||
@OptIn(ExperimentalFoundationApi::class)
|
||||
@Composable
|
||||
fun Home(modifier: Modifier = Modifier, onCardClick: (Int) -> Unit) {
|
||||
|
||||
|
||||
Column(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
horizontalAlignment = Alignment.CenterHorizontally) {
|
||||
@ -43,5 +47,9 @@ fun Home(modifier: Modifier = Modifier, onCardClick: (Int) -> Unit) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Box(modifier = Modifier.align(Alignment.BottomCenter)) {
|
||||
//This is your sticky footer Content
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user