mirror of
https://github.com/pawelorzech/Swoosh.git
synced 2026-03-31 20:15:41 +00:00
feat: add refresh button to stats screen top bar
This commit is contained in:
parent
4a2a18282c
commit
edca4dd0c5
1 changed files with 7 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import androidx.compose.material.icons.Icons
|
|||
import androidx.compose.material.icons.automirrored.filled.Article
|
||||
import androidx.compose.material.icons.filled.Create
|
||||
import androidx.compose.material.icons.filled.Schedule
|
||||
import androidx.compose.material.icons.filled.Refresh
|
||||
import androidx.compose.material.icons.filled.TextFields
|
||||
import androidx.compose.material3.*
|
||||
import androidx.compose.runtime.*
|
||||
|
|
@ -51,7 +52,12 @@ fun StatsScreen(
|
|||
Scaffold(
|
||||
topBar = {
|
||||
TopAppBar(
|
||||
title = { Text("Statistics") }
|
||||
title = { Text("Statistics") },
|
||||
actions = {
|
||||
IconButton(onClick = { viewModel.loadStats() }) {
|
||||
Icon(Icons.Default.Refresh, contentDescription = "Refresh")
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
) { padding ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue