skip to Main Content

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


  1. Chosen as 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


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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search