feedbackjar 1.6.1
feedbackjar: ^1.6.1 copied to clipboard
Flutter SDK for FeedbackJar — collect user feedback with automatic device metadata. You build the UI; the SDK handles submission and listing.
1.6.1 #
- Fix: following a
#[…]post jump-link kept the previous post's comments on screen — the detail screen is now keyed by post id so it reloads.
1.6.0 #
- Post and comment content now render light Markdown (bold, italic,
code, links, headings, lists, quotes, fenced code) and FeedbackJar mention tokens —#[Post title](postId)and@[Name](user:id). New exportedFbRichTextwidget andtoPlainText()helper; no new package dependency. - Tapping a
#[…]post reference in the board opens that post's detail screen. NewFeedbackJar.shared.getPost(postId)(andgetPostCallback) — same visibility rules aslistFeedback.
1.5.0 #
- Prebuilt comment thread now shows a "Reply" action on root comments. Tapping it sets a "Replying to
- Every request now carries an
X-FeedbackJar-SDK: flutter/<version>header; submissions includesdk/sdkVersionin metadata.
1.4.0 #
- Add a prebuilt feedback board UI —
FeedbackJarBoardwidget and theshowFeedbackJar(context)route helper. Drop it in and get a working votable board with detail, comments and submission screens. - Built only on Flutter's own Material widgets — no new package dependency.
accentColorrecolours the vote state, primary button and links (defaults to FeedbackJar red). Follows the OS light/dark setting.- Respects
getConfig(): hides vote pills whenallowVotesis off, hides the comment composer whenallowCommentsis off, shows Name/Email fields on the new-feedback form only percollectName/collectEmail(prefilled fromgetIdentity(), persisted viasetIdentity). - The UI never throws — every SDK call is a
FeedbackResult; failures show an inline error with the server message verbatim plus a retry where sensible.
1.3.0 #
- Add guest upvoting:
vote(),unvote(),getVoteState()(and callback variants). Votes are attributed to a per-install anonymous id (random UUIDv4, persisted viashared_preferences, sent as theX-FeedbackJar-Anon-Idheader) — never a device identifier. - Add guest comments:
listComments()andaddComment()(and callback variants) for two-level public comment threads.addComment()reuses the remembered identity for name/email. FeedbackPostgainshasVoted;listFeedback()now populates it for this install.WidgetConfiggainsallowVotes/allowComments— use them to show/hide your vote and comment UI.setIdentity()now also best-effort syncs the name/email to the server for this install's anonymous id. A failed sync never breaks local identity storage.- New models:
VoteState,FeedbackComment,FeedbackCommentListResult. - API errors are now surfaced with the server's message verbatim.
1.2.0 #
- Add
propertiesparameter tosubmit()/submitCallback()— custom key/value context merged into the auto-collectedappmetadata.
1.1.0 #
- Add
getConfig()to fetch whether the org asks submitters for their name/email ("Ask for Name" / "Ask for Email" in the dashboard). - Add
setIdentity()/getIdentity()/clearIdentity()to remember a submitter's name/email (persisted viashared_preferences) and reuse them acrosssubmit()calls. submit()now automatically reuses a remembered identity and persists any name/email passed to it.
1.0.0 #
- Initial release.
- Submit anonymous feedback enriched with device metadata (OS, device model, screen, locale, app version).
- List public feedback with cursor-based pagination.
- Sealed
FeedbackResult<T>type —FeedbackSuccessandFeedbackFailure— for safe error handling without exceptions. - Both async/await and callback variants for all operations.
- Supports Android and iOS.