navigationBarIsStyled property

bool navigationBarIsStyled
final

When true, the NavigationBarThemeData theme for the M3 NavigationBar created will be opinionated and styled to match the rest of the FlexColorScheme opinionated sub-themes.

Defaults to true.

Regardless of if this is property is true or false, setting the other navigationBar properties in FlexSubThemesData overrides the defaults. The difference is the starting point. If true the starting point is the styled version, if false, the starting point are the defaults of the un-themed default Widget behavior of the M3 based NavigationBar. Depending on the end result you want to achieve, starting with navigationBarIsStyled as true or false may give you a starting point that is closer to your target style, requiring you to define fever of the other properties offered here.

The NavigationBar sub-theme styling offered is extensive. Other sub-themes configurations and options are not and will not be this extensive. This is added as a trial to see how it is received. It was also added because styling the NavigationBar with its raw sub-theme class NavigationBarThemeData can be a bit tricky as it uses MaterialStateProperty for its icon and text theme styling. Here we provide a more "flat" API for modifying it further, and a default that matches the rest of defaults for FlexColorScheme styles.

You can also use the FlexSubThemes.navigationBarTheme as helper for making your custom NavigationBarThemeData. It exposes a few more properties and options than available here, in a more convenient API format than the NavigationBarThemeData class.

Implementation

final bool navigationBarIsStyled;