survey_kit 2.0.0-beta1
survey_kit: ^2.0.0-beta1 copied to clipboard
Create beautiful surveys with Flutter (inspired by iOS ResearchKit Surveys)
2.0.0-beta1 #
Required adjustments #
- Update dependencies to
survey_kit: 2.0.0-beta1. - BREAKING: Rename
Task.initalSteptoTask.initialStep. - Add plugin packages only when needed:
survey_kit_audio,survey_kit_video,survey_kit_lottie. - Register plugin packages through
SurveyKit(registries: [...]). - Migrate custom answer/content rendering to registry builders:
answerViewBuildersandcontentWidgetBuilders. - Register JSON converters for custom/plugin types when deserializing:
AnswerFormat.registerFromJsonandContent.registerFromJson. - Ensure app localization delegates include
SurveyKitLocalizations.delegate. - Prefer
SurveyDefinition.fromJsonoverTask.fromJson(Taskremains as a deprecated alias).
Full guide: https://github.com/quickbirdstudios/survey_kit/blob/main/MIGRATION.md
Highlights #
- BREAKING: Introduced registry/plugin-based rendering and removed direct model/view coupling (
createView/createWidgetpattern). - BREAKING: Renamed
Task.initalSteptoTask.initialStep. - BREAKING: Moved media integrations to dedicated packages (
survey_kit_audio,survey_kit_video,survey_kit_lottie). - FEATURE: Added
SurveyFlowas the unified task model for linear and branching surveys. - FEATURE: Added
SurveyDefinitionas the canonical survey definition base type. - DEPRECATION:
OrderedTaskandNavigableTaskare now legacy wrappers aroundSurveyFlow. - REMOVED:
FlowTask— introduced and immediately deprecated in this version, removed before release. UseSurveyFlowdirectly. - DEPRECATION:
Taskis now a legacy alias forSurveyDefinition. - FEATURE: Added
SurveyKitRegistry/SurveyKitPluginextension points. - FEATURE: Migrated localization to Flutter
gen_l10nand.arbfiles. - CHORE: Migrated to monorepo workflow and updated CI/publish automation.
Navigation/Controller Hardening #
- FIX: Hardened survey navigation transitions to avoid loading-route traps on empty/completed flows.
- FIX: Stabilized navigation rule serialization/deserialization for JSON
surveys (
typehandling + legacy compatibility). - FIX: Survey result emission is now deterministic and ordered by task step sequence.
- FIX: Tightened state update propagation and cleaned dead/duplicate view artifacts in provider/view wiring.
- BREAKING: Renamed
Task.initalSteptoTask.initialStep. - FEATURE:
SurveyControllernow supports context-free imperative navigation when attached toSurveyKit(next,stepBack,closeSurvey).
1.0.3 #
- Refactored
SurveyStateProviderto avoid reinstantiation on rebuilds.