Skip to content

Instantly share code, notes, and snippets.

@alexvanyo
Last active January 14, 2022 20:35
Show Gist options
  • Save alexvanyo/a507d8f7a4a8f5d3315cb110e342291e to your computer and use it in GitHub Desktop.
Save alexvanyo/a507d8f7a4a8f5d3315cb110e342291e to your computer and use it in GitHub Desktop.
A tab row that is window size aware
// Copyright 2022 Google LLC.
// SPDX-License-Identifier: Apache-2.0
@Composable
private fun InterestsTabRow(
selectedTabIndex: Int,
updateSection: (Sections) -> Unit,
tabContent: List<TabContent>,
isExpandedScreen: Boolean
) {
if (isExpandedScreen) {
ScrollableTabRow(/* ... */)
} else {
TabRow(/* ... */)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment