|
|
|
@ -11,15 +11,18 @@ import androidx.compose.foundation.layout.fillMaxHeight
|
|
|
|
|
import androidx.compose.foundation.layout.fillMaxSize
|
|
|
|
|
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.material.icons.Icons
|
|
|
|
|
import androidx.compose.material.icons.rounded.*
|
|
|
|
|
import androidx.compose.material3.BottomAppBar
|
|
|
|
|
import androidx.compose.material3.Button
|
|
|
|
|
import androidx.compose.material3.ButtonDefaults
|
|
|
|
|
import androidx.compose.material3.Icon
|
|
|
|
|
import androidx.compose.material3.IconButton
|
|
|
|
|
import androidx.compose.material3.IconButtonColors
|
|
|
|
|
import androidx.compose.material3.Text
|
|
|
|
|
import androidx.compose.material3.TopAppBar
|
|
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
|
import androidx.compose.ui.Alignment
|
|
|
|
|
import androidx.compose.ui.Modifier
|
|
|
|
@ -54,6 +57,7 @@ fun NavBar(onProfile : Boolean = false ,
|
|
|
|
|
modifier = Modifier
|
|
|
|
|
.fillMaxWidth()
|
|
|
|
|
.height(70.dp)
|
|
|
|
|
.padding(5.dp)
|
|
|
|
|
.background(colorNavBar),
|
|
|
|
|
Arrangement.SpaceBetween,
|
|
|
|
|
verticalAlignment = Alignment.Bottom
|
|
|
|
@ -75,20 +79,21 @@ fun NavBar(onProfile : Boolean = false ,
|
|
|
|
|
Box(modifier = Modifier.background(Color.Black).fillMaxHeight(0.92f)){
|
|
|
|
|
content()
|
|
|
|
|
}
|
|
|
|
|
BottomAppBar (modifier = Modifier.fillMaxSize(),) {
|
|
|
|
|
Row(modifier = Modifier
|
|
|
|
|
.background(colorNavBar)
|
|
|
|
|
.fillMaxSize(),
|
|
|
|
|
horizontalArrangement = Arrangement.SpaceAround,
|
|
|
|
|
verticalAlignment = Alignment.CenterVertically
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|
Row(modifier = Modifier
|
|
|
|
|
.background(colorNavBar)
|
|
|
|
|
.fillMaxSize(),
|
|
|
|
|
horizontalArrangement = Arrangement.SpaceAround,
|
|
|
|
|
verticalAlignment = Alignment.CenterVertically
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|
ButtonIconVectorInt(Icons.Rounded.Favorite,"Favorite",navControllerFavorite,index,onFavorite)
|
|
|
|
|
ButtonIconVectorInt(Icons.Rounded.Favorite,"Favorite",navControllerFavorite,index,onFavorite)
|
|
|
|
|
|
|
|
|
|
ButtonIconPainterInt(painterResource(R.mipmap.ic_launcher_foreground),"Accueil",navControllerAccueil,index,onAccueil)
|
|
|
|
|
ButtonIconPainterInt(painterResource(R.mipmap.ic_launcher_foreground),"Accueil",navControllerAccueil,index,onAccueil)
|
|
|
|
|
|
|
|
|
|
ButtonIconVectorInt(Icons.Rounded.Create,"Quiz",navControllerQuiz,index,onQuiz)
|
|
|
|
|
ButtonIconVectorInt(Icons.Rounded.Create,"Quiz",navControllerQuiz,index,onQuiz)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|