From 700b558b5a8e8338a1aed664d588af1bb419b6a7 Mon Sep 17 00:00:00 2001 From: X Code Date: Fri, 21 Jan 2022 08:52:00 -0800 Subject: [PATCH] Upgrade to 3.4.3 --- CHANGELOG.md | 3 +++ lib/src/widgets/toolbar/link_dialog.dart | 3 +-- lib/src/widgets/toolbar/link_style_button.dart | 3 ++- pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0deada4e..259f69b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [3.4.3] +* Preset link from attributes. + # [3.4.2] * Fix launch link edit mode. diff --git a/lib/src/widgets/toolbar/link_dialog.dart b/lib/src/widgets/toolbar/link_dialog.dart index 8b411577..cd1f1370 100644 --- a/lib/src/widgets/toolbar/link_dialog.dart +++ b/lib/src/widgets/toolbar/link_dialog.dart @@ -4,8 +4,7 @@ import '../../models/themes/quill_dialog_theme.dart'; import '../../translations/toolbar.i18n.dart'; class LinkDialog extends StatefulWidget { - const LinkDialog({this.dialogTheme, this.link, Key? key}) - : super(key: key); + const LinkDialog({this.dialogTheme, this.link, Key? key}) : super(key: key); final QuillDialogTheme? dialogTheme; final String? link; diff --git a/lib/src/widgets/toolbar/link_style_button.dart b/lib/src/widgets/toolbar/link_style_button.dart index 7d3887ef..8eea4b89 100644 --- a/lib/src/widgets/toolbar/link_style_button.dart +++ b/lib/src/widgets/toolbar/link_style_button.dart @@ -101,7 +101,8 @@ class _LinkStyleButtonState extends State { builder: (ctx) { final link = widget.controller .getSelectionStyle() - .attributes[Attribute.link.key]?.value; + .attributes[Attribute.link.key] + ?.value; return LinkDialog(dialogTheme: widget.dialogTheme, link: link); }, ).then(_linkSubmitted); diff --git a/pubspec.yaml b/pubspec.yaml index 92948410..321b5275 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 3.4.2 +version: 3.4.3 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill