FProgressStyle.inherit constructor
FProgressStyle.inherit({
- required FColorScheme colorScheme,
- required FStyle style,
Creates a FProgressStyle that inherits its properties from colorScheme
and style
.
Implementation
FProgressStyle.inherit({required FColorScheme colorScheme, required FStyle style})
: backgroundDecoration = BoxDecoration(
borderRadius: style.borderRadius,
color: colorScheme.secondary,
),
progressDecoration = BoxDecoration(
borderRadius: style.borderRadius,
color: colorScheme.primary,
),
constraints = const BoxConstraints(minHeight: 15.0, maxHeight: 15.0),
animationDuration = const Duration(milliseconds: 500),
curve = Curves.ease;