We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tooltip
1 parent 19f6b22 commit c2b79f8Copy full SHA for c2b79f8
lib/widgets/button.dart
@@ -240,10 +240,12 @@ class ZulipIconButton extends StatelessWidget {
240
super.key,
241
required this.icon,
242
required this.onPressed,
243
+ this.tooltip,
244
});
245
246
final IconData icon;
247
final VoidCallback onPressed;
248
+ final String? tooltip;
249
250
@override
251
Widget build(BuildContext context) {
@@ -258,6 +260,7 @@ class ZulipIconButton extends StatelessWidget {
258
260
iconSize: 24,
259
261
icon: Icon(icon),
262
onPressed: onPressed,
263
+ tooltip: tooltip,
264
style: IconButton.styleFrom(
265
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
266
fixedSize: Size.square(40),
0 commit comments