TitleSlide.fromText constructor
const
TitleSlide.fromText({})
Creates a title slide with only string of title and subtitle. It uses the TextTheme from the context and and set the:
title
with TextTheme.displayMediumsubtitle
with TextTheme.titleMedium
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;