Upgrade to 4.1.4

pull/791/head
X Code 3 years ago
parent d50833cdcf
commit e697c4fc2b
  1. 3
      CHANGELOG.md
  2. 19
      lib/src/models/themes/quill_icon_theme.dart
  3. 4
      lib/src/widgets/toolbar/quill_dropdown_button.dart
  4. 3
      lib/src/widgets/toolbar/quill_icon_button.dart
  5. 3
      lib/src/widgets/toolbar/select_alignment_button.dart
  6. 3
      lib/src/widgets/toolbar/select_header_style_button.dart
  7. 2
      pubspec.yaml

@ -1,3 +1,6 @@
# [4.1.4]
* New borderRadius for iconTheme.
# [4.1.3]
* Fix selection handles show/hide after paste, backspace, copy.

@ -1,15 +1,14 @@
import 'package:flutter/material.dart';
class QuillIconTheme {
const QuillIconTheme({
this.iconSelectedColor,
this.iconUnselectedColor,
this.iconSelectedFillColor,
this.iconUnselectedFillColor,
this.disabledIconColor,
this.disabledIconFillColor,
this.borderRadius
});
const QuillIconTheme(
{this.iconSelectedColor,
this.iconUnselectedColor,
this.iconSelectedFillColor,
this.iconUnselectedFillColor,
this.disabledIconColor,
this.disabledIconFillColor,
this.borderRadius});
///The color to use for selected icons in the toolbar
final Color? iconSelectedColor;
@ -28,7 +27,7 @@ class QuillIconTheme {
///The fill color to use for disabled icons in the toolbar
final Color? disabledIconFillColor;
///The borderRadius for icons
final double? borderRadius;
}

@ -38,7 +38,9 @@ class _QuillDropdownButtonState<T> extends State<QuillDropdownButton<T>> {
constraints: BoxConstraints.tightFor(height: widget.height),
child: RawMaterialButton(
visualDensity: VisualDensity.compact,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(widget.iconTheme?.borderRadius ?? 2)),
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(widget.iconTheme?.borderRadius ?? 2)),
fillColor: widget.fillColor,
elevation: 0,
hoverElevation: widget.hoverElevation,

@ -26,7 +26,8 @@ class QuillIconButton extends StatelessWidget {
constraints: BoxConstraints.tightFor(width: size, height: size),
child: RawMaterialButton(
visualDensity: VisualDensity.compact,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(borderRadius)),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadius)),
fillColor: fillColor,
elevation: 0,
hoverElevation: hoverElevation,

@ -97,7 +97,8 @@ class _SelectAlignmentButtonState extends State<SelectAlignmentButton> {
elevation: 0,
visualDensity: VisualDensity.compact,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(widget.iconTheme?.borderRadius ?? 2)),
borderRadius: BorderRadius.circular(
widget.iconTheme?.borderRadius ?? 2)),
fillColor: _valueToText[_value] == _valueString[index]
? (widget.iconTheme?.iconSelectedFillColor ??
theme.toggleableActiveColor)

@ -79,7 +79,8 @@ class _SelectHeaderStyleButtonState extends State<SelectHeaderStyleButton> {
elevation: 0,
visualDensity: VisualDensity.compact,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(widget.iconTheme?.borderRadius ?? 2)),
borderRadius: BorderRadius.circular(
widget.iconTheme?.borderRadius ?? 2)),
fillColor: _valueToText[_value] == _valueString[index]
? (widget.iconTheme?.iconSelectedFillColor ??
theme.toggleableActiveColor)

@ -1,6 +1,6 @@
name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 4.1.3
version: 4.1.4
#author: bulletjournal
homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save