Small changes

pull/1489/head^2
Ellet 1 year ago
parent 2694734bdb
commit 691b7aeb33
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 2
      example/android/app/src/main/AndroidManifest.xml
  2. 3
      flutter_quill_extensions/lib/presentation/embeds/editor/image/image_web.dart
  3. 3
      flutter_quill_extensions/lib/presentation/embeds/editor/video/video_web.dart
  4. 2
      flutter_quill_extensions/lib/presentation/utils/web_utils.dart
  5. 3
      flutter_quill_extensions/pubspec.yaml

@ -3,7 +3,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!-- The camera and gps features will be used -->

@ -56,7 +56,8 @@ class QuillEditorWebImageEmbedBuilder extends EmbedBuilder {
..style.height = height
..style.width = width
..style.margin = margin
..style.alignSelf = alignment;
..style.alignSelf = alignment
..attributes['loading'] = 'lazy';
});
return ConstrainedBox(

@ -50,7 +50,8 @@ class QuillEditorWebVideoEmbedBuilder extends EmbedBuilder {
..src = videoUrl
..style.border = 'none'
..style.margin = margin
..style.alignSelf = alignment,
..style.alignSelf = alignment
..attributes['loading'] = 'lazy',
);
return SizedBox(

@ -18,6 +18,8 @@ import 'package:flutter_quill/flutter_quill.dart' show Attribute, Node;
const margin = 'auto';
const alignment = 'center';
// return (height, width, margin, alignment);
final cssStyle = node.style.attributes['style'];
// Usually double value

@ -27,14 +27,13 @@ dependencies:
sdk: flutter
# Normal packages
flutter_quill: ^8.5.0
http: ^1.1.0
path: ^1.8.3
meta: ^1.9.1
universal_html: ^2.2.4
cross_file: ^0.3.3+6
# math_keyboard: ^0.2.1
flutter_quill: ^8.5.0
photo_view: ^0.14.0
# Plugins

Loading…
Cancel
Save