nutrient_flutter_platform_interface 2.0.0
nutrient_flutter_platform_interface: ^2.0.0 copied to clipboard
A common platform interface for the nutrient_flutter plugin.
2.0.0 29 Jul 2026 #
- BREAKING:
AnnotationProperties.strokeColorandAnnotationProperties.fillColorare nowint?(ARGB, e.g.0xFFFF0000) instead ofString?(hex, e.g."#FF0000"). This aligns the platform-interface type with how its own extensions and the web layer already handled colors. Migration: replace hex strings with their ARGB equivalent, e.g.Colors.red.toARGB32()or a literal like0xFFFF0000. (J#HYB-951) - Extends
DocumentSaveOptionswith thepermissions,pdfVersion,includeComments,outputFormat, andoptimizefields. AddsDocumentPermissionsandPdfVersionenums. (J#HYB-951) - Adds
AnnotationToolenum soNutrientControllerInterfacecan express the annotation-creation tool without depending on pigeon-generated code. (J#HYB-952) - Adds seven view-scoped methods to
NutrientControllerInterface:getVisibleRect,zoomToRect,getZoomScale,enterAnnotationCreationMode,exitAnnotationCreationMode,convertViewPointToPdfPoint,convertPdfPointToViewPoint. The baseNutrientControllerclass throwsUnimplementedErrorfor each; the Android, iOS, and Web platform packages all override these. (J#HYB-952) - Adds a unified typed event stream to
NutrientControllerInterface:Stream<NutrientEvent> get events.NutrientEventis a sealed class hierarchy covering 17 cross-platform events (document load/error/save, page change/click, annotation create/update/delete/select/deselect, text selection, form-field update, Instant sync/auth). TheNutrientEventStreamXextension provides typed filter getters (events.pageChanged,events.annotationCreated, etc.) so consumers can subscribe to a specific event type without writing pattern matches by hand. (J#HYB-957) - Adds
emitEvent(NutrientEvent)as a@protectedhelper on the baseNutrientControllerfor platform adapters to push into the shared stream;dispose()closes the stream. (J#HYB-957)
1.2.0 18 Jun 2026 #
- Adds the
aiAssistantConfigurationfield toNutrientViewConfiguration. - Adds
enableInstantCommentsfield toNutrientViewConfiguration.
1.1.0 09 Apr 2026 #
- Adds
NutrientViewConfiguration, a typed cross-platform viewer configuration withIOSViewConfiguration,AndroidViewConfiguration, shared enums (PageLayoutMode,ThumbnailBarMode,SpreadFitting, etc.), and aPdfConfigurationBuilderinterface. ReplacesNutrientInstantConfiguration. (J#HYB-988)
1.0.0 13 Feb 2026 #
- Initial release as standalone pub.dev package.
- Provides common platform interface for federated plugin architecture.
- Defines abstract APIs for native SDK integration across Android, iOS, and Web platforms.
- Enables extending
nutrient_flutterwith native bindings through platform adapters.