some formatting of map, parameters and spaces (#29760)

This commit is contained in:
Alexandre Ardhuin
2019-03-23 00:02:21 +01:00
committed by GitHub
parent ecfdd7e1ea
commit bfa1d25bf9
95 changed files with 351 additions and 243 deletions

View File

@@ -61,14 +61,15 @@ class RowColumnTraversal extends StatelessWidget {
/// A Button class that wraps an [IconButton] with a [RowColumnTraversal] to
/// set its traversal order.
class SpinnerButton extends StatelessWidget {
const SpinnerButton(
{Key key,
this.onPressed,
this.icon,
this.rowOrder,
this.columnOrder,
this.field,
this.increment}) : super(key: key);
const SpinnerButton({
Key key,
this.onPressed,
this.icon,
this.rowOrder,
this.columnOrder,
this.field,
this.increment,
}) : super(key: key);
final VoidCallback onPressed;
final IconData icon;

View File

@@ -91,7 +91,8 @@ void main() {
});
}
void expectAdjustable(SemanticsNode node, {
void expectAdjustable(
SemanticsNode node, {
bool hasIncreaseAction = true,
bool hasDecreaseAction = true,
String label = '',

View File

@@ -16,7 +16,8 @@ class _InputDropdown extends StatelessWidget {
this.labelText,
this.valueText,
this.valueStyle,
this.onPressed }) : super(key: key);
this.onPressed,
}) : super(key: key);
final String labelText;
final String valueText;

View File

@@ -71,7 +71,8 @@ Animation<T> _getEmphasizedEasingAnimation<T>({
@required T peak,
@required T end,
@required bool isForward,
@required Animation<double> parent}) {
@required Animation<double> parent,
}) {
Curve firstCurve;
Curve secondCurve;
double firstWeight;

View File

@@ -50,8 +50,11 @@ class VideoCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
Widget fullScreenRoutePageBuilder(BuildContext context,
Animation<double> animation, Animation<double> secondaryAnimation) {
Widget fullScreenRoutePageBuilder(
BuildContext context,
Animation<double> animation,
Animation<double> secondaryAnimation,
) {
return _buildFullScreenVideo();
}

View File

@@ -24,7 +24,8 @@ final Animatable<BorderRadius> _kFrontHeadingBevelRadius = BorderRadiusTween(
);
class _TappableWhileStatusIs extends StatefulWidget {
const _TappableWhileStatusIs(this.status, {
const _TappableWhileStatusIs(
this.status, {
Key key,
this.controller,
this.child,

View File

@@ -57,9 +57,10 @@ class SectorDimensions {
const SectorDimensions({ this.deltaRadius = 0.0, this.deltaTheta = 0.0 });
factory SectorDimensions.withConstraints(
SectorConstraints constraints,
{ double deltaRadius = 0.0, double deltaTheta = 0.0, }
) {
SectorConstraints constraints, {
double deltaRadius = 0.0,
double deltaTheta = 0.0,
}) {
return SectorDimensions(
deltaRadius: constraints.constrainDeltaRadius(deltaRadius),
deltaTheta: constraints.constrainDeltaTheta(deltaTheta),
@@ -554,7 +555,8 @@ class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChil
}
class RenderSolidColor extends RenderDecoratedSector {
RenderSolidColor(this.backgroundColor, {
RenderSolidColor(
this.backgroundColor, {
this.desiredDeltaRadius = double.infinity,
this.desiredDeltaTheta = kTwoPi,
}) : super(BoxDecoration(color: backgroundColor));