-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b12bab
commit 5df0184
Showing
6 changed files
with
121 additions
and
36 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
app/src/main/java/com/example/remind/core/common/component/BasicBackAppBar.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.example.remind.core.common.component | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Row | ||
import androidx.compose.foundation.layout.Spacer | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.Icon | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.unit.dp | ||
import com.example.remind.R | ||
import com.example.remind.core.designsystem.theme.RemindTheme | ||
|
||
@Composable | ||
fun BasicBackAppBar( | ||
modifier: Modifier = Modifier, | ||
onClick: () -> Unit, | ||
title: String | ||
) { | ||
Row( | ||
modifier = modifier | ||
.fillMaxWidth() | ||
.background(color = RemindTheme.colors.white), | ||
verticalAlignment = Alignment.CenterVertically | ||
) { | ||
Icon( | ||
modifier = Modifier | ||
.padding(start = 20.dp, top = 13.dp, bottom = 16.dp) | ||
.clickable(onClick = onClick), | ||
painter = painterResource(id = R.drawable.ic_back), | ||
contentDescription = null, | ||
tint = RemindTheme.colors.icon | ||
) | ||
Spacer(modifier = Modifier.weight(1f)) | ||
Text( | ||
text = title, | ||
style = RemindTheme.typography.b1Bold.copy(color = RemindTheme.colors.text) | ||
) | ||
Spacer(modifier = Modifier.weight(1f)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
app/src/main/java/com/example/remind/feature/screens/doctor/PatienceDetailScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.example.remind.feature.screens.doctor | ||
|
||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Row | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.material3.Icon | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.compose.ui.unit.dp | ||
import androidx.navigation.NavHostController | ||
import com.example.remind.R | ||
import com.example.remind.core.common.component.BasicBackAppBar | ||
import com.example.remind.core.designsystem.theme.RemindTheme | ||
|
||
@Composable | ||
fun PatienceDetailScreen( | ||
navController: NavHostController, | ||
) { | ||
RemindTheme { | ||
Column() { | ||
BasicBackAppBar( | ||
onClick = { navController.navigateUp() }, | ||
title = stringResource(id = R.string.환자_관리) | ||
) | ||
|
||
} | ||
} | ||
} | ||
|
||
@Composable | ||
fun Profile( | ||
modifier: Modifier = Modifier, | ||
name: String, | ||
age: String, | ||
gender: String | ||
) { | ||
Row( | ||
modifier = modifier | ||
.fillMaxWidth(), | ||
verticalAlignment = Alignment.CenterVertically | ||
) { | ||
//예비 | ||
Icon( | ||
painter = painterResource(id = R.drawable.ic_logo), | ||
contentDescription = null, | ||
modifier = modifier | ||
.size(width = 71.dp, height = 95.dp) | ||
.padding(end = 8.dp), | ||
tint = RemindTheme.colors.main_1 | ||
) | ||
Column { | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters