Skip to content

Commit 6b1a807

Browse files
authored
Fix: SurveyStateProvider should be immutable (#165)
* refactor: streamline SurveyKit state management by initializing SurveyStateProvider in initState * refactor: replace SurveyStateProvider with SurveyStateProviderWidget for improved state management * fix: immutable surveystateprovider * chore: update pubspec.lock to version 1.0.3 and skip tests due to serialization issues with Step field
1 parent 2684c7f commit 6b1a807

16 files changed

Lines changed: 239 additions & 81 deletions

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# 1.0.3 (To be released)
1+
# 1.0.3
22

33
- CHORE: Removed depracted lint `package_api_docs`
4+
- FIX: Refactored SurveyStateProvider to follow proper InheritedWidget pattern - separated mutable state into StatefulWidget wrapper to prevent reinstantiation on rebuilds
5+
- FIX: Fixed SurveyStateProvider state persistence by using SurveyStateProviderWidget (StatefulWidget) with immutable SurveyStateProvider (InheritedWidget)
46

57
# 1.0.2
68

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ packages:
467467
path: ".."
468468
relative: true
469469
source: path
470-
version: "1.0.2"
470+
version: "1.0.3"
471471
synchronized:
472472
dependency: transitive
473473
description:

0 commit comments

Comments
 (0)