File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,20 @@ void _showActionSheet(
64
64
});
65
65
}
66
66
67
+ /// A button in an action sheet.
68
+ ///
69
+ /// When built from server data, the action sheet ignores changes in that data;
70
+ /// we intentionally don't live-update the buttons on events.
71
+ /// If a button's label, action, or position changes suddenly,
72
+ /// it can be confusing and make the on-tap behavior unexpected.
73
+ /// Better to let the user decide to tap
74
+ /// based on information that's comfortably in their working memory,
75
+ /// even if we sometimes have to explain (where we handle the tap)
76
+ /// that that information has changed and they need to decide again.
77
+ ///
78
+ /// (Even if we did live-update the buttons, it's possible anyway that a user's
79
+ /// action can race with a change that's already been applied on the server,
80
+ /// because it takes some time for the server to report changes to us.)
67
81
abstract class ActionSheetMenuItemButton extends StatelessWidget {
68
82
const ActionSheetMenuItemButton ({super .key, required this .pageContext});
69
83
You can’t perform that action at this time.
0 commit comments