DashboardCategories constructor

const DashboardCategories({
  1. Key? key,
  2. required TextTheme txtTheme,
  3. required void onSearchChanged(
    1. String
    ),
  4. bool forceShowExercisesOnly = false,
  5. 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,
});