INNER CODE UNIT · Dart
maxPercent
bmaroti9/Overmorrow · lib/daily.dart:274
final double maxPercent = min(max((day.maxTempC - lowest) / (highest - lowest), 0), 1);
return Align(
alignment: Alignment.centerLeft,
child: Container(
margin: EdgeInsets.only(left: min(width * minPercent, width - smallest)),
width: max(smallest, (maxPercent - minPercent) * width),
height: 16,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: Theme.of(context).colorScheme.primaryFixedDim
),
),
);
}
),
)
),
Text(