From 73e6ee51b3c3b89d00c729d4594598c4c4aee29f Mon Sep 17 00:00:00 2001 From: X Code Date: Sat, 23 Jul 2022 13:44:50 -0700 Subject: [PATCH] Upgrade to 5.2.2 --- CHANGELOG.md | 3 +++ lib/src/utils/platform.dart | 8 +++----- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d26b1d57..bff251e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [5.2.2] +* Fix Unsupported operation: Platform._operatingSystem error. + # [5.2.1] * Rename QuillCustomIcon to QuillCustomButton. diff --git a/lib/src/utils/platform.dart b/lib/src/utils/platform.dart index 05b84f30..27d183aa 100644 --- a/lib/src/utils/platform.dart +++ b/lib/src/utils/platform.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:device_info_plus/device_info_plus.dart'; import 'package:flutter/foundation.dart'; @@ -28,12 +26,12 @@ bool isAppleOS([TargetPlatform? targetPlatform]) { } Future isIOSSimulator() async { - DeviceInfoPlugin deviceInfo = DeviceInfoPlugin(); + final deviceInfo = DeviceInfoPlugin(); - var osInfo = await deviceInfo.deviceInfo; + final osInfo = await deviceInfo.deviceInfo; if (osInfo is IosDeviceInfo) { - final iosInfo = osInfo as IosDeviceInfo; + final iosInfo = osInfo; return !iosInfo.isPhysicalDevice; } return false; diff --git a/pubspec.yaml b/pubspec.yaml index 17842437..5ea8b947 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 5.2.1 +version: 5.2.2 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill