File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed
composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/ui/screens/detail Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 2727- [ ] Assign unique IDs to objects and enforce consistent ordering logic
2828- [ ] Correct usage of visibility modifiers across the codebase
2929- [ ] Introduce common ` @Preview ` annotations for reusable Composable previews
30- - [ ] Add inline code formatting support for syntax display on the ` Detail Screen `
30+ - [x ] Add code block for syntax display on the ` Detail Screen `
3131- [ ] Implement caching on the ` Detail Screen ` to store previously viewed topic data
3232- [ ] Implement dynamic topic loading in ` TopicRepository ` to support scalability
3333- [ ] Integrate Room database to persist bookmark states
@@ -74,10 +74,9 @@ Here’s an early concept image illustrating the app’s design:
7474
7575Here are a couple of early previews from the Android version of the app:
7676
77- <p >
78- <img src =" assets/img_topic_screen.png " alt =" Topic Screen " width =" 150 " />
79- <img src =" assets/img_detail_screen_variables.png " alt =" Detail Screen " width =" 150 " />
80- </p >
77+ | Topic | Detail |
78+ | :---: | :----: |
79+ | <img src =" assets/img_topic_screen.png " alt =" Topic Screen " width =" 200 " /> | <img src =" assets/img_detail_screen_variables.png " alt =" Detail Screen " width =" 200 " /> |
8180
8281> * More previews coming soon as the UI progresses!*
8382
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.developersbreach.kotlindictionarymultiplatform.ui.screens.detail
33import androidx.compose.foundation.clickable
44import androidx.compose.foundation.layout.Spacer
55import androidx.compose.foundation.layout.height
6+ import androidx.compose.foundation.layout.padding
67import androidx.compose.material3.MaterialTheme
78import androidx.compose.runtime.Composable
89import androidx.compose.ui.Modifier
@@ -63,10 +64,9 @@ fun SyntaxSection(
6364 color = MaterialTheme .colorScheme.onPrimary,
6465 )
6566 Spacer (Modifier .height(4 .dp))
66- KdText (
67- modifier = Modifier ,
68- text = syntax.signature,
69- style = MaterialTheme .typography.bodyMedium,
67+ CodeExampleBox (
68+ code = syntax.signature,
69+ modifier = Modifier .padding(bottom = 8 .dp),
7070 )
7171 syntax.notes?.let {
7272 Spacer (Modifier .height(4 .dp))
You can’t perform that action at this time.
0 commit comments