move new-task button to top
This commit is contained in:
parent
c3424b9996
commit
a5b98d6bf8
2 changed files with 2 additions and 6 deletions
|
@ -9,11 +9,7 @@ data class Task(
|
|||
val time: Int = 0,
|
||||
val subjectId: String = "",
|
||||
var archived: Boolean = false,
|
||||
) {
|
||||
fun archive() {
|
||||
this.archived = true
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
object TaskDocument {
|
||||
const val id = "id"
|
||||
|
|
|
@ -71,6 +71,7 @@ fun TaskScreen(
|
|||
Column(
|
||||
modifier = Modifier.padding(top = 5.dp)
|
||||
) {
|
||||
NewTaskSubjectButton(onClick = taskActions.addTask, AppText.new_task)
|
||||
LazyColumn {
|
||||
items(tasks.value) {
|
||||
TaskEntry(
|
||||
|
@ -81,7 +82,6 @@ fun TaskScreen(
|
|||
)
|
||||
}
|
||||
}
|
||||
NewTaskSubjectButton(onClick = taskActions.addTask, AppText.new_task)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue