Upgrade to 5.2.2

pull/883/head
X Code 3 years ago
parent b2eb6758c9
commit 73e6ee51b3
  1. 3
      CHANGELOG.md
  2. 8
      lib/src/utils/platform.dart
  3. 2
      pubspec.yaml

@ -1,3 +1,6 @@
# [5.2.2]
* Fix <Web> Unsupported operation: Platform._operatingSystem error.
# [5.2.1] # [5.2.1]
* Rename QuillCustomIcon to QuillCustomButton. * Rename QuillCustomIcon to QuillCustomButton.

@ -1,5 +1,3 @@
import 'dart:io';
import 'package:device_info_plus/device_info_plus.dart'; import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@ -28,12 +26,12 @@ bool isAppleOS([TargetPlatform? targetPlatform]) {
} }
Future<bool> isIOSSimulator() async { Future<bool> isIOSSimulator() async {
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin(); final deviceInfo = DeviceInfoPlugin();
var osInfo = await deviceInfo.deviceInfo; final osInfo = await deviceInfo.deviceInfo;
if (osInfo is IosDeviceInfo) { if (osInfo is IosDeviceInfo) {
final iosInfo = osInfo as IosDeviceInfo; final iosInfo = osInfo;
return !iosInfo.isPhysicalDevice; return !iosInfo.isPhysicalDevice;
} }
return false; return false;

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 5.2.1 version: 5.2.2
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save