From aa3782d9da8a9c883a1d8056c8042ceedd2d5135 Mon Sep 17 00:00:00 2001 From: Klaus Niedermair Date: Thu, 8 Oct 2026 06:44:50 +0200 Subject: [PATCH 1/5] ci: resolve and test the survey_kit_image_answer package --- .github/workflows/.github-actions.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/.github-actions.yml b/.github/workflows/.github-actions.yml index d7bccab5..56f6bfa7 100644 --- a/.github/workflows/.github-actions.yml +++ b/.github/workflows/.github-actions.yml @@ -17,5 +17,10 @@ jobs: with: channel: "stable" - run: flutter pub get + # The root analyze also reads packages/, so their dependencies must be resolved first. + - run: flutter pub get + working-directory: packages/survey_kit_image_answer - run: flutter analyze - - run: flutter test \ No newline at end of file + - run: flutter test + - run: flutter test + working-directory: packages/survey_kit_image_answer \ No newline at end of file From 6390d303522a7fdb7557e13c525fd99d8578330d Mon Sep 17 00:00:00 2001 From: Klaus Niedermair Date: Thu, 8 Oct 2026 06:47:27 +0200 Subject: [PATCH 2/5] ci: do not fail on analyzer infos --- .github/workflows/.github-actions.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/.github-actions.yml b/.github/workflows/.github-actions.yml index 56f6bfa7..890a8e66 100644 --- a/.github/workflows/.github-actions.yml +++ b/.github/workflows/.github-actions.yml @@ -20,7 +20,8 @@ jobs: # The root analyze also reads packages/, so their dependencies must be resolved first. - run: flutter pub get working-directory: packages/survey_kit_image_answer - - run: flutter analyze + # Infos are not fatal: some deprecation replacements need a newer Flutter than the package supports. + - run: flutter analyze --no-fatal-infos - run: flutter test - run: flutter test working-directory: packages/survey_kit_image_answer \ No newline at end of file From 25613426e2fa1eb6fcc393850160787ef8343658 Mon Sep 17 00:00:00 2001 From: Klaus Niedermair Date: Thu, 8 Oct 2026 06:51:55 +0200 Subject: [PATCH 3/5] ci: test image answer package against local survey_kit --- .github/workflows/.github-actions.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/.github-actions.yml b/.github/workflows/.github-actions.yml index 890a8e66..0917b790 100644 --- a/.github/workflows/.github-actions.yml +++ b/.github/workflows/.github-actions.yml @@ -17,6 +17,9 @@ jobs: with: channel: "stable" - run: flutter pub get + # Test the sub-package against this repo's survey_kit, not the old version from pub.dev. + - run: printf 'dependency_overrides:\n survey_kit:\n path: ../..\n' > pubspec_overrides.yaml + working-directory: packages/survey_kit_image_answer # The root analyze also reads packages/, so their dependencies must be resolved first. - run: flutter pub get working-directory: packages/survey_kit_image_answer From 75d075e1b0760cc8d0d27bcfd1ae6a51854346bd Mon Sep 17 00:00:00 2001 From: Klaus Niedermair Date: Thu, 8 Oct 2026 06:52:34 +0200 Subject: [PATCH 4/5] ci: write overrides file with a block scalar --- .github/workflows/.github-actions.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/.github-actions.yml b/.github/workflows/.github-actions.yml index 0917b790..07493ea6 100644 --- a/.github/workflows/.github-actions.yml +++ b/.github/workflows/.github-actions.yml @@ -18,7 +18,12 @@ jobs: channel: "stable" - run: flutter pub get # Test the sub-package against this repo's survey_kit, not the old version from pub.dev. - - run: printf 'dependency_overrides:\n survey_kit:\n path: ../..\n' > pubspec_overrides.yaml + - run: | + cat > pubspec_overrides.yaml <<'EOF' + dependency_overrides: + survey_kit: + path: ../.. + EOF working-directory: packages/survey_kit_image_answer # The root analyze also reads packages/, so their dependencies must be resolved first. - run: flutter pub get From 9acd3c13cb042e414a6499421581266a54887282 Mon Sep 17 00:00:00 2001 From: Klaus Niedermair Date: Thu, 8 Oct 2026 06:55:17 +0200 Subject: [PATCH 5/5] fix(image_answer): import the package's own result and answer format --- .../survey_kit_image_answer/lib/src/view/image_answer_view.dart | 2 ++ .../test/image_question_result_test.dart | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/survey_kit_image_answer/lib/src/view/image_answer_view.dart b/packages/survey_kit_image_answer/lib/src/view/image_answer_view.dart index aac088a6..eff55ce6 100644 --- a/packages/survey_kit_image_answer/lib/src/view/image_answer_view.dart +++ b/packages/survey_kit_image_answer/lib/src/view/image_answer_view.dart @@ -1,6 +1,8 @@ import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; import 'package:survey_kit/survey_kit.dart'; +import 'package:survey_kit_image_answer/src/answer_format/image_answer_format.dart'; +import 'package:survey_kit_image_answer/src/result/image_question_result.dart'; class ImageAnswerView extends StatefulWidget { final QuestionStep questionStep; diff --git a/packages/survey_kit_image_answer/test/image_question_result_test.dart b/packages/survey_kit_image_answer/test/image_question_result_test.dart index 07efa581..7c442f62 100644 --- a/packages/survey_kit_image_answer/test/image_question_result_test.dart +++ b/packages/survey_kit_image_answer/test/image_question_result_test.dart @@ -1,5 +1,6 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:survey_kit/survey_kit.dart'; +import 'package:survey_kit_image_answer/survey_kit_image_answer.dart'; void main() { final tResult = ImageQuestionResult(