fix: fixed casting null to Tuple2 when link dialog is dismissed without any input (e.g. barrier dismissed)

pull/681/head
HONGFEI YANG 3 years ago
parent 46a5cde77c
commit 1a797324d0
  1. 6
      lib/src/widgets/toolbar/link_style_button.dart

@ -120,7 +120,11 @@ class _LinkStyleButtonState extends State<LinkStyleButton> {
return _LinkDialog( return _LinkDialog(
dialogTheme: widget.dialogTheme, link: link, text: text); dialogTheme: widget.dialogTheme, link: link, text: text);
}, },
).then(_linkSubmitted); ).then(
(value) {
if (value != null) _linkSubmitted(value);
},
);
} }
String? _getLinkAttributeValue() { String? _getLinkAttributeValue() {

Loading…
Cancel
Save