flutter_router 1.2.0 copy "flutter_router: ^1.2.0" to clipboard
flutter_router: ^1.2.0 copied to clipboard

Flutter routing library that adds flexible routing options like parameters and clear route definitions

Flutter Router #

pub package

Flutter routing library that adds flexible routing options like parameters and clear route definitions.

Usage #

To use this plugin, add flutter_router as a dependency in your pubspec.yaml file.

Usage #

// Import package
import 'package:flutter_router/flutter_router.dart';
copied to clipboard
runApp(MaterialApp(
  onGenerateRoute: Router({
    '/accounts/{id}': (context, match) => Account(id: match.parameters['id'),
    '/': (context, match) => Index(),
  }).get,
));
copied to clipboard
5
likes
140
points
284
downloads

Publisher

verified publisherelita.si

Weekly Downloads

2024.09.19 - 2025.04.03

Flutter routing library that adds flexible routing options like parameters and clear route definitions

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, uri

More

Packages that depend on flutter_router