insito_flutter 0.2.2
insito_flutter: ^0.2.2 copied to clipboard
In-app micro-surveys for Flutter — NPS, ratings, and multi-question flows with theming, offline queueing, logic branching, and automatic screen tracking.
0.2.2 #
- Fix — the survey modal now renders inside the host app's own
Overlayinstead of a detached sibling overlay. This keeps its text fields in the app's focus/IME tree, so backspace/deletion works in open-text and "Other" inputs, and the "Other" input auto-focuses when selected. Also centered the rating stars and removed per-keystroke rebuilds of the text field.
0.2.1 #
- INS-136 fix — offline/queued responses now preserve the render-time device locale (
QueuedResponse.locale) so per-market analytics stay accurate when a submit is retried from the queue.
0.2.0 #
- INS-136 — multilingual surveys. The SDK now resolves per-locale question text, multiple-choice option labels, and welcome/end screen copy from the device locale (exact match → language prefix → default language). Multiple-choice answer values stay canonical so analytics remain consistent across languages.
- SDK UI labels (INS-135) are now locale-aware: the dashboard delivers per-locale label sets and the SDK resolves them against the device locale, layered over the flat default set and
init({ labels })overrides. - Responses submitted via
/v1/sdk/responsenow carry the device locale so the dashboard can slice analytics per market.
0.1.4 #
- The survey footer's "Powered by" attribution now shows the Insito icon+wordmark lockup next to the text, tinted to the muted theme colour. The mark is embedded as bytes and rendered via
Image.memory, so it adds no bundled asset and stays deliverable through Shorebird code patches.
0.1.3 #
- Brought the survey footer to visual parity with
@insito/react-native: the primary action now fills the available width with a 52pt minimum height, Back/Skip render as outlined buttons, and the welcome screen's dismiss link is centered and underlined. - Added the footer's hairline top border, and the disabled primary button now uses
colors.borderrather than a 50% opacity overlay, matching the React Native SDK. - Reworked the
example/app into a four-tab "Demo Bank" showcase mirroring the React Native demo, coveringapp_opened,transfer_completed,card_viewed, and screen-tracking triggers.
0.1.2 #
- INS-117 — report a clean
osVersiononidentify()viadevice_info_plus(iOS system version, Android API level) so the dashboard's audience OS-version breakdown matches the React Native SDK. Falls back gracefully when the plugin is unavailable. - Added unit tests for device metadata auto-capture and the
identify()metadata merge (developer keys win).
0.1.1 #
- Raised the minimum SDK to Flutter 3.27 / Dart 3.6 and adopted
Color.withValues, clearing all analyzer deprecation hints. - Expanded the package description and refreshed
flutter_lintsto keep the pub.dev score maxed.
0.1.0 #
- Initial release. Flutter/Dart port of the
@insito/react-nativeSDK. MicroSurvey.init()/identify()/trigger()/evaluate()/submitResponse()/dismissSurvey().InsitoProviderrenders the survey modal;InsitoNavigatorObserverauto-tracks screens.- Four question types (NPS, rating, multiple choice, open text) plus welcome and end screens.
- Offline response queue, 24h identify cache, screen-map batching, per-install trigger counters.
- Theming with
light/dark/minimal/roundedpresets, Brand Kit mapping, and dark-mode auto-detection. - Pub/sub event system with 10 events.