../../.pub-cache/hosted/pub.dev/flutter_form_bloc-0.20.6/lib/src/stepper/stepper.dart:283:23: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../Documents/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'.
? themeData.accentColor
^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
/******** in stepper.dart line number 283 need to change accentColor in _circleColor method getting issues because of this unable to run the app ***/
Color _circleColor(int index) {
final ThemeData themeData = Theme.of(context);
if (!_isDark()) {
return widget.steps[index].isActive
? themeData.primaryColor
: Colors.black38;
} else {
return widget.steps[index].isActive
? themeData.accentColor
: themeData.backgroundColor;
}
}
../../.pub-cache/hosted/pub.dev/flutter_form_bloc-0.20.6/lib/src/stepper/stepper.dart:283:23: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'.
? themeData.accentColor
^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
/******** in stepper.dart line number 283 need to change accentColor in _circleColor method getting issues because of this unable to run the app ***/
Color _circleColor(int index) {
final ThemeData themeData = Theme.of(context);
if (!_isDark()) {
return widget.steps[index].isActive
? themeData.primaryColor
: Colors.black38;
} else {
return widget.steps[index].isActive
? themeData.accentColor
: themeData.backgroundColor;
}
}