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