Flutter AccentColor Deprecated Posted on July 9, 2023July 9, 2023 You may get the below error if you upgraded Flutter. The getter accentColor is not defined for ThemeData. To overcome this problem change accent color to anything you like Color myColor = Theme.of(context).colorScheme.secondary;