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

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)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions