SnackBarConfig constructor
const
SnackBarConfig({
- LinearGradient? backgroundGradient,
- Color backgroundColor = Colors.black54,
- Color colorText = Colors.white,
- double barBlur = 7,
- double borderRadius = 15,
- double maxWidth = 600,
- EdgeInsets margin = const EdgeInsets.all(15),
- EdgeInsets padding = const EdgeInsets.all(15),
- SnackPosition snackPosition = SnackPosition.TOP,
构造函数
参数说明
backgroundGradient背景渐变色backgroundColor背景色,默认为Colors.black54colorText文字颜色,默认为白barBlur背景模糊度,默认7borderRadius圆角,默认15maxWidth最大宽度,默认600margin外边距,默认EdgeInsets.all(15)padding内边距,默认EdgeInsets.all(15)snackPosition弹窗位置,默认顶部
Implementation
const SnackBarConfig({
this.backgroundGradient,
this.backgroundColor = Colors.black54,
this.colorText = Colors.white,
this.barBlur = 7,
this.borderRadius = 15,
this.maxWidth = 600,
this.margin = const EdgeInsets.all(15),
this.padding = const EdgeInsets.all(15),
this.snackPosition = SnackPosition.TOP,
});