From 32c038ee3fbe0140ad0032f1f15a81e9dfe37e34 Mon Sep 17 00:00:00 2001 From: amirh Date: Fri, 13 Oct 2017 10:20:22 -0700 Subject: [PATCH] Add missing curly braces in icon.dart (#12529) (post-merge followup for #12516) --- packages/flutter/lib/src/widgets/icon.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/icon.dart b/packages/flutter/lib/src/widgets/icon.dart index b490b0beda..9a4d167601 100644 --- a/packages/flutter/lib/src/widgets/icon.dart +++ b/packages/flutter/lib/src/widgets/icon.dart @@ -104,11 +104,12 @@ class Icon extends StatelessWidget { final double iconSize = size ?? iconTheme.size; - if (icon == null) + if (icon == null) { return new Semantics( label: semanticLabel, child: new SizedBox(width: iconSize, height: iconSize) ); + } final double iconOpacity = iconTheme.opacity; Color iconColor = color ?? iconTheme.color;