The getter 'outlineVariant' isn't defined for the class 'Scheme'

513 Views Asked by At

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

There are 2 best solutions below

0
Hitesh Surani On BEST ANSWER

The issue happens due to the latest flutter version upgrade. I fixed the issue by downgrading the flutter version to flutter 3.4 instead of flutter 3.7

1
josue.0 On

For me doing flutter clean and then flutter pub get solved the problem.