flow_routing 2.0.0 copy "flow_routing: ^2.0.0" to clipboard
flow_routing: ^2.0.0 copied to clipboard

The next-generation Flutter router. Typed routes, pipeline guards, first-class web support, and performance built from first principles.

example/lib/main.dart

import 'package:flow_routing/flow_routing.dart';
import 'package:flutter/material.dart';

import 'router.dart';
import 'theme/app_theme.dart';
import 'web_url_strategy.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  configureWebUrlStrategy();
  final router = createRouter();
  runApp(FlowDemoApp(router: router));
}

class FlowDemoApp extends StatelessWidget {
  const FlowDemoApp({required this.router, super.key});

  final FlowRouter router;

  @override
  Widget build(BuildContext context) {
    return FlowApp.router(
      router: router,
      title: 'Flow Demo',
      theme: buildFlowTheme(brightness: Brightness.dark),
      themeMode: ThemeMode.dark,
    );
  }
}
3
likes
160
points
418
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The next-generation Flutter router. Typed routes, pipeline guards, first-class web support, and performance built from first principles.

Repository (GitHub)
View/report issues

Topics

#routing #navigation #deep-linking #web #typed-routes

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flow_routing