From 5d4e4eed8fd5663bd152c9ef0810c2fdbe05fc89 Mon Sep 17 00:00:00 2001 From: Dmitry Ukhanov Date: Wed, 3 Apr 2024 03:59:46 +0300 Subject: [PATCH] Fix #1797 (#1798) --- lib/src/widgets/toolbar/buttons/font_family_button.dart | 9 +-------- lib/src/widgets/toolbar/buttons/font_size_button.dart | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/lib/src/widgets/toolbar/buttons/font_family_button.dart b/lib/src/widgets/toolbar/buttons/font_family_button.dart index 01a2cb47..c8f57bd5 100644 --- a/lib/src/widgets/toolbar/buttons/font_family_button.dart +++ b/lib/src/widgets/toolbar/buttons/font_family_button.dart @@ -233,14 +233,7 @@ class QuillToolbarFontFamilyButtonState } return QuillToolbarIconButton( isSelected: false, - iconTheme: iconTheme?.copyWith( - iconButtonSelectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - iconButtonUnselectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - ), + iconTheme: iconTheme, onPressed: _onPressed, icon: _buildContent(context), ); diff --git a/lib/src/widgets/toolbar/buttons/font_size_button.dart b/lib/src/widgets/toolbar/buttons/font_size_button.dart index 1323c1d2..4ebe5055 100644 --- a/lib/src/widgets/toolbar/buttons/font_size_button.dart +++ b/lib/src/widgets/toolbar/buttons/font_size_button.dart @@ -203,14 +203,7 @@ class QuillToolbarFontSizeButtonState return QuillToolbarIconButton( tooltip: tooltip, isSelected: false, - iconTheme: iconTheme?.copyWith( - iconButtonSelectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - iconButtonUnselectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - ), + iconTheme: iconTheme, onPressed: _onDropdownButtonPressed, icon: _buildContent(context), );