From 6d5810eced35f4b317c5361210c97303d8879b14 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 16 Mar 2018 15:54:44 -0700 Subject: [PATCH] Fix an analyzer warning (#15627) --- examples/flutter_gallery/lib/demo/animation/home.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/flutter_gallery/lib/demo/animation/home.dart b/examples/flutter_gallery/lib/demo/animation/home.dart index 73b416327b..5a476e3d8f 100644 --- a/examples/flutter_gallery/lib/demo/animation/home.dart +++ b/examples/flutter_gallery/lib/demo/animation/home.dart @@ -200,7 +200,7 @@ class _AllSectionsLayout extends MultiChildLayoutDelegate { // When tCollapsed > 0, the indicators move closer together //final double rowIndicatorWidth = 48.0 + (1.0 - tCollapsed) * (rowTitleWidth - 48.0); - final double paddedSectionIndicatorWidth = kSectionIndicatorWidth + 8.0; + const double paddedSectionIndicatorWidth = kSectionIndicatorWidth + 8.0; final double rowIndicatorWidth = paddedSectionIndicatorWidth + (1.0 - tCollapsed) * (rowTitleWidth - paddedSectionIndicatorWidth); double rowIndicatorX = (size.width - rowIndicatorWidth) / 2.0 - selectedIndex * rowIndicatorWidth;