build method

  1. @override
Widget build(
  1. BuildContext context,
  2. Widget child,
  3. ContentItem content
)
override

Implementation

@override
Widget build(BuildContext context, Widget child, ContentItem content) {
  final service = vyuh.di.get<ThemeService>();
  final themeData = service.theme(mode);

  return themeData != null ? Theme(data: themeData, child: child) : child;
}