updatify_flutter 1.7.1
updatify_flutter: ^1.7.1 copied to clipboard
A Flutter widget for displaying release notes, product updates, and announcements from the Updatify service.
1.7.1 #
- The "Powered by updatify.io" footer now clears the bottom safe area, so the system gesture bar no longer covers it.
1.7.0 #
- Added
useRootNavigatortoshowUpdatifyDialog,showUpdatifyBottomSheet,UpdatifyTrigger, andmaybeShowUpdatifyPopup, so the popup can be pushed onto the root navigator and cover the whole app rather than an enclosing nested navigator (a tab shell or inner router). - Defaults to
truefor both popup types. This changes the bottom sheet, which previously followedshowModalBottomSheet'sfalse; passuseRootNavigator: falseto keep it inside the enclosing navigator.
1.6.0 #
- Added
maybeShowUpdatifyPopup, which opens the popup on launch when a newer release exists, andshouldAutoShowUpdatifyfor the check alone. Both are best-effort: any failure resolves tofalseand never throws. - The launch popup only shows on a device that has already been shown an earlier release, so it never interrupts someone who has not opened the updates at least once. Displaying updates through any route records what was seen.
- Added
auto_show_enabledto the project config (UpdatifyConfig.autoShowEnabled), which gates the above. Defaults tofalsewhen the server omits it.
1.5.1 #
- Allow to use widget in apps without
MaterialLocalizations.
1.5.0 #
- Added
checkIntervalonUpdatifyTriggerto re-check for unseen updates while mounted. Defaults tonull(one check per mount). Checks pause while the app is backgrounded, run a catch-up on resume, and stop while the indicator is lit. - Post bodies now strip elements marked
data-page-cut="true", including nested content, so the editor's page-cut rule and caption no longer render. - Added blockquote styling on
UpdatifyPostDecoration:blockquoteStyle,blockquoteDecoration,blockquotePadding. Defaults to a theme-tinted bar on the leading edge instead of an undecorated block. - Added
horizontalRuleThicknessandhorizontalRuleColoronUpdatifyPostDecoration. Rules now default to 1px rather than 5px.
1.4.1 #
- Readme update. Added help section about integrating UpdatifyFlutter widget into FlutterFlow app.
1.4.0 #
- Added up/down voting on posts. Each post shows a thumbs up/down control that records the reaction via the Updatify API and mirrors it locally, so a viewer's previous vote is highlighted when the popup reopens. Voting toggles: tapping the active vote clears it, switching replaces it.
- Voting is controlled entirely by the project's dashboard setting
(
voting_enabled) - there is no client flag. NewvoteBuilderfor a custom vote control onUpdatifyTrigger,showUpdatifyDialog,showUpdatifyBottomSheet, andUpdatifyWidget; it receives the currentVoteType?and anonVotecallback that hides all toggle, networking, and persistence logic. - Added
UpdatifyService.voteand theVoteTypeenum. - The updates response now carries a project
config(voting_enabled,widget_title), applied automatically: voting is hidden when disabled server-side, and the popup title falls back to the dashboard'swidget_titlewhen notitleis passed. Exposed via the newUpdatifyConfig,UpdatifyService.fetchUpdates, and anonConfigcallback onUpdatifyWidget.
1.3.0 #
- Added
showUpdatifyBottomSheet, a mobile-friendly bottom sheet alternative toshowUpdatifyDialogwith the same post rendering and customization. UpdatifyTriggergained apopupTypeoption (UpdatifyPopupType.modalorUpdatifyPopupType.bottomSheet) to choose how it presents the updates.
1.2.0 #
- Added
PingColor propertywhich allows to override default red ping color. Also provided a list of predefined ones -PingColor.red,PingColor.yellow,PingColor.green,PingColor.blue.
1.1.0 #
- Added
UpdatifyTrigger, a drop-in button that opens the updates dialog and shows a "new updates" indicator when unseen posts exist. It forwards everyshowUpdatifyDialogcustomization, supports abuilderfor rendering a custom control/indicator, and analwaysShowIndicatorflag for previewing. - The trigger detects unseen updates via the new
UpdatifyService.countUpdatesSince, backed by theupdates_sinceAPI, and records when a project's updates were last opened. Opening the dialog clears the indicator;UpdatifyTrigger.resetLastViewedresets it.
1.0.3 #
- Updated dependencies.
1.0.2 #
- Added
enablePostViewTracking(onUpdatifyWidgetandshowUpdatifyDialog) to turn post view tracking on or off. Defaults totrue.
1.0.1 #
- Views are now tracked automatically: each update reports an anonymous, device-scoped impression to the Updatify API the first time it scrolls into view. Tracking is best-effort and never blocks or disrupts the UI.
- Fixed the post meta text (author and date), which used a hard-coded dark color that was unreadable in dark mode; it now follows the theme.
- Chip colors now adapt to light and dark themes, lightening the text and strengthening the background tint on dark surfaces.
- Fixed HTML body block elements (headings and paragraphs) rendering on the same line; they now break onto separate lines.
- Added code styling via
codeStyleandcodeBlockDecoration, and code blocks now span the full available width.
1.0.0 #
Initial release.
UpdatifyWidgetfor displaying a project's updates fetched from the Updatify API.showUpdatifyDialoghelper for presenting updates in a dialog, with aborderRadiusoption for rounding the dialog corners.- Customizable post appearance via
UpdatifyPostDecoration(header, title, image, body, and chip styling). - Four post types (update, announcement, bug fix, and feature highlight), each
with a distinct, per-type customizable chip color (
chipColors). - Markdown post bodies with tappable links that open in the device's browser.
- Hero images cached to disk via
cached_network_image. - Injectable
UpdatifyService(accepts a customhttp.Client) for testing and custom networking.
