context.select isn’t defined for BuildContext

context.select, context.read and context.listen are extension methods from Provider. To use them you should import Provider.

Add this on top of your file:

import 'package:provider/provider.dart';

It should be auto-imported by default. It’s a known issue.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top