fix block formatting (#29051)

This commit is contained in:
Alexandre Ardhuin 2019-03-09 09:03:11 +01:00 committed by GitHub
parent 0d3c150cfc
commit a0d1f93b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
107 changed files with 412 additions and 418 deletions

View File

@ -118,14 +118,12 @@ class CutCornersBorder extends OutlineInputBorder {
} else {
final double extent = lerpDouble(0.0, gapExtent + gapPadding * 2.0, gapPercentage);
switch (textDirection) {
case TextDirection.rtl:
{
case TextDirection.rtl: {
final Path path = _notchedCornerPath(outer.middleRect, gapStart + gapPadding - extent, extent);
canvas.drawPath(path, paint);
break;
}
case TextDirection.ltr:
{
case TextDirection.ltr: {
final Path path = _notchedCornerPath(outer.middleRect, gapStart - gapPadding, extent);
canvas.drawPath(path, paint);
break;

View File

@ -128,8 +128,7 @@ class InkRipple extends InteractiveInkFeature {
_textDirection = textDirection,
_targetRadius = radius ?? _getTargetRadius(referenceBox, containedInkWell, rectCallback, position),
_clipCallback = _getClipCallback(referenceBox, containedInkWell, rectCallback),
super(controller: controller, referenceBox: referenceBox, color: color, onRemoved: onRemoved)
{
super(controller: controller, referenceBox: referenceBox, color: color, onRemoved: onRemoved) {
assert(_borderRadius != null);
// Immediately begin fading-in the initial splash.

View File

@ -84,8 +84,7 @@ class RenderAndroidView extends RenderBox {
}) : assert(viewController != null),
assert(hitTestBehavior != null),
assert(gestureRecognizers != null),
_viewController = viewController
{
_viewController = viewController {
_motionEventsDispatcher = _MotionEventsDispatcher(globalToLocal, viewController);
updateGestureRecognizers(gestureRecognizers);
}

View File

@ -147,8 +147,7 @@ void main() {
});
});
group('iOS', ()
{
group('iOS', () {
FakeIosPlatformViewsController viewsController;
setUp(() {
viewsController = FakeIosPlatformViewsController();

View File

@ -137,7 +137,7 @@ Future<void> main() async {
fadeOutDuration: animationDuration,
fadeInDuration: animationDuration,
imageSemanticLabel: imageSemanticText,
placeholderSemanticLabel: placeholderSemanticText
placeholderSemanticLabel: placeholderSemanticText,
));
placeholderProvider.complete(); // load the placeholder
@ -164,7 +164,7 @@ Future<void> main() async {
image: imageProvider,
fadeOutDuration: animationDuration,
fadeInDuration: animationDuration,
placeholderSemanticLabel: placeholderSemanticText
placeholderSemanticLabel: placeholderSemanticText,
));
placeholderProvider.complete(); // load the placeholder

View File

@ -334,8 +334,7 @@ example:org-dartlang-app:/
});
});
group('compile expression', ()
{
group('compile expression', () {
ProcessManager mockProcessManager;
ResidentCompiler generator;
MockProcess mockFrontendServer;