ElRing constructor

const ElRing({
  1. Key? key,
  2. required Widget child,
  3. Duration? duration,
  4. Curve? curve,
  5. bool show = true,
  6. double? width,
  7. double? offset,
  8. Color? color,
  9. double? strokeAlign,
  10. Border? border,
  11. BorderRadius? borderRadius,
  12. Gradient? gradient,
})

在小部件周围绘制轮廓环,轮廓环不会占据小部件的空间,通常情况下它用于聚焦外观,其效果类似于 CSS 中的 outline

Implementation

const ElRing({
  super.key,
  required this.child,
  this.duration,
  this.curve,
  this.show = true,
  this.width,
  this.offset,
  this.color,
  this.strokeAlign,
  this.border,
  this.borderRadius,
  this.gradient,
});