CupertinoTextMagnifier constructor
- Key? key,
- Curve animationCurve = Curves.easeOut,
- required MagnifierController controller,
- double dragResistance = 10.0,
- double hideBelowThreshold = 48.0,
- double horizontalScreenEdgePadding = 10.0,
- 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,
});