showPdfCalibrationLengthDialog function

Future<(double, String)?> showPdfCalibrationLengthDialog(
  1. BuildContext context, {
  2. String? initialUnit,
})

Asks how long the just-drawn reference segment is in the real world, returning (realLength, unitLabel) or null when dismissed. Used by the draw-a-segment calibration flow after the user releases the drag. initialUnit pre-selects the unit (defaults to the device region's).

Implementation

Future<(double, String)?> showPdfCalibrationLengthDialog(
  BuildContext context, {
  String? initialUnit,
}) =>
    showPdfDialog<(double, String)>(
      context: context,
      builder: (context) => _PdfCalibrationLengthDialog(initialUnit: initialUnit),
    );