-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5dba2c
commit 9ce4b52
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
10 changes: 3 additions & 7 deletions
10
composeApp/src/commonMain/kotlin/data/repository/SharedRepository.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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
package data.repository | ||
|
||
import androidx.compose.runtime.getValue | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.runtime.setValue | ||
|
||
class SharedRepository { | ||
var isDarkThemeEnabled by mutableStateOf(false) | ||
} | ||
interface SharedRepository { | ||
var isDarkThemeEnabled: Boolean | ||
} |
9 changes: 9 additions & 0 deletions
9
composeApp/src/commonMain/kotlin/data/repository/SharedRepositoryImpl.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,9 @@ | ||
package data.repository | ||
|
||
import androidx.compose.runtime.getValue | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.runtime.setValue | ||
|
||
class SharedRepositoryImpl : SharedRepository { | ||
override var isDarkThemeEnabled: Boolean by mutableStateOf(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