EdsonBueno / focus_detector

Android's onResume/onPause and iOS's viewDidAppear/viewDidDisappear for Flutter.
https://pub.dev/packages/focus_detector
MIT License
98 stars 52 forks source link

Please adapt to flutter3.0 #12

Open hrxiang opened 2 years ago

hrxiang commented 2 years ago

../../../Development/flutter/.pub-cache/hosted/pub.flutter-io.cn/focus_detector-2.0.1/lib/focus_detector.dart:54:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

kiaxseventh commented 2 years ago

my request is the same please

liangxiaobo commented 2 years ago

I solved:

dependency_overrides: focus_detector: git: url: https://github.com/liangxiaobo/focus_detector.git ref: 772f606de67a26f4e6e7f9d511a56aa73c1cc074

gabrielbragaloft commented 2 years ago

Fala @EdsonBueno, salva a gente aí kkkkkk

irfnyas commented 2 years ago

if you still have errors please try mine, updated to flutter 3.0.5

dependencies:
  focus_detector:
    git: https://github.com/ifnyas/focus_detector.git
lucasfcardozo commented 2 years ago

@EdsonBueno or @kurtinge pls help us

kurtinge commented 2 years ago

@lucasfcardozo Sorry, but I don't have any access to do any changes to this repo. Right now we need to wait for @EdsonBueno to merge the PR for @ifnyas or you just need to use his repo instead.

paulocoutinhox commented 1 year ago

:(

congfandi commented 1 year ago

if you still have errors please try mine, updated to flutter 3.0.5

dependencies:
  focus_detector:
    git: https://github.com/ifnyas/focus_detector.git

Thank @irfnyas you save my life