Remove image tapper

pull/13/head
singerdmx 4 years ago
parent 341b9b015d
commit e497e57fc7
  1. 17
      lib/widgets/editor.dart

@ -82,7 +82,7 @@ Widget _defaultEmbedBuilder(BuildContext context, Embed node) {
color: Colors.grey.shade200,
);
case 'image':
return _buildImage(context, node.value.data);
return Image.network(node.value.data);
default:
throw UnimplementedError(
'Embeddable type "${node.value.type}" is not supported by default embed '
@ -91,21 +91,6 @@ Widget _defaultEmbedBuilder(BuildContext context, Embed node) {
}
}
Widget _buildImage(BuildContext context, String imageUrl) {
return GestureDetector(
child: Image.network(imageUrl),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
ImageTapWrapper(imageProvider: NetworkImage(imageUrl)),
),
);
},
);
}
class QuillEditor extends StatefulWidget {
final QuillController controller;
final FocusNode focusNode;

Loading…
Cancel
Save