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 Obscure certain text

Hello everyone I am facing issue in the obscuring text in Flutter Requirememt: Obscure the first 5 characters of the Text while entering in TextFormField. Example : XXXXX4307R But I have to obscure the text in the TextFormField and also…

VIEW QUESTION

Flutter – what is ': this.only' in dart?

Can someone explain to me the script's (given below) constructor, what ': this.only' means: class BorderRadius extends BorderRadiusGeometry { const BorderRadius.all(Radius radius) : this.only( topLeft: radius, topRight: radius, bottomLeft: radius, bottomRight: radius, ); I am learning Dart and trying to…

VIEW QUESTION
Back To Top
Search