Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellet committed Nov 14, 2023
1 parent 75ac692 commit b941e95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions lib/src/utils/string.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b941e95

Please sign in to comment.