|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.example.what_the_fantasy.ui.screens
|
|
|
|
package com.example.what_the_fantasy.ui.screens
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.compose.foundation.background
|
|
|
|
import androidx.compose.foundation.background
|
|
|
|
|
|
|
|
import androidx.compose.foundation.clickable
|
|
|
|
import androidx.compose.foundation.layout.Box
|
|
|
|
import androidx.compose.foundation.layout.Box
|
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
|
import androidx.compose.foundation.layout.Spacer
|
|
|
|
import androidx.compose.foundation.layout.Spacer
|
|
|
@ -26,7 +27,8 @@ fun FavoritePage(
|
|
|
|
index: Int,
|
|
|
|
index: Int,
|
|
|
|
navAccueil: (Int) -> Unit,
|
|
|
|
navAccueil: (Int) -> Unit,
|
|
|
|
navQuiz: (Int) -> Unit,
|
|
|
|
navQuiz: (Int) -> Unit,
|
|
|
|
navProfil: (Int) -> Unit
|
|
|
|
navProfil: (Int) -> Unit,
|
|
|
|
|
|
|
|
navQuote:() -> Unit
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
NavBar(
|
|
|
|
NavBar(
|
|
|
|
onFavorite = true,
|
|
|
|
onFavorite = true,
|
|
|
@ -34,7 +36,7 @@ fun FavoritePage(
|
|
|
|
navControllerFavorite = { },
|
|
|
|
navControllerFavorite = { },
|
|
|
|
navControllerAccueil = navAccueil,
|
|
|
|
navControllerAccueil = navAccueil,
|
|
|
|
navControllerProfil = navProfil,
|
|
|
|
navControllerProfil = navProfil,
|
|
|
|
navControllerQuiz = navQuiz
|
|
|
|
navControllerQuiz = navQuiz ,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
Box(
|
|
|
|
Box(
|
|
|
|
modifier = Modifier
|
|
|
|
modifier = Modifier
|
|
|
@ -55,9 +57,12 @@ fun FavoritePage(
|
|
|
|
horizontalAlignment = Alignment.CenterHorizontally
|
|
|
|
horizontalAlignment = Alignment.CenterHorizontally
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
items(QuoteStub.allQuotes) { quote ->
|
|
|
|
items(QuoteStub.allQuotes) { quote ->
|
|
|
|
LittleQuoteComponent(quote)
|
|
|
|
Column (Modifier.clickable { navQuote()}){
|
|
|
|
|
|
|
|
LittleQuoteComponent(quote)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Spacer(modifier = Modifier.height(16.dp))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Spacer(modifier = Modifier.height(16.dp))
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|