ButtonStyle constructor
const
ButtonStyle({
- required AbstractButtonStyle variance,
- ButtonSize size = ButtonSize.normal,
- ButtonDensity density = ButtonDensity.normal,
- ButtonShape shape = ButtonShape.rectangle,
Creates a custom ButtonStyle with the specified variance and modifiers.
Parameters:
variance(required): The base button style variantsize: The button size. Defaults to ButtonSize.normaldensity: The button density. Defaults to ButtonDensity.normalshape: The button shape. Defaults to ButtonShape.rectangle
Implementation
const ButtonStyle({
required this.variance,
this.size = ButtonSize.normal,
this.density = ButtonDensity.normal,
this.shape = ButtonShape.rectangle,
});