chewie icon indicating copy to clipboard operation
chewie copied to clipboard

upgrade flutter and I don't use this package

Open azabcodes opened this issue 1 year ago • 4 comments

chewie-1.0.0/lib/src/material_controls.dart:441:50: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.

  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/Users/mahmoudazab/Developer/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. playedColor: Theme.of(context).accentColor, ^^^^^^^^^^^

azabcodes avatar May 15 '23 11:05 azabcodes

Same issue happened with me, I added chewie package seperately in pubspec and issue resolved

efazalk avatar May 17 '23 10:05 efazalk

same issue

ahmedNagar123 avatar May 21 '23 18:05 ahmedNagar123

I just added chewei updated version to pubspec and my error was gone

efazalk avatar May 21 '23 18:05 efazalk

'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/Users/mahmoudazab/Developer/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. playedColor: Theme.of(context).accentColor, ^^^^^^^^^^^ just go to theme_Data.dart file and change that accentColor field it will work fine

rakshuUnvii avatar Mar 07 '24 08:03 rakshuUnvii