Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: 마이페이지 UI 개선 및 기능 구현 #63

Closed
2 tasks done
tgyuuAn opened this issue Dec 9, 2023 · 2 comments · Fixed by #71 or #100
Closed
2 tasks done

[FEATURE]: 마이페이지 UI 개선 및 기능 구현 #63

tgyuuAn opened this issue Dec 9, 2023 · 2 comments · Fixed by #71 or #100
Assignees
Labels
🌱기능🌱 새로운 기능 두두둥장! 🧩태규🧩 ENFP 안태규 24세

Comments

@tgyuuAn
Copy link
Member

tgyuuAn commented Dec 9, 2023

작업 사항

  • 마이페이지 UI 개선 및 기능 구현

Todo

  • 마이페이지 UI 개선

아래 2개에서 위 2개로 개선 하였습니다.
image

  • 마이페이지 기능을 구현합니다.

기타사항

@tgyuuAn tgyuuAn added 🌱기능🌱 새로운 기능 두두둥장! 🧩태규🧩 ENFP 안태규 24세 labels Dec 9, 2023
@tgyuuAn tgyuuAn self-assigned this Dec 9, 2023
@tgyuuAn tgyuuAn changed the title [FEATURE]: 마이페이지 기능 구현 [FEATURE]: 마이페이지 UI 개선 및 기능 구현 Dec 23, 2023
tgyuuAn added a commit that referenced this issue Dec 23, 2023
tgyuuAn added a commit that referenced this issue Dec 23, 2023
tgyuuAn added a commit that referenced this issue Dec 23, 2023
tgyuuAn added a commit that referenced this issue Dec 23, 2023
tgyuuAn added a commit that referenced this issue Dec 23, 2023
tgyuuAn added a commit that referenced this issue Dec 23, 2023
tgyuuAn added a commit that referenced this issue Dec 23, 2023
@tgyuuAn
Copy link
Member Author

tgyuuAn commented Dec 23, 2023

  1. Compose 로 Span 주는 방법

  1. Compose Early Return 할 때 에러
Column {
    /* ... */
    return@Column // < 이렇게 하면 앱 크러시남
}

Column {
    /* ... */
    return  // 이렇게 해야함.
}

  1. Box 혹은 Card 안에 TextView 넣을 때 가운데 정렬
            Card(
                shape = RoundedCornerShape(10.dp),
                backgroundColor = WappTheme.colors.yellow34,
                modifier = Modifier
                    .padding(horizontal = 15.dp)
                    .padding(top = 40.dp)
                    .height(50.dp)
                    .fillMaxWidth()
                    .clickable { navigateToLogin() },
            ) {
                Text(
                    text = "로그인 하러 가기",
                    style = WappTheme.typography.contentMedium,
                    color = WappTheme.colors.white,
                    textAlign = TextAlign.Center,
                    modifier = Modifier.wrapContentHeight(),  // <- wrapContentHeight() 하면 가운데 정렬 됨.
                )
            }

@tgyuuAn
Copy link
Member Author

tgyuuAn commented Dec 23, 2023

  1. BottomNaivgation Hide/Visible 로직에서 Background Color

기존 (바텀 시트 쪽 하단 주목)

ezgif com-crop (7)




변경 후 (바텀 시트 쪽 하단 주목)

ezgif com-crop (8)

                Scaffold(
                    modifier = Modifier.fillMaxSize(),
                    containerColor = WappTheme.colors.backgroundBlack,  // containerColor를 추가해주면 된다.
                    bottomBar = {
                        val navBackStackEntry by
                        navController.currentBackStackEntryAsState()

                        val currentRoute = navBackStackEntry?.destination?.route
                        var bottomBarState by rememberSaveable { mutableStateOf(false) }

                        handleBottomBarState(
                            currentRoute,
                            setBottomBarState = { boolean ->
                                bottomBarState = boolean
                            },
                        )

                        WappBottomBar(
                            currentRoute = currentRoute,
                            bottomBarState = bottomBarState,
                            onNavigateToDestination = { destination ->
                                navigateToTopLevelDestination(
                                    navController,
                                    destination,
                                )
                            },
                            modifier = Modifier.height(70.dp),
                        )
                    },
                ) { innerPadding ->
                    WappNavHost(
                        signInUseCase = signInUseCase,
                        navController = navController,
                        modifier = Modifier.padding(innerPadding),
                    )
                }

와 같이

containerColor = WappTheme.colors.backgroundBlack,  // containerColor를 추가해주면 된다.

를 추가해주면 뒤에 흰색 배경이 해결된다

tgyuuAn added a commit that referenced this issue Dec 25, 2023
tgyuuAn added a commit that referenced this issue Dec 25, 2023
tgyuuAn added a commit that referenced this issue Dec 25, 2023
tgyuuAn added a commit that referenced this issue Dec 25, 2023
tgyuuAn added a commit that referenced this issue Dec 27, 2023
tgyuuAn added a commit that referenced this issue Dec 27, 2023
tgyuuAn added a commit that referenced this issue Dec 27, 2023
tgyuuAn added a commit that referenced this issue Dec 27, 2023
tgyuuAn added a commit that referenced this issue Dec 27, 2023
@tgyuuAn tgyuuAn linked a pull request Dec 27, 2023 that will close this issue
tgyuuAn added a commit that referenced this issue Dec 28, 2023
@tgyuuAn tgyuuAn reopened this Dec 29, 2023
@tgyuuAn tgyuuAn linked a pull request Jan 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱기능🌱 새로운 기능 두두둥장! 🧩태규🧩 ENFP 안태규 24세
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant