File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/ui/sheets/hardware Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ import to.bitkit.ui.components.BottomSheetPreview
2424import to.bitkit.ui.components.Display
2525import to.bitkit.ui.components.PrimaryButton
2626import to.bitkit.ui.components.SecondaryButton
27+ import to.bitkit.ui.components.SheetSize
2728import to.bitkit.ui.components.VerticalSpacer
2829import to.bitkit.ui.scaffold.SheetTopBar
30+ import to.bitkit.ui.shared.modifiers.sheetHeight
2931import to.bitkit.ui.shared.util.gradientBackground
3032import to.bitkit.ui.theme.AppThemeSurface
3133import to.bitkit.ui.theme.Colors
@@ -113,7 +115,10 @@ private fun Content(
113115private fun Preview () {
114116 AppThemeSurface {
115117 BottomSheetPreview {
116- Content (deviceModel = " Trezor Safe 3" )
118+ Content (
119+ deviceModel = " Trezor Safe 3" ,
120+ modifier = Modifier .sheetHeight(SheetSize .LARGE )
121+ )
117122 }
118123 }
119124}
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ import to.bitkit.ui.components.Display
2020import to.bitkit.ui.components.HwDeviceIllustrations
2121import to.bitkit.ui.components.PrimaryButton
2222import to.bitkit.ui.components.SecondaryButton
23+ import to.bitkit.ui.components.SheetSize
2324import to.bitkit.ui.components.VerticalSpacer
2425import to.bitkit.ui.scaffold.SheetTopBar
26+ import to.bitkit.ui.shared.modifiers.sheetHeight
2527import to.bitkit.ui.shared.util.gradientBackground
2628import to.bitkit.ui.theme.AppThemeSurface
2729import to.bitkit.ui.theme.Colors
@@ -93,7 +95,7 @@ private fun Content(
9395private fun PreviewIntro () {
9496 AppThemeSurface {
9597 BottomSheetPreview {
96- Content ()
98+ Content (modifier = Modifier .sheetHeight( SheetSize . LARGE ) )
9799 }
98100 }
99101}
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ import to.bitkit.ui.components.Display
2828import to.bitkit.ui.components.FillHeight
2929import to.bitkit.ui.components.KEY_DELETE
3030import to.bitkit.ui.components.NumberPad
31+ import to.bitkit.ui.components.SheetSize
3132import to.bitkit.ui.scaffold.SheetTopBar
33+ import to.bitkit.ui.shared.modifiers.sheetHeight
3234import to.bitkit.ui.shared.util.gradientBackground
3335import to.bitkit.ui.theme.AppThemeSurface
3436import to.bitkit.ui.theme.Colors
@@ -123,6 +125,7 @@ private fun Preview() {
123125 Content (
124126 code = " 123" ,
125127 onKeyPress = {},
128+ modifier = Modifier .sheetHeight(SheetSize .LARGE )
126129 )
127130 }
128131 }
Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ import to.bitkit.ui.components.BottomSheetPreview
2525import to.bitkit.ui.components.Caption13Up
2626import to.bitkit.ui.components.Display
2727import to.bitkit.ui.components.PrimaryButton
28+ import to.bitkit.ui.components.SheetSize
2829import to.bitkit.ui.components.TextInput
2930import to.bitkit.ui.components.VerticalSpacer
3031import to.bitkit.ui.components.WalletBalanceView
3132import to.bitkit.ui.scaffold.SheetTopBar
33+ import to.bitkit.ui.shared.modifiers.sheetHeight
3234import to.bitkit.ui.shared.util.gradientBackground
3335import to.bitkit.ui.theme.AppThemeSurface
3436import to.bitkit.ui.theme.Colors
@@ -132,6 +134,7 @@ private fun Preview() {
132134 balanceSats = 10_562_411uL ,
133135 labelInput = " Trezor Safe 3" ,
134136 ),
137+ modifier = Modifier .sheetHeight(SheetSize .LARGE )
135138 )
136139 }
137140 }
You can’t perform that action at this time.
0 commit comments