Skip to content

Commit

Permalink
fix(#451): enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 22, 2023
1 parent 57c7a7c commit af660bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ class EnrollmentFormViewModel extends FormViewModel<EnrollmentFormData>
};

@override
ScreenerQuestionFormViewModel provideQuestionFormViewModel(QuestionFormData? formData) {
return ScreenerQuestionFormViewModel(
ScreenerQuestionFormViewModel provideQuestionFormViewModel<FD extends QuestionFormData>(FD? formData) {
return ScreenerQuestionFormViewModel.concrete(
formData: formData,
delegate: this,
validationSet: validationSet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ class ScreenerQuestionLogicFormView extends FormConsumerWidget {
body: TextParagraph(text: tr.form_array_screener_question_logic_dirty_banner),
padding: const EdgeInsets.symmetric(horizontal: 18.0, vertical: 12.0),
noPrefix: true,
isDismissed: !formViewModel.isMidValuesClearedInfoVisible,
isDismissed: formViewModel is ScreenerScaleQuestionFormViewModel
? !(formViewModel as ScreenerScaleQuestionFormViewModel).isMidValuesClearedInfoVisible
: true,
dismissIconSize: Theme.of(context).iconTheme.size ?? 14.0,
),
)
Expand Down

0 comments on commit af660bd

Please sign in to comment.