shared/wallet_dialog library
The wallet's one confirm dialog (DESIGN.md §6.9, stage S11 C3). Every
wallet dialog goes through showWalletConfirm; a source test keeps
showDialog(/AlertDialog( out of the rest of the package.
NOT exported: internal policy, like action_row_layout.dart.
It takes text only, never a content widget. §6.9 puts a dialog that holds a text field on the Material dialog on every platform, which this helper does not draw; so a future text-entry dialog cannot go through it by mistake.
Enums
- WalletConfirmKind
- What the confirm action does, which decides how it is drawn.
Functions
-
showWalletConfirm(
BuildContext context, {required String title, required String body, required String confirmLabel, String? cancelLabel, required WalletConfirmKind kind, Key? confirmKey, Key? cancelKey}) → Future< bool> -
Show a confirm dialog and return
trueONLY when the user tappedconfirmLabel. Cancel, a barrier tap, a back pop and a route removed from under it are allfalse, nevernull, so no caller can read a dismissal as consent.