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, onPressed: _onPressed,
icon: _buildContent(context), icon: _buildContent(context),
) )
: RawMaterialButton( : Tooltip(
visualDensity: VisualDensity.compact, message: tooltip,
shape: RoundedRectangleBorder(borderRadius: borderRadius), child: RawMaterialButton(
elevation: 0, visualDensity: VisualDensity.compact,
hoverElevation: 0, shape: RoundedRectangleBorder(borderRadius: borderRadius),
highlightElevation: 0, elevation: 0,
onPressed: _onPressed, hoverElevation: 0,
child: _buildContent(context), highlightElevation: 0,
onPressed: _onPressed,
child: _buildContent(context),
),
), ),
); );
} }

Loading…
Cancel
Save