felangel / bloc

A predictable state management library that helps implement the BLoC design pattern
https://bloclibrary.dev
MIT License
11.79k stars 3.39k forks source link

fix: Unreachable case (states) in Actions Widget of flutter_timer example #3909

Closed dk-a-dev closed 1 year ago

dk-a-dev commented 1 year ago

Description

Steps To Reproduce

  1. Run/Debug the flutter_timer app
  2. See the bug

Expected Behavior

Timer app changing UI with all the action states

Screenshots and Screen recordings

IMG-20230721-WA0004.jpg

IMG-20230721-WA0003.jpg

https://github.com/felangel/bloc/assets/84137299/2f88f48b-3837-43fa-8cab-7d0bdf5b0175

Note

Can you please assign this issue to ME

marcossevilla commented 1 year ago

hey @dk-a-dev! do you have a PR open to fix this already?

dk-a-dev commented 1 year ago

Not Yet @marcossevilla

marcossevilla commented 1 year ago

@dk-a-dev cool, I'll assign it to you and then you can reference this issue when you open the PR 👍

dk-a-dev commented 1 year ago

I cloned the repo and tried to re-produce the warning but there is no problem with the existing code base as my vscode does not give any warnings. In my rewrite, I separated the widgets, but that definitely should not hamper the linter for warnings. Maybe the varied version of the linter could be a reason for those warnings. I am sorry for opening an issue without proper checks @marcossevilla you can close the issue