mirror of
https://github.com/AdrianKuta/KahootQuiz.git
synced 2025-09-14 17:24:21 +02:00
This commit refactors the placement of the background image, moving it from `QuizScreen` to the main `KahootQuizApp` composable. This ensures the background is consistently applied across the app. Additionally, this commit includes: - Removal of unused Detekt configuration file (`ui/quiz/config/detekt/detekt.yml`). - Minor code cleanup: - Removed commented-out code in `Theme.kt` and `Type.kt`. - Removed trailing blank lines in various domain model files. - Added `@file:Suppress("TooManyFunctions")` to `QuizMapper.kt`. - Added `@file:Suppress("MatchingDeclarationName")` to `QuizNavigation.kt`. - Used `1.seconds` instead of `1000` (Long) for delay in `QuizScreenViewModel`.
24 lines
680 B
Kotlin
24 lines
680 B
Kotlin
package dev.adriankuta.kahootquiz
|
|
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.compose.ui.Modifier
|
|
import androidx.navigation.NavHostController
|
|
import androidx.navigation.compose.NavHost
|
|
import androidx.navigation.compose.rememberNavController
|
|
import dev.adriankuta.kahootquiz.ui.quiz.navigation.QuizRoute
|
|
import dev.adriankuta.kahootquiz.ui.quiz.navigation.quizScreen
|
|
|
|
@Composable
|
|
fun KahootQuizNavGraph(
|
|
modifier: Modifier = Modifier,
|
|
navController: NavHostController = rememberNavController(),
|
|
) {
|
|
NavHost(
|
|
navController = navController,
|
|
startDestination = QuizRoute,
|
|
modifier = modifier,
|
|
) {
|
|
quizScreen()
|
|
}
|
|
}
|