The class ‘PreferredSizeWidget’ can’t be used as a mixin because it’s neither a mixin class nor a mixin
If you get the same error, just change the “with” with the “implements” like this: class MyAppBar extends StatelessWidget implements PreferredSizeWidget { … } Description: In Dart 3, the rules around mixins have been made stricter compared to previous versions. As mentioned in the release notes, any class could be used as a mixin before … Read more