Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaxiBookingBloc #3

Open
fedewax opened this issue Jul 6, 2020 · 6 comments
Open

TaxiBookingBloc #3

fedewax opened this issue Jul 6, 2020 · 6 comments

Comments

@fedewax
Copy link

fedewax commented Jul 6, 2020

The superclass 'Bloc<TaxiBookingEvent, TaxiBookingState>' doesn't have a zero argument constructor.
Try declaring a zero argument constructor in 'Bloc<TaxiBookingEvent, TaxiBookingState>', or declaring a constructor in TaxiBookingBloc that explicitly invokes a constructor in 'Bloc<TaxiBookingEvent, TaxiBookingState>'.dart(no_default_super_constructor)

@ganeshchenniah
Copy link

did u get it resolved ?

@ganeshchenniah
Copy link

Its because , current version of bloc is 6.0.1, please replace bloc variable with cubit . It works

@AkashShrestha31
Copy link

i didn't get it

@achamene
Copy link

Any solution to this issue?

@achamene
Copy link

error: The superclass 'Bloc<TaxiBookingEvent, TaxiBookingState>' doesn't have a zero argument constructor. (no_default_super_constructor at [taxi_app] lib\bloc\taxi_booking_bloc.dart:14)

@achamene
Copy link

Manually set version numbers of flutter bloc and bloc packages to 4.0.0
flutter_bloc: ^4.0.0
bloc: ^4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants