abuanwar072/E-commerce-Complete-Flutter-UI

CustomAppBar issues

osama3101995 opened this issue · 2 comments

I have been able to fix almost all of the 2.2.0 flutter migration issues. However, I cannot for the life of mine, fix this. Is anyone else recieving the issue on PreferredSize?

Error: The superclass 'PreferredSize' doesn't have a zero argument constructor.

Not sure what I should do to fix it?

69-69 commented

Remove the @ from the required CustomAppBar({@required this.rating});
Implement class CustomAppBar extends StatelessWidget implements PreferredSizeWidget { instead this class CustomAppBar extends PreferredSize {

And it done

The recent commit fixed it!