route_guard 0.0.1 copy "route_guard: ^0.0.1" to clipboard
route_guard: ^0.0.1 copied to clipboard

A lightweight Flutter package to add async or conditional navigation guards to routes, similar to middleware.

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(),
)
1
likes
150
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter package to add async or conditional navigation guards to routes, similar to middleware.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on route_guard