button property

  1. @Deprecated('Use colorScheme.secondary instead. ' 'For more information, consult the migration guide at ' 'https://flutter.dev/docs/release/breaking-changes/theme-data-accent-properties#migration-guide. ' 'This feature was deprecated after v2.3.0-0.1.pre.')
Color button
return Theme.of(context).buttonColor

Implementation

@Deprecated(
  'Use colorScheme.secondary instead. '
  'For more information, consult the migration guide at '
  'https://flutter.dev/docs/release/breaking-changes/theme-data-accent-properties#migration-guide. '
  'This feature was deprecated after v2.3.0-0.1.pre.',
)
Color get button => Theme.of(_context).buttonTheme.colorScheme?.secondary ?? Theme.of(_context).colorScheme.secondary;