File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,13 @@ abstract class MessageActionSheetMenuItemButton extends StatelessWidget {
99
99
100
100
IconData get icon;
101
101
String label (ZulipLocalizations zulipLocalizations);
102
+
103
+ /// Called when the button is pressed.
104
+ ///
105
+ /// Generally this method's implementation should begin by dismissing the
106
+ /// action sheet with [NavigatorState.pop] .
107
+ /// After that step, the given `context` may no longer be mounted;
108
+ /// operations that need a [BuildContext] should typically use [pageContext] .
102
109
void onPressed (BuildContext context);
103
110
104
111
final Message message;
@@ -200,7 +207,7 @@ class AddThumbsUpButton extends MessageActionSheetMenuItemButton {
200
207
default :
201
208
}
202
209
203
- showErrorDialog (context: context ,
210
+ showErrorDialog (context: pageContext ,
204
211
title: 'Adding reaction failed' , message: errorMessage);
205
212
}
206
213
}
You can’t perform that action at this time.
0 commit comments