-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#29 refactor: 일지 상세 edittext, bottomSheet 상태 객체로 분리
- Loading branch information
1 parent
b41a2a1
commit 2a3296f
Showing
4 changed files
with
44 additions
and
33 deletions.
There are no files selected for viewing
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
23 changes: 23 additions & 0 deletions
23
presentation/src/main/java/io/tuttut/presentation/ui/state/BottomSheetState.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,23 @@ | ||
package io.tuttut.presentation.ui.state | ||
|
||
import androidx.compose.runtime.getValue | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.runtime.setValue | ||
|
||
interface IBottomSheetState { | ||
var showSheet: Boolean | ||
fun show() | ||
fun dismiss() | ||
} | ||
|
||
class BottomSheetState : IBottomSheetState { | ||
override var showSheet by mutableStateOf(false) | ||
|
||
override fun show() { | ||
showSheet = true | ||
} | ||
|
||
override fun dismiss() { | ||
showSheet = false | ||
} | ||
} |
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