Skip to content

Commit

Permalink
Fix top app bar isn't shown when subscriptions list is empty (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr3y-the-programmer authored Jul 2, 2024
1 parent 312d5b5 commit 8449589
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,25 +179,25 @@ fun SubscriptionsScreen(
) {
Scaffold(
topBar = {
if (state.subscriptions.isNotEmpty()) {
TopBar(
isTopLevelScreen = true,
onNavIconClick = onNavDrawerClick,
title = {
TopBar(
isTopLevelScreen = true,
onNavIconClick = onNavDrawerClick,
title = {
if (state.subscriptions.isNotEmpty()) {
Text(
text = strings.subscriptions_label,
color = MaterialTheme.colorScheme.onPrimaryTertiary,
style = MaterialTheme.typography.titleMedium,
)
},
colors = TopAppBarDefaults.topAppBarColors(
containerColor = MaterialTheme.colorScheme.primaryTertiary,
navigationIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
actionIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
),
modifier = Modifier.fillMaxWidth(),
)
}
}
},
colors = TopAppBarDefaults.topAppBarColors(
containerColor = MaterialTheme.colorScheme.primaryTertiary,
navigationIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
actionIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
),
modifier = Modifier.fillMaxWidth(),
)
},
containerColor = MaterialTheme.colorScheme.surface,
snackbarHost = {
Expand Down

0 comments on commit 8449589

Please sign in to comment.