Browse Source

@fun: Head

bai 2 years ago
parent
commit
d12d84ff7b
1 changed files with 0 additions and 33 deletions
  1. 0 33
      app/src/main/java/com/ys/bdtp/adm/mvvm/ui/compose/Head.kt

+ 0 - 33
app/src/main/java/com/ys/bdtp/adm/mvvm/ui/compose/Head.kt

@@ -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(