|
@@ -1,23 +1,10 @@
|
|
|
package com.ys.bdtp.adm.mvvm.ui.screen.task
|
|
|
|
|
|
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.Row
|
|
|
-import androidx.compose.foundation.layout.Spacer
|
|
|
-import androidx.compose.foundation.layout.fillMaxHeight
|
|
|
-import androidx.compose.foundation.layout.fillMaxSize
|
|
|
-import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
-import androidx.compose.foundation.layout.height
|
|
|
-import androidx.compose.foundation.layout.padding
|
|
|
+import androidx.compose.foundation.layout.*
|
|
|
import androidx.compose.foundation.lazy.LazyColumn
|
|
|
import androidx.compose.material.Text
|
|
|
-import androidx.compose.runtime.Composable
|
|
|
-import androidx.compose.runtime.getValue
|
|
|
-import androidx.compose.runtime.mutableStateOf
|
|
|
-import androidx.compose.runtime.remember
|
|
|
-import androidx.compose.runtime.setValue
|
|
|
+import androidx.compose.runtime.*
|
|
|
import androidx.compose.ui.Alignment
|
|
|
import androidx.compose.ui.Modifier
|
|
|
import androidx.compose.ui.graphics.Color
|
|
@@ -25,26 +12,30 @@ import androidx.compose.ui.text.font.FontWeight
|
|
|
import androidx.compose.ui.tooling.preview.Preview
|
|
|
import androidx.compose.ui.unit.dp
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
-import com.ys.bdtp.adm.mvvm.ui.compose.Head
|
|
|
-import com.ys.bdtp.adm.mvvm.ui.compose.HeadLeft
|
|
|
+import com.ys.bdtp.adm.mvvm.ui.compose.Back
|
|
|
import com.ys.bdtp.adm.mvvm.ui.compose.Ending
|
|
|
+import com.ys.bdtp.adm.mvvm.ui.compose.Head
|
|
|
+import com.ys.bdtp.adm.mvvm.ui.screen.main.LocalNavHostController
|
|
|
|
|
|
@Composable
|
|
|
fun Tasks() {
|
|
|
var value by remember { mutableStateOf("") }
|
|
|
+ val nav = LocalNavHostController.current!!
|
|
|
Column(modifier = Modifier.fillMaxSize().background(Color.White)) {
|
|
|
- Head(
|
|
|
- left = { HeadLeft("") },
|
|
|
- right = {
|
|
|
- Ending(
|
|
|
- notice = "21",
|
|
|
- role = "管家",
|
|
|
- noticeClick = {},
|
|
|
- userClick = { println("heiheihei") }
|
|
|
- )
|
|
|
- }
|
|
|
- )
|
|
|
-
|
|
|
+ Head {
|
|
|
+ Back(
|
|
|
+ title = "",
|
|
|
+ back = {
|
|
|
+ nav.navigateUp()
|
|
|
+ }
|
|
|
+ )
|
|
|
+ Ending(
|
|
|
+ notice = "21",
|
|
|
+ role = "管家",
|
|
|
+ noticeClick = {},
|
|
|
+ userClick = { println("heiheihei") }
|
|
|
+ )
|
|
|
+ }
|
|
|
Spacer(
|
|
|
modifier = Modifier.fillMaxWidth().height(1.dp).background(Color(0xFFEFF0F1))
|
|
|
)
|