rrousselGit / state_notifier

ValueNotifier, but outside Flutter and with some extra perks
MIT License
311 stars 28 forks source link

does it support consumer/selector ? #21

Closed tbm98 closed 4 years ago

tbm98 commented 4 years ago

does it support consumer/selector ?

rrousselGit commented 4 years ago

Yes it does

It supports all provider features.

On Sat, 13 Jun 2020, 11:21 tbm98, notifications@github.com wrote:

does it support consumer/selector ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rrousselGit/state_notifier/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZ3I3OL2QZ3PEF6YE4KE23RWNHKLANCNFSM4N45WTDQ .

tbm98 commented 4 years ago

can you give me some example about use selector/consumer with state_notifier?

rrousselGit commented 4 years ago

Here's context.select

https://github.com/rrousselGit/state_notifier/blob/eceb2d9ce0091b53a5d4c23336daf5fd35a6673d/packages/flutter_state_notifier/example/lib/main.dart#L83

You should be able to infer on how to use Consumer/Select from that

tbm98 commented 4 years ago

Thanks

Vào 17:46 Th 7, 13 thg 6 2020 Remi Rousselet notifications@github.com đã viết:

Closed #21 https://github.com/rrousselGit/state_notifier/issues/21.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rrousselGit/state_notifier/issues/21#event-3440687253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRATJGXYOJ3MVJD2AH2UTLRWNKG5ANCNFSM4N45WTDQ .