LearningTemplate constructor
const
LearningTemplate({
- Key? key,
- required List<
Course> courses, - String title = 'Learn',
- String greeting = 'Good day, learner!',
- String continueTitle = 'Continue learning',
- String? continueSubtitle,
- List<
Widget> stats = const <Widget>[], - VoidCallback? onSearch,
- VoidCallback? onNotifications,
- Widget? header,
- PreferredSizeWidget? appBar,
Implementation
const LearningTemplate({
super.key,
required this.courses,
this.title = 'Learn',
this.greeting = 'Good day, learner!',
this.continueTitle = 'Continue learning',
this.continueSubtitle,
this.stats = const <Widget>[],
this.onSearch,
this.onNotifications,
this.header,
this.appBar,
});