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

I got this error on laravel project- Error Exception Trying to get property 'sales_price' of non-object

I get this error form helper.php. I need sale prices of product. but I get this error.And I dont understand when I get this error. helper.php public static function getSalesPriceUsingProductIDCode($id, $customerId) { $data = PosCustomerProducts::valid()->where('complete_status',0)->where('customer_id', $customerId)->where('product_id', $id) ->select('product_id', 'sales_price') ->first()->sales_price;…

VIEW QUESTION
Back To Top
Search