First step of update deprecated code in 3.19

pull/1746/head
Ellet 1 year ago
parent da2b3cb74b
commit ff3a0c8b4e
  1. 2
      dart_quill_delta/lib/src/delta/delta.dart
  2. 1
      example/lib/screens/quill/my_quill_editor.dart
  3. 2
      example/lib/screens/settings/cubit/settings_cubit.freezed.dart
  4. 4
      lib/src/widgets/raw_editor/raw_editor_state.dart

@ -147,7 +147,7 @@ class Delta {
Operation get last => operations.last;
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! Delta) return false;
final typedOther = other;

@ -1,5 +1,4 @@
import 'dart:io' as io show Directory, File;
import 'dart:ui' show FontFeature;
import 'package:cached_network_image/cached_network_image.dart'
show CachedNetworkImageProvider;

@ -149,7 +149,7 @@ class _$SettingsStateImpl implements _SettingsState {
}
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SettingsStateImpl &&

@ -876,7 +876,7 @@ class QuillRawEditorState extends EditorState
if (parentBlock.style.containsKey(Attribute.ol.key) ||
parentBlock.style.containsKey(Attribute.ul.key) ||
parentBlock.style.containsKey(Attribute.checked.key)) {
controller.indentSelection(!event.isShiftPressed);
controller.indentSelection(!HardwareKeyboard.instance.isShiftPressed);
}
return KeyEventResult.handled;
}
@ -905,7 +905,7 @@ class QuillRawEditorState extends EditorState
controller.selection.base.offset > node.documentOffset) {
return insertTabCharacter();
}
controller.indentSelection(!event.isShiftPressed);
controller.indentSelection(!HardwareKeyboard.instance.isShiftPressed);
return KeyEventResult.handled;
}

Loading…
Cancel
Save