← All blogs

dust blog

Open a Product Link With Dust

Dust full-stack product link tutorial showing a server product route and Flutter product screen route

Open a product link in Flutter. Read the product from a Dart server.

That is one app flow.

The server owns /products/{id}. dust_server reads the path value and returns the product.

The Flutter app owns /products/:id. Dust Routing turns the link into a page with an id.

Then the screen uses a Dust HTTP client to call the server. State handles loading, errors, and the loaded product.

The user sees one link.

The code has clear parts:

  • server route;
  • Flutter route;
  • HTTP client;
  • screen state.

Dust does not hide the app logic. It keeps repeated route, request, and state glue out of the way.

Docs used: Flutter deep links, Dust Routing deep links, Dust route parameters, Dust HTTP clients, and dust_server routing.

#Dust #DustServer #Routing #HTTPClient #Flutter