CupertinoTextMagnifier constructor

const CupertinoTextMagnifier({
  1. Key? key,
  2. Curve animationCurve = Curves.easeOut,
  3. required MagnifierController controller,
  4. double dragResistance = 10.0,
  5. double hideBelowThreshold = 48.0,
  6. double horizontalScreenEdgePadding = 10.0,
  7. required ValueNotifier<MagnifierInfo> magnifierInfo,
})

Constructs a RawMagnifier in the Cupertino style, positioning with respect to magnifierInfo.

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

Implementation

const CupertinoTextMagnifier({
  super.key,
  this.animationCurve = Curves.easeOut,
  required this.controller,
  this.dragResistance = 10.0,
  this.hideBelowThreshold = 48.0,
  this.horizontalScreenEdgePadding = 10.0,
  required this.magnifierInfo,
});