cardView static method
BoxDecoration
cardView({
- double? radiusSize,
- Color? colorBackground,
- Color? colorLine,
- BorderRadius? radiusBorder,
Implementation
static BoxDecoration cardView( {
double? radiusSize ,
Color? colorBackground ,
Color? colorLine ,
BorderRadius? radiusBorder, //see "BorderRadiusTools"
} ) {
//set default
radiusSize ??= DSDimen.ds_size_corner_level_2;
colorBackground ??= DSColor.cardview_background_color ;
colorLine ??= DSColor.cardview_boarderLine ;
//set default radius
var objRadius = Radius.circular( radiusSize );
var radiusDefault = BorderRadius.all( objRadius );
radiusBorder ??= radiusDefault;
var dec_container_radius = BoxDecoration(
border: Border.all(color: colorLine ) ,
borderRadius: radiusBorder ,
color: colorBackground //background color
);
return dec_container_radius;
}