DashboardCategories constructor
- Key? key,
- required TextTheme txtTheme,
- required void onSearchChanged(),
- bool forceShowExercisesOnly = false,
- VoidCallback? onReturnedFromFilter,
txtTheme
is used for styling, onSearchChanged
is a callback when the
search query changes. If forceShowExercisesOnly
is true, categories are hidden.
onReturnedFromFilter
is an optional callback triggered when returning from filter screens.
Implementation
const DashboardCategories({
super.key,
required this.txtTheme,
required this.onSearchChanged,
this.forceShowExercisesOnly = false,
this.onReturnedFromFilter,
});