|
@@ -12,39 +12,6 @@ import com.google.accompanist.insets.rememberInsetsPaddingValues
|
|
|
|
|
|
@Composable
|
|
|
fun Head(
|
|
|
- left: (@Composable () -> Unit)? = null,
|
|
|
- middle: (@Composable () -> Unit)? = null,
|
|
|
- right: (@Composable () -> Unit)? = null
|
|
|
-) {
|
|
|
- Box(
|
|
|
- modifier = Modifier.padding(
|
|
|
- rememberInsetsPaddingValues(
|
|
|
- LocalWindowInsets.current.statusBars
|
|
|
- )
|
|
|
- )
|
|
|
- ) {
|
|
|
- Row(
|
|
|
- modifier = Modifier.fillMaxWidth()
|
|
|
- .height(56.dp)
|
|
|
- .background(Color.White),
|
|
|
- horizontalArrangement = Arrangement.SpaceBetween,
|
|
|
- verticalAlignment = Alignment.CenterVertically
|
|
|
- ) {
|
|
|
- // left
|
|
|
- left?.invoke()
|
|
|
-
|
|
|
- // middle
|
|
|
- middle?.invoke()
|
|
|
-
|
|
|
- // right
|
|
|
- right?.invoke()
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@Composable
|
|
|
-fun Head(
|
|
|
content: @Composable () -> Unit,
|
|
|
) {
|
|
|
Box(
|