Upgrade to 2.0.17

pull/463/head
Cheryl 3 years ago
parent 635867731f
commit 0dedb1c805
  1. 7
      CHANGELOG.md
  2. 14
      lib/src/widgets/toolbar.dart
  3. 2
      pubspec.yaml

@ -1,11 +1,14 @@
## [2.0.17]
* Allow alignment of the toolbar icons to match WrapAlignment.
## [2.0.16] ## [2.0.16]
* Add hide / show alignment buttons. * Add hide / show alignment buttons.
## [2.0.15] ## [2.0.15]
* implement change cursor to SystemMouseCursors.click when hovering a link styled text. * Implement change cursor to SystemMouseCursors.click when hovering a link styled text.
## [2.0.14] ## [2.0.14]
* enable customize the checkbox widget using DefaultListBlockStyle style. * Enable customize the checkbox widget using DefaultListBlockStyle style.
## [2.0.13] ## [2.0.13]
* Improve the scrolling performance by reducing the repaint areas. * Improve the scrolling performance by reducing the repaint areas.

@ -49,7 +49,7 @@ typedef WebVideoPickImpl = Future<String?> Function(
typedef MediaPickSettingSelector = Future<MediaPickSetting?> Function( typedef MediaPickSettingSelector = Future<MediaPickSetting?> Function(
BuildContext context); BuildContext context);
enum ToolbarAlignment{ start, center, end } enum ToolbarAlignment { start, center, end }
// The default size of the icon of a button. // The default size of the icon of a button.
const double kDefaultIconSize = 18; const double kDefaultIconSize = 18;
@ -446,13 +446,13 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
initialLocale: locale, initialLocale: locale,
child: multiRowsDisplay ?? true child: multiRowsDisplay ?? true
? Wrap( ? Wrap(
alignment: alignment: (toolBarIconAlignment == ToolbarAlignment.start)
(toolBarIconAlignment==ToolbarAlignment.start)
? WrapAlignment.start ? WrapAlignment.start
:(toolBarIconAlignment==ToolbarAlignment.center) : (toolBarIconAlignment == ToolbarAlignment.center)
? WrapAlignment.center ? WrapAlignment.center
:(toolBarIconAlignment==ToolbarAlignment.end) : (toolBarIconAlignment == ToolbarAlignment.end)
? WrapAlignment.end : WrapAlignment.center, ? WrapAlignment.end
: WrapAlignment.center,
runSpacing: 4, runSpacing: 4,
spacing: toolBarSectionSpacing ?? 4, spacing: toolBarSectionSpacing ?? 4,
children: children, children: children,

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

Loading…
Cancel
Save