fix block formatting (#29051)
This commit is contained in:
parent
0d3c150cfc
commit
a0d1f93b07
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -147,8 +147,7 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
group('iOS', ()
|
||||
{
|
||||
group('iOS', () {
|
||||
FakeIosPlatformViewsController viewsController;
|
||||
setUp(() {
|
||||
viewsController = FakeIosPlatformViewsController();
|
||||
|
@ -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
|
||||
|
@ -334,8 +334,7 @@ example:org-dartlang-app:/
|
||||
});
|
||||
});
|
||||
|
||||
group('compile expression', ()
|
||||
{
|
||||
group('compile expression', () {
|
||||
ProcessManager mockProcessManager;
|
||||
ResidentCompiler generator;
|
||||
MockProcess mockFrontendServer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user