Closed TENX-S closed 10 months ago
Can u provide the output of the logs, build $alwaysonTop with screen recording @TENX-S
Seems u made a hot-restart, can u share the log without doing it
If you do not hot-restart, there's only one log no matter how many times you click that button:
flutter: build true
FWIW, here's the video without hot-restart:
https://github.com/felangel/bloc/assets/40336192/d156f2c6-8797-4eac-8e1c-9dd6689c7c35
So it turns out there is something wrong with understanding; I shouldn't mutate the state but instead, I need to create a new one for emitting. (I learned this from somewhere else)
Sorry for the noise!
I have an IconButton that click on it will pin/unpin the window, and the icon will change according to pinned or not. The first click on the button will trigger a rebuild event, but subsequent click does not. And I have absolutely no idea on it.
I created a minimal example here: https://gist.github.com/TENX-S/7a811cb23b3b0ed220b75f4b2cda7fd3, for repo: https://github.com/TENX-S/miniexample
I tried to read documentation on https://bloclibrary.dev/, but I'm not getting the answer to it.
Extra info: