Q: Why Listener Only Return Once When Run Command?
zgunz42 opened this issue · 2 comments
zgunz42 commented
Hay, I try to make a loading indicator using rx_command so at loading screen it has fading dot where will be update when percent is increase, first it will load preference, and all asyc stuff. So when I call this command it will start the process
sl.get<AppManager>().loadAppCommand()
so at initState method I put listener to loadAppCommand
sl.get<AppManager>().loadAppCommand.listen((double percent){
percentLoaded = percent;
})
How do I add loading percent to loadAppCommand Stream Like Using add
escamoteur commented
How do you create your command?
escamoteur commented
@zgunz42 can you provide me with more information or can I close the issue?