Skip to content

refactor(ui): app toast on our own overlay, off shadcn - #1466

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1465-own-toast
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1465-own-toast

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Step 1 of #1465; the last kit widget of #1365 except the widgets.dart barrel.

showAppToast no longer uses shadcn.showToast / Alert / GhostButton:

  • toasts share one entry in the root overlay and stack upwards at the bottom-right;
  • fade and slide in over QueryaMotion.standard, no motion under reduced motion (the old one-microsecond workaround for shadcn's removal callback is gone);
  • close after showDuration or through a QueryaIconButton; the card has liveRegion semantics;
  • the function returns void: no caller used the shadcn overlay it returned.

app_toast.dart leaves the allow-list of shared_does_not_import_shadcn_test.dart; only the widgets.dart barrel is left in it.

Tests: shows and closes itself, close button, stacking, reduced motion.

showAppToast draws its toasts in one root overlay entry: fade and slide
in over QueryaMotion.standard (instant under reduced motion), stacking
upwards, closing after showDuration or through a close button. Removes
app_toast.dart from the shadcn allow-list.

Refs #1365 #1465
@github-actions github-actions Bot added epic Epic / umbrella issue frontend Theme parser epic label: frontend ui User interface components and widgets labels Oct 11, 2026
…ntext

The toast ended on a ticker, so pumpAndSettle ran its whole 5 s; it now
plays only the entry on the controller and ends on a timer, as the old
shadcn toast did. showAppToast also finds the overlay through the root
navigator when the context is the navigator itself, and does nothing
when there is none.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 3d7c724 into dev Oct 11, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1465-own-toast branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

epic Epic / umbrella issue frontend Theme parser epic label: frontend ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant