2

I was trying to route my TaharatPage and I'm getting such errors

The following assertion was thrown building TaharatGeneralPage(dirty): BlocProvider.of() called with a context that does not contain a Bloc of type TaharatBloc.

    No ancestor could be found starting from the context that was passed to BlocProvider.of<TaharatBloc>().

The Error The Routing The Coding

Where I was Routing it

1 Answer 1

2

You are not using the generated routes use named navigation instead of giving a new MaterialPageRoute

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.