-
Notifications
You must be signed in to change notification settings - Fork 6
Null safety support. #9
Comments
Hmmm. Is this what you are talking about? https://dart.dev/null-safety/migration-guide |
Yes! I have tried but I get the following error.
|
Hiya, It looks like we'd have to upgrade some major dependencies to get null safety:
So we'd need to test this a bit. I'm also unclear if we'd need to change what versions of dart we support (if we'd have to set the minimum sdk version to 2.12). Do you know if we'd have to do that? |
Thanks for confirming! You're right! You'll need to upgrade the dependencies first. And then we need to do some testing! Since null safety stable is from dart 2.12.0, I think we need to make the minimum version 2.12.0. If you want to migrate manually, it looks like you need to rewrite the dart version in pubspec.yml. If you want to migrate automatically using dart migrate I hope this is helpful. |
Is there any developments? |
Thanks for bumping this. No developments right now. We've focused on getting a few core feature releases out the door and that's taken most of the team's time. Happy to review a PR, however, and I'd like to take a look at this in the next few weeks. |
I'd like to understand if this is backwards compatible or not. Based on our pubspec file, I think we are requiring Dart 2.7 or newer. However, we could potentially support 2.0 or newer to provide support to developers using older versions. If this change would require us to bump out version to 2.12 (if null safety is not backwards compatible), then it might be better to create a new client library called |
A new nullsafe library seems to be the optimal choice. Even with dependency overrides, I can't get this package to run |
@plavunov what version of dart are you using? Just to be clear, are you saying this library doesn't work in a recent version of dart? |
Using the latest version of Dart / Flutter (with null-safety enabled, we don’t actually have a choice nowadays) and yes the library doesn’t work.
I ended up writing a custom quick solution using http requests.
… On 20 May 2021, at 23:46, Dan Moore ***@***.***> wrote:
@plavunov <https://github.com/plavunov> what version of dart are you using? Just to be clear, are you saying this library doesn't work in a recent version of dart?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AE3GPMDDM2374XZHATVP6Q3TOVYJDANCNFSM43KTYAFQ>.
|
Thank you, that's very helpful. Glad you were able to move forward with the direct REST calls; they're not as nice as the client libraries, but are always available. Sounds like we need to plan to deprecate this library and create a new one that has null safe dependencies and is usable with the current version of dart. |
Yes please ! That would be fantastic ! |
Looks like this was actually updated a few months ago to 2.12. Can you take a look @bossbeagle1509 at the latest version and see if it addresses your issues? |
Oh epik ! I wasn't aware that it had been ported to null safety :) Thank you for bringing this to my notice ! We'll make the transition soon :) |
@bossbeagle1509 Please take it for a test drive! I think that the libs and the version have been updated, but haven't yet built an app with the latest version of the client lib and am new to dart. |
I was wondering if you plan to support null-safety for this
fusionauth-dart-client
project?The text was updated successfully, but these errors were encountered: