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

pull/683/head
HONGFEI YANG 3 years ago committed by GitHub
parent 46a5cde77c
commit dcfefa21ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/src/widgets/toolbar/link_style_button.dart

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

Loading…
Cancel
Save