Earlier, I was using flutter 3.4
, and My project compiled successfully. Recently, We’ve migrated to flutter 3.7
and I am getting the below error.
error: [+1994 ms] ../../../../../../development/flutter/packages/flutter/lib/src/material/color_scheme.dart:237:54: Error: The getter 'outlineVariant' isn't defined for the class 'Scheme'.
2
Answers
The issue happens due to the latest flutter version upgrade. I fixed the issue by downgrading the flutter version to
flutter 3.4
instead offlutter 3.7
For me doing
flutter clean
and thenflutter pub get
solved the problem.