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.