ThemeConsumer constructor

const ThemeConsumer({
  1. Key? key,
  2. required Widget child,
})

Wrap a widget to use the theme of the closest app theme of the ThemeProvider. If you have multiple screens, wrap each entry point with this widget.

Implementation

const ThemeConsumer({Key? key, required this.child}) : super(key: key);