theme property

ExpressiveThemeData Function(BuildContext context)? theme
final

The theme the whole modal sheet wears — its container, handle and page — in place of the one around the navigator: a player tinted from the playing artwork (ExpressiveArtwork). The route builds the sheet with the navigator's themes, so a scope inside child would tint only the page, not the container under it. Called under the route whenever the sheet builds, with the navigator's theme ambient: a new page (the router's rebuild) and whatever it depends on rebuild it, and so does themeListenable (a scheme that springs between two artworks). Null keeps the navigator's theme. The full-screen dialog ignores it.

Implementation

final ExpressiveThemeData Function(BuildContext context)? theme;