Use the below code instead of accentColor: kBaseAccentColor,
colorScheme: ColorScheme.fromSwatch()
.copyWith(secondary: kBaseAccentColor),
OR
Do this in a simple way:
Click on Magic Bulb

Click on Migrate to ‘ColorScheme.secondary’ it will automatically be converted.
