Skip to content

Commit 6c163a5

Browse files
committed
update readme
1 parent c5ec186 commit 6c163a5

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,10 +1097,31 @@ class TranslateExampleState extends State<TranslateExample> {
10971097
size: wrapContent,
10981098
centerTo: anchor,
10991099
translate: circleTranslate(
1100-
radius: 150,
1100+
radius: 100,
11011101
angle: angle,
11021102
),
11031103
),
1104+
Container(
1105+
decoration: const BoxDecoration(
1106+
color: Colors.cyan,
1107+
),
1108+
child: const Text('pinned & circle translate'),
1109+
).applyConstraint(
1110+
size: wrapContent,
1111+
centerTo: anchor,
1112+
translate: PinnedTranslate(
1113+
PinnedInfo(
1114+
null,
1115+
Anchor(0.5, AnchorType.percent, 0.5, AnchorType.percent),
1116+
null,
1117+
angle: angle,
1118+
),
1119+
) +
1120+
circleTranslate(
1121+
radius: 150,
1122+
angle: angle,
1123+
),
1124+
),
11041125
Container(
11051126
decoration: const BoxDecoration(
11061127
color: Colors.orange,

README_CN.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,10 +1071,31 @@ class TranslateExampleState extends State<TranslateExample> {
10711071
size: wrapContent,
10721072
centerTo: anchor,
10731073
translate: circleTranslate(
1074-
radius: 150,
1074+
radius: 100,
10751075
angle: angle,
10761076
),
10771077
),
1078+
Container(
1079+
decoration: const BoxDecoration(
1080+
color: Colors.cyan,
1081+
),
1082+
child: const Text('pinned & circle translate'),
1083+
).applyConstraint(
1084+
size: wrapContent,
1085+
centerTo: anchor,
1086+
translate: PinnedTranslate(
1087+
PinnedInfo(
1088+
null,
1089+
Anchor(0.5, AnchorType.percent, 0.5, AnchorType.percent),
1090+
null,
1091+
angle: angle,
1092+
),
1093+
) +
1094+
circleTranslate(
1095+
radius: 150,
1096+
angle: angle,
1097+
),
1098+
),
10781099
Container(
10791100
decoration: const BoxDecoration(
10801101
color: Colors.orange,

0 commit comments

Comments
 (0)