fix block formatting (#29051)
This commit is contained in:
parent
0d3c150cfc
commit
a0d1f93b07
@ -118,14 +118,12 @@ class CutCornersBorder extends OutlineInputBorder {
|
|||||||
} else {
|
} else {
|
||||||
final double extent = lerpDouble(0.0, gapExtent + gapPadding * 2.0, gapPercentage);
|
final double extent = lerpDouble(0.0, gapExtent + gapPadding * 2.0, gapPercentage);
|
||||||
switch (textDirection) {
|
switch (textDirection) {
|
||||||
case TextDirection.rtl:
|
case TextDirection.rtl: {
|
||||||
{
|
|
||||||
final Path path = _notchedCornerPath(outer.middleRect, gapStart + gapPadding - extent, extent);
|
final Path path = _notchedCornerPath(outer.middleRect, gapStart + gapPadding - extent, extent);
|
||||||
canvas.drawPath(path, paint);
|
canvas.drawPath(path, paint);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TextDirection.ltr:
|
case TextDirection.ltr: {
|
||||||
{
|
|
||||||
final Path path = _notchedCornerPath(outer.middleRect, gapStart - gapPadding, extent);
|
final Path path = _notchedCornerPath(outer.middleRect, gapStart - gapPadding, extent);
|
||||||
canvas.drawPath(path, paint);
|
canvas.drawPath(path, paint);
|
||||||
break;
|
break;
|
||||||
|
@ -128,8 +128,7 @@ class InkRipple extends InteractiveInkFeature {
|
|||||||
_textDirection = textDirection,
|
_textDirection = textDirection,
|
||||||
_targetRadius = radius ?? _getTargetRadius(referenceBox, containedInkWell, rectCallback, position),
|
_targetRadius = radius ?? _getTargetRadius(referenceBox, containedInkWell, rectCallback, position),
|
||||||
_clipCallback = _getClipCallback(referenceBox, containedInkWell, rectCallback),
|
_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);
|
assert(_borderRadius != null);
|
||||||
|
|
||||||
// Immediately begin fading-in the initial splash.
|
// Immediately begin fading-in the initial splash.
|
||||||
|
@ -84,8 +84,7 @@ class RenderAndroidView extends RenderBox {
|
|||||||
}) : assert(viewController != null),
|
}) : assert(viewController != null),
|
||||||
assert(hitTestBehavior != null),
|
assert(hitTestBehavior != null),
|
||||||
assert(gestureRecognizers != null),
|
assert(gestureRecognizers != null),
|
||||||
_viewController = viewController
|
_viewController = viewController {
|
||||||
{
|
|
||||||
_motionEventsDispatcher = _MotionEventsDispatcher(globalToLocal, viewController);
|
_motionEventsDispatcher = _MotionEventsDispatcher(globalToLocal, viewController);
|
||||||
updateGestureRecognizers(gestureRecognizers);
|
updateGestureRecognizers(gestureRecognizers);
|
||||||
}
|
}
|
||||||
|
@ -147,8 +147,7 @@ void main() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
group('iOS', ()
|
group('iOS', () {
|
||||||
{
|
|
||||||
FakeIosPlatformViewsController viewsController;
|
FakeIosPlatformViewsController viewsController;
|
||||||
setUp(() {
|
setUp(() {
|
||||||
viewsController = FakeIosPlatformViewsController();
|
viewsController = FakeIosPlatformViewsController();
|
||||||
|
@ -137,7 +137,7 @@ Future<void> main() async {
|
|||||||
fadeOutDuration: animationDuration,
|
fadeOutDuration: animationDuration,
|
||||||
fadeInDuration: animationDuration,
|
fadeInDuration: animationDuration,
|
||||||
imageSemanticLabel: imageSemanticText,
|
imageSemanticLabel: imageSemanticText,
|
||||||
placeholderSemanticLabel: placeholderSemanticText
|
placeholderSemanticLabel: placeholderSemanticText,
|
||||||
));
|
));
|
||||||
|
|
||||||
placeholderProvider.complete(); // load the placeholder
|
placeholderProvider.complete(); // load the placeholder
|
||||||
@ -164,7 +164,7 @@ Future<void> main() async {
|
|||||||
image: imageProvider,
|
image: imageProvider,
|
||||||
fadeOutDuration: animationDuration,
|
fadeOutDuration: animationDuration,
|
||||||
fadeInDuration: animationDuration,
|
fadeInDuration: animationDuration,
|
||||||
placeholderSemanticLabel: placeholderSemanticText
|
placeholderSemanticLabel: placeholderSemanticText,
|
||||||
));
|
));
|
||||||
|
|
||||||
placeholderProvider.complete(); // load the placeholder
|
placeholderProvider.complete(); // load the placeholder
|
||||||
|
@ -334,8 +334,7 @@ example:org-dartlang-app:/
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
group('compile expression', ()
|
group('compile expression', () {
|
||||||
{
|
|
||||||
ProcessManager mockProcessManager;
|
ProcessManager mockProcessManager;
|
||||||
ResidentCompiler generator;
|
ResidentCompiler generator;
|
||||||
MockProcess mockFrontendServer;
|
MockProcess mockFrontendServer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user