DefaultStyleValues constructor
const
DefaultStyleValues({
- required MaterialColor primaryColor,
- required Color surfaceLight,
- required Color surfaceDark,
- EdgeInsetsGeometry padding = const EdgeInsetsDirectional.fromSTEB(20, 16, 12, 16),
- BorderSide borderSide = const BorderSide(color: Colors.black12),
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(12)),
- List<
BoxShadow> boxShadow = const [], - int titleMaxLines = 2,
- int descriptionMaxLines = 6,
- double progressIndicatorStrokeWidth = 2.0,
- BoxConstraints constraints = const BoxConstraints(minHeight: 64.0),
Implementation
const DefaultStyleValues({
required MaterialColor primaryColor,
required Color surfaceLight,
required Color surfaceDark,
EdgeInsetsGeometry padding =
const EdgeInsetsDirectional.fromSTEB(20, 16, 12, 16),
BorderSide borderSide = const BorderSide(color: Colors.black12),
BorderRadiusGeometry borderRadius = const BorderRadius.all(
Radius.circular(12),
),
List<BoxShadow> boxShadow = const [],
int titleMaxLines = 2,
int descriptionMaxLines = 6,
double progressIndicatorStrokeWidth = 2.0,
BoxConstraints constraints = const BoxConstraints(minHeight: 64.0),
}) : super(
primaryColor: primaryColor,
surfaceLight: surfaceLight,
surfaceDark: surfaceDark,
padding: padding,
borderSide: borderSide,
borderRadius: borderRadius,
boxShadow: boxShadow,
titleMaxLines: titleMaxLines,
descriptionMaxLines: descriptionMaxLines,
progressIndicatorStrokeWidth: progressIndicatorStrokeWidth,
constraints: constraints,
);