LvKang-insist / flutter_floating

Flutter免权限悬浮窗,支持全局、单页面悬浮、支持边缘吸附,边缘吸附位置选择、位置保存、上下可滑动区域控制以及屏幕旋转窗口化后的位置修复等。The Flutter has no jurisdiction suspension window, supports global, single page suspension, edge adsorption, edge adsorption location selection, position preservation, control of the upper and lower sliding regions, and so on
https://lvkang-insist.github.io/flutter_floating/
MIT License
66 stars 18 forks source link

Flutter 3 兼容一下 #9

Open ljsenjj opened 2 years ago

ljsenjj commented 2 years ago

../../../../Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_floating-0.1.2/lib/floating/floating.dart:77:22: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

LvKang-insist commented 2 years ago

../../../../Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_floating-0.1.2/lib/floating/floating.dart:77:22: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../Documents/flutter/packages/flutter/lib/src/scheduler/binding.dart'). SchedulerBinding.instance?.addPostFrameCallback((timeStamp) {

好的,兼容后会在下个版本发布,敬请关注

LvKang-insist commented 2 years ago

../../../../Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_floating-0.1.2/lib/floating/floating.dart:77:22: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../Documents/flutter/packages/flutter/lib/src/scheduler/binding.dart'). SchedulerBinding.instance?.addPostFrameCallback((timeStamp) {

适配 flutter3.0 的版本已经发布,直接使用 flutter_floating: ^0.1.3