SectionHeader.fromText constructor

const SectionHeader.fromText({
  1. required String title,
  2. Widget? background,
  3. Key? key,
})

Creates a Section Header slide with just using the string for title. It uses Text with the TextTheme.displayMedium style.

You can always use the defaut constructor of SectionHeader for more customization.

Implementation

const SectionHeader.fromText({
  required String title,
  Widget? background,
  super.key,
})  : _background = background,
      title = null,
      _titleText = title;