some spaces formatting (#29452)
* some space formattings * always use blocks in if-else if a block is used * format spaces in for and while * allow multiline if conditions * fix missing space
This commit is contained in:
committed by
GitHub
parent
4418ec467b
commit
a6af422874
@@ -1309,18 +1309,20 @@ class _RendersOnPhysicalModel extends _MatchRenderObject<RenderPhysicalShape, Re
|
||||
return false;
|
||||
|
||||
if (
|
||||
borderRadius == null
|
||||
&& shape == BoxShape.rectangle
|
||||
&& !assertRoundedRectangle(shapeClipper, BorderRadius.zero, matchState)
|
||||
)
|
||||
borderRadius == null &&
|
||||
shape == BoxShape.rectangle &&
|
||||
!assertRoundedRectangle(shapeClipper, BorderRadius.zero, matchState)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
borderRadius == null
|
||||
&& shape == BoxShape.circle
|
||||
&& !assertCircle(shapeClipper, matchState)
|
||||
)
|
||||
borderRadius == null &&
|
||||
shape == BoxShape.circle &&
|
||||
!assertCircle(shapeClipper, matchState)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (elevation != null && renderObject.elevation != elevation)
|
||||
return failWithDescription(matchState, 'had elevation: ${renderObject.elevation}');
|
||||
|
||||
@@ -21,8 +21,7 @@ int reportExpectCall(StackTrace stack, StringBuffer information) {
|
||||
if (line0.firstMatch(stackLines[0]) != null &&
|
||||
line1.firstMatch(stackLines[1]) != null &&
|
||||
line2.firstMatch(stackLines[2]) != null &&
|
||||
line3.firstMatch(stackLines[3]) != null
|
||||
) {
|
||||
line3.firstMatch(stackLines[3]) != null) {
|
||||
final Match expectMatch = line4.firstMatch(stackLines[4]);
|
||||
assert(expectMatch != null);
|
||||
assert(expectMatch.groupCount == 2);
|
||||
|
||||
@@ -225,14 +225,14 @@ class TestGesture {
|
||||
@required HitTester hitTester,
|
||||
int pointer = 1,
|
||||
PointerDeviceKind kind = PointerDeviceKind.touch,
|
||||
}) : assert(dispatcher != null),
|
||||
assert(hitTester != null),
|
||||
assert(pointer != null),
|
||||
assert(kind != null),
|
||||
_dispatcher = dispatcher,
|
||||
_hitTester = hitTester,
|
||||
_pointer = TestPointer(pointer, kind),
|
||||
_result = null;
|
||||
}) : assert(dispatcher != null),
|
||||
assert(hitTester != null),
|
||||
assert(pointer != null),
|
||||
assert(kind != null),
|
||||
_dispatcher = dispatcher,
|
||||
_hitTester = hitTester,
|
||||
_pointer = TestPointer(pointer, kind),
|
||||
_result = null;
|
||||
|
||||
/// Dispatch a pointer down event at the given `downLocation`, caching the
|
||||
/// hit test result.
|
||||
|
||||
Reference in New Issue
Block a user