Use constants in universal_ui.dart

pull/890/head
X Code 3 years ago
parent 68c814bd53
commit 162a86c54f
  1. 4
      example/lib/universal_ui/universal_ui.dart

@ -33,7 +33,7 @@ Widget defaultEmbedBuilderWeb(
void Function(GlobalKey videoContainerKey)? onVideoInit, void Function(GlobalKey videoContainerKey)? onVideoInit,
) { ) {
switch (node.value.type) { switch (node.value.type) {
case 'image': case BlockEmbed.imageType:
// TODO: handle imageUrl of base64 // TODO: handle imageUrl of base64
final imageUrl = node.value.data; final imageUrl = node.value.data;
final size = MediaQuery.of(context).size; final size = MediaQuery.of(context).size;
@ -54,7 +54,7 @@ Widget defaultEmbedBuilderWeb(
), ),
), ),
); );
case 'video': case BlockEmbed.videoType:
// TODO: implement 'video' builder // TODO: implement 'video' builder
return const SizedBox(); return const SizedBox();
default: default:

Loading…
Cancel
Save