CupertinoMagnifier constructor
- Key? key,
- Size size = kDefaultSize,
- BorderRadius borderRadius = const BorderRadius.all(Radius.elliptical(60, 50)),
- Offset additionalFocalPointOffset = Offset.zero,
- List<
BoxShadow> shadows = const <BoxShadow>[BoxShadow(color: Color.fromARGB(25, 0, 0, 0), blurRadius: 11, spreadRadius: 0.2, blurStyle: BlurStyle.outer)], - Clip clipBehavior = Clip.none,
- BorderSide borderSide = const BorderSide(color: Color.fromARGB(255, 232, 232, 232)),
- 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,
blurStyle: BlurStyle.outer,
),
],
this.clipBehavior = Clip.none,
this.borderSide =
const BorderSide(color: Color.fromARGB(255, 232, 232, 232)),
this.inOutAnimation,
});