From 78730abf074f4a27a2a38b8c5b473206a293c81f Mon Sep 17 00:00:00 2001 From: Ellet Date: Wed, 20 Dec 2023 12:11:37 +0300 Subject: [PATCH] Bug fix in quill select alignment button --- CHANGELOG.md | 3 +++ .../buttons/alignment/select_alignment_buttons.dart | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24caeaac..8d9b43bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. +## 9.0.6 +* Fix bug in QuillToolbarSelectAlignmentButtons + ## 9.0.5 * You can now use most of the buttons without internal provider diff --git a/lib/src/widgets/toolbar/buttons/alignment/select_alignment_buttons.dart b/lib/src/widgets/toolbar/buttons/alignment/select_alignment_buttons.dart index 651af856..bab35f3e 100644 --- a/lib/src/widgets/toolbar/buttons/alignment/select_alignment_buttons.dart +++ b/lib/src/widgets/toolbar/buttons/alignment/select_alignment_buttons.dart @@ -1,9 +1,8 @@ import 'package:flutter/material.dart'; -import '../../../../models/config/toolbar/buttons/select_alignment_configurations.dart'; import '../../../../models/documents/attribute.dart'; import '../../../quill/quill_controller.dart'; -import '../toggle_style_button.dart'; +import '../../base_toolbar.dart'; enum _AlignmentOptions { left(attribute: Attribute.leftAlignment), @@ -45,6 +44,14 @@ class QuillToolbarSelectAlignmentButtons extends StatelessWidget { .map((e) => QuillToolbarToggleStyleButton( controller: controller, attribute: e.attribute, + options: QuillToolbarToggleStyleButtonOptions( + iconData: options.iconData, + iconSize: options.iconSize, + iconButtonFactor: options.iconButtonFactor, + afterButtonPressed: options.afterButtonPressed, + iconTheme: options.iconTheme, + tooltip: options.tooltip, + ), )) .toList(), );