-
-
Notifications
You must be signed in to change notification settings - Fork 214
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server and the Parse Flutter SDK.
Issue Description
The window property from dart:ui is deprecated and should not be used.
This property is used in the Parse Flutter SDK in the parse_server_sdk_flutter.dart source file.
Parse-SDK-Flutter/packages/flutter/lib/parse_server_sdk_flutter.dart
Lines 80 to 81 in 319d4c3
| locale: locale ?? | |
| (sdk.parseIsWeb ? ui.window.locale.toString() : Platform.localeName), |
Steps to reproduce
- Install Flutter 3.10.0/Dart 3
- run the following command:
flutter analyze --no-fatal-infos
You should see something like this:
Analyzing flutter...
info • 'window' is deprecated and shouldn't be used. Look up the current FlutterView from the context via View.of(context) or consult the PlatformDispatcher directly instead.
Deprecated to prepare for the upcoming multi-window support. This feature was deprecated after v3.7.0-32.0.pre • lib/parse_server_sdk_flutter.dart:82:17 •
deprecated_member_use1 issue found. (ran in 3.5s)
Actual Outcome
Analyzing flutter...
info • 'window' is deprecated and shouldn't be used. Look up the current FlutterView from the context via View.of(context) or consult the PlatformDispatcher directly instead.
Deprecated to prepare for the upcoming multi-window support. This feature was deprecated after v3.7.0-32.0.pre • lib/parse_server_sdk_flutter.dart:82:17 •
deprecated_member_use1 issue found. (ran in 3.5s)
Expected Outcome
Analyzing flutter...
No issues found! (ran in 2.5s)
Environment
Parse Flutter SDK
- SDK version:
4.0.0 - Flutter version:
3.10.0 - Dart version:
3 - Operating system version:
Ubuntu 22.04.2 LTS x86_64
Server
- Parse Server version:
N/A