feat: add refresh button to stats screen top bar

This commit is contained in:
Paweł Orzech 2026-03-19 15:22:23 +01:00
parent 4a2a18282c
commit edca4dd0c5
No known key found for this signature in database

View file

@ -9,6 +9,7 @@ import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.Article import androidx.compose.material.icons.automirrored.filled.Article
import androidx.compose.material.icons.filled.Create import androidx.compose.material.icons.filled.Create
import androidx.compose.material.icons.filled.Schedule import androidx.compose.material.icons.filled.Schedule
import androidx.compose.material.icons.filled.Refresh
import androidx.compose.material.icons.filled.TextFields import androidx.compose.material.icons.filled.TextFields
import androidx.compose.material3.* import androidx.compose.material3.*
import androidx.compose.runtime.* import androidx.compose.runtime.*
@ -51,7 +52,12 @@ fun StatsScreen(
Scaffold( Scaffold(
topBar = { topBar = {
TopAppBar( TopAppBar(
title = { Text("Statistics") } title = { Text("Statistics") },
actions = {
IconButton(onClick = { viewModel.loadStats() }) {
Icon(Icons.Default.Refresh, contentDescription = "Refresh")
}
}
) )
} }
) { padding -> ) { padding ->