RTL: Padding, Flex (#11709)
* Introduce a Directionality inherited widget which sets the ambient LTR vs RTL mode (defaulting to null, which means you cannot use directionality-influenced values). * Make it possible to configure Padding (including Container.padding and Container.margin) using a directionality-agnostic EdgeInsets variant. * Provide textDirection and verticalDirection controls on Row and Column to make them RTL-aware. * Introduce a variant of FractionalOffset based on the EdgeInsets variant. Not yet actually used. * Fix all the tests that depended on Row defaulting to LTR.
This commit is contained in:
@@ -433,7 +433,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
|
||||
}
|
||||
));
|
||||
assert(_parentZone != null);
|
||||
assert(_pendingExceptionDetails != null);
|
||||
assert(_pendingExceptionDetails != null, 'A test overrode FlutterError.onError but either failed to return it to its original state, or had unexpected additional errors that it could not handle. Typically, this is caused by using expect() before restoring FlutterError.onError.');
|
||||
_parentZone.run<Null>(_testCompletionHandler);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user