Skip to content

Commit

Permalink
[add] MarkerVo image 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
reezung committed Feb 25, 2024
1 parent d03acab commit a242bc5
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .idea/assetWizardSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules/app/SungdongWalk.app.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/src/main/java/com/example/sungdongwalk/api/Dto.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Dto {
data class MarkerVo(
val id: Int,
val name: String,
val image: String,
val openingTime: String,
val closingTime: String,
val hasEvent: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fun ButtonBoarder(
modifier = Modifier.padding(horizontal = 5.dp)
)
Text(
text = "${totalTime/60}시간 ${totalTime%60}",
text = "${totalTime/3600}시간 ${totalTime/60%60}",
color = if(selectedId == id) SDblue else Gray500,
style = Typography.headlineLarge,
modifier = Modifier.padding(5.dp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fun DimArrive(
style = Typography.labelLarge,
textAlign = TextAlign.Center,
modifier = Modifier
.padding(15.dp)
.padding(10.dp)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fun NavigatorTopSearch(setIsLoading: (Boolean)-> Unit){
RetrofitManager.instance.getPaths(
placeId = results[idx].id,
placeName = results[idx].name,
placeImg = "",//results[idx].image,
placeImg = results[idx].image,
xCoordinate = LocationViewModel.instance.location.value.longitude.toString(),
yCoordinate = LocationViewModel.instance.location.value.latitude.toString(),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fun MapView(setIsLoading: (Boolean)-> Unit){
RetrofitManager.instance.getPaths(
placeId = place.id,
placeName = place.name,
placeImg = "",//place.image,
placeImg = place.image,
xCoordinate = LocationViewModel.instance.location.value.longitude.toString(),
yCoordinate = LocationViewModel.instance.location.value.latitude.toString(),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fun BottomNav(navController: NavController){
MapScreen(setIsLoading)
}
composable(route = BottomNavScreens.EventScreen.name){
EventScreen(navController)
EventScreen()
}
}
if(isLoading)
Expand Down
32 changes: 22 additions & 10 deletions app/src/main/java/com/example/sungdongwalk/screens/EventScreen.kt
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
package com.example.sungdongwalk.screens

import androidx.compose.foundation.layout.Box
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavController
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.example.sungdongwalk.components.NavigatorTop
import com.example.sungdongwalk.components.NavigatorTopType
import com.example.sungdongwalk.components.calendar.Calendar
import com.example.sungdongwalk.ui.theme.SDwhite

@RequiresApi(Build.VERSION_CODES.O)
@Preview(showBackground = true)
@Composable
fun EventScreen(navController: NavController) {
Box(modifier = Modifier
.fillMaxSize()
){
Text(
text = "EventScreen"
)
fun EventScreen() {
Column(
modifier = Modifier
.fillMaxSize()
.background(SDwhite)
.padding(10.dp)
) {
NavigatorTop(NavigatorTopType.EVENT)
Calendar()
}
}

0 comments on commit a242bc5

Please sign in to comment.