Refactor code

pull/51/head
Xin Yao 4 years ago
parent fe01f66b61
commit ec2b754a87
  1. 10
      lib/widgets/editor.dart

@ -411,13 +411,9 @@ class _QuillEditorSelectionGestureDetectorBuilder
builder: (context) => ImageTapWrapper(
imageProvider: imageUrl.startsWith('http')
? NetworkImage(imageUrl)
: (isBase64(imageUrl))
? Image.memory(
base64.decode(imageUrl),
)
: FileImage(
io.File(blockEmbed.data),
),
: isBase64(imageUrl)
? Image.memory(base64.decode(imageUrl))
: FileImage(io.File(imageUrl)),
),
),
);

Loading…
Cancel
Save