TitleSlide.fromText constructor

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

Creates a title slide with only string of title and subtitle. It uses the TextTheme from the context and and set the:

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

Implementation

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