Skip to content

The platformViewRegistry getter is deprecated and will be removed in a future release. Please import it from dart:ui_web instead. #73

Closed
@tushar0518

Description

I'm getting the below warning when using the dropzone package. @deakjahn

Warnings:
The platformViewRegistry getter is deprecated and will be removed in a future release. Please import it from dart:ui_web
instead.
The webOnlyAssetManager getter is deprecated and will be removed in a future release. Please use assetManager from
dart:ui_web instead.

Possible Fix: change this import => import 'dart:ui' as ui; to import 'dart:ui_web' as ui; throughout the project

Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.7, on macOS 13.3 22E252 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.85.1)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions