Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit ca18a2b

Browse files
author
Yuncong Zhang
committed
[Cupertino] Remove text direction in nav bar.
1 parent 265f971 commit ca18a2b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Runtime/cupertino/nav_bar.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,6 @@ public _BackChevron(Key key = null) : base(key: key) {
10881088
}
10891089

10901090
public override Widget build(BuildContext context) {
1091-
TextDirection textDirection = Directionality.of(context);
10921091
TextStyle textStyle = DefaultTextStyle.of(context).style;
10931092

10941093
Widget iconWidget = Text.rich(
@@ -1102,18 +1101,6 @@ public override Widget build(BuildContext context) {
11021101
)
11031102
)
11041103
);
1105-
switch (textDirection) {
1106-
case TextDirection.rtl:
1107-
iconWidget = new Transform(
1108-
transform: Matrix3.makeScale(-1.0f, 1.0f),
1109-
alignment: Alignment.center,
1110-
transformHitTests: false,
1111-
child: iconWidget
1112-
);
1113-
break;
1114-
case TextDirection.ltr:
1115-
break;
1116-
}
11171104

11181105
return iconWidget;
11191106
}

0 commit comments

Comments
 (0)