mirror of
https://github.com/flutter/flutter.git
synced 2026-02-11 05:17:36 +08:00
Add `fromDirectional` factory to `RelativeRect` for when an app needs to consider both TextDirection.ltr and TextDirection.rtl.
```
RelativeRect.fromDirectional(
textDirection: textDirection,
start: 10.0,
top: 20.0,
end: 30.0,
bottom: 40.0,
);
```
Addresses https://github.com/flutter/flutter/issues/107058.