Skip to content

Commit

Permalink
Merge pull request hpi-studyu#598 from hpi-studyu/feat/free-text-enable
Browse files Browse the repository at this point in the history
feat(designer): enable free text UI
  • Loading branch information
johannesvedder authored Apr 10, 2024
2 parents c31f486 + 6c53867 commit a99ad4b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ class _SurveyQuestionFormViewState extends ConsumerState<SurveyQuestionFormView>

_buildResponseTypeHeader(BuildContext context) {
final theme = Theme.of(context);
final noFreeText = formViewModel.questionTypeControlOptions;
noFreeText.removeWhere((element) => element.value == SurveyQuestionType.freeText);
return Column(
children: [
FormTableLayout(
Expand All @@ -107,7 +105,7 @@ class _SurveyQuestionFormViewState extends ConsumerState<SurveyQuestionFormView>
data: theme.copyWith(inputDecorationTheme: ThemeConfig.dropdownInputDecorationTheme(theme)),
child: ReactiveDropdownField<SurveyQuestionType>(
formControl: formViewModel.questionTypeControl,
items: noFreeText.map((option) {
items: formViewModel.questionTypeControlOptions.map((option) {
final menuItemTheme = ThemeConfig.dropdownMenuItemTheme(theme);
final iconTheme = menuItemTheme.iconTheme ?? theme.iconTheme;
return DropdownMenuItem(
Expand Down

0 comments on commit a99ad4b

Please sign in to comment.