Added button to jump to todays date
This commit is contained in:
parent
45085cdba4
commit
869d6881b4
1 changed files with 15 additions and 1 deletions
|
|
@ -14,11 +14,13 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
|||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.lazy.grid.GridCells
|
||||
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Add
|
||||
import androidx.compose.material.icons.filled.CalendarMonth
|
||||
import androidx.compose.material.icons.filled.ChevronLeft
|
||||
import androidx.compose.material.icons.filled.ChevronRight
|
||||
import androidx.compose.material3.Button
|
||||
|
|
@ -113,7 +115,19 @@ private fun TopCalendar() {
|
|||
)
|
||||
)
|
||||
// arrows to switch month
|
||||
Row {
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
Icon(
|
||||
modifier = Modifier
|
||||
.clip(CircleShape)
|
||||
.clickable(onClick = {
|
||||
currentDateMut.value = LocalDate.now()
|
||||
}),
|
||||
imageVector = Icons.Filled.CalendarMonth,
|
||||
contentDescription = "//TODO: Provide"
|
||||
)
|
||||
Spacer(modifier = Modifier.width(10.dp))
|
||||
Icon(
|
||||
modifier = Modifier
|
||||
.clip(CircleShape)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue