PueTheme constructor
PueTheme({
- required BuildContext context,
- double gutters = PueConstants.defaultGutters,
- TextStyle? headerTextStyle,
- TextStyle? headerSubtextStyle,
- Widget? background,
Implementation
PueTheme({
required this.context,
this.gutters = PueConstants.defaultGutters,
// this.maxWidth = PueConstants.defaultMaxWidth,
this.headerTextStyle,
this.headerSubtextStyle,
this.background,
}) {
headerTextStyle = Theme.of(context).textTheme.headline6;
headerSubtextStyle = Theme.of(context).textTheme.bodyText1;
background =
PueBackground(colour: Theme.of(context).scaffoldBackgroundColor);
}