route_guard

A simple Flutter package for protecting routes with async guards like authentication.

Features

• Async guards

• Custom redirection

• Custom loading indicator

Usage

RouteGuard(
  guard: (_) async => isLoggedIn,
  redirectTo: '/login',
  child: HomePage(),
)

Libraries

route_guard