Skip to content
pubscout

fluro

2.0.5, released 4 years ago by lukepighetti.com

A null‑safe Flutter routing library with flexible route definitions and custom transitions.

WASM-ready
$ flutter pub add fluro
Source repository

What it does

Fluro provides a router that maps URL patterns to handlers, supports named and wildcard parameters, query strings, and built‑in transitions. It can be used with MaterialApp.onGenerateRoute or manual navigation via navigateTo.

AI-written summary of version 2.0.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need custom route patterns like wildcards or named parameters
  • You want to define routes declaratively in code and use custom transitions
  • You prefer a lightweight router without extra dependencies

Skip it when

  • You already use a more feature‑rich router like go_router or auto_route
  • You need deep link handling that integrates with navigation 2.0 APIs

Strengths

  • Supports wildcards and named parameters
  • Built‑in and custom transitions
  • Null‑safe and compatible with Flutter stable
  • Simple API for defining routes and handlers

Weaknesses

  • No automatic deep link handling for navigation 2.0
  • Limited integration with newer Navigator 2.0 patterns
  • No code generation support
  • Not actively maintained compared to alternatives

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency, create FluroRouter instance, define routes, use router.generator or navigateTo

final router = FluroRouter();
router.define('/users/:id', handler: Handler(handlerFunc: (ctx, params) => UsersScreen(params['id'][0])));
router.navigateTo(context, '/users/123');

Alternatives

Packages that do the same job and could replace fluro.

  • go_router

    Provides declarative routing, deep link support, and integrates with Navigator 2.0

  • auto_route

    Offers code generation, nested routes, and type safety