skyturkish / chatting

0 stars 0 forks source link

logout issue #23

Open skyturkish opened 2 years ago

skyturkish commented 2 years ago

Exception has occurred. ProviderNotFoundException (Error: Could not find the correct Provider above this BlocListener<AuthBloc, AuthState> Widget

This happens because you used a BuildContext that does not include the provider of your choice. There are a few common scenarios:

If none of these solutions work, consider asking for help on StackOverflow: https://stackoverflow.com/questions/tagged/flutter )

skyturkish commented 2 years ago

logut state'ini incele üstünde oynama yapabilirsin belki

skyturkish commented 2 years ago

homeview'da çıkış yapabiliyorum ama settings'de yapamıyorum :lotohmm

skyturkish commented 2 years ago

galiba navigation işlemleri en başta main.dart'ın içinden yönlendiriyor o yüzden herhangi bir navi işlemi yok aslında, state gönderiyoruz ona göre sayfa döndürüyor gibi gibi

skyturkish commented 2 years ago

aslında şunu yapar isek, tüm navigation işlemleri de bloc ile birleştirirsek

@immutable
class AppEventGoToRegistration implements AppEvent {
  const AppEventGoToRegistration();
}

gibi, galiba sorun çözülür