-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rx.combineLatest doesn't call combiner when keyboard is up #574
Comments
I'm sorry guys!!! After sharing my problem i found out the embarrassing issue!!!!
|
You should store |
Thank you!... Please can you point me to the documentation of |
Just a typo 😃 I mean, |
class ProfileForm {
final stream = Rx.combineLatest(...).shareValueSeeded(false);
final subscription = stream.listen(null); // keep stream alive
void dispose() => subscription.cancel();
}
StreamBuilder<bool>(
stream: form.stream,
initialData: form.stream.requireValue, // or stream.value,
builder: ...
); |
@hoc081098 Cool, Thanks... I will try this out. |
This be the most weird thing to debug... as i'm currently new to flutter
The input fields works fine, that's username and password reacts well, however when the keyboard is up, the callback in
combineLatest
isn't trigger. i use cmd + K to open up the keyboard in ios simulator.The idea is to validate both the username and password and that should determine if the button should be enabled or disabled.
I tried
StreamGroup.merge([])
this works fine with keyboard visible or hidden, but the issue with stream group is i cannot access the typed value emitted.I noticed that when the keyboard is up, the connectionState is always waiting, i'm quite getting my hands around flutter coming from android native (observables,livedata,flow etc) so i really don't know much here.
I'm using:
async: ^2.5.0
rxdart: ^0.26.0
The text was updated successfully, but these errors were encountered: