[안드로이드 공부]/Compose

Scafford에서 bottomBar, topBar 안보이게 하기

코코모모 2024. 4. 26. 11:56

Scafford

bottomBar = {
    Text(
        modifier =  Modifier.height(0.dp),
        text = "Bottom Bar")
},

 

rememberAppState를 만들어서 상태에 따라 변화 하게 만들 수도 있지만, 

위와 같이 단순히 보여주기 싫을 경우에는 height를 0으로 만들면 비용이 들지 않는다.

 

꼼수라면 꼼수.