From 75da487981643d0549719d30c46c003b579da172 Mon Sep 17 00:00:00 2001 From: Aleksei <130981115+MacDeveloper1@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:00:50 +0100 Subject: [PATCH] Add tooltip --- .../toolbar/buttons/font_size_button.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/src/widgets/toolbar/buttons/font_size_button.dart b/lib/src/widgets/toolbar/buttons/font_size_button.dart index 6ec069c3..4a3e35cf 100644 --- a/lib/src/widgets/toolbar/buttons/font_size_button.dart +++ b/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), + ), ), ); }