flutter bloc: state does not change after changing new event
Bloc Listner Does Not change state to navigate to next screen Bloc import 'package:bloc/bloc.dart'; import 'package:bloctest/bloc/events.dart'; import 'package:bloctest/bloc/states.dart'; class AppBloc extends Bloc<AppEvent,AppState>{ AppBloc(AppState initialState):super(initialState){ on<AppStartEvent>((event, emit) { emit(AppInitState()); }); on<NavigatorButtonPressed>((event, emit) { emit(NavigationSucceedState()); print('navigation succeed'); }); } } Bloc Listner…