|
1 | 1 | package com.ninecraft.booket.feature.record.step |
2 | 2 |
|
3 | 3 | import androidx.compose.foundation.background |
| 4 | +import androidx.compose.foundation.layout.Box |
4 | 5 | import androidx.compose.foundation.layout.Column |
5 | 6 | import androidx.compose.foundation.layout.Spacer |
6 | 7 | import androidx.compose.foundation.layout.fillMaxSize |
@@ -65,67 +66,74 @@ fun ImpressionStep( |
65 | 66 | } |
66 | 67 | } |
67 | 68 |
|
68 | | - Column( |
| 69 | + Box( |
69 | 70 | modifier = modifier |
70 | 71 | .fillMaxSize() |
71 | | - .background(White) |
72 | | - .padding(horizontal = ReedTheme.spacing.spacing5) |
73 | | - .verticalScroll(rememberScrollState()), |
| 72 | + .background(White), |
74 | 73 | ) { |
75 | | - Text( |
76 | | - text = stringResource(R.string.impression_step_title), |
77 | | - color = ReedTheme.colors.contentPrimary, |
78 | | - style = ReedTheme.typography.heading1Bold, |
79 | | - ) |
80 | | - Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing1)) |
81 | | - Text( |
82 | | - text = stringResource(R.string.impression_step_description), |
83 | | - color = ReedTheme.colors.contentTertiary, |
84 | | - style = ReedTheme.typography.label1Medium, |
85 | | - ) |
86 | | - Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing10)) |
87 | | - ReedRecordTextField( |
88 | | - recordState = state.impressionState, |
89 | | - recordHintRes = R.string.impression_step_hint, |
| 74 | + Column( |
90 | 75 | modifier = Modifier |
91 | | - .fillMaxWidth() |
92 | | - .focusRequester(focusRequester) |
93 | | - .height(140.dp), |
94 | | - keyboardOptions = KeyboardOptions( |
95 | | - keyboardType = KeyboardType.Text, |
96 | | - imeAction = ImeAction.Default, |
97 | | - ), |
98 | | - ) |
99 | | - Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing3)) |
100 | | - ReedButton( |
101 | | - onClick = { |
102 | | - state.eventSink(RecordRegisterUiEvent.OnImpressionGuideButtonClick) |
103 | | - }, |
104 | | - colorStyle = ReedButtonColorStyle.STROKE, |
105 | | - sizeStyle = smallRoundedButtonStyle, |
106 | | - modifier = Modifier.align(Alignment.End), |
107 | | - text = stringResource(R.string.impression_step_guide), |
108 | | - leadingIcon = { |
109 | | - Icon( |
110 | | - imageVector = ImageVector.vectorResource(designR.drawable.ic_book_open), |
111 | | - contentDescription = "Impression Guide Icon", |
112 | | - ) |
113 | | - }, |
114 | | - ) |
115 | | - Spacer(modifier = Modifier.weight(1f)) |
116 | | - Spacer(modifier = Modifier.height(108.dp)) |
| 76 | + .fillMaxSize() |
| 77 | + .padding(horizontal = ReedTheme.spacing.spacing5) |
| 78 | + .verticalScroll(rememberScrollState()), |
| 79 | + ) { |
| 80 | + Text( |
| 81 | + text = stringResource(R.string.impression_step_title), |
| 82 | + color = ReedTheme.colors.contentPrimary, |
| 83 | + style = ReedTheme.typography.heading1Bold, |
| 84 | + ) |
| 85 | + Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing1)) |
| 86 | + Text( |
| 87 | + text = stringResource(R.string.impression_step_description), |
| 88 | + color = ReedTheme.colors.contentTertiary, |
| 89 | + style = ReedTheme.typography.label1Medium, |
| 90 | + ) |
| 91 | + Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing10)) |
| 92 | + ReedRecordTextField( |
| 93 | + recordState = state.impressionState, |
| 94 | + recordHintRes = R.string.impression_step_hint, |
| 95 | + modifier = Modifier |
| 96 | + .fillMaxWidth() |
| 97 | + .focusRequester(focusRequester) |
| 98 | + .height(140.dp), |
| 99 | + keyboardOptions = KeyboardOptions( |
| 100 | + keyboardType = KeyboardType.Text, |
| 101 | + imeAction = ImeAction.Default, |
| 102 | + ), |
| 103 | + ) |
| 104 | + Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing3)) |
| 105 | + ReedButton( |
| 106 | + onClick = { |
| 107 | + state.eventSink(RecordRegisterUiEvent.OnImpressionGuideButtonClick) |
| 108 | + }, |
| 109 | + colorStyle = ReedButtonColorStyle.STROKE, |
| 110 | + sizeStyle = smallRoundedButtonStyle, |
| 111 | + modifier = Modifier.align(Alignment.End), |
| 112 | + text = stringResource(R.string.impression_step_guide), |
| 113 | + leadingIcon = { |
| 114 | + Icon( |
| 115 | + imageVector = ImageVector.vectorResource(designR.drawable.ic_book_open), |
| 116 | + contentDescription = "Impression Guide Icon", |
| 117 | + ) |
| 118 | + }, |
| 119 | + ) |
| 120 | + } |
| 121 | + |
117 | 122 | ReedButton( |
118 | 123 | onClick = { |
119 | 124 | state.eventSink(RecordRegisterUiEvent.OnNextButtonClick) |
120 | 125 | }, |
121 | 126 | colorStyle = ReedButtonColorStyle.PRIMARY, |
122 | 127 | sizeStyle = largeButtonStyle, |
123 | | - modifier = Modifier.fillMaxWidth(), |
| 128 | + modifier = Modifier |
| 129 | + .fillMaxWidth() |
| 130 | + .align(Alignment.BottomCenter) |
| 131 | + .padding(horizontal = ReedTheme.spacing.spacing5) |
| 132 | + .padding(bottom = ReedTheme.spacing.spacing4), |
124 | 133 | enabled = state.isNextButtonEnabled, |
125 | 134 | text = stringResource(R.string.record_next_button), |
126 | 135 | multipleEventsCutterEnabled = state.currentStep == RecordStep.IMPRESSION, |
127 | 136 | ) |
128 | | - Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing4)) |
129 | 137 | } |
130 | 138 |
|
131 | 139 | if (state.isImpressionGuideBottomSheetVisible) { |
|
0 commit comments