Skip to content

Missing instructions for MDC-104, step 7 prevents filtering from working #145

Closed
@alexandre-senecal

Description

@alexandre-senecal

The sample code to update home.dart does not pass category to the AsymetricView

In home.dart, add a variable for Category and pass it to the AsymmetricView.
...
@OverRide
Widget build(BuildContext context) {
// TODO: Pass Category variable to AsymmetricView (104)
return AsymmetricView(products: ProductsRepository.loadProducts(Category.all));
}
}

Should be replaced with

@OverRide
Widget build(BuildContext context) {
// TODO: Pass Category variable to AsymmetricView (104)
return AsymmetricView(products: ProductsRepository.loadProducts(category));
}
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions