'( Flutter Bloc ) doesn't conform to the bound 'StateStreamable<state>' of the type parameter 'B'

why am i getting the error? I couldn't find the reason. I'll be happy if you can help me.

error screen

You can check my issue on github



Solution 1:[1]

hello i solved the problem. The problem was giving an error because there were 2 classes with the same name, so my StatefulWidget class name was the same as my block state class name :) It was fixed when I changed the name of my block state class.

enter image description here enter image description here

Solution 2:[2]

You can use same name for StatefulWidget state and use again that name in block or state please dont repeat same name that's wht that errors come

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Serkan A?ca
Solution 2 Nikhil Kadam