state_machine icon indicating copy to clipboard operation
state_machine copied to clipboard

Null Safety support?

Open nipunasudha opened this issue 4 years ago • 16 comments
trafficstars

Could you please update the package for flutter 2.0?

nipunasudha avatar Mar 09 '21 00:03 nipunasudha

Hello, thanks for the issue! We've started working to migrate our OSS packages to NNBD, but there are a few dependencies that need to be migrated before this one. I'll update this issue when we get there!

evanweible-wf avatar Mar 09 '21 15:03 evanweible-wf

Thank you very much for your time!

nipunasudha avatar Mar 10 '21 17:03 nipunasudha

Any update on this?

nipunasudha avatar Mar 23 '21 11:03 nipunasudha

Could you please update us on the progress? Only 3 more packages to go for me! 😄😍

nipunasudha avatar Mar 26 '21 13:03 nipunasudha

Well this is sad, I created a local version of the state_machine by removing the Disposable dependency from w_common, and just using callbacks to listen to the machine instead of Streams. This is not ideal but works for me until this package is updated.

nipunasudha avatar Mar 29 '21 11:03 nipunasudha

with the latest release of w_common you can now use state_machine in Flutter, but not with null safety yet

travissanderson-wf avatar Apr 01 '21 18:04 travissanderson-wf

Is there any way you can make state_machine package independent from the Disposable utilities? May be by allowing users to manually call a Machine.dispose() method?

@nipunasudha what is the reason you'd like this done?

travissanderson-wf avatar Apr 01 '21 18:04 travissanderson-wf

Is there any way you can make state_machine package independent from the Disposable utilities? May be by allowing users to manually call a Machine.dispose() method?

@nipunasudha what is the reason you'd like this done?

Thank you for the response @travissanderson-wf . The suggestion was just based on the fact that w_common is not null safe yet. But I also think 3rd party core/low level mechanism packages such as state_machine should be self-contained whenever possible.

nipunasudha avatar Apr 02 '21 00:04 nipunasudha

@nipunasudha I think that's a good point, so I'll create a separate issue for that. We will probably focus on just migrating to NNBD for the time being, though, just to make sure we can get all of our OSS package migrated with as little friction as possible.

evanweible-wf avatar Apr 05 '21 17:04 evanweible-wf

@evanweible-wf, do you have a vague ETA for the NNBD? I'd really like to play around with it :-) Thanks for the package!

buehler avatar May 20 '21 09:05 buehler

To be honest, I don't have a good ETA right now :( Internally, we're getting closer to a point where we'll be prioritizing getting all of our packages updated to the latest Dart, but until then it's just a couple of us in our spare time, and I'm unfortunately short on that right now. I'll keep this issue updated, though!

evanweible-wf avatar May 25 '21 16:05 evanweible-wf

I know the feeling! :-)

Thanks for the update @evanweible-wf !

buehler avatar May 25 '21 18:05 buehler

Aww shame, I just saw that this plugin might be great for my use case but I definitely know the feeling as well 😄

sebastianhaberey avatar Oct 01 '21 09:10 sebastianhaberey

Yeah I just found it but not being null safe is a dealbreaker for me 🙁

appinteractive avatar Oct 07 '21 21:10 appinteractive

Is there any update on null safety?

EnesKaraosman avatar Jun 19 '22 17:06 EnesKaraosman

Guys Flutter 4 is almost there. Pls upgrade to null safety :)

EnesKaraosman avatar Feb 03 '23 11:02 EnesKaraosman