This is the code (Fidev design challenge) step by step copied from source but got an error classes in suspicion are MainPage and LeopardPage have imported all necessary packages Can't figure out what is missing
class LeopardPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
//print(MediaQuery.of(context).size.width);
return Consumer<PageOffsetNotifier>(
builder:(context,value,child)
{
return Positioned(
top: 100,
left: -0.85 * value.offset,
width: MediaQuery.of(context.watch()).size.width*1.6,
child: child,
);
},child: IgnorePointer(child: Image.asset('assets/leopard.png')),
);
}}
Main Class is