@@ -29,6 +29,7 @@ import androidx.compose.foundation.lazy.LazyColumn
29
29
import androidx.compose.foundation.lazy.rememberLazyListState
30
30
import androidx.compose.material3.Divider
31
31
import androidx.compose.material3.LinearProgressIndicator
32
+ import androidx.compose.material3.MaterialTheme
32
33
import androidx.compose.material3.Surface
33
34
import androidx.compose.material3.Text
34
35
import androidx.compose.runtime.Composable
@@ -48,8 +49,6 @@ import androidx.compose.ui.graphics.graphicsLayer
48
49
import androidx.compose.ui.res.stringResource
49
50
import androidx.compose.ui.semantics.contentDescription
50
51
import androidx.compose.ui.semantics.semantics
51
- import androidx.compose.ui.text.TextStyle
52
- import androidx.compose.ui.text.font.FontWeight
53
52
import androidx.compose.ui.unit.dp
54
53
import com.arcgismaps.mapping.featureforms.ComboBoxFormInput
55
54
import com.arcgismaps.mapping.featureforms.DateTimePickerFormInput
@@ -169,9 +168,13 @@ internal fun FeatureForm(
169
168
}
170
169
171
170
@Composable
172
- private fun FeatureFormTitle (featureForm : FeatureForm ) {
171
+ private fun FeatureFormTitle (featureForm : FeatureForm , modifier : Modifier = Modifier ) {
173
172
val title by featureForm.title.collectAsState()
174
- Text (text = title, style = TextStyle (fontWeight = FontWeight .Bold ))
173
+ Text (
174
+ text = title,
175
+ style = MaterialTheme .typography.titleMedium,
176
+ modifier = modifier
177
+ )
175
178
}
176
179
177
180
@Composable
@@ -187,7 +190,10 @@ private fun FeatureFormBody(
187
190
horizontalAlignment = Alignment .CenterHorizontally
188
191
) {
189
192
// title
190
- FeatureFormTitle (featureForm = form)
193
+ FeatureFormTitle (
194
+ featureForm = form,
195
+ modifier = Modifier .padding(horizontal = 15 .dp)
196
+ )
191
197
Spacer (
192
198
modifier = Modifier
193
199
.fillMaxWidth()
0 commit comments