-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support null-safety #195
Comments
You're very welcome. I will start the null-safety migration soon. |
@FilledStacks can I take this up? |
@Sameerkash Yes Yes! I would not say no to any contribution like that. I haven't looked at null-safety so I'd have to go find out what needs to be done and then do that. Do you have an approach you'll take i.e. all parameters will be nullable unless otherwise specified. Just so I can know what to look for when reviewing the PR. |
@FilledStacks think you mean, all parameters will be non-nullable unless specified ? :D |
haha @Sameerkash yes! I'll create a new branch under feature/null-safety please make the PR to that branch when you're ready. |
Pushed |
Sure!! I'll keep you posted. |
Hey @FilledStacks , just an update, I have been waiting for the migration of the dependencies, I am following the issues on them and have raised the issue where it isn't present. I'll give another update as soon the dependencies are resolved for at least one package |
@Sameerkash awesome, thanks for the update! |
@FilledStacks, there is still no package with null safe dependencies. I'm gonna try and reach out/ triage them soon. Although one thing that's a bit out of hand is will you remove the dependency or should we migrate a fork and publish it? |
@Sameerkash that's crazy. I wonder why it was archived. We should probably migrate and publish that. Or maybe even remove it for something better. |
@FilledStacks what do you suggest? I can fork migrate and publish it, we might also have to do the same for |
@Sameerkash observable_ish you can actually remove along with the functionality. And on the other package. I think we can for and publish that. That would be the best thing at the moment. Check if there's a status bar color that provides the same functionality maybe, then we could even use that one. Actually we can even for and point directly to the gitrepo if that's an option. |
@FilledStacks I'll take a look at |
Thanks a lot @Sameerkash for all the efforts. I really appreciate it. The goal is to completely remove observable_ish from the package at some point. I'd have to write the migration guide for that as well but that shouldn't take too long. |
@FilledStacks no problem, it's a great learning opportunity for me and I love working on the framework I love the most. I'm not yet aware as to what obserbale_ish is actually doing, so will take me some time to find and remove it without affecting the code. But I'll definitely give it a try and get back to you with any doubts. Meanwhile, if you have any external references that can help me, that'd be great. So before that, I'll do the |
@Sameerkash yes tackle status bar first. you can hold off on observable_ish for now. I'd like to provide the user with sufficient time to migrate their code by just deprecating it. We might have to fork and manage it ourselves going forward. I'll have to make some time to look at that. |
@FilledStacks I saw the How can I recreate that logic while removing the type ? |
@FilledStacks, I've migrated is there no way to publish on pub without a domain? Another blocker is |
@Sameerkash you don't need a domain. You can just publish your package with your gmail account. I've done that before. I only recently moved it over to Filledstacks.com |
What do I give in the publisher domain ? I tried my e-mail it didn't work. Can't get past this, says enter a valid domain |
You can give any domain I think. I've never seen that. Try Sameera.com and see if it works. I know I didn't have to verify anything. |
@FilledStacks , nope, Any domain doesn't work, it opens up google search console and asks to verify. And confirmed the same on twitter. Anyway, I have a few free domain plans from the github student pack. I'll use it and publish. |
@Sameerkash I can publish it too if that'll be easier for you? |
@FilledStacks no issues, I think this will be an opportunity to finally create a proper domain and also get started with publishing packages. Because I want to soon enough. |
@FilledStacks I've published the fork of So stacked_themes should be migrated soon since these are the two dependencies. Apaprt from this. if you give me a lead on stacked with |
Awesome @Sameerkash it's quite a lot of work. I didn't think it would take this long. I appreciate all the effort and the work you've put in. In terms of observable_ish I don't know what the move is there. I'd probably move that into the stacked repo as apart of it. Like apart of the stacked src folder and put it in But I don't know if that's legal. We could also simply use the implementation that they have as it is and then rename it on our side. |
@FilledStacks I just got a lead on |
@Sameerkash yes, we can use that for now. That would be the least effort. |
The new Dart version with null-safety was just released 😍 |
Now that you mentioned it, stacked_hooks to Null Safety next :) |
The new flutter migrate tool should help a lot. |
Yes I've been on it for a month now, the only blockers are the dependencies, some dependencies are not just migrating, That's the only reason its taking so long, I'm trying my best to migrate it soon. Hopefully, it should be done soon. |
Stakced_hooks is already migrated since it just extends BaseWidget with HookWidget. You can see it in the PR I've raised |
@FilledStacks , I was trying to migrate Any reason you picked the current one over |
some updates, stacked themes are almost done, some tests are failing which I'm trying to resolve because Mockito does not work well with null -safety and they have to generate some mock overrides. |
@FilledStacks @Sameerkash |
@merfire I'll look into that before making the next video since we're doing social auth in the next episode of the boxtout series. Thanks for bringing it up. |
does this mean also the web will be supported? |
Is there anything new about migration on null-safety? |
@prochazkaa this is the main blocker right now, Jaguar-dart/observable_ish#4 |
Maybe it is a good time to deprecate observable_ish, and fully removed it in null-safe version of stacked? |
What's the plan? |
If, we're gonna do this right now, I should maybe wait and emigrate and then push |
@Sameerkash I'm happy with removing observable_ish from stacked. |
@FilledStacks Would you want me to take this up? I'm happy to, but I might take a little bit of time as I lack understanding of how exactly obserbale_ish is integrated with stacked to make this huge change, but If you can give me some pointers, I'll dive in and try to make it happen. This might actually speed up the migration of stacked. |
No need to apologise, you're doing this in your own time. The change for observable_is it's actually not that big. It'll just break a few things for people that are using it but it should be fine. It's only used in the ReactiveServiceMixin so just that file will be affected (if I remember correctly).
|
Hide this, I just need to be notified on updates here 🙈🔥 |
@YazeedAlKhalaf You can subscribe to issue without leaving a comment, on the right side of the issue page there is a Notifications section with subscribe button. |
@Sameerkash I'd like to see if I can move this along too. Please leave me an update, i'd like to continue from your work. If I can find a way to merge it into a separate branch I'm going to do that and see if I can finish up the observable_ish change. |
My current progress is Migrated stacked with observable_ish The only problem is 1-2 tests are failing in each. Please let me know if there's any other way I can help since I'm not being able to spend the time for this as I'm swamped with a lot of things. |
@Sameerkash that's fine, thank you so much. Push what you have and I'll take it from here. I've merged in the latest PR code. If you've made any additional changes please make that PR to the same feature/null-safety branch and push that up. |
Error: type '(HomeViewModel) => dynamic' is not a subtype of type '((HomeViewModel?) => dynamic)?' after update to stacked: ^2.0.0-nullsafety.2. Please help. Thank you! #0 _ViewModelBuilderState._createViewModel #1 _ViewModelBuilderState.initState |
When will a prerelease be available for |
@Reprevise Everything is available now in a null-safe version stacked as well |
Thanks for the amazing packages. Please support the null-safety version.
The text was updated successfully, but these errors were encountered: