Update README.md

pull/1530/head
Ellet 1 year ago
parent 75ac692848
commit b941e95d99
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 5
      README.md
  2. 2
      flutter_quill_extensions/lib/presentation/embeds/editor/image/image.dart
  3. 3
      lib/src/utils/string.dart

@ -182,10 +182,7 @@ you can do something like this:
```dart
final json = jsonDecode(r'{"insert":"hello\n"}');
_controller = QuillController(
document: Document.fromJson(json),
selection: TextSelection.collapsed(offset: 0),
);
_controller.document = Document.fromJson(json);
```
### Links

@ -1,3 +1,5 @@
// ignore_for_file: deprecated_member_use
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_quill/extensions.dart' as base;

@ -37,7 +37,10 @@ String replaceStyleStringWithSize(
}
if (isMobile) {
// TODO: Will be updated soon.
// ignore: deprecated_member_use_from_same_package
result[Attribute.mobileWidth] = width.toString();
// ignore: deprecated_member_use_from_same_package
result[Attribute.mobileHeight] = height.toString();
} else {
result[Attribute.width.key] = width.toString();

Loading…
Cancel
Save