bizz84 / bizz84/code-with-andrea-issue-tracker

Navigation on Simple Auth with Flutter

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

On https://codewithandrea.com/articles/2019-06-03-simple-authentication-flow-with-flutter/

could you just as simply do

if (user == null) {
return Navigator.of(context).push("/login");
}

instead of

if (user == null) {
return SignInPage();
}

and, how do you add a "router guard" on each of your routes to check sign in?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.