deep_route 0.0.4 copy "deep_route: ^0.0.4" to clipboard
deep_route: ^0.0.4 copied to clipboard

A new Flutter package for navigation and routing with minimal amount of code to navigate even from the business logic, even without a context

What is DeepRoute?

It’s a Flutter navigation package, it requires a minimal amount of code to generate everything needed for navigation inside of your App. It has the advantage of not needing context, so you can navigate from your business logic also.

Installing #

Add DeepRoute to your pubspec.yaml file:

dependencies:
  deep_route:

Import DeepRoute in files that it will be used:

import 'package:deep_route/deep_route.dart';

Usage #

For sample code look in /example folder.

Step 1: Add "DeepMaterialApp" before your MaterialApp, use DeepMaterialApp instead of MaterialApp

void main() => runApp(DeepMaterialApp(home: Home()));

Step 2: Use DeepRoute for navigation like

DeepRouter.toNamed('/RouteName', arguments: 'sample');
DeepRouter.to(NextPage());

Additional information #

This package is in its early development stage.

5
likes
150
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package for navigation and routing with minimal amount of code to navigate even from the business logic, even without a context

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on deep_route