unnessary parenthesis (#14475)
This commit is contained in:
committed by
GitHub
parent
ede01a773f
commit
2e80bf1db7
@@ -57,7 +57,7 @@ String expandTemplate(String template, Map<String, String> values) {
|
||||
if (match.groupCount != 1)
|
||||
throw new SampleError('bad template keyword $match[0]');
|
||||
final String keyword = match[1];
|
||||
return (values[keyword] ?? '');
|
||||
return values[keyword] ?? '';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -326,7 +326,7 @@ class _RecipePageState extends State<RecipePage> {
|
||||
// the edge of the screen, use a slightly different layout.
|
||||
final double appBarHeight = _getAppBarHeight(context);
|
||||
final Size screenSize = MediaQuery.of(context).size;
|
||||
final bool fullWidth = (screenSize.width < _kRecipePageMaxWidth);
|
||||
final bool fullWidth = screenSize.width < _kRecipePageMaxWidth;
|
||||
final bool isFavorite = _favoriteRecipes.contains(widget.recipe);
|
||||
return new Scaffold(
|
||||
key: _scaffoldKey,
|
||||
|
||||
@@ -170,7 +170,7 @@ abstract class RenderDecoratedSector extends RenderSector {
|
||||
final Canvas canvas = context.canvas;
|
||||
final Paint paint = new Paint()..color = _decoration.color;
|
||||
final Path path = new Path();
|
||||
final double outerRadius = (parentData.radius + deltaRadius);
|
||||
final double outerRadius = parentData.radius + deltaRadius;
|
||||
final Rect outerBounds = new Rect.fromLTRB(offset.dx-outerRadius, offset.dy-outerRadius, offset.dx+outerRadius, offset.dy+outerRadius);
|
||||
path.arcTo(outerBounds, parentData.theta, deltaTheta, true);
|
||||
final double innerRadius = parentData.radius;
|
||||
|
||||
@@ -27,7 +27,7 @@ class _GesturePainter extends CustomPainter {
|
||||
|
||||
@override
|
||||
void paint(Canvas canvas, Size size) {
|
||||
final Offset center = (size.center(Offset.zero) * zoom + offset);
|
||||
final Offset center = size.center(Offset.zero) * zoom + offset;
|
||||
final double radius = size.width / 2.0 * zoom;
|
||||
final Gradient gradient = new RadialGradient(
|
||||
colors: forward ? <Color>[swatch.shade50, swatch.shade900]
|
||||
|
||||
Reference in New Issue
Block a user