This file contains hidden or 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
data class SellerData(val count: Int) | |
data class BuyerData(val count: Int) | |
@Stable | |
class UiState { | |
val sellerData = mutableStateOf<SellerData>(SellerData(0)) | |
val buyerData = mutableStateOf<BuyerData>(BuyerData(0)) | |
} |
This file contains hidden or 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
data class UiState( | |
val sellerCount: Int, | |
val buyerCount: Int | |
) | |
class MainActivity : ComponentActivity() { | |
private val _uiState = MutableStateFlow<UiState>( | |
UiState( | |
sellerCount = 0, |