---
title: "Flutter SDK 3.12 migration guide"
canonical_url: "https://www.nutrient.io/guides/flutter/migration-guides/flutter-3-12-migration-guide/"
md_url: "https://www.nutrient.io/guides/flutter/migration-guides/flutter-3-12-migration-guide.md"
last_updated: "2026-05-26T01:23:09.645Z"
description: "Discover the latest Nutrient Flutter SDK 3.12 with Android annotation processing, improved API consistency, and new enum types for easier integration."
---

Nutrient Flutter SDK version 3.12 introduces processing annotation functionality for Android, which was previously only available on iOS. Additionally, this release includes adjustments to the API to improve consistency and ease of use by introducing enum types for the `AnnotationProcessingMode` and `AnnotationType` parameters to replace the previous `String` types.

## Parameter changes

The `AnnotationProcessingMode` and `AnnotationType` parameters have been updated to enum types, resulting in a more consistent and user-friendly API. The following table illustrates the changes.

| Parameter                  | Old type | New type                   |
| -------------------------- | -------- | -------------------------- |
| `annotationProcessingMode` | `String` | `AnnotationProcessingMode` |
| `annotationType`           | `String` | `AnnotationType`           |

## Example

Here’s an example demonstrating the usage of the new enum types:

```dart

// Old way.
await Pspdfkit.processAnnotations('all', 'flatten', documentPath);

// New way.
await Pspdfkit.processAnnotations(AnnotationType.all, AnnotationProcessingMode.flatten, documentPath);

```

## API changes

This release also adds the `processAnnotations` method to the [`PspdfkitWidgetController`](https://pub.dev/documentation/nutrient_flutter/latest/nutrient_flutter/PspdfkitWidgetController-class.html), allowing for annotation processing on a document loaded using the `PspdfkitWidget`.

## Annotation processing on web

The `processAnnotations` method isn’t available on the web platform. However, you can still achieve the same functionality by using the [`PdfDocument.exportPdf`](https://pub.dev/documentation/nutrient_flutter/latest/nutrient_flutter/PdfDocument/exportPdf.html) method with document save options. To learn more about this, check out our guide on [exporting PDFs](https://www.nutrient.io/guides/flutter/save-a-document/save-to-remote.md).

For more information, refer to the [Nutrient Flutter SDK 3.12](https://www.nutrient.io/guides/flutter/changelog.md#3.12.0) changelog.
---

## Related pages

- [Flutter 3 2 Migration Guide](/guides/flutter/migration-guides/flutter-3-2-migration-guide.md)
- [Flutter 1 10 4 Migration Guide](/guides/flutter/migration-guides/flutter-1-10-4-migration-guide.md)
- [Flutter 3 3 Migration Guide](/guides/flutter/migration-guides/flutter-3-3-migration-guide.md)
- [Flutter 3 6 Migration Guide](/guides/flutter/migration-guides/flutter-3-6-migration-guide.md)
- [Flutter SDK 4.2 migration guide](/guides/flutter/migration-guides/flutter-4-2-migration-guide.md)
- [Flutter 3 9 Migration Guide](/guides/flutter/migration-guides/flutter-3-9-migration-guide.md)
- [Flutter SDK 3 migration guide](/guides/flutter/migration-guides/flutter-3-migration-guide.md)
- [Flutter SDK 4 migration guide](/guides/flutter/migration-guides/flutter-4-migration-guide.md)
- [Upgrade to the latest Flutter version](/guides/flutter/migration-guides/upgrading.md)
- [Download and run the migration script.](/guides/flutter/migration-guides/flutter-5-migration-guide.md)

