flutter_web_auth icon indicating copy to clipboard operation
flutter_web_auth copied to clipboard

Flutter 3 changes

Open Sesa1988 opened this issue 2 years ago • 4 comments

Flutters API for widget binding changed and we need probably a small update to prevent a failed build. Should probably be the same error for all platforms.

image

Sesa1988 avatar May 11 '22 21:05 Sesa1988

Same error. The ? should be removed from WidgetBinding.instance. Since Flutter 3.0 it can't be null anymore.

rienkkk avatar May 12 '22 09:05 rienkkk

You can override the pubspec to this for now:

dependency_overrides:
  flutter_web_auth:
    git:
      url: https://github.com/noga-dev/flutter_web_auth.git
      ref: ee3c26a530a625c3cab7e0c45cc30316c8b4b64c

noga-dev avatar May 12 '22 15:05 noga-dev

Any chance of an official fix for this soon please?

AndrewStickler avatar Oct 12 '22 11:10 AndrewStickler

Actually, I see this package has now been superseded by flutter_web_auth2 which doesn't have that problem, so please ignore my request.

AndrewStickler avatar Oct 13 '22 18:10 AndrewStickler

This is now fixed in 🚢 0.4.2 / 2022-11-01

LinusU avatar Nov 01 '22 10:11 LinusU

This is now fixed in 🚢 0.4.2 / 2022-11-01

Hi Linus! It's good to know you're alive.

With that in mind:

The PR you've accepted jut now (#132) is a dupe opened over a month after #118 and lacks some extras from it.

And as I've already migrated to @ThexXTURBOXx 's fork, I would prefer to stick with it (unless he'll stop maintaining it) as he's been doing a fantastic job that deserves acknowledgement. Would you be open to letting him take over (or making him a contributor)?

Cheers and welcome back.

noga-dev avatar Nov 01 '22 11:11 noga-dev

Thanks!

Yes, that was intentional since I didn't want to force Flutter 3.0 in a minor version. Other than the changed flutter version range.

I think that you can absolutely stick with the fork if that works for you 👍

LinusU avatar Nov 01 '22 13:11 LinusU

This had do be reverted since it broke Flutter v2 compatibility, it's now released as 🚢 0.5.0 / 2022-11-02 instead!

LinusU avatar Nov 02 '22 16:11 LinusU

This had do be reverted since it broke Flutter v2 compatibility, it's now released as 🚢 0.5.0 / 2022-11-02 instead!

Among the extras in #118 was the version constraint.

noga-dev avatar Nov 02 '22 16:11 noga-dev

@noga-dev, yes. I didn't realise that removing the ? wasn't a backwards compatible change. Instead, I though that the version constraint wasn't needed, and that adding it would have made it a breaking change.

Sorry for not merging your PR, had I understood that it was indeed a breaking change I would absolutely have done that...

LinusU avatar Nov 03 '22 11:11 LinusU

@noga-dev, yes. I didn't realise that removing the ? wasn't a backwards compatible change. Instead, I though that the version constraint wasn't needed, and that adding it would have made it a breaking change.

Sorry for not merging your PR, had I understood that it was indeed a breaking change I would absolutely have done that...

Definitely an easy thing to miss. Thank you for the amazing work with the package. 🙏

noga-dev avatar Nov 03 '22 11:11 noga-dev