-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reset values * Add resets * SOme UI * MOre sample * MOre sample * Sample tri state checvkbox with child * Update with menu link * Update padding * Update sample * Update with split * Update with show icon * Android sample to minSdk 26 * Update settings tile * No custom height on settings group title
- Loading branch information
Showing
13 changed files
with
255 additions
and
124 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,12 @@ | ||
import androidx.compose.runtime.Composable | ||
import com.alorma.compose.settings.sample.shared.SettingsScreen | ||
import com.alorma.compose.settings.sample.shared.theme.ComposeSettingsTheme | ||
import com.alorma.compose.settings.storage.base.getValue | ||
import com.alorma.compose.settings.storage.base.setValue | ||
import com.alorma.compose.settings.storage.disk.rememberBooleanSettingState | ||
import com.russhwolf.settings.Settings | ||
|
||
@Composable | ||
fun App() { | ||
val settings = Settings() | ||
var darkModeState by rememberBooleanSettingState( | ||
key = "darkMode", | ||
defaultValue = false, | ||
settings = settings, | ||
) | ||
ComposeSettingsTheme( | ||
darkTheme = darkModeState, | ||
) { | ||
SettingsScreen( | ||
settings = settings, | ||
darkTheme = darkModeState, | ||
onDarkThemeChange = { darkModeState = it } | ||
) | ||
ComposeSettingsTheme { | ||
SettingsScreen(settings = settings) | ||
} | ||
} |
Oops, something went wrong.