forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flutter_adaptive_scaffold] Support RTL (flutter#4204)
This PR removes the hardcoded rtl directionality placed on top of `AdaptiveScaffold` for an unknown reason. | RTL | LTR | |-----|-----| | ![image](https://github.com/flutter/packages/assets/63286031/10adac59-3f9a-4f4d-85da-939efbb47ae8) | ![image](https://github.com/flutter/packages/assets/63286031/c8c1af75-4787-473c-a397-a64d2f9b1e88) | ## Changes in this PR - Core: Removed this hardcoded `Directionality` widget https://github.com/flutter/packages/blob/050729760b251e315af01876cc7d7de5dcfba0e9/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart#L491-L494 - Core: Added tests to ensure text direction is passed correctly - Core: Modified `example/adaptive_scaffold_demo.dart` to demonstrate support for RTL - Side: There were some tests that were getting skipped, I have enabled them since their related issues landed on stable. - Side: Stopped ignoring `prefer_const_constructors` since it landed in stable as well. I made the commit messages as descriptive as possible so that it's easier to review relevant changes. ## Related issues - Supersedes flutter#3602 - Fixes flutter#119661 Question for reviewers: should the next version be 0.1.5 or 0.2.0 ?
- Loading branch information
1 parent
c34ca5d
commit b7f1ad4
Showing
8 changed files
with
515 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.