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
@@ -66,9 +66,9 @@ class _BackdropTitle extends AnimatedWidget {
|
||||
this.onPress,
|
||||
@required this.frontTitle,
|
||||
@required this.backTitle,
|
||||
}) : assert(frontTitle != null),
|
||||
assert(backTitle != null),
|
||||
super(key: key, listenable: listenable);
|
||||
}) : assert(frontTitle != null),
|
||||
assert(backTitle != null),
|
||||
super(key: key, listenable: listenable);
|
||||
|
||||
final Function onPress;
|
||||
final Widget frontTitle;
|
||||
@@ -157,11 +157,11 @@ class Backdrop extends StatefulWidget {
|
||||
@required this.frontTitle,
|
||||
@required this.backTitle,
|
||||
@required this.controller,
|
||||
}) : assert(frontLayer != null),
|
||||
assert(backLayer != null),
|
||||
assert(frontTitle != null),
|
||||
assert(backTitle != null),
|
||||
assert(controller != null);
|
||||
}) : assert(frontLayer != null),
|
||||
assert(backLayer != null),
|
||||
assert(frontTitle != null),
|
||||
assert(backTitle != null),
|
||||
assert(controller != null);
|
||||
|
||||
final Widget frontLayer;
|
||||
final Widget backLayer;
|
||||
|
||||
@@ -28,11 +28,11 @@ class Product {
|
||||
@required this.isFeatured,
|
||||
@required this.name,
|
||||
@required this.price,
|
||||
}) : assert(category != null),
|
||||
assert(id != null),
|
||||
assert(isFeatured != null),
|
||||
assert(name != null),
|
||||
assert(price != null);
|
||||
}) : assert(category != null),
|
||||
assert(id != null),
|
||||
assert(isFeatured != null),
|
||||
assert(name != null),
|
||||
assert(price != null);
|
||||
|
||||
final Category category;
|
||||
final int id;
|
||||
|
||||
@@ -440,8 +440,8 @@ class RenderSectorSlice extends RenderSectorWithChildren {
|
||||
|
||||
class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChildMixin<RenderSector> {
|
||||
|
||||
RenderBoxToRenderSectorAdapter({ double innerRadius = 0.0, RenderSector child }) :
|
||||
_innerRadius = innerRadius {
|
||||
RenderBoxToRenderSectorAdapter({ double innerRadius = 0.0, RenderSector child })
|
||||
: _innerRadius = innerRadius {
|
||||
this.child = child;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user