Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Curious if it's possible to use this library together with my get_it_mixin #3

Closed
escamoteur opened this issue Feb 4, 2022 · 3 comments

Comments

@escamoteur
Copy link

Hi, just stumbled upon this new package.

My get_it_mixin is a simpler hooks like package to observe objects inside get_it.

If I understand it correctly you still need stateful widgets to make it work.
I think it could indeed work.
@esDotDev what do you think?

@esDotDev
Copy link

esDotDev commented Feb 4, 2022

I have been using this lately and it works great :D Mostly I use it for AnimationControllers so it doesn't conflict with anything I use GetItMixin for.

@escamoteur
Copy link
Author

Awesome, I was almost sure that it does. It's really sad that the get_it family doesn't get that much interest as the other solutions

@esDotDev
Copy link

esDotDev commented Feb 4, 2022

Ya, I don't really get it (get it!?) :p . All we can do is keep fighting the good fight :D

Here's code snippet on how they work together fine:

class _DrinkPageState extends State<DrinkPage> with GetItStateMixin, ReactiveHostMixin {
  late final anim = ReactiveAnimationController(this)
    ..ctrl.duration = Times.medium
    ..ctrl.forward();

  @override
  Widget build(BuildContext context) {
    final drinks = watchX((DrinksManager m) => m.all);
    ...
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants