claform_sdk_flutter 1.1.2
claform_sdk_flutter: ^1.1.2 copied to clipboard
Flutter SDK for Claform surveys: 36 question types, content blocks, theming, offline support, and quiz scoring in a pure-Dart survey experience.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.2 #
Changed #
- Added the
repositorylink (https://github.com/Claform/sdk-flutter).
1.1.1 #
Changed #
- Shortened the package description and set a valid
homepage. - Removed unused dependencies (
file_picker,image_picker,signature) — the file/photo/signature widgets use built-in implementations, so these were never imported. - Bumped
intlto^0.20.0andconfettito^0.8.0.
Fixed #
- Wrapped generic types in doc comments in backticks so pub.dev no longer interprets angle brackets as HTML.
1.1.0 #
Added #
- Support for the 6 display/content blocks:
heading,text_block,image_block,video_embed,divider, andspacer. Each renders as clean, non-answerable content (bypassing the answer/validation chrome), with typed config onQuestionSettings(heading,textBlock,imageBlock,videoEmbed,divider,spacer). Image links and video cards open externally viaurl_launcher. - Support for the 7 action elements (
redirect_action,email_action,webhook_action,calculate_action,score_display,payment_action,integration_action). These are modelled but render nothing, mirroring the web/React Native SDKs. - 13 new
QuestionTypemembers with explicitparseQuestionType/questionTypeToStringarms for every one. QuestionType.unknownsentinel: an unrecognised or future wiretypestring now parses to this member instead of collapsing totext_short, so a payload carrying a new element type parses cleanly and is never mistaken for an answerable input (isInputQuestion(QuestionType.unknown)isfalse).- Category helpers
isInputQuestion,isDisplayBlock,isActionElement(plusdisplayBlockTypes/actionElementTypessets). url_launcherdependency (used only for display-block links and video cards).
Fixed #
parseQuestionTypeno longer silently collapses wire strings totext_short— the 13 new types round-trip losslessly, and any unrecognised string resolves toQuestionType.unknown(a non-input sentinel) rather than masquerading as a required text question.- Display blocks and action elements are now excluded from validation,
progress (numerator/denominator), question numbering, required/navigation
gating,
getAllAnswers, and quiz scoring — only input questions count.
1.0.0 #
Added #
SurveyWidgetFlutter widget for rendering and submitting Claform surveysSurveyConfig(apiUrl + surveyId/shareId) configuration- Survey lifecycle callbacks (onComplete, onPageChanged, onError)
- Offline caching, auto-save, and resume
- RTL and multi-language support
- Null-safe, Dart 3 (
>=3.0.0 <4.0.0)