Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
entronad committed Apr 20, 2023
1 parent 53563ad commit b3a134f
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 54 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.1.0

**2023-04-20**

- Add `Gesture.chartKey`: https://github.com/entronad/graphic/pull/217
- Add `localMoveStart` for both update and end events in scale and long presses.

## 2.0.3

**2023-04-12**
Expand Down
4 changes: 3 additions & 1 deletion DEVLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,4 +510,6 @@ Tuple value 应该还是不接受null:1.这是dart null-safety 倡导的原则

类方法的参数,与类成员名字冲突时,将类方法的参数用缩写,特别是含义明确的 withXX,参考Color.withAlpha

至少目前,参数定义的原则涉及多个维度的还是以list定义为主,而不是分开 aaX, aaY这样,比如 CrosshairCuide, list 成员可以为null,以达到一个设置一个不设置的效果,不要搞单独元素指代两个相同这种,取数用 [0] [1]
至少目前,参数定义的原则涉及多个维度的还是以list定义为主,而不是分开 aaX, aaY这样,比如 CrosshairCuide, list 成员可以为null,以达到一个设置一个不设置的效果,不要搞单独元素指代两个相同这种,取数用 [0] [1]

之前 scaleEnd 和 longPressEnd 是不含 localMoveStart 的,可能是因为当时为了和flutter的习惯一致。现在的原则是参数尽量给到,而且这里也似乎确实有用。但是它的类目太多太杂,也不用都加上,就update和end加上。
Loading

0 comments on commit b3a134f

Please sign in to comment.