ElasticDialog constructor

const ElasticDialog({
  1. Key? key,
  2. required Widget child,
  3. Offset offset = const Offset(0, -50),
  4. Color backgroundColor = Colors.white,
  5. double radius = 15,
})

创建一个弹性动画对话框

child 作为对话框内容 offset 控制对话框初始弹出位置 backgroundColor 设置背景色 radius 控制圆角大小

Implementation

const ElasticDialog({
  super.key,
  required this.child,
  this.offset = const Offset(0, -50),
  this.backgroundColor = Colors.white,
  this.radius = 15,
});