Skip to content

Commit 354d4be

Browse files
committed
feat: add tablet preview
1 parent 0cf6838 commit 354d4be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/src/main/java/to/bitkit/ui/components/Keyboard.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import androidx.compose.ui.platform.testTag
1515
import androidx.compose.ui.text.TextStyle
1616
import androidx.compose.ui.text.font.FontWeight
1717
import androidx.compose.ui.text.style.TextAlign
18+
import androidx.compose.ui.tooling.preview.Devices
1819
import androidx.compose.ui.tooling.preview.Preview
1920
import androidx.compose.ui.unit.dp
2021
import androidx.compose.ui.unit.sp
@@ -92,3 +93,13 @@ private fun Preview2() {
9293
}
9394
}
9495
}
96+
97+
@Preview(showBackground = true, device = Devices.PIXEL_TABLET)
98+
@Composable
99+
private fun Preview3() {
100+
AppThemeSurface {
101+
Column(modifier = Modifier.fillMaxSize(), verticalArrangement = Arrangement.Bottom) {
102+
Keyboard(isDecimal = false, modifier = Modifier.fillMaxWidth().padding(41.dp), onClick = {})
103+
}
104+
}
105+
}

0 commit comments

Comments
 (0)