File tree Expand file tree Collapse file tree 5 files changed +5
-9
lines changed
frontend/app_flowy/packages/appflowy_editor Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ and the Flutter guide for
2121</p >
2222
2323<div align =" center " >
24- <img src="https://i.ibb.co/HNnc1jP/ appflowy-editor-example.gif" width = "900"/>
24+ <img src="https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/example/documentation/images/ appflowy-editor-example.gif?raw=true " width = "900"/>
2525</div >
2626
2727## Key Features
Original file line number Diff line number Diff line change 1- import 'package:flutter/material.dart' ;
2-
31import './path.dart' ;
42
53class Position {
@@ -21,7 +19,7 @@ class Position {
2119
2220 @override
2321 int get hashCode {
24- final pathHash = hashList (path);
22+ final pathHash = Object . hashAll (path);
2523 return Object .hash (pathHash, offset);
2624 }
2725
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import 'dart:math';
33
44import 'package:appflowy_editor/src/document/attributes.dart' ;
55import 'package:flutter/foundation.dart' ;
6- import 'package:flutter/material.dart' ;
76
87// constant number: 2^53 - 1
98const int _maxInt = 9007199254740991 ;
@@ -462,7 +461,7 @@ class Delta extends Iterable<TextOperation> {
462461
463462 @override
464463 int get hashCode {
465- return hashList (_operations);
464+ return Object . hashAll (_operations);
466465 }
467466
468467 /// Returned an inverted delta that has the opposite effect of against a base document delta.
Original file line number Diff line number Diff line change 11import 'package:appflowy_editor/src/document/path.dart' ;
22import 'package:appflowy_editor/src/document/position.dart' ;
33import 'package:appflowy_editor/src/document/selection.dart' ;
4- import 'package:flutter/material.dart' ;
54import 'package:flutter_test/flutter_test.dart' ;
65
76void main () {
@@ -75,15 +74,15 @@ void main() {
7574 final path2 = < int > [1 ];
7675 expect (pathEquals (path1, path2), true );
7776
78- expect (hashList (path1), hashList (path2));
77+ expect (Object . hashAll (path1), Object . hashAll (path2));
7978 });
8079
8180 test ('test path utils 2' , () {
8281 final path1 = < int > [1 ];
8382 final path2 = < int > [2 ];
8483 expect (pathEquals (path1, path2), false );
8584
86- expect (hashList (path1) != hashList (path2), true );
85+ expect (Object . hashAll (path1) != Object . hashAll (path2), true );
8786 });
8887
8988 test ('test position comparator' , () {
You can’t perform that action at this time.
0 commit comments