fdr 0.0.5 copy "fdr: ^0.0.5" to clipboard
fdr: ^0.0.5 copied to clipboard

Fully declarative routing for Flutter applications, as easy as `Widget.build`.

example/lib/main.dart

import 'package:fdr/fdr.dart';
import 'package:fdr_example/src/examples/example_selection_navigator.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FDR Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blueAccent),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({
    super.key,
  });

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return DeclarativeNavigator(
      navigator: ExampleSelectionNavigator(),
    );
  }
}
1
likes
150
pub points
3%
popularity

Publisher

verified publisherrelentless.works

Fully declarative routing for Flutter applications, as easy as `Widget.build`.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fdr