79368720

Date: 2025-01-19 09:47:13
Score: 0.5
Natty:
Report link

try accessing the cubit after postFrameCallback, so your initState method would be like this :

initState(){
WidgetsBinding.instance!.addPostFrameCallback((_) {
 final bloc= context.read<YourBloc>();
})

} 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: amin jamali