heardock_flutter 0.1.0
heardock_flutter: ^0.1.0 copied to clipboard
In-app feedback for Flutter. Drop a native bottom sheet into your app, collect context (version, device, screen) automatically, and read every note in one private inbox.
0.1.0 #
- First Flutter SDK release:
configure,identify,setContext,show,submit,flushQueue. - Two presentations: full-screen page (default) and modal bottom sheet
(
FeedbackPresentation, config or per-call). Full page caps content at 640px on wide screens. - Email field, email validation, and the "No email app." copy removed from the
form.
submit(email:)/identify(email:)remain as optional contact data. - Native feedback sheet with categories, message, optional email, context summary, success / queued / error states, dark mode, text scaling, and reduced-motion support.
- Automatic context collection (version, build, platform, OS, device, locale, screen) with per-field opt-outs.
- Offline queue with idempotency keys and 1s → 5s → 30s → 2m → 10m backoff.
- English and Simplified Chinese copy.
- Core logic extracted into
heardock_core(headless). This package now depends on it and re-exports its public API;HeardockConfigextends the core config withtheme, andHeardock.flushQueue()returns aQueueFlushReport. - Feedback centre (
Heardock.open) with read-only team replies, device token, and pull-to-refresh. - Feedback centre shows a queued submission immediately as a "Queued" row instead of leaving the list empty until a manual refresh; tapping it opens the local note with a "Saved on this device" notice.
- Thread page redesigned: "Your feedback" title, a note card (category, time,
message, context chips), and team replies as avatar/sender/time/body cards.
Accent follows
HeardockTheme.primaryColor; platform chips render iOS / Android / macOS. - Tapping a history row opens the thread page immediately: the message shows at once and the replies load in place with skeleton cards (static under reduced motion), an inline Retry on failure, and a proper empty state. The list row no longer shows a spinner, and trailing icons are vertically centered.
- Removed the "Send another" button (and
FeedbackThreadPage.onNewFeedback) from the thread page; it is read-only, and compose stays on the list's + action. - Delete action on the thread page (app bar): confirmation dialog, then the
whole note and its replies are deleted. Replies have no delete action of
their own. Cached threads are painted immediately on reopen, the list's
pull-to-refresh forces a network read, and deleting calls
clearCache(). - Deleting a note removes its row from the list immediately instead of waiting for the list request to come back.
- Cold starts paint the last known list/threads from the on-device snapshot
before the network answers (opt out with
persistHistory: false). - Thread pages paint the cached copy first and then revalidate in the background at most once every 30 seconds; concurrent visits to the same note share one request, and a failed refresh keeps the cached content on screen.
- Delete is a soft delete: the note disappears from this device (the team keeps it and its replies in the inbox), even when nobody has replied yet.
- Tapping outside the compose form (or dragging the sheet) dismisses the keyboard.
- Removed the "Goes straight to the {app} team." subtitle under the form title.
- Example app (
example/) and 24 widget tests;heardock_corecarries 37 unit tests.