Bug fix in quill select alignment button

pull/1631/head
Ellet 1 year ago
parent 2b6071371a
commit 78730abf07
  1. 3
      CHANGELOG.md
  2. 11
      lib/src/widgets/toolbar/buttons/alignment/select_alignment_buttons.dart

@ -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

@ -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(),
);

Loading…
Cancel
Save