Remove top bar workaround (#8497)

Fixed upstream and we currently using small top bar which doesn't affected
This commit is contained in:
Ivan Iskandar 2022-11-11 09:26:56 +07:00 committed by GitHub
parent 6ce54eb845
commit 11ed47397d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,10 +84,6 @@ object SettingsMainScreen : Screen {
Scaffold(
topBarScrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(topBarState),
topBar = { scrollBehavior ->
// https://issuetracker.google.com/issues/249688556
MaterialTheme(
colorScheme = MaterialTheme.colorScheme.copy(surface = containerColor),
) {
TopAppBar(
title = {
Text(
@ -116,7 +112,6 @@ object SettingsMainScreen : Screen {
},
scrollBehavior = scrollBehavior,
)
}
},
containerColor = containerColor,
content = { contentPadding ->