Add tooltip

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

@ -156,7 +156,9 @@ class QuillToolbarFontSizeButtonState
onPressed: _onPressed, onPressed: _onPressed,
icon: _buildContent(context), icon: _buildContent(context),
) )
: RawMaterialButton( : Tooltip(
message: tooltip,
child: RawMaterialButton(
visualDensity: VisualDensity.compact, visualDensity: VisualDensity.compact,
shape: RoundedRectangleBorder(borderRadius: borderRadius), shape: RoundedRectangleBorder(borderRadius: borderRadius),
elevation: 0, elevation: 0,
@ -165,6 +167,7 @@ class QuillToolbarFontSizeButtonState
onPressed: _onPressed, onPressed: _onPressed,
child: _buildContent(context), child: _buildContent(context),
), ),
),
); );
} }

Loading…
Cancel
Save