Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: Remove deprecated property window from dart:ui in favor of PlatformDispatcher #878

Merged
merged 3 commits into from
May 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/flutter/lib/parse_server_sdk_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ library flutter_parse_sdk_flutter;

import 'dart:async';
import 'dart:io';
import 'dart:ui' as ui;

import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:parse_server_sdk/parse_server_sdk.dart' as sdk;
Expand Down Expand Up @@ -78,7 +78,9 @@ class Parse extends sdk.Parse
appVersion: appVersion,
appPackageName: appPackageName,
locale: locale ??
(sdk.parseIsWeb ? ui.window.locale.toString() : Platform.localeName),
(sdk.parseIsWeb
? PlatformDispatcher.instance.locale.toString()
: Platform.localeName),
liveQueryUrl: liveQueryUrl,
clientKey: clientKey,
masterKey: masterKey,
Expand Down