slide method
Override this method to add slide (foreground) widget.
The widget returned by this method will be placed as foreground of that particular slide.
Implementation
@override
Widget slide(BuildContext context) {
return Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
title ??
Text(
_titleText!,
style: Theme.of(context).textTheme.displayMedium,
),
_gap,
subtitle ??
Text(
_subtitleText!,
style: Theme.of(context).textTheme.titleMedium,
),
],
),
);
}