# startCroppingScreen static method

1. @Deprecated('Use ScanbotSdkUiV2.startCroppingScreen instead.')

Future<CroppingResult> startCroppingScreen(

1. Page page,
2. CroppingScreenConfiguration config

)

Starts the Ready-to-Use Cropping UI as full-screen modal UI dialog. The Cropping UI provides the functionality for manual cropping and rotation of the given `page`.

## Implementation

    @Deprecated('Use ScanbotSdkUiV2.startCroppingScreen instead.')
    static Future<CroppingResult> startCroppingScreen(
        common.Page page, CroppingScreenConfiguration config) async {
      try {
        var arguments = config.toJson();
        arguments['page'] = page.toJson();
        var result =
            await _channel.invokeMethod('startCroppingScreen', arguments);
        if (SharedCalls.wasCanceled(result)) {
          return CroppingResult.canceled();
        }
        return CroppingResult.fromJson(jsonDecode(result));
      } on PlatformException catch (e) {
        return CroppingResult.error(e.message ?? 'Unknown platform error');
      } on Exception catch (e) {
        return CroppingResult.error(e.toString());
      }
    }