Skip to content

10장 진행 중 코드가 막힙니다 ㅠㅠ 도와주세요 #1

Description

@sonagidevelop

floatingActionButton: FloatingActionButton(
onPressed: () async {
final todo = await Navigator.of(context).pushNamed('/add');
_insertTodo(todo);
},

10장 260페이지 에서 _insertTodo(todo);
부분이 에러가 납니다.
Error: The argument type 'Object?' can't be assigned to the parameter type 'Todo'.
라고 나오는데 이해도가 부족해서 그런지 잘 안되네요..
그리고 플러터 2.0 업데이트 이후 non-nullable 관련해서 여러 오류도 나는 것 같습니다.....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions