NeumorphicAccentListPainter constructor

NeumorphicAccentListPainter({
  1. List<Shadow> shadows = const <Shadow>[],
  2. Offset offset = const Offset(0, 0),
  3. Size indicatorSize = const Size(8, 32),
  4. double blur = 0,
  5. double strokeWidth = 0,
  6. Color color = const Color.fromARGB(0, 0, 0, 0),
  7. Key? key,
})

Implementation

NeumorphicAccentListPainter(
    {List<Shadow> shadows = const <Shadow>[],
    this.offset = const Offset(0, 0),
    this.indicatorSize = const Size(8, 32),
    double blur = 0,
    double strokeWidth = 0,
    Color color = const Color.fromARGB(0, 0, 0, 0),
    Key? key}) {
  shadowPainter =
      NeumorphicShadowPainter(shadows: shadows, strokeWidth: strokeWidth);

  surfacePainter = NeumorphicSurfacePainter(
      shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
      color: color,
      blur: blur,
      borderBlur: blur,
      strokeWidth: strokeWidth);
}