skip to Main Content

StateError in Flutter

How to fix this error: StateError (Bad state: add(SignUp Button Pressed) was called without a registered event handler. Make sure to register a handler via on((event, emit) {...})) SignUpBloc: import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import '../../domain/repositories/user_repository.dart'; part 'sign_up_event.dart'; part 'sign_up_state.dart'; class…

VIEW QUESTION

Flutter – Checkbox Checks All The Tasks Instead of The Relevant One Only

taskContainer(String taskName, String taskPriority, String taskDetails) { return Padding( padding: const EdgeInsets.only(bottom: 10), child: Container( height: 80, decoration: BoxDecoration( color: Colours().containerColour, borderRadius: BorderRadius.circular(10), boxShadow: [ BoxShadow( color: Colours().buttonShadow, blurRadius: 5, offset: const Offset(0, 5), ), ], ), child: Row( mainAxisAlignment:…

VIEW QUESTION
Back To Top
Search