|
|
@ -2,6 +2,7 @@ package fr.iut.sciencequest.view
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.compose.foundation.Image
|
|
|
|
import androidx.compose.foundation.Image
|
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
|
|
|
|
|
import androidx.compose.foundation.layout.Box
|
|
|
|
import androidx.compose.foundation.layout.Row
|
|
|
|
import androidx.compose.foundation.layout.Row
|
|
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
|
import androidx.compose.material3.FilledIconButton
|
|
|
|
import androidx.compose.material3.FilledIconButton
|
|
|
@ -15,7 +16,7 @@ import fr.iut.sciencequest.R
|
|
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
fun TopBar(goToAccount: () -> Unit, goToHome: () -> Unit, modifier: Modifier? = Modifier.fillMaxWidth()) {
|
|
|
|
fun TopBar(goToAccount: () -> Unit, goToHome: () -> Unit, modifier: Modifier? = Modifier.fillMaxWidth()) {
|
|
|
|
Row(horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.Top) {
|
|
|
|
Row(horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically) {
|
|
|
|
FilledIconButton(onClick = { goToHome() }) {
|
|
|
|
FilledIconButton(onClick = { goToHome() }) {
|
|
|
|
Image(painter = painterResource(id = R.drawable.menu), contentDescription = "Menu")
|
|
|
|
Image(painter = painterResource(id = R.drawable.menu), contentDescription = "Menu")
|
|
|
|
}
|
|
|
|
}
|
|
|
|