Skip to content

Commit 1afe82e

Browse files
committed
update readme
1 parent d8c5753 commit 1afe82e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -967,8 +967,8 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
967967
size: 100,
968968
pinnedInfo: PinnedInfo(
969969
anchor,
970-
PinnedPos(0.2, PinnedType.percent, 0.2, PinnedType.percent),
971-
PinnedPos(1, PinnedType.percent, 1, PinnedType.percent),
970+
Anchor(0.2, AnchorType.percent, 0.2, AnchorType.percent),
971+
Anchor(1, AnchorType.percent, 1, AnchorType.percent),
972972
angle: angle,
973973
),
974974
),
@@ -978,8 +978,8 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
978978
size: 60,
979979
pinnedInfo: PinnedInfo(
980980
anchor,
981-
PinnedPos(1, PinnedType.percent, 1, PinnedType.percent),
982-
PinnedPos(0, PinnedType.percent, 0, PinnedType.percent),
981+
Anchor(1, AnchorType.percent, 1, AnchorType.percent),
982+
Anchor(0, AnchorType.percent, 0, AnchorType.percent),
983983
angle: 360 - angle,
984984
),
985985
),
@@ -989,8 +989,8 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
989989
size: 60,
990990
pinnedInfo: PinnedInfo(
991991
anchor,
992-
PinnedPos(0.5, PinnedType.percent, 0.5, PinnedType.percent),
993-
PinnedPos(0.5, PinnedType.percent, 0.5, PinnedType.percent),
992+
Anchor(0.5, AnchorType.percent, 0.5, AnchorType.percent),
993+
Anchor(0.5, AnchorType.percent, 0.5, AnchorType.percent),
994994
angle: angle,
995995
),
996996
),
@@ -1020,7 +1020,7 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
10201020
).applyConstraint(
10211021
size: 10,
10221022
centerTo: anchor,
1023-
),
1023+
)
10241024
],
10251025
),
10261026
);

README_CN.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,8 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
941941
size: 100,
942942
pinnedInfo: PinnedInfo(
943943
anchor,
944-
PinnedPos(0.2, PinnedType.percent, 0.2, PinnedType.percent),
945-
PinnedPos(1, PinnedType.percent, 1, PinnedType.percent),
944+
Anchor(0.2, AnchorType.percent, 0.2, AnchorType.percent),
945+
Anchor(1, AnchorType.percent, 1, AnchorType.percent),
946946
angle: angle,
947947
),
948948
),
@@ -952,8 +952,8 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
952952
size: 60,
953953
pinnedInfo: PinnedInfo(
954954
anchor,
955-
PinnedPos(1, PinnedType.percent, 1, PinnedType.percent),
956-
PinnedPos(0, PinnedType.percent, 0, PinnedType.percent),
955+
Anchor(1, AnchorType.percent, 1, AnchorType.percent),
956+
Anchor(0, AnchorType.percent, 0, AnchorType.percent),
957957
angle: 360 - angle,
958958
),
959959
),
@@ -963,8 +963,8 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
963963
size: 60,
964964
pinnedInfo: PinnedInfo(
965965
anchor,
966-
PinnedPos(0.5, PinnedType.percent, 0.5, PinnedType.percent),
967-
PinnedPos(0.5, PinnedType.percent, 0.5, PinnedType.percent),
966+
Anchor(0.5, AnchorType.percent, 0.5, AnchorType.percent),
967+
Anchor(0.5, AnchorType.percent, 0.5, AnchorType.percent),
968968
angle: angle,
969969
),
970970
),
@@ -994,7 +994,7 @@ class PinnedPositionExampleState extends State<PinnedPositionExample> {
994994
).applyConstraint(
995995
size: 10,
996996
centerTo: anchor,
997-
),
997+
)
998998
],
999999
),
10001000
);

0 commit comments

Comments
 (0)