Add tooltip

pull/1633/head
Aleksei 1 year ago
parent e168600c58
commit 75da487981
  1. 19
      lib/src/widgets/toolbar/buttons/font_size_button.dart

@ -156,14 +156,17 @@ class QuillToolbarFontSizeButtonState
onPressed: _onPressed,
icon: _buildContent(context),
)
: RawMaterialButton(
visualDensity: VisualDensity.compact,
shape: RoundedRectangleBorder(borderRadius: borderRadius),
elevation: 0,
hoverElevation: 0,
highlightElevation: 0,
onPressed: _onPressed,
child: _buildContent(context),
: Tooltip(
message: tooltip,
child: RawMaterialButton(
visualDensity: VisualDensity.compact,
shape: RoundedRectangleBorder(borderRadius: borderRadius),
elevation: 0,
hoverElevation: 0,
highlightElevation: 0,
onPressed: _onPressed,
child: _buildContent(context),
),
),
);
}

Loading…
Cancel
Save