Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Column {
- JetsnackDivider()
- Row(
- verticalAlignment = Alignment.CenterVertically,
- modifier = Modifier
- .navigationBarsPadding()
- .then(HzPadding)
- .heightIn(min = BottomBarHeight)
- ) {
- QuantitySelector(
- count = count,
- decreaseItemCount = { if (count > 0) updateCount(count - 1) },
- increaseItemCount = { updateCount(count + 1) }
- )
- Spacer(Modifier.width(16.dp))
- JetsnackButton(
- onClick = { /* todo */ },
- modifier = Modifier.weight(1f)
- ) {
- Text(
- text = stringResource(R.string.add_to_cart),
- modifier = Modifier.fillMaxWidth(),
- textAlign = TextAlign.Center,
- maxLines = 1
- )
- }
- }
- }
- //--------------
- val tabs = listOf("Home", "About", "Settings")
- Column(modifier = Modifier.fillMaxWidth()) {
- TabRow(selectedTabIndex = tabIndex) {
- tabs.forEachIndexed { index, title ->
- Tab(text = { Text(title) },
- selected = tabIndex == index,
- onClick = { tabIndex = index }
- )
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement