Minor change

pull/1187/head
bambinoua 2 years ago
parent c4f5d6e74a
commit ce6df7a079
  1. 2
      flutter_quill_extensions/lib/embeds/widgets/image.dart

@ -21,7 +21,7 @@ String getImageStyleString(QuillController controller) {
final String? s = controller
.getAllSelectionStyles()
.firstWhere((s) => s.attributes.containsKey(Attribute.style.key),
orElse: () => Style())
orElse: Style.new)
.attributes[Attribute.style.key]
?.value;
return s ?? '';

Loading…
Cancel
Save