CupertinoMagnifier constructor

const CupertinoMagnifier(
  1. {Key? key,
  2. Size size = kDefaultSize,
  3. BorderRadius borderRadius = const BorderRadius.all(Radius.elliptical(60, 50)),
  4. Offset additionalFocalPointOffset = Offset.zero,
  5. List<BoxShadow> shadows = const <BoxShadow>[BoxShadow(color: Color.fromARGB(25, 0, 0, 0), blurRadius: 11, spreadRadius: 0.2)],
  6. BorderSide borderSide = const BorderSide(color: Color.fromARGB(255, 232, 232, 232)),
  7. Animation<double>? inOutAnimation}
)

Creates a RawMagnifier in the Cupertino style.

The default constructor parameters and constants were eyeballed on an iPhone XR iOS v15.5.

Implementation

const CupertinoMagnifier({
  super.key,
  this.size = kDefaultSize,
  this.borderRadius = const BorderRadius.all(Radius.elliptical(60, 50)),
  this.additionalFocalPointOffset = Offset.zero,
  this.shadows = const <BoxShadow>[
    BoxShadow(
      color: Color.fromARGB(25, 0, 0, 0),
      blurRadius: 11,
      spreadRadius: 0.2,
    ),
  ],
  this.borderSide =
      const BorderSide(color: Color.fromARGB(255, 232, 232, 232)),
  this.inOutAnimation,
});