subThemesData property

FlexSubThemesData? subThemesData
final

Optional configuration parameters for the opt-in widget sub-themes.

If you opt-in to use the opinionated sub theming offered by FlexColorScheme you can also configure them by passing in a FlexSubThemesData that allows you to modify their style and behavior.

The primary purpose of the opinionated sub themes is to make it easy to add themed corner radius to all Widgets that support it, and to provide a consistent look on all buttons, including ToggleButtons.

The default values is also a way to give your Material 2 themed based application a look that to large extents follows the Material3 (M3) guide.

Defaults to null, resulting in a default FlexSubThemesData being used when useSubThemes is set to true.

Implementation

final FlexSubThemesData? subThemesData;