Skip to content

csells/flutter_deep_linking

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
May 30, 2021 08:05
May 22, 2021 17:13
April 11, 2020 20:01
April 11, 2020 20:01
February 22, 2022 17:11

Flutter Deep Linking sample

This sample app shows off current best practices for handling deep linking, navigation and routing when using Flutter, including the web, where you have to worry about people editing route names directly in the address bar.

This code also has a blog post that describes the principles used to produce it. I recommend starting there.

Demo

You can try this sample app here.

Files

  • main.dart: where the page widgets are defined, e.g. PersonPage
  • routing.dart: where the app-specific routing is defined, e.g. AppRouteConfig
  • data.dart: the simple data model that goes with this app

Usage

To take advantage of this code, I recommend coping routing.dart into your project, tailoring it to fit your routable pages and then using those classes to MaterialApp.router.

Enjoy.

About

Flutter web deep linking sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published