material-components / material-components-android-codelabs

Codelabs for Material Components for Android (MDC-Android)
Apache License 2.0
220 stars 160 forks source link

MDC-103: Step 6 #50

Closed joaogabrielfjob closed 3 years ago

joaogabrielfjob commented 4 years ago

Describe the bug While trying to reproduce the override fun getItemOffsets i found an error due to the

?

addition in the RecyclerView state parameter. The error shown is that the fun doesn't override nothing.

To Reproduce Steps to reproduce the behavior:

  1. Go to MDC-103 codelab
  2. Click on step 6
  3. Scroll down to ProductGridItemDecoration.kt
  4. See error

Codelab details (please complete the following information about the codelab):