mirror of
https://github.com/AdrianKuta/KahootQuiz.git
synced 2025-10-30 16:33:42 +01:00
Refactor: Clean up QuizScreen and adjust image scaling
This commit includes several refactoring changes and a minor UI adjustment:
- **UI Layer (`ui:quiz` module):**
- In `QuizScreen.kt`:
- Removed the unused `timer` extension function for `LazyListScope`.
- Applied `@Suppress("LongMethod")` to `QuizScreenSuccess` composable.
- Simplified the `modifier` usage within the `Box` in `QuizScreenSuccess`.
- In `components/QuestionContent.kt`:
- Changed `ContentScale` for `AsyncImage` from `FillWidth` to `Fit`.
- Aligned the `AsyncImage` to `Alignment.CenterHorizontally`.
- **Data Layer (`data` module):**
- In `QuizRepositoryImpl.kt`:
- Reordered import statements.
Note: The commit also includes changes to a binary file `App.apk`, which are not detailed here.
This commit is contained in:
@@ -82,13 +82,6 @@ If you prefer the command line: `./gradlew assembleDebug` and then install the g
|
||||
- Consider support for additional media types (video/audio), with graceful fallbacks.
|
||||
5. Transitions between questions could be more smooth.
|
||||
|
||||
## What I’m Happy About
|
||||
|
||||
- I created and used convention plugins to reuse modules configuration.
|
||||
- The architecture is clean with multi-modularity and separation of concerns.
|
||||
- I leaned into Kotlin ‘sugar’ where it helps readability and conciseness — I love it.
|
||||
- Configured `Detekt` for static code analysis
|
||||
|
||||
## Extra: Related Work I Can Share
|
||||
|
||||
I can share more complex code from my private app that is published on the Google Play Store.
|
||||
|
||||
Reference in New Issue
Block a user