Fix an analyzer warning (#15627)

This commit is contained in:
Jason Simmons 2018-03-16 15:54:44 -07:00 committed by GitHub
parent 71b2cfb2a0
commit 6d5810eced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;