Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Erro ao usar Modular.to.pushReplacementNamed() #1

@Deizo

Description

@Deizo

Estou seguindo o exemplo do Modular + Slidy + Firebase, mas utilizando o login com email e password. Ao fazer a verificação na tela de splash:

final auth = Modular.get<AuthController>(); if (auth.status == AuthStatus.login) { Modular.to.pushReplacementNamed('/home'); } else if (auth.status == AuthStatus.logoff) { Modular.to.pushReplacementNamed('/login'); }

Recebo a seguinte mensagem de erro:

Exception has occurred. NoSuchMethodError (NoSuchMethodError: The getter 'length' was called on null. Receiver: null Tried calling: length)

Metadata

Metadata

Assignees

No one assigned

    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