material-components / material-components-android-codelabs

Codelabs for Material Components for Android (MDC-Android)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MDC-103: Step 6

joaogabrielfjob opened this issue · comments

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):